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

非标准模型上霍尔逻辑的完备性

Completeness of Hoare Logic over Nonstandard Models

Zhaowei Xu, Yuefei Sui, Wenhui Zhang

摘要:

程序语义的非标准方法成功地解决了Floyd-霍尔逻辑的完备性问题。非标准语义学的已知版本,匈牙利语义学和公理语义学,是如此的普遍,以至于它们要么缺乏数学的优雅性,要么缺乏实际的实用性。本文的目的是展示一个不仅在数学上优雅,但实际上有用的非标准语义。Peano算术$PA$的标准模型$N$中可计算函数的一个基本性质是$Σ_1$ -可定义性。然而,在$PA$的非标准模型$M$中,由while程序$S$的标准解释导出的函数并不总是算术的。问题在于$M$中$S$的标准终止使用了$N$中的有限性,而这不是$M$中的有限性。为此,我们将给出一个新的解释$S$在$M$,$S$的终止使用$M$ -有限性,和$S$产生的功能在所有的$PA$模型具有统一的$Σ_1$ -可定义性。在此基础上,定义了$PA$非标准模型中霍尔逻辑的新语义,并证明了霍尔逻辑的标准公理系统是可靠的、完备的.新的语义在$PA$中,匈牙利语义学和公理语义学与while程序的新语义学相一致。此外,各种比较与以前的结果,有用的非标准的语义,并评论的完整性问题。

英文摘要:

The nonstandard approach to program semantics has successfully resolved the completeness problem of Floyd-Hoare logic. The known versions of nonstandard semantics, the Hungary semantics and axiomatic semantics, are so general that they are absent either from mathematical elegance or from practical usefulness. The aim of this paper is to exhibit a not only mathematically elegant but also practically useful nonstandard semantics. A basic property of computable functions in the standard model $N$ of Peano arithmetic $PA$ is $Σ_1$-definability. However, the functions induced by the standard interpretation of while-programs $S$ in nonstandard models $M$ of $PA$ are not always arithmetical. The problem consists in that the standard termination of $S$ in $M$ uses the finiteness in $N$, which is not the finiteness in $M$. To this end, we shall give a new interpretation of $S$ in $M$ such that the termination of $S$ uses $M$-finiteness, and the functions produced by $S$ in all models of $PA$ have the uniform $Σ_1$-definability. Then we define, based on the new semantics of while-programs, a new semantics of Hoare logic in nonstandard models of $PA$, and show that the standard axiom system of Hoare logic is sound and complete w.r.t. the new semantics. It will be established, in $PA$, that the Hungary semantics and axiomatic semantics coincide with the new semantics of while-programs. Moreover, various comparisons with the previous results, usefulness of the nonstandard semantics, and remarks on the completeness issues are presented.

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

↑