Proof: Get Iterate End Parent 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 parent stack at time 56 = [ ]
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 | parent stack at time (55 + 1) = [ ] | 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 parent stack at time (55 + 1) = [ ] |
2 | 55 + 1 = 56 | 55 + 1 = 56 |
3 | parent stack at time (55 + 1) = parent stack at time 56 | if 55 + 1 = 56, then parent stack at time (55 + 1) = parent stack at time 56 |
4 | parent stack at time 56 = [ ] | if parent stack at time (55 + 1) = parent stack at time 56 and parent stack at time (55 + 1) = [ ], then parent stack at time 56 = [ ] |
Comments
Please log in to add comments