Proof: Get Iterate End Expr 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 the expression at time 56 = p.age_in_months()
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 | the expression at time (55 + 1) = p.age_in_months() |
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 the expression at time (55 + 1) = p.age_in_months() |
2 | 55 + 1 = 56 | 55 + 1 = 56 |
3 | the expression at time (55 + 1) = the expression at time 56 | if 55 + 1 = 56, then the expression at time (55 + 1) = the expression at time 56 |
4 | the expression at time 56 = p.age_in_months() |
if the expression at time (55 + 1) = the expression at time 56 and the expression at time (55 + 1) = p.age_in_months() , then the expression at time 56 = p.age_in_months() |
Comments
Please log in to add comments