Combinatorics of explicit substitutions
Abstract
is an extension of the -calculus which internalises the calculus of substitutions. In the current paper, we investigate the combinatorial properties of focusing on the quantitative aspects of substitution resolution. We exhibit an unexpected correspondence between the counting sequence for -terms and famous Catalan numbers. As a by-product, we establish effective sampling schemes for random -terms. We show that typical -terms represent, in a strong sense, non-strict computations in the classic -calculus. Moreover, typically almost all substitutions are in fact suspended, i.e. unevaluated, under closures. Consequently, we argue that is an intrinsically non-strict calculus of explicit substitutions. Finally, we investigate the distribution of various redexes governing the substitution resolution in and investigate the quantitative contribution of various substitution primitives.
Keywords
Cite
@article{arxiv.1804.03862,
title = {Combinatorics of explicit substitutions},
author = {Maciej Bendkowski and Pierre Lescanne},
journal= {arXiv preprint arXiv:1804.03862},
year = {2018}
}