Efficient self-interpretation in lambda calculus
Torben Ægidius Mogensen · Journal of Functional Programming · 1992
Abstract We start by giving a compact representation schema for λ-terms, and show how this leads to an exceedingly small and elegant self-interpreter. We then define the notion of a self-reducer , and show how this too can be written as a small λ-term. Both the self-interpreter and the self-reducer are proved correct. We finally give a constructive proof for the second fixed point theorem for the representation schema. All the constructions have been implemented on a computer, and experiments verify their correctness. Timings show that the self-interpreter and self-reducer are quite efficient, being about 35 and 50 times slower than direct execution using a call-by-need reductions strategy
Cited by 93 works. doi:10.1017/s0956796800000423 Open-access PDF
Authors
References
- Introduction to Metamathematics
- Lecture Notes in Computer Science 1205
- The Scheme Programming Language
- A partial evaluator for the untyped lambda-calculus
- An inverse of the evaluation functional for typed lambda -calculus
- The Scheme Programming Language
- Metacircularity in the polymorphic λ-calculus
- Theoretical Pearls: Self-interpretation in lambda calculus
- Typed representation of objects by functions