Expressiveness and the completeness of Hoare's logic

The work

AuthorsJan A. Bergstra; John V. Tucker
Editors
Typearticle
Year1982
Citekeybergstra1982expressiveness

Where it appeared

Published inJournal of Computer and System Sciences
PublisherElsevier BV
Volume25
Issue3
Pages267--284

Abstract

The authors prove three theorems about completeness issues regarding Hoare's logic for while-programs: (1) expressiveness is not a necessary condition on a structure for the completeness of its Hoare logic, (2) complete number theory is the only extension of Peano Arithmetic which yields a logically complete Hoare logic and (3) a computable structure with enumeration is expressive iff its Hoare logic is complete. Here expressiveness means the ability of expressing strongest postconditions in first-order formulas over the structure concerned; a Hoare logic H is called complete relative to a structure A if any partial correctness formula valid over A is provable in H, where facts about A can be used as an oracle; a Hoare logic H is called logically complete with respect to a specification (theory) T if any partial correctness formula that is valid on all models of T is provable in H. The authors conclude from (1) that in general Cook's analysis of the completeness of Hoare logic is not sufficient, but also that by (3), in the most interesting cases in which computable structures are involved, Cook's notion of expressiveness is enough for the study of completeness. Since for every finite structure expressiveness is guaranteed, their Hoare logics are always complete. Moreover, for every infinite computable structure it is proved to be possible to enrich the signature, such that expressiveness becomes equivalent to completeness of the Hoare logic relative to the enriched structure. However, it is still an open problem whether this also holds in general for the original (infinite computable) structure. Finally a note on the use of Lemma 4.5 in the proof of Theorem 4.3 on p. 277: the three bottom lines have to be replaced by: ''From Lemma 4.5 and II(d) we obtain ⊢¬φ(x)→∀y(x≠y)''.

A copy is held

pdf, 1003.3 kB. Not published — it may be under copyright. The facts and links here are.

How it got here

How it got hereagent via bibtex
Added2026-08-05 00:00 UTC
Approved bya person 2026-08-16 15:23 UTC

Cite it as

@article{bergstra1982expressiveness,
  title        = {Expressiveness and the completeness of Hoare's logic},
  author       = {Jan A. Bergstra and John V. Tucker},
  year         = {1982},
  journal      = {Journal of Computer and System Sciences},
  publisher    = {Elsevier BV},
  volume       = {25},
  number       = {3},
  pages        = {267--284},
  doi          = {10.1016/0022-0000(82)90013-7},
}

This record lives at https://refs.drheap.org/bergstra1982expressiveness/ and will keep doing so.