SLIDE 1
3/10/10 1
Proving Program Correctness
The Axiomatic Approach
What is Correctness?
- Correctness:
– partial correctness + termination
- Partial correctness:
Proving Program Correctness The Axiomatic Approach What is - - PDF document
3/10/10 Proving Program Correctness The Axiomatic Approach What is Correctness? Correctness: partial correctness + termination Partial correctness: Program implements its specification 1 3/10/10 Proving Partial Correctness
{P ∧ (x<0)} x=-x;y=x {y = |x|}
{P ∧ ¬ (x<0)} y=x {y = |x|}