Predicate Transformer Semantics

From MaRDI portal





This volume contains many valuable insights and much elegant mathematics, and should be of considerable help to those interested in mathematical analyses of programming semantics. Although the title involves the word, it is not the usual brand of semantics that is being studied. The more familiar approach starts with a particular language or language construct whose meaning is not obvious, such as circular data-type equations. Then one presents a semantical analysis, e.g., by introducing categories of cpo's and embedding pairs, in order to explain the problematical expression. Here, only hints at applications are given. The author explains the main topic by quoting a paper by Pratt: ``... the development of the mathematics underlying Floyd-Hoare axiom systems independently of such systems. Manes continues: ``This book continues the study of such mathematics with particular emphasis on semantic frameworks. We intend for these frameworks to be flexible, relying on no particular concept of state. Ultimately, extensions of the theory are to address at least program semantics, operating systems, concurrent processes and distributed networks; but the accomplishments of the foundational core herein are modest. ...An implementation of a programming language must provide a definite category in which to assign morphisms to programs. We shall also require that high-level specifications about programs map, as well, to true-false assertions about the corresponding interpreted programs. In the opening chapter, there is a nice discussion of the (Elgot) iteration or fixed point operation in cocartesian categories, i.e., categories having only finite coproducts. Some equations and implications satisfied by this operation in several examples are discussed. In particular, there is a detailed consideration of the so-called pairing identity and the polymorphic axiom, what Ésik and the reviewer have called the functorial dagger implication. In the second chapter on Boolean categories, it is shown how four simple axioms yield and categorical analysis of Hoare assertions and Dijkstra's predicate transformers. Boolean categories are categories satisfying four (first-order) axioms, which ``are designed to justify the intuition that a binary coproduct decomposes an object into two disjoint alternatives. In the third chapter, it is shown that any Boolean category can be represented by the category Rel of sets and relations. As a corollary, it is shown that the (suitable defined) formulas which are valid in all Boolean categories are precisely those valid in Rel. An interesting section here, although not strictly needed for the development, deals with a 3-valued version of if-then-else. The last chapter deals with certain subcategories of a Boolean category which are distributive. There are several typographical errors and misspellings, mostly harmless, but a few may be confusing. For one example, on Page 61, the target of \(\sigma\) is \(X\), not \(X+X\), so both of the following diagrams should be modified accordingly. I find puzzling the hortative nature of some comments, indicating that one ought to use Boolean categories or other constructs for some semantic purposes, but precisely how, or why, is (admittedly) not indicated. One view of the purpose of a categorical treatment of some of these topics, such as the fixed point operation, say, is to exhibit and classify their important properties and investigate their interrelationships, similar to the work of a taxonomist. The author clearly does not share this view. For only one example, in discussing the fixed point operation, he says ``some consensus seems to have been reached that the pairing axiom as well as the `parameter axiom' and `left zero axiom' ... should be included. The reason for using the word ``should is not given, but perhaps the author is reserving the explanation for this and other recommendations for his next volume.











This page was built for publication: Predicate Transformer Semantics

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3135115)