arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1010.3806cs.PL
收藏

环境分类器的逻辑基础

A Logical Foundation for Environment Classifiers

Takeshi Tsukada, Atsushi Igarashi

摘要:

Taha和Nielsen利用环境分类器的概念开发了一个带有声音类型系统的多阶段演算λα。它们是特殊的标识符,代码片段和变量声明用它们来注释,它们的作用域机制用于静态地确保某些代码片段是关闭的并且是安全可运行的。本文通过构造一个类型λ-演算λ,研究了环境分类器的Curry-Howard同构|>.它对应于多模态逻辑,允许通过转换变量进行量化-分类器的对应物-其范围在(可能为空)可能世界之间的标记转换序列上。这种解释将减少“运行”构造--在λα中具有特殊的类型规则--和将封闭代码嵌入到不同阶段的其他代码片段中--这将仅由λα中的跨阶段持久化操作符实现--仅仅是分类器应用的特殊情况。λ|它不仅具有主体归约、汇合和强规范化等基本性质,而且还具有作为多级演算的重要性质:完全归约的时间有序规范化。然后,我们开发了一个基于λ的类ML语言的大步长求值语义|>与它的类型系统,并证明,一个良好的类型λ的评价|”““计划是正确的。我们还确定了一个片段的语言,擦除评估是可能的。最后,我们证明了一个经典的公理扩充的证明系统是健全的和完整的Kripke语义的逻辑。

英文摘要:

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. λ|> enjoys not only basic properties including subject reduction, confluence, and strong normalization but also an important property as a multi-stage calculus: time-ordered normalization of full reduction. Then, we develop a big-step evaluation semantics for an ML-like language based on λ|> with its type system and prove that the evaluation of a well-typed λ|> 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑