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