1/10
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Loop Invariant (Partial Correctness)
Property holds before execution, after each iteration, and after termination.
Rule {P ∧ B} S {P} ensures invariant is maintained.
After loop: P ∧ ¬B holds.
While Rule (Partial Correctness)
Loop Variant (Total Correctness)
While Rule (Total Correctness)
Euclid's Algorithm Example
Euclid Loop Invariant
Euclid Loop Variant
Termination Importance
Compact Proof Representation
Proof Tree Structure
Sir Tony Hoare (1934-2026)