research

On the number of lambda terms with prescribed size of their De Bruijn representation

Abstract

John Tromp introduced the so-called 'binary lambda calculus' as a way to encode lambda terms in terms of binary words. Later, Grygiel and Lescanne conjectured that the number of binary lambda terms with mm free indices and of size nn (encoded as binary words of length nn) is o(n3/2τn)o(n^{-3/2} \tau^{-n}) for τ1.963448\tau \approx 1.963448\ldots. We generalize the proposed notion of size and show that for several classes of lambda terms, including binary lambda terms with mm free indices, the number of terms of size nn is Θ(n3/2ρn)\Theta(n^{-3/2} \rho^{-n}) with some class dependent constant ρ\rho, which in particular disproves the above mentioned conjecture. A way to obtain lower and upper bounds for the constant near the leading term is presented and numerical results for a few previously introduced classes of lambda terms are given

    Similar works