Proof: Get Begin Expr Value 47
Let's prove the following theorem:
if the following are true:
- expression state at time 47 = "begin_expr"
- the expression at time 47 =
self.x
- Value Stack at time 47 = [ [ ], [ [ ], [ ] ] ]
then Value Stack at time 48 = [ [ ], [ [ ], [ [ ], [ ] ] ] ]
Proof:
Given
1 | expression state at time 47 = "begin_expr" |
---|---|
2 | the expression at time 47 = self.x |
3 | Value Stack at time 47 = [ [ ], [ [ ], [ ] ] ] |
# | Claim | Reason |
---|---|---|
1 | Value Stack at time (47 + 1) = [ [ ], Value Stack at time 47 ] | if expression state at time 47 = "begin_expr" and the expression at time 47 = self.x , then Value Stack at time (47 + 1) = [ [ ], Value Stack at time 47 ] |
2 | [ [ ], Value Stack at time 47 ] = [ [ ], [ [ ], [ [ ], [ ] ] ] ] | if Value Stack at time 47 = [ [ ], [ [ ], [ ] ] ], then [ [ ], Value Stack at time 47 ] = [ [ ], [ [ ], [ [ ], [ ] ] ] ] |
3 | Value Stack at time (47 + 1) = [ [ ], [ [ ], [ [ ], [ ] ] ] ] | if Value Stack at time (47 + 1) = [ [ ], Value Stack at time 47 ] and [ [ ], Value Stack at time 47 ] = [ [ ], [ [ ], [ [ ], [ ] ] ] ], then Value Stack at time (47 + 1) = [ [ ], [ [ ], [ [ ], [ ] ] ] ] |
4 | 47 + 1 = 48 | 47 + 1 = 48 |
5 | Value Stack at time (47 + 1) = Value Stack at time 48 | if 47 + 1 = 48, then Value Stack at time (47 + 1) = Value Stack at time 48 |
6 | Value Stack at time 48 = [ [ ], [ [ ], [ [ ], [ ] ] ] ] | if Value Stack at time (47 + 1) = Value Stack at time 48 and Value Stack at time (47 + 1) = [ [ ], [ [ ], [ [ ], [ ] ] ] ], then Value Stack at time 48 = [ [ ], [ [ ], [ [ ], [ ] ] ] ] |
Comments
Please log in to add comments