On Uniquely Closable and Uniquely Typable Skeletons of Lambda Terms

09/13/2017
by   Olivier Bodini, et al.
0

Uniquely closable skeletons of lambda terms are Motzkin-trees that predetermine the unique closed lambda term that can be obtained by labeling their leaves with de Bruijn indices. Likewise, uniquely typable skeletons of closed lambda terms predetermine the unique simply-typed lambda term that can be obtained by labeling their leaves with de Bruijn indices. We derive, through a sequence of logic program transformations, efficient code for their combinatorial generation and study their statistical properties. As a result, we obtain context-free grammars describing closable and uniquely closable skeletons of lambda terms, opening the door for their in-depth study with tools from analytic combinatorics. Our empirical study of the more difficult case of (uniquely) typable terms reveals some interesting open problems about their density and asymptotic behavior. As a connection between the two classes of terms, we also show that uniquely typable closed lambda term skeletons of size 3n+1 are in a bijection with binary trees of size n.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/23/2018

Statistical properties of lambda terms

We present a quantitative, statistical analysis of random lambda terms i...
research
02/02/2018

Counting Environments and Closures

Environments and closures are two of the main ingredients of evaluation ...
research
12/20/2022

Pragmatic isomorphism proofs between Coq representations: application to lambda-term families

There are several ways to formally represent families of data, such as l...
research
05/18/2020

How to generate random lambda terms?

We survey several methods of generating large random lambda-terms, focus...
research
11/15/2017

Statman's Hierarchy Theorem

In the Simply Typed λ-calculus Statman investigates the reducibility rel...
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
11/10/2020

A Soft Computing Approach for Selecting and Combining Spectral Bands

We introduce a soft computing approach for automatically selecting and c...

Please sign up or login with your details

Forgot password? Click here to reset