Counting Environments and Closures

02/02/2018
by   Maciej Bendkowski, et al.
0

Environments and closures are two of the main ingredients of evaluation in lambda-calculus. A closure is a pair consisting of a lambda-term and an environment, whereas an environment is a list of lambda-terms assigned to free variables. In this paper we investigate some dynamic aspects of evaluation in lambda-calculus considering the quantitative, combinatorial properties of environments and closures. Focusing on two classes of environments and closures, namely the so-called plain and closed ones, we consider the problem of their asymptotic counting and effective random generation. We provide an asymptotic approximation of the number of both plain environments and closures of size n. Using the associated generating functions, we construct effective samplers for both classes of combinatorial structures. Finally, we discuss the related problem of asymptotic counting and random generation of closed environemnts and closures.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/11/2018

Combinatorics of explicit substitutions

λυ is an extension of the λ-calculus which internalises the calculus of ...
research
05/23/2018

Statistical properties of lambda terms

We present a quantitative, statistical analysis of random lambda terms i...
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
05/07/2018

Descriptive Complexity for Counting Complexity Classes

Descriptive Complexity has been very successful in characterizing comple...
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
12/11/2018

Towards the average-case analysis of substitution resolution in λ-calculus

Substitution resolution supports the computational character of β-reduct...

Please sign up or login with your details

Forgot password? Click here to reset