Say we are given a program that looks like
. Furthermore, for the loop we are given its condition
, an invariant
, and a bound condition
.
To prove the program is partially correct with respect to some intial condition
and some final condition
, we need to show:
To prove the program is totally correct with respect to those condtions, we need to further show: