Proof: Byte 127 Stays the Same 6

Let's prove the following theorem:

if the following are true:
  • subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 12
  • the PC at time 6 = 12
  • value of cell 127 at time 6 = 2

then value of cell 127 at time 7 = 2

Proof:

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

Given
1 subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 12
2 the PC at time 6 = 12
3 value of cell 127 at time 6 = 2
Proof Table
# Claim Reason
1 not (127 = 1) not (127 = 1)
2 value of cell 127 at time (6 + 1) = value of cell 127 at time 6 if subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 12 and the PC at time 6 = 12 and not (127 = 1), then value of cell 127 at time (6 + 1) = value of cell 127 at time 6
3 6 + 1 = 7 6 + 1 = 7
4 value of cell 127 at time (6 + 1) = value of cell 127 at time 7 if 6 + 1 = 7, then value of cell 127 at time (6 + 1) = value of cell 127 at time 7
5 value of cell 127 at time 7 = value of cell 127 at time 6 if value of cell 127 at time (6 + 1) = value of cell 127 at time 7 and value of cell 127 at time (6 + 1) = value of cell 127 at time 6, then value of cell 127 at time 7 = value of cell 127 at time 6
6 value of cell 127 at time 7 = 2 if value of cell 127 at time 7 = value of cell 127 at time 6 and value of cell 127 at time 6 = 2, then value of cell 127 at time 7 = 2

Comments

Please log in to add comments