Skip to main contentSkip to search
Episciences
Open Access Journals
Sign in(new window)
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Sign in(new window)
Articles & Issues
All articlesAll accepted articlesAll volumesLast volumeSectionsSpecial issuesAuthors
About
The journalIndexing
Boards
Publish
For authorsEthical charter
Submit
Discrete Mathematics & Theoretical Computer Science logo
Contact
|
Credits
eISSN 1365-8050
|
RSS
|
Atom
Episciences
Documentation
|
Acknowledgements
|
Publishing policy
Accessibility: non-compliant
|
Legal mentions
|
Privacy statement
|
Terms of use
  1. Home > Articles & Issues >
  2. Articles >
  3. Unary profile of lam ...
Article

Unary profile of lambda terms with restricted De Bruijn indices

Katarzyna Grygiel (1) (2) (3) (4), Isabella Larcher (2) (3) (4)
(1) Theoretical Computer Science Department [Krakow]
(2) Vienna University of Technology
(3) Vienna University of Technology = Technische Universität Wien
(4) Vienna University of Technology = Technischen Universität Wien
Download article
Open on HAL
Submitted on
October 14, 2019
Accepted on
January 13, 2021
Published on
February 12, 2021
Last modified on
March 31, 2025
Special issue 22
vol. 22:3, Computational Logic and Applications (CLA'19)
Special issues
DOI
10.46298/dmtcs.5836
License
https://about.hal.science/hal-authorisation-v1
Indicators
1081
Views
1016
Downloads

Unary profile of lambda terms with restricted De Bruijn indices

Katarzyna Grygiel (1) (2) (3) (4), Isabella Larcher (2) (3) (4)
(1) Theoretical Computer Science Department [Krakow]
(2) Vienna University of Technology
(3) Vienna University of Technology = Technische Universität Wien
(4) Vienna University of Technology = Technischen Universität Wien
Abstract
In this paper we present an average-case analysis of closed lambda terms with restricted values of De Bruijn indices in the model where each occurrence of a variable contributes one to the size. Given a fixed integer k, a lambda term in which all De Bruijn indices are bounded by k has the following shape: It starts with k De Bruijn levels, forming the so-called hat of the term, to which some number of k-colored Motzkin trees are attached. By means of analytic combinatorics, we show that the size of this hat is constant on average and that the average number of De Bruijn levels of k-colored Motzkin trees of size n is asymptotically Θ(√ n). Combining these two facts, we conclude that the maximal non-empty De Bruijn level in a lambda term with restrictions on De Bruijn indices and of size n is, on average, also of order √ n. On this basis, we provide the average unary profile of such lambda terms.
Keywords
  • [MATH]Mathematics [math]
  • [MATH.MATH-CO]Mathematics [math]/Combinatorics [math.CO]
  • profile of lambda terms
  • singularity analysis
  • lambda terms with restrictions
Preview
Loading PDF preview...