















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
During the study of discrete mathematics, I found this course very informative and applicable.The main points in these lecture slides are:Program Correctness, Program Verification, Rules of Inference, Proof Techniques, Form of Formal Verification, Proof of Correctness, Partial Correctness, Hoare Triple, Initial Assertion, Composition Rule, Conditional Statements
Typology: Slides
1 / 23
This page cannot be seen from the preview
Don't miss anything!
8
1 2
2
1
10
p condition S q
p condition q
p condition S q
{if then }
if x > y then y:=x is correct w.r.t the initial assertion T and the final assertion y≥x
13
p condition S S q
p condition S q
p condition S q
{if then else }
1 2
2
1
if x < 0 then abs:=-x else abs:=x is correct w.r.t. the initial assertion T and the final assertion abs=|x|
17
{while }( )
( ){ } p condition S condition p
p condition S p ∴ ¬ ∧
∧