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