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