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

基于代数效应模态的行为等价

Behavioural Equivalence via Modalities for Algebraic Effects

Alex Simpson, Niels Voorneveld

摘要:

本文探讨了行为等价程序之间的调用的值函数式语言扩展的签名(代数)的效果触发操作。如果两个程序具有相同的行为特性,则它们被认为是行为等价的。为了表述这一点,我们定义了一个逻辑,其公式指定了行为属性。一个关键的组成部分是表达行为的特定效果方面的模式的集合。我们给这样的模态的一般理论。如果两个条件,开放性和可分解性,满足的方式,然后在逻辑上指定的行为等价符合一个模态定义的概念,适用的双相似性,这可以被证明是一个一致性的推广豪的方法。我们表明,开放性和可分解性条件的代数效应的几个例子:非确定性,概率选择,全球存储和输入/输出。

英文摘要:

The paper investigates behavioural equivalence between programs in a call-by-value functional language extended with a signature of (algebraic) effect-triggering operations. Two programs are considered as being behaviourally equivalent if they enjoy the same behavioural properties. To formulate this, we define a logic whose formulas specify behavioural properties. A crucial ingredient is a collection of modalities expressing effect-specific aspects of behaviour. We give a general theory of such modalities. If two conditions, openness and decomposability, are satisfied by the modalities then the logically specified behavioural equivalence coincides with a modality-defined notion of applicative bisimilarity, which can be proven to be a congruence by a generalisation of Howe's method. We show that the openness and decomposability conditions hold for several examples of algebraic effects: nondeterminism, probabilistic choice, global store and input/output.

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

↑