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