Proof: Get Iterate End Params 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 arguments stack at time 56 = [ ]

Proof:

View as a tree | View dependent proofs | Try proving it

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(), [ ] ]
Proof Table
# Claim Reason
1 arguments 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 arguments stack at time (55 + 1) = [ ]
2 55 + 1 = 56 55 + 1 = 56
3 arguments stack at time (55 + 1) = arguments stack at time 56 if 55 + 1 = 56, then arguments stack at time (55 + 1) = arguments stack at time 56
4 arguments stack at time 56 = [ ] if arguments stack at time (55 + 1) = arguments stack at time 56 and arguments stack at time (55 + 1) = [ ], then arguments stack at time 56 = [ ]

Comments

Please log in to add comments