Example Three

Pick $ X = \mathbb{Z}$, the integers.

$\displaystyle \langle \; \rangle \;$   while$\displaystyle (P \geq 1)\{P := P + 1 \; \langle P < 1 \rangle $

is partially correct (as if $ P < 1$, the entry condition is not satisfied and if $ P \geq 1$ it does not terminate). But

$\displaystyle \langle P < 1 \rangle \;$   while$\displaystyle (P \geq 1)\{P := P + 1 \; \langle P < 1 \rangle $

is totally correct.



David Goodwin 2008-09-20