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