Proof: Get Iterate End State 22
Let's prove the following theorem:
if the following are true:
- expression state at time 22 = "iterate_args"
- arguments stack at time 22 = [ [ ], [ ] ]
- parent stack at time 22 = [ self."x" = 0, [ ] ]
then expression state at time 23 = "call_function_begin"
Proof:
Given
1 | expression state at time 22 = "iterate_args" |
---|---|
2 | arguments stack at time 22 = [ [ ], [ ] ] |
3 | parent stack at time 22 = [ self."x" = 0, [ ] ] |
# | Claim | Reason |
---|---|---|
1 | expression state at time (22 + 1) = "call_function_begin" | if expression state at time 22 = "iterate_args" and arguments stack at time 22 = [ [ ], [ ] ] and parent stack at time 22 = [ self."x" = 0, [ ] ], then expression state at time (22 + 1) = "call_function_begin" |
2 | 22 + 1 = 23 | 22 + 1 = 23 |
3 | expression state at time (22 + 1) = expression state at time 23 | if 22 + 1 = 23, then expression state at time (22 + 1) = expression state at time 23 |
4 | expression state at time 23 = "call_function_begin" | if expression state at time (22 + 1) = expression state at time 23 and expression state at time (22 + 1) = "call_function_begin", then expression state at time 23 = "call_function_begin" |
Comments
Please log in to add comments