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