
TL;DR
This paper introduces the safe lambda calculus, a variant of simply-typed lambda calculus with syntactic safety constraints that simplify substitution, restrict representable functions to polynomials, and have specific semantic properties.
Contribution
It generalizes the safety condition to simply-typed lambda calculus, characterizes the functions it can represent, and analyzes its complexity and semantic structure.
Findings
Representable numeric functions are exactly multivariate polynomials.
Deciding beta-eta equality in safe lambda calculus is PSPACE-hard.
Safe lambda calculus terms correspond to P-incrementally justified strategies in game semantics.
Abstract
Safety is a syntactic condition of higher-order grammars that constrains occurrences of variables in the production rules according to their type-theoretic order. In this paper, we introduce the safe lambda calculus, which is obtained by transposing (and generalizing) the safety condition to the setting of the simply-typed lambda calculus. In contrast to the original definition of safety, our calculus does not constrain types (to be homogeneous). We show that in the safe lambda calculus, there is no need to rename bound variables when performing substitution, as variable capture is guaranteed not to happen. We also propose an adequate notion of beta-reduction that preserves safety. In the same vein as Schwichtenberg's 1976 characterization of the simply-typed lambda calculus, we show that the numeric functions representable in the safe lambda calculus are exactly the multivariate…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
