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