English

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

Logic in Computer Science 2013-11-20 v1

Abstract

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 PAPA. Let pLp\in L and SS be any while-program. The arithmetical definability of N\textbf{N}-computable function fSNf_S^{\textbf{N}} leads to separate SS from SP(p,S)SP(p,S), which defines the strongest postcondition of pp and SS over N\textbf{N}, achieving an equivalent but more meaningful form in PAPA. 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 PAPA, 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 PAPA.

Keywords

Cite

@article{arxiv.1311.4617,
  title  = {A New Perspective for Hoare's Logic and Peano's Arithmetic},
  author = {Zhaowei Xu},
  journal= {arXiv preprint arXiv:1311.4617},
  year   = {2013}
}
R2 v1 2026-06-22T02:10:08.775Z