Hostname: page-component-77f85d65b8-6c7dr Total loading time: 0 Render date: 2026-04-20T05:50:43.275Z Has data issue: false hasContentIssue false

On-line and off-line partial evaluation: semantic specifications and correctness proofs

Published online by Cambridge University Press:  07 November 2008

Charles Consel
Affiliation:
Department of Computer Science, Yale UniversityNew Haven, CT 06520, USA‡
Siau Cheng Khoo
Affiliation:
Department of Computer Science, Yale UniversityNew Haven, CT 06520, USA‡
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.

This paper presents semantic specifications and correctness proofs for both on-line and offline partial evaluation of strict first-order functional programs. To do so, our strategy consists of defining a core semantics as a basis for the specification of three non-standard evaluations: instrumented evaluation, on-line and off-line partial evaluation. We then use the technique of logical relations to prove the correctness of both on-line and off-line partial evaluation semantics.

The contributions of this work are as follows:

1. We provide a uniform framework to defining and proving correct both on-line and off-line partial evaluation.

2. This work required a formal specification of on-line partial evaluation with polyvariant specialization. We define criteria for its correctness with respect to an instrumented standard semantics. As a by-product, on-line partial evaluation appears to be based on a fixpoint iteration process, just like binding-time analysis.

3. We show that binding-time analysis, the preprocessing phase of off-line partial evaluation, is an abstraction of on-line partial evaluation. Therefore, its correctness can be proved with respect to on-line partial evaluation, instead of with respect to the standard semantics, as is customarily done.

4. Based on the binding-time analysis, we formally derive the specialization semantics for off-line partial evaluation. This strategy ensures the correctness of the resulting semantics.

Information

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

Discussions

No Discussions have been published for this article.