Abstract
We show that linear time self-interpretation of the pure untyped lambda calculus is possible. The present paper shows this result for reduction to weak head normal form under call-by-name, call-by-value and call-by-need.
We use operational semantics to define each reduction strategy. For each of these we show a simulation lemma that states that each inference step in the evaluation of a term by the operational semantics is simulated by a sequence of steps in evaluation of the self-interpreter applied to the term.
By assigning costs to the inference rules in the operational semantics, we can compare the cost of normal evaluation and self-interpretation. Three different cost-measures are used: number of beta-reductions, cost of a substitution-based implementation and cost of an environment-based implementation.
For call-by-need we use a non-deterministic semantics, which simplifies the proof considerably.
We use operational semantics to define each reduction strategy. For each of these we show a simulation lemma that states that each inference step in the evaluation of a term by the operational semantics is simulated by a sequence of steps in evaluation of the self-interpreter applied to the term.
By assigning costs to the inference rules in the operational semantics, we can compare the cost of normal evaluation and self-interpretation. Three different cost-measures are used: number of beta-reductions, cost of a substitution-based implementation and cost of an environment-based implementation.
For call-by-need we use a non-deterministic semantics, which simplifies the proof considerably.
| Originalsprog | Engelsk |
|---|---|
| Titel | Perspectives of System Informatics : Third International Andrei Ershov Memorial Conference, PSI'99, Akademgorodok, Novosibirsk, Russia, July 6-9, 1999 Proceedings |
| Forlag | Springer |
| Publikationsdato | 2000 |
| Sider | 128-142 |
| DOI | |
| Status | Udgivet - 2000 |
| Begivenhed | 3rd International Andrei Ershov Memorial Conference on Perspectives of System Informatics - Akademgorodok, Novosibirsk, Rusland Varighed: 6 jul. 1999 → 9 jul. 1999 |
Konference
| Konference | 3rd International Andrei Ershov Memorial Conference on Perspectives of System Informatics |
|---|---|
| Land/Område | Rusland |
| By | Akademgorodok, Novosibirsk |
| Periode | 06/07/1999 → 09/07/1999 |
| Navn | Lecture Notes in Computer Science |
|---|---|
| Vol/bind | 1755 LNCS |
| ISSN | 0302-9743 |
Citationsformater
- APA
- Standard
- Harvard
- Vancouver
- Author
- BIBTEX
- RIS