# Quantitative aspects of linear and affine closed lambda terms

**Authors:** Pierre Lescanne (LIP)

arXiv: 1702.03085 · 2017-05-24

## TL;DR

This paper provides combinatorial counts and generation algorithms for various classes of closed affine and linear lambda-terms and their normal forms, based on size measurements and context data structures.

## Contribution

It introduces formulas for counting and generating closed affine and linear lambda-terms and their normal forms using context-based data structures.

## Key findings

- Formulas for counting lambda-terms and normal forms by size.
- Algorithms for generating all terms of a given size.
- Use of context data structures for term enumeration.

## Abstract

Affine $\lambda$-terms are $\lambda$-terms in which each bound variable occurs at most once and linear $\lambda$-terms are $\lambda$-terms in which each bound variables occurs once. and only once. In this paper we count the number of closed affine $\lambda$-terms of size $n$, closed linear $\lambda$-terms of size $n$, affine $\beta$-normal forms of size $n$ and linear $\beta$-normal forms of ise $n$, for different ways of measuring the size of $\lambda$-terms. From these formulas, we show how we can derive programs for generating all the terms of size $n$ for each class. For this we use a specific data structure, which are contexts taking into account all the holes at levels of abstractions.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1702.03085/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/1702.03085/full.md

## References

21 references — full list in the complete paper: https://tomesphere.com/paper/1702.03085/full.md

---
Source: https://tomesphere.com/paper/1702.03085