paper

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

arXiv:1509.06139

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 free indices and of size (encoded as binary words of length ) is for . We generalize the proposed notion of size and show that for several classes of lambda terms, including binary lambda terms with free indices, the number of terms of size is with some class dependent constant , 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.