arXiv:2608.22998cs.LOAug 2026

Manuscript Offprint

arXiv:2608.22998

Nonstandard Axiomatic Semantics

Patrick Cousot

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Patrick Cousot

Courant Institute, New York University

Abstract. Similar to Skolem's nonstandard models of Peano's naturals, we show that axiomatic semantics based on Hoare logic has nonstandard models and so does not specify a unique, well-defined, and formal operational semantics of programming languages. We propose to enrich axiomatic semantics with additional proof obligations to solve this ambiguity problem. These proof obligations are always satisfied for standard trace models so that Hoare logic proofs are unchanged for these standard models.

Keywords: Axiomatic semantics, Hoare logic, Trace semantics, Nonstandard semantics, Semantics standardisation, Abstract Interpretation.

1 Introduction

In addition to Peano’s axiomatization [41] of the naturals, Dedekind’s categoricity [25] eliminates Skolem’s nonstandard models of arithmetic [42] thus ensuring that the definition of the naturals is unique and corresponds to the intended interpretation of the naturals, up to an isomorphism (section 5).

Since Hoare logic (section 3) is an abstraction (section 4) of a finite or infinite trace semantics indexed by the naturals [15,17] (section 2), an inevitable question is whether the logic is expressive enough to uniquely characterize this trace semantics, up to an isomorphism. This would show that Hoare logic is an operational characterization of program executions. On the contrary, we show that Lauer's axiomatic semantics [36,32] based on Hoare logic [31] suffers from an ambiguity problem similar to that of Peano arithmetics. The rule for iteration (using an inductive invariant that must hold for all states of infinite executions) does not uniquely define the intended meaning of terminating and nonterminating loops (up to isomorphism) since many different infinite pasts and futures (section 6) are possible without changing the logic theory (section 7). We study this phenomenon (sections 8 and 9) and propose a remedy (section 11) inspired by termination proof methods (section 10) extended so as to allow for non-termination. The additional requirements of the axiomatic semantics rule out nonstandard semantics and are always satisfied by the standard semantics (section 12). It follows that Hoare logic proofs are unchanged under the hypothesis that Hoare logic should be interpreted with respect to the standard semantics.

References (50)