Proof: Addi Zero Insn 0

Let's prove the following theorem:

if the following are true:
  • instruction #0 is addi dst=1 src=0 imm=128
  • the PC at time 0 = 0

then value of cell 1 at time 1 = 128

Proof:

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

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

Comments

Please log in to add comments