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

共归纳大步操作语义

Coinductive big-step operational semantics

Xavier Leroy, Hervé Grall

摘要:

本文以一个按值调用函数式语言为例,说明了在大步骤操作语义中共归纳定义和证明的使用,使其能够描述除了终止求值之外的发散求值。我们形式化了共归纳大步语义和标准小步语义之间的联系,证明了这两种语义是等价的。然后,我们研究使用共归纳大步语义证明类型的可靠性和证明的语义保存编译器。本文的一个方法上的创新之处是所有的结果都用Coq证明助手来证明。我们解释了Coq提供的共归纳定义和证明的证明理论介绍,并表明它有利于发现和介绍的结果。

英文摘要:

Using a call-by-value functional language as an example, this article illustrates the use of coinductive definitions and proofs in big-step operational semantics, enabling it to describe diverging evaluations in addition to terminating evaluations. We formalize the connections between the coinductive big-step semantics and the standard small-step semantics, proving that both semantics are equivalent. We then study the use of coinductive big-step semantics in proofs of type soundness and proofs of semantic preservation for compilers. A methodological originality of this paper is that all results have been proved using the Coq proof assistant. We explain the proof-theoretic presentation of coinductive definitions and proofs offered by Coq, and show that it facilitates the discovery and the presentation of the results.

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

↑