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