A Lambda Term Representation Inspired by Linear Ordered Logic
Authors:
- Andreas AbelAAAndreas Abel
- Nicolai KrausNKNicolai Kraus
Preprint
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.Keywords
All Related Versions
This publication has 21 references indexed in Scilit:
- Semantic foundations for typed assembly languagesACM Transactions on Programming Languages and Systems, 2010
- Director Strings Revisited: A Generic Approach to the Efficient Representation of Free Variables in Higher-order RewritingJournal of Logic and Computation, 2005
- Lambda-Calculus with Director StringsApplicable Algebra in Engineering, Communication and Computing, 2005
- Choices in Representation and Reduction Strategies for Lambda Terms in Intensional ContextsJournal of Automated Reasoning, 2004
- A Linear Spine CalculusJournal of Logic and Computation, 2003
- A Concurrent Logical Framework I: Judgments and Properties2003
- Natural Deduction for Intuitionistic Non-commutative Linear LogicLecture Notes in Computer Science, 1999
- System Description: Twelf — A Meta-Logical Framework for Deductive Systems1999
- An algorithm for type-checking dependent typesScience of Computer Programming, 1996
- A term calculus for Intuitionistic Linear Logic1993