Proof: Byte 1 Stays the Same 2

Let's prove the following theorem:

if the following are true:
  • instruction #8 is addi dst=3 src=0 imm=2
  • the PC at time 2 = 8
  • value of cell 1 at time 2 = 128

then value of cell 1 at time 3 = 128

Proof:

View as a tree | View dependent proofs | Try proving it

Given
1 instruction #8 is addi dst=3 src=0 imm=2
2 the PC at time 2 = 8
3 value of cell 1 at time 2 = 128
Proof Table
# Claim Reason
1 not (1 = 3) not (1 = 3)
2 value of cell 1 at time (2 + 1) = value of cell 1 at time 2 if instruction #8 is addi dst=3 src=0 imm=2 and the PC at time 2 = 8 and not (1 = 3), then value of cell 1 at time (2 + 1) = value of cell 1 at time 2
3 2 + 1 = 3 2 + 1 = 3
4 value of cell 1 at time (2 + 1) = value of cell 1 at time 3 if 2 + 1 = 3, then value of cell 1 at time (2 + 1) = value of cell 1 at time 3
5 value of cell 1 at time 3 = value of cell 1 at time 2 if value of cell 1 at time (2 + 1) = value of cell 1 at time 3 and value of cell 1 at time (2 + 1) = value of cell 1 at time 2, then value of cell 1 at time 3 = value of cell 1 at time 2
6 value of cell 1 at time 3 = 128 if value of cell 1 at time 3 = value of cell 1 at time 2 and value of cell 1 at time 2 = 128, then value of cell 1 at time 3 = 128

Comments

Please log in to add comments