Proof: Byte 125 Stays the Same 14

Let's prove the following theorem:

if the following are true:
  • instruction #20 is a JAL instruction with jump to: 2
  • the PC at time 14 = 20
  • value of cell 125 at time 14 = 2

then value of cell 125 at time 15 = 2

Proof:

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

Given
1 instruction #20 is a JAL instruction with jump to: 2
2 the PC at time 14 = 20
3 value of cell 125 at time 14 = 2
Proof Table
# Claim Reason
1 not (125 = 2) not (125 = 2)
2 value of cell 125 at time (14 + 1) = value of cell 125 at time 14 if instruction #20 is a JAL instruction with jump to: 2 and the PC at time 14 = 20 and not (125 = 2), then value of cell 125 at time (14 + 1) = value of cell 125 at time 14
3 14 + 1 = 15 14 + 1 = 15
4 value of cell 125 at time (14 + 1) = value of cell 125 at time 15 if 14 + 1 = 15, then value of cell 125 at time (14 + 1) = value of cell 125 at time 15
5 value of cell 125 at time 15 = value of cell 125 at time 14 if value of cell 125 at time (14 + 1) = value of cell 125 at time 15 and value of cell 125 at time (14 + 1) = value of cell 125 at time 14, then value of cell 125 at time 15 = value of cell 125 at time 14
6 value of cell 125 at time 15 = 2 if value of cell 125 at time 15 = value of cell 125 at time 14 and value of cell 125 at time 14 = 2, then value of cell 125 at time 15 = 2

Comments

Please log in to add comments