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

模态代数效应的程序等价性

Program Equivalence for Algebraic Effects via Modalities

Cristina Matache

摘要:

本论文主要研究程序设计语言理论中的程序等价和代数效应。代数效应表示函数式程序设计语言中的不纯行为,如输入和输出、异常、非确定性等,所有这些都以通用的方式处理。程序等价的目的是确定哪些程序在某种意义上可以被认为是等价的。这个问题已经研究了很长时间,但只是最近才扩展到具有代数效果的语言,这是一个较新的发展。为了理解存在代数效应的程序等价性,还有许多工作要做。特别是,没有使用逻辑的上下文对等的特性。我们定义了一个逻辑,其公式表达了高阶程序的代数效果的属性。然后,我们研究了三个概念的程序等价的代数效果:由上述逻辑,应用性双相似性和上下文等价引起的逻辑等价。对于本文所使用的程序设计语言,我们证明了它们都是一致的。因此,本文的主要创新贡献是定义了代数效应的第一逻辑,其诱导程序等价与上下文等价一致。

英文摘要:

This dissertation is concerned with the study of program equivalence and algebraic effects as they arise in the theory of programming languages. Algebraic effects represent impure behaviour in a functional programming language, such as input and output, exceptions, nondeterminism etc. all treated in a generic way. Program equivalence aims to identify which programs can be considered equal in some sense. This question has been studied for a long time but has only recently been extended to languages with algebraic effects, which are a newer development. Much work remains to be done in order to understand program equivalence in the presence of algebraic effects. In particular, there is no characterisation of contextual equivalence using a logic. We define a logic whose formulas express properties of higher-order programs with algebraic effects. We then investigate three notions of program equivalence for algebraic effects: logical equivalence induced by the aforementioned logic, applicative bisimilarity and contextual equivalence. For the programming language used in this dissertation, we prove that they all coincide. Therefore, the main novel contribution of the dissertation is defining the first logic for algebraic effects whose induced program equivalence coincides with contextual equivalence.

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

↑