Proof: Byte 12 Stays the Same 13
Let's prove the following theorem:
if the following are true:
- instruction #6 is
jump imm=0
- the PC at time 13 = 6
- value of cell 12 at time 13 = 24
then value of cell 12 at time 14 = 24
Proof:
Given
1 | instruction #6 is jump imm=0 |
---|---|
2 | the PC at time 13 = 6 |
3 | value of cell 12 at time 13 = 24 |
# | Claim | Reason |
---|---|---|
1 | value of cell 12 at time (13 + 1) = value of cell 12 at time 13 | if instruction #6 is jump imm=0 and the PC at time 13 = 6, then value of cell 12 at time (13 + 1) = value of cell 12 at time 13 |
2 | 13 + 1 = 14 | 13 + 1 = 14 |
3 | value of cell 12 at time (13 + 1) = value of cell 12 at time 14 | if 13 + 1 = 14, then value of cell 12 at time (13 + 1) = value of cell 12 at time 14 |
4 | value of cell 12 at time 14 = value of cell 12 at time 13 | if value of cell 12 at time (13 + 1) = value of cell 12 at time 14 and value of cell 12 at time (13 + 1) = value of cell 12 at time 13, then value of cell 12 at time 14 = value of cell 12 at time 13 |
5 | value of cell 12 at time 14 = 24 | if value of cell 12 at time 14 = value of cell 12 at time 13 and value of cell 12 at time 13 = 24, then value of cell 12 at time 14 = 24 |
Comments
Please log in to add comments