Proof: Do Expr At Unchanged 37
Let's prove the following theorem:
if the following are true:
- expression state at time 37 = "begin_expr"
- the expression at time 37 =
joe.move()
then the expression at time 38 = joe.move()
Proof:
Given
1 | expression state at time 37 = "begin_expr" |
---|---|
2 | the expression at time 37 = joe.move() |
# | Claim | Reason |
---|---|---|
1 | the expression at time (37 + 1) = the expression at time 37 | if expression state at time 37 = "begin_expr", then the expression at time (37 + 1) = the expression at time 37 |
2 | the expression at time (37 + 1) = joe.move() |
if the expression at time (37 + 1) = the expression at time 37 and the expression at time 37 = joe.move() , then the expression at time (37 + 1) = joe.move() |
3 | 37 + 1 = 38 | 37 + 1 = 38 |
4 | the expression at time (37 + 1) = the expression at time 38 | if 37 + 1 = 38, then the expression at time (37 + 1) = the expression at time 38 |
5 | the expression at time 38 = joe.move() |
if the expression at time (37 + 1) = the expression at time 38 and the expression at time (37 + 1) = joe.move() , then the expression at time 38 = joe.move() |
Comments
Please log in to add comments