Combinatorics of explicit substitutions

04/11/2018
by   Maciej Bendkowski, et al.
0

λυ 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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/02/2018

Counting Environments and Closures

Environments and closures are two of the main ingredients of evaluation ...
research
12/11/2018

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

Substitution resolution supports the computational character of β-reduct...
research
05/09/2023

The Undecidability of Unification Modulo σ Alone

The rewriting system sigma is the set of rules propagating explicit subs...
research
04/27/2021

The ksmt calculus is a δ-complete decision procedure for non-linear constraints

ksmt is a CDCL-style calculus for solving non-linear constraints over re...
research
01/11/2022

A Faithful and Quantitative Notion of Distant Reduction for Generalized Applications (Long Version)

We introduce a call-by-name lambda-calculus λ J with generalized applica...
research
05/17/2018

Strict Ideal Completions of the Lambda Calculus

The infinitary lambda calculi pioneered by Kennaway et al. extend the ba...
research
08/20/2018

Lambda Calculus with Explicit Read-back

This paper introduces a new term rewriting system that is similar to the...

Please sign up or login with your details

Forgot password? Click here to reset