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