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