A Logical Foundation for Environment Classifiers

  • Authors:
  • Takeshi Tsukada;Atsushi Igarashi

  • Affiliations:
  • Tohoku University,;Kyoto University,

  • Venue:
  • TLCA '09 Proceedings of the 9th International Conference on Typed Lambda Calculi and Applications
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

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 *** *** . 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. We prove that *** *** enjoys basic properties including subject reduction, confluence, and strong normalization and that the execution of a well-typed *** *** program is properly staged. 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.