Some Natural Structures which Fail to Possess a Sound and Decidable Hoare-Like Logic for their While-Programs

With the term Hoare-Zike lugic we have in mind some proof system designed for the formal manipulation of assertions about the partial correctnesls of program texts witR respect to a tied interpretation A for the programming language. Stated simply, and informally, our aim in this paper is to exhibit some familiar algebraic structures A over which any sound Honre-like logic for the partial correctness of while-program computations in A will possess some unfamiliar structural properties. From this exercise follows somewhat stronger incompleteness results than those first reported in Cook [lo] and in Wand [25] for Hoare’s original system about whileprograms. And, as we shall make clear in a moment, these results in turn address some sharply defined issues in the theoretical literature to do with the comple:tity of the programming language in the design of a Hoare logic. Our point of departure is Hoare’s proof system as it is formailly co&tutr!d for while-programs in [lo]. We take it for granted that the reader is familiar wizh the papers Hoare [l3], Coo& [lo] and Wand [25]: with these prerequisites, or the invaluable survey paper Apt [lj, we can discuss ow examples in more technical terms. Let A be any relational structure and let -TKp be ttie class of all w destined to compute functions on A. On choosing the first-order logical lang?~~:~ge L as assertion language, and applying a definition of thy semantics Y’ of VV.9 to interpretation A, one may identify the study of partial correctness for %V computations over A as the study of a

[1]  Richard J. Lipton,et al.  A necessary and sufficient condition for the existence of hoare logics , 1977, 18th Annual Symposium on Foundations of Computer Science (sfcs 1977).

[2]  Jan A. Bergstra,et al.  Expressiveness and the Completeness of Hoare's Logic , 1982, J. Comput. Syst. Sci..

[3]  A. I. Mal'tsev CONSTRUCTIVE ALGEBRAS I , 1961 .

[4]  Eugene W. Madison,et al.  A note on computable real fields , 1970, Journal of Symbolic Logic.

[5]  Edmund M. Clarke,et al.  Programming Language Constructs for Which It Is Impossible To Obtain Good Hoare Axiom Systems , 1979, JACM.

[6]  Stephen A. Cook,et al.  Soundness and Completeness of an Axiom System for Program Verification , 1978, SIAM J. Comput..

[7]  Jan A. Bergstra,et al.  Algebraically Specified Programming Systems and Hoare's Logic , 1981, ICALP.

[8]  Donald H. Taranto Algorithms and recursive functions , 1968 .

[9]  Sheila A. Greibach,et al.  Theory of Program Structures: Schemes, Semantics, Verification , 1976, Lecture Notes in Computer Science.

[10]  Krzysztof R. Apt,et al.  Ten Years of Hoare's Logic: A Survey—Part I , 1981, TOPL.

[11]  Samuel N. Kamin,et al.  A complete and consistent hoare axiomatics for a simple programming language , 1977, POPL '77.

[12]  Jan A. Bergstra,et al.  Recursive Assertions are not enough - or are they? , 1979, Theor. Comput. Sci..

[13]  Ernst-Rüdiger Olderog,et al.  Present-Day Hoare-Like Systems for Programming Languages with Procedures: Power, Limits and most Likely Expressions , 1980, ICALP.

[14]  Jan A. Bergstra,et al.  Floyds Principle, Correctness Theories and Program Equivalence , 1982, Theor. Comput. Sci..

[15]  J. V. Tucker,et al.  COMPUTING IN ALGEBRAIC SYSTEMS , 1978 .

[16]  C. A. R. Hoare,et al.  An axiomatic basis for computer programming , 1969, CACM.

[17]  Jr. Hartley Rogers Theory of Recursive Functions and Effective Computability , 1969 .

[18]  J. W. de Bakker,et al.  Mathematical theory of program correctness , 1980, Prentice-Hall international series in computer science.

[19]  Mitchell Wand,et al.  A new incompleteness result for Hoare's system , 1976, STOC '76.

[20]  M. Rabin Computable algebra, general theory and theory of computable fields. , 1960 .