Proof: Byte 1 Stays the Same 1

Let's prove the following theorem:

if the following are true:
  • instruction #1 is jump imm=8
  • the PC at time 1 = 1
  • value of cell 1 at time 1 = 128

then value of cell 1 at time 2 = 128

Proof:

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

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

Comments

Please log in to add comments