A Logical Foundation for Environment Classifiers
Takeshi Tsukada (Tohoku University), Atsushi Igarashi (Kyoto, University)

TL;DR
This paper develops a typed lambda-calculus {} that models multi-stage programming with environment classifiers, providing a logical foundation, properties, and semantics for staged code execution.
Contribution
It introduces {} as a Curry-Howard correspondence for environment classifiers, unifying multi-stage calculus with multi-modal logic and establishing its properties and semantics.
Findings
{} enjoys subject reduction, confluence, and strong normalization.
It supports time-ordered normalization in multi-stage evaluation.
The logic is sound and complete with respect to Kripke semantics.
Abstract
Taha and Nielsen have developed a multi-stage calculus {\lambda}{\alpha} 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 {\lambda}-calculus {\lambda}|>. 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 {\lambda}{\alpha}---and embedding of closed code into other code fragments of different…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
