arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1306.6316cs.PLcs.LO
收藏

一个代数效果系统及其处理程序

An Effect System for Algebraic Effects and Handlers

Andrej Bauer, Matija Pretnar

摘要:

我们提出了一个效果系统的核心Eff,Eff的简化变体,这是一个ML风格的程序设计语言与一流的代数效果和处理程序。我们定义了一个表达效果系统,证明了操作语义在该系统中的安全性,然后利用Pitts的最小不变关系理论给出了核心Eff的领域论指称语义,并证明了它的充分性。我们利用这一事实来开发工具,寻找有用的上下文等价,包括归纳原则。为了证明它们的有用性,我们使用这些工具来推导易变状态的常用方程,包括使用非干扰参考进行计算的一般交换律。我们已经形式化的效果系统,操作语义,和安全性定理在BMPF。

英文摘要:

We present an effect system for core Eff, a simplified variant of Eff, which is an ML-style programming language with first-class algebraic effects and handlers. We define an expressive effect system and prove safety of operational semantics with respect to it. Then we give a domain-theoretic denotational semantics of core Eff, using Pitts's theory of minimal invariant relations, and prove it adequate. We use this fact to develop tools for finding useful contextual equivalences, including an induction principle. To demonstrate their usefulness, we use these tools to derive the usual equations for mutable state, including a general commutativity law for computations using non-interfering references. We have formalized the effect system, the operational semantics, and the safety theorem in Twelf.

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

↑