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