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

霍尔逻辑与皮亚诺算术的新视角

A New Perspective for Hoare's Logic and Peano's Arithmetic

Zhaowei Xu

摘要:

Hoare逻辑是证明程序正确性的公理系统,它已被扩展为一种分离逻辑,用于对可变堆结构进行推理。我们在Peano算术$PA$中发展了Hoare逻辑最基本的最强后置条件逻辑结构。设$p\in L$和$S$为任意while程序。$\textbf{N}$ -可计算函数$f_S^{\textbf{N}}$的算术可定义性导致$S$与$SP(p,S)$分离,它定义了$p$和$S$在$\textbf{N}$上的最强后置条件,从而在$PA$中得到等价但更有意义的形式.从Hoare逻辑到PA的约化,再加上定义良好的底层语义,可以得出Hoare逻辑相对于$PA$理论是健全和完备的,这与Cook意义上的相对完备性不同。最后,我们讨论了两种方法来扩展可计算性从标准结构的非标准模型的$PA$。

英文摘要:

Hoare's logic is an axiomatic system of proving programs correct, which has been extended to be a separation logic to reason about mutable heap structure. We develop the most fundamental logical structure of strongest postcondition of Hoare's logic in Peano's arithmetic $PA$. Let $p\in L$ and $S$ be any while-program. The arithmetical definability of $\textbf{N}$-computable function $f_S^{\textbf{N}}$ leads to separate $S$ from $SP(p,S)$, which defines the strongest postcondition of $p$ and $S$ over $\textbf{N}$, achieving an equivalent but more meaningful form in $PA$. From the reduction of Hoare's logic to PA, together with well-defined underlying semantics, it follows that Hoare's logic is sound and complete relative to the theory of $PA$, which is different from the relative completeness in the sense of Cook. Finally, we discuss two ways to extend computability from the standard structure to nonstandard models of $PA$.

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

↑