A Lambda Term Representation Inspired by Linear Ordered Logic
Authors:
Open Access
- 31 October 2011
- journal article
- Published by Open Publishing Association in Electronic Proceedings in Theoretical Computer Science
- Vol. 71, 1-13
Abstract
We introduce a new nameless representation of lambda terms inspired by ordered logic. At a lambda abstraction, number and relative position of all occurrences of the bound variable are stored, and application carries the additional information where to cut the variable context into function and argument part. This way, complete information about free variable occurrence is available at each subterm without requiring a traversal, and environments can be kept exact such that they only assign values to variables that actually occur in the associated term. Our approach avoids space leaks in interpreters that build function closures. In this article, we prove correctness of the new representation and present an experimental evaluation of its performance in a proof checker for the Edinburgh Logical Framework. Keywords: representation of binders, explicit substitutions, ordered contexts, space leaks, Logical Framework.Comment: In Proceedings LFMTP 2011, arXiv:1110.668Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- Semantic foundations for typed assembly languagesACM Transactions on Programming Languages and Systems, 2010
- Conversion by Evaluation2010
- Functional Pearls Efficient sets—a balancing actJournal of Functional Programming, 2008
- Lambda-Calculus with Director StringsApplicable Algebra in Engineering, Communication and Computing, 2005
- A Linear Spine CalculusJournal of Logic and Computation, 2003
- Contification using dominators2001
- An algorithm for type-checking dependent typesScience of Computer Programming, 1996
- A term calculus for Intuitionistic Linear Logic1993
- Explicit substitutionsJournal of Functional Programming, 1991
- Lambda calculus notation with nameless dummies, a tool for automatic formula manipulation, with application to the Church-Rosser theoremIndagationes Mathematicae, 1972