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