RAIRO-Theor. Inf. Appl.
Volume 39, Number 3, July-September 2005Foundations of Software Science and Computer Structures (FOSSECAS'04)
|Page(s)||423 - 453|
|Published online||15 July 2005|
Denotational aspects of untyped normalization by evaluation
DIKU, Department of Computer Science,
University of Copenhagen, Universitetsparken 1, DK-2100 Copenhagen,
2 BRICS, Department of Computer Science, University of Aarhus, IT-parken, Aabogade 34, DK-8200 Aarhus N, Denmark; email@example.com Basic Research in Computer Science (), funded by the Danish National Research Foundation.
We show that the standard normalization-by-evaluation construction for the simply-typed λβη-calculus has a natural counterpart for the untyped λβ-calculus, with the central type-indexed logical relation replaced by a “recursively defined” invariant relation, in the style of Pitts. In fact, the construction can be seen as generalizing a computational-adequacy argument for an untyped, call-by-name language to normalization instead of evaluation.In the untyped setting, not all terms have normal forms, so the normalization function is necessarily partial. We establish its correctness in the senses of soundness (the output term, if any, is in normal form and β-equivalent to the input term); identification (β-equivalent terms are mapped to the same result); and completeness (the function is defined for all terms that do have normal forms). We also show how the semantic construction enables a simple yet formal correctness proof for the normalization algorithm, expressed as a functional program in an ML-like, call-by-value language. Finally, we generalize the construction to produce an infinitary variant of normal forms, namely Böhm trees. We show that the three-part characterization of correctness, as well as the proofs, extend naturally to this generalization.
Mathematics Subject Classification: 03B40 / 06B35 / 68N18 / 68Q55
Key words: Normalization by evaluation / untyped λ-calculus / denotational semantics / functional programming / Böhm trees / computational adequacy.
© EDP Sciences, 2005
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.