Counting and Generating Terms in the Binary Lambda Calculus (Extended version)
Logic in Computer Science
2016-01-06 v1
Abstract
In a paper entitled Binary lambda calculus and combinatory logic, John Tromp presents a simple way of encoding lambda calculus terms as binary sequences. In what follows, we study the numbers of binary strings of a given size that represent lambda terms and derive results from their generating functions, especially that the number of terms of size n grows roughly like 1.963447954. .. n. In a second part we use this approach to generate random lambda terms using Boltzmann samplers.
Keywords
Cite
@article{arxiv.1511.05334,
title = {Counting and Generating Terms in the Binary Lambda Calculus (Extended version)},
author = {Katarzyna Grygiel and Pierre Lescanne},
journal= {arXiv preprint arXiv:1511.05334},
year = {2016}
}
Comments
extended version of arXiv:1401.0379