arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1401.5391cs.PL
收藏

单子与效应的语义结合

The semantic marriage of monads and effects

Dominic Orchard, Tomas Petricek, Alan Mycroft

摘要:

Wadler和Thiemann通过一个语法对应和可靠性结果,将类型和效果系统与一元语义统一到操作语义上。他们推测,一个一般的,“连贯的”指称语义可以给出统一的效果系统与单子式的语义。我们提供了这样一个语义的基础上的索引单子,我们介绍的新结构。我们重新定义的语义Moggi的计算计算的Alzida演算(强)索引单子,它给出了一个一对一的对应关系之间的索引的表示和传统的效果系统的效果注释。双重地,这种方法产生索引的comonads,它为上下文的效果概念(称为coeffects)提供了统一的语义和效果系统,我们之前已经描述过。

英文摘要:

Wadler and Thiemann unified type-and-effect systems with monadic semantics via a syntactic correspondence and soundness results with respect to an operational semantics. They conjecture that a general, "coherent" denotational semantics can be given to unify effect systems with a monadic-style semantics. We provide such a semantics based on the novel structure of an indexed monad, which we introduce. We redefine the semantics of Moggi's computational lambda-calculus in terms of (strong) indexed monads which gives a one-to-one correspondence between indices of the denotations and the effect annotations of traditional effect systems. Dually, this approach yields indexed comonads which gives a unified semantics and effect system to contextual notions of effect (called coeffects), which we have previously described.

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

↑