The Safe Lambda Calculus

arXiv:0901.2399 First posted 2009-01-16 v3 Cited by 31
Cite this paper ×
BibTeX
@misc{blum2009the,
  title = {The Safe Lambda Calculus},
  author = {William Blum and C.-H. Luke Ong},
  year = {2009},
  eprint = {0901.2399},
  archivePrefix = {arXiv},
  primaryClass = {cs.PL},
  url = {https://arxiv.org/abs/0901.2399}
}
APA 7
Blum, W., & Ong, C.-H. L. (2009). The Safe Lambda Calculus [Preprint]. arXiv. https://doi.org/10.48550/arXiv.0901.2399
GB/T 7714
BLUM W, ONG CHL. The Safe Lambda Calculus[EB/OL]. (2009-01-16)[2026-11-30]. https://arxiv.org/abs/0901.2399.

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 polynomials; thus conditional is not definable. We also give a characterization of representable word functions. We then study the complexity of deciding beta-eta equality of two safe simply-typed terms and show that this problem is PSPACE-hard. Finally we give a game-semantic analysis of safety: We show that safe terms are denoted by `P-incrementally justified strategies'. Consequently pointers in the game semantics of safe lambda-terms are only necessary from order 4 onwards.

Post #1 · the paper

Discussion

No comments yet. Start the discussion!