English

A Lambda Term Representation Inspired by Linear Ordered Logic

Logic in Computer Science 2011-11-02 v1 Programming Languages

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

Cite

@article{arxiv.1111.0085,
  title  = {A Lambda Term Representation Inspired by Linear Ordered Logic},
  author = {Andreas Abel and Nicolai Kraus},
  journal= {arXiv preprint arXiv:1111.0085},
  year   = {2011}
}

Comments

In Proceedings LFMTP 2011, arXiv:1110.6685

R2 v1 2026-06-21T19:28:51.796Z