Proof: Pc 12

Let's prove the following theorem:

if the following are true:
  • subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 18
  • the PC at time 12 = 18

then the PC at time 13 = 19

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 18
2 the PC at time 12 = 18
Proof Table
# Claim Reason
1 the PC at time (12 + 1) = 18 + 1 if subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 18 and the PC at time 12 = 18, then the PC at time (12 + 1) = 18 + 1
2 12 + 1 = 13 12 + 1 = 13
3 18 + 1 = 19 18 + 1 = 19
4 the PC at time (12 + 1) = the PC at time 13 if 12 + 1 = 13, then the PC at time (12 + 1) = the PC at time 13
5 the PC at time 13 = 19 if the PC at time (12 + 1) = 18 + 1 and the PC at time (12 + 1) = the PC at time 13 and 18 + 1 = 19, then the PC at time 13 = 19

Comments

Please log in to add comments