Hostname: page-component-77f85d65b8-8wtlm Total loading time: 0 Render date: 2026-03-28T19:33:22.497Z Has data issue: false hasContentIssue false

Efficient self-interpretation in lambda calculus

Published online by Cambridge University Press:  07 November 2008

Torben Æ. Mogensen
Affiliation:
DIKU, University of Copenhagen, Denmark
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

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

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 1992
Submit a response

Discussions

No Discussions have been published for this article.