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