Proof: Get Iterate End Expr 38
Let's prove the following theorem:
if the following are true:
- expression state at time 38 = "iterate_args"
- arguments stack at time 38 = [ [ ], [ ] ]
- parent stack at time 38 = [
__setitem__(locations, "ES", "Spain")
, [ ] ]
then the expression at time 39 = __setitem__(locations, "ES", "Spain")
Proof:
Given
1 | expression state at time 38 = "iterate_args" |
---|---|
2 | arguments stack at time 38 = [ [ ], [ ] ] |
3 | parent stack at time 38 = [ __setitem__(locations, "ES", "Spain") , [ ] ] |
# | Claim | Reason |
---|---|---|
1 | the expression at time (38 + 1) = __setitem__(locations, "ES", "Spain") |
if expression state at time 38 = "iterate_args" and arguments stack at time 38 = [ [ ], [ ] ] and parent stack at time 38 = [ __setitem__(locations, "ES", "Spain") , [ ] ], then the expression at time (38 + 1) = __setitem__(locations, "ES", "Spain") |
2 | 38 + 1 = 39 | 38 + 1 = 39 |
3 | the expression at time (38 + 1) = the expression at time 39 | if 38 + 1 = 39, then the expression at time (38 + 1) = the expression at time 39 |
4 | the expression at time 39 = __setitem__(locations, "ES", "Spain") |
if the expression at time (38 + 1) = the expression at time 39 and the expression at time (38 + 1) = __setitem__(locations, "ES", "Spain") , then the expression at time 39 = __setitem__(locations, "ES", "Spain") |
Comments
Please log in to add comments