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