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

顺序Core Erlang的帧栈语义

A Frame Stack Semantics for Sequential Core Erlang

Péter Bereczky, Dániel Horpácsi, Simon Thompson

AI总结:

本研究为顺序Core Erlang提出经Coq验证的帧栈小步语义,补充异常处理等特性,证明多种程序等价性定义等价,并以此给出重构正确性准则。

摘要:

我们为顺序Core Erlang(一种动态类型、非纯函数式编程语言)提出了一种小步、帧栈风格的语义。该语义及我们证明的性质均通过Coq证明助理进行了机器验证。我们通过纳入异常与异常处理,以及内置数据类型和函数,对先前工作进行了改进。基于该语义,我们定义了多种程序等价性概念(上下文等价、CIU等价以及基于逻辑关系的等价),并证明这些定义全部等价。借助这一结论,我们能够通过上下文等价的符号表达式对给出重构的正确性准则,这也是本工作的主要动机之一。

英文摘要:

We present a small-step, frame stack style, semantics for sequential Core Erlang, a dynamically typed, impure functional programming language. The semantics and the properties that we prove are machine-checked with the Coq proof assistant. We improve on previous work by including exceptions and exception handling, as well as built-in data types and functions. Based on the semantics, we define multiple concepts of program equivalence (contextual, CIU equivalence, and equivalence based on logical relations) and prove that the definitions are all equivalent. Using this we are able to give a correctness criterion for refactorings by means of contextually equivalent symbolic expression pairs, which is one of the main motivations of this work.

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

↑