Proof: Byte 124 Stays the Same 20
Let's prove the following theorem:
if the following are true:
- instruction #7 is
jumpr addr=2
- the PC at time 20 = 7
- value of cell 124 at time 20 = 3
then value of cell 124 at time 21 = 3
Proof:
Given
1 | instruction #7 is jumpr addr=2 |
---|---|
2 | the PC at time 20 = 7 |
3 | value of cell 124 at time 20 = 3 |
# | Claim | Reason |
---|---|---|
1 | value of cell 124 at time (20 + 1) = value of cell 124 at time 20 | if instruction #7 is jumpr addr=2 and the PC at time 20 = 7, then value of cell 124 at time (20 + 1) = value of cell 124 at time 20 |
2 | 20 + 1 = 21 | 20 + 1 = 21 |
3 | value of cell 124 at time (20 + 1) = value of cell 124 at time 21 | if 20 + 1 = 21, then value of cell 124 at time (20 + 1) = value of cell 124 at time 21 |
4 | value of cell 124 at time 21 = value of cell 124 at time 20 | if value of cell 124 at time (20 + 1) = value of cell 124 at time 21 and value of cell 124 at time (20 + 1) = value of cell 124 at time 20, then value of cell 124 at time 21 = value of cell 124 at time 20 |
5 | value of cell 124 at time 21 = 3 | if value of cell 124 at time 21 = value of cell 124 at time 20 and value of cell 124 at time 20 = 3, then value of cell 124 at time 21 = 3 |
Comments
Please log in to add comments