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