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