next up previous
Next: Expressiveness and completeness Up: The Hoare Calculus Previous: Hoare rules

Weakest liberal precondition

Given a set tex2html_wrap_inline1610 of states and a program C, the weakest liberal precondition of C and W is defined as

displaymath1602

Usually S will be denoted by a logical expression Q, so we set correspondingly

displaymath1603

For a straight line program C and a logical expression Q, wlp(C,Q) is again definable by a logical expression :

displaymath1604

If C is a while-loop, wlp(C,Q) need not be first order definable. Notice that according to our characterization of the while-loop as a countable sequence of conditionals, we can always write it as a countable disjunction

displaymath1605

where tex2html_wrap_inline1644 is the straight line program consisting of the n-fold iteration of the command `` tex2html_wrap_inline1646 ''.



H.Peter Gumm