Proof: Do Variables At Unchanged 8
Let's prove the following theorem:
if the following are true:
- expression state at time 8 = "begin_expr"
- Variables Map at time 8 = [ ]
then Variables Map at time 9 = [ ]
Proof:
Given
1 | expression state at time 8 = "begin_expr" |
---|---|
2 | Variables Map at time 8 = [ ] |
# | Claim | Reason |
---|---|---|
1 | Variables Map at time (8 + 1) = Variables Map at time 8 | if expression state at time 8 = "begin_expr", then Variables Map at time (8 + 1) = Variables Map at time 8 |
2 | Variables Map at time (8 + 1) = [ ] | if Variables Map at time (8 + 1) = Variables Map at time 8 and Variables Map at time 8 = [ ], then Variables Map at time (8 + 1) = [ ] |
3 | 8 + 1 = 9 | 8 + 1 = 9 |
4 | Variables Map at time (8 + 1) = Variables Map at time 9 | if 8 + 1 = 9, then Variables Map at time (8 + 1) = Variables Map at time 9 |
5 | Variables Map at time 9 = [ ] | if Variables Map at time (8 + 1) = Variables Map at time 9 and Variables Map at time (8 + 1) = [ ], then Variables Map at time 9 = [ ] |
Comments
Please log in to add comments