AI & Computingarticle2026-08-17

Inlining as a Space Optimization: A Simple Time- and Space-Invariant Implementation of the Weak Lambda-Calculus

Open access0 citations

Abstract

We propose an implementation model for the evaluation of the weak λ-calculus, which is invariant for both time and space complexity, in both call-by-name and call-by-value strategies. In other words, this model provides an implementation of any weak call-by-name or weak call-by-value λ-calculus reduction sequence, whose time complexity is polynomial in the number of simulated β-steps, and whose space complexity is linear in the size of the largest intermediate term. This solves in an elegant way the well-known tension between time-invariance and space-invariance in the implementation of the λ-calculus.

// Source

View paper (DOI)Open access versionOpenAlexProceedings of the ACM on Programming LanguagesPublished 2026-08-17

Authors: Thibaut Balabonski

Institutions: Centre National de la Recherche Scientifique, Université Paris-Saclay, CentraleSupélec