Proof: Get Iterate Parent 61
Let's prove the following theorem:
if the following are true:
- expression state at time 61 = "iterate_args"
- arguments stack at time 61 = [ [
self.age
, [ 12, [ ] ] ], [ ] ] - parent stack at time 61 = [
__mul__(self.age, 12)
, [ ] ]
then parent stack at time 62 = [ __mul__(self.age, 12)
, [ ] ]
Proof:
Given
1 | expression state at time 61 = "iterate_args" |
---|---|
2 | arguments stack at time 61 = [ [ self.age , [ 12, [ ] ] ], [ ] ] |
3 | parent stack at time 61 = [ __mul__(self.age, 12) , [ ] ] |
# | Claim | Reason |
---|---|---|
1 | parent stack at time (61 + 1) = parent stack at time 61 | if expression state at time 61 = "iterate_args" and arguments stack at time 61 = [ [ self.age , [ 12, [ ] ] ], [ ] ], then parent stack at time (61 + 1) = parent stack at time 61 |
2 | parent stack at time (61 + 1) = [ __mul__(self.age, 12) , [ ] ] |
if parent stack at time (61 + 1) = parent stack at time 61 and parent stack at time 61 = [ __mul__(self.age, 12) , [ ] ], then parent stack at time (61 + 1) = [ __mul__(self.age, 12) , [ ] ] |
3 | 61 + 1 = 62 | 61 + 1 = 62 |
4 | parent stack at time (61 + 1) = parent stack at time 62 | if 61 + 1 = 62, then parent stack at time (61 + 1) = parent stack at time 62 |
5 | parent stack at time 62 = [ __mul__(self.age, 12) , [ ] ] |
if parent stack at time (61 + 1) = parent stack at time 62 and parent stack at time (61 + 1) = [ __mul__(self.age, 12) , [ ] ], then parent stack at time 62 = [ __mul__(self.age, 12) , [ ] ] |
Comments
Please log in to add comments