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