A logical foundation for environment classifiers

15Citations
Citations of this article
21Readers
Mendeley users who have this article in their library.

Abstract

Taha and Nielsen have developed a multi-stage calculus λα with a sound type system using the notion of environment classifiers. They are special identifiers, with which code fragments and variable declarations are annotated, and their scoping mechanism is used to ensure statically that certain code fragments are closed and safely runnable. In this paper, we investigate the Curry-Howard isomorphism for environment classifiers by developing a typed λ-calculus λ{normal subgroup of}. It corresponds to multi-modal logic that allows quantification by transition variables-a counterpart of classifiers-which range over (possibly empty) sequences of labeled transitions between possible worlds. This interpretation will reduce the "run" construct-which has a special typing rule in λα-and embedding of closed code into other code fragments of different stages-which would be only realized by the cross-stage persistence operator in λα-to merely a special case of classifier application. λα enjoys not only basic properties including subject reduction, confluence, and strong normalization but also an important property as a multi-stage calculus: timeordered normalization of full reduction. Then, we develop a big-step evaluation semantics for an ML-like language based on λ{normal subgroup of} with its type system and prove that the evaluation of a well-typed λ{normal subgroup of} program is properly staged. We also identify a fragment of the language, where erasure evaluation is possible. Finally, we show that the proof system augmented with a classical axiom is sound and complete with respect to a Kripke semantics of the logic. © T. Tsukada and A. Igarashi.

Cite

CITATION STYLE

APA

Tsukada, T., & Igarashi, A. (2010). A logical foundation for environment classifiers. Logical Methods in Computer Science, 6(4), 1–43. https://doi.org/10.2168/LMCS-6(4:8)2010

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free