Skip to Main content Skip to Navigation
Journal articles

Unary profile of lambda terms with restricted De Bruijn indices

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.
Document type :
Journal articles
Complete list of metadata

https://hal.archives-ouvertes.fr/hal-02313735
Contributor : Isabella Larcher <>
Submitted on : Thursday, January 21, 2021 - 11:43:23 AM
Last modification on : Friday, February 12, 2021 - 10:04:37 AM

File

Unary_height_of_lambda_terms.p...
Files produced by the author(s)

Identifiers

  • HAL Id : hal-02313735, version 3

Collections

Citation

Katarzyna Grygiel, Isabella Larcher. Unary profile of lambda terms with restricted De Bruijn indices. Discrete Mathematics and Theoretical Computer Science, DMTCS, 2021, vol. 22 no. 3, Computational Logic and Applications (CLA'19). ⟨hal-02313735v3⟩

Share

Metrics

Record views

43

Files downloads

191