Statistical properties of lambda terms

05/23/2018
by   Maciej Bendkowski, et al.
0

We present a quantitative, statistical analysis of random lambda terms in the de Bruijn notation. Following an analytic approach using multivariate generating functions, we investigate the distribution of various combinatorial parameters of random open and closed lambda terms, including the number of redexes, head abstractions, free variables or the de Bruijn index value profile. Moreover, we conduct an average-case complexity analysis of finding the leftmost-outermost redex in random lambda terms showing that it is on average constant. The main technical ingredient of our analysis is a novel method of dealing with combinatorial parameters inside certain infinite, algebraic systems of multivariate generating functions. Finally, we briefly discuss the random generation of lambda terms following a given skewed parameter distribution and provide empirical results regarding a series of more involved combinatorial parameters such as the number of open subterms and binding abstractions in closed lambda terms.

READ FULL TEXT

page 24

page 26

page 27

research
02/02/2018

Counting Environments and Closures

Environments and closures are two of the main ingredients of evaluation ...
research
09/13/2017

On Uniquely Closable and Uniquely Typable Skeletons of Lambda Terms

Uniquely closable skeletons of lambda terms are Motzkin-trees that prede...
research
06/15/2021

Asymptotic Distribution of Parameters in Trivalent Maps and Linear Lambda Terms

Structural properties of large random maps and lambda-terms may be glean...
research
02/26/2020

Tuning as convex optimisation: a polynomial tuner for multi-parametric combinatorial samplers

Combinatorial samplers are algorithmic schemes devised for the approxima...
research
08/03/2017

Polynomial tuning of multiparametric combinatorial samplers

Boltzmann samplers and the recursive method are prominent algorithmic fr...
research
01/25/2019

Average sampling and average splines on combinatorial graphs

In the setting of a weighted combinatorial finite or infinite countable ...
research
04/28/2022

Global analysis of regulatory network dynamics: equilibria and saddle-node bifurcations

In this paper we describe a combined combinatorial/numerical approach to...

Please sign up or login with your details

Forgot password? Click here to reset