Skip to content

Commit

Permalink
add assume to switch
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiek committed Jan 9, 2025
1 parent f82dc3d commit 947da7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1726,10 +1726,10 @@ theorem switch_proof_example: all x:Nat. x = 0 or 0 < x
proof
arbitrary x:Nat
switch x {
case zero {
case 0 assume xz: x = 0 {
conclude true or 0 < 0 by .
}
case suc(x') {
case suc(x') assume xs: x = suc(x') {
have z_l_sx: 0 < suc(x')
by definition {operator <, operator ≤, operator ≤}
conclude suc(x') = 0 or 0 < suc(x') by z_l_sx
Expand Down

0 comments on commit 947da7e

Please sign in to comment.