








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









Dr. Jim Sasaki
1.1 Finishing the major list of rules Axiom 1 (Skip)
Rule 3 (Composition): {!p!} S" {!r!} {!r!} S# {!q!} {!p!} S" ; S# {!q!}
Ill. Inst. Tech. CS 3 of 27 Tue, Feb 24, 2009 Rule 4 (Conditional): {!p " B!} S" {!q!} {!p " ¬B!} S# {!q!} {!p!} if B then S" else S# fi {!q!}
assertions, each of which is an axiom or a premiss or follows from above assertions using some rule of inference.
rectness triple.
while i!>! 0 do {p " i!>!0} {p[i :=!i-1][s :=!s+i]} s!:=!s+i; {p[i :=!i-1]} i!:=!i-1 {p} od {p " i!"!0} {s!=!sum(0, n)}