slides - Department of Computer Science
slides - Department of Computer Science
slides - Department of Computer Science
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Pro<strong>of</strong> obligation for initialisation<br />
Proving by using pB’s rules:<br />
[xx, yy := 0, 0]xx ∈ N ∧ yy ∈ N ∧ expectation(yy − 2 × xx)<br />
≡ 0 ∈ N ∧ 0 ∈ N ∧ expectation(0)<br />
We need to have precondition in the initialisation.<br />
PRE expectation(0)<br />
THEN<br />
xx, yy := 0, 0<br />
END