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