Proof: Pc 18

Let's prove the following theorem:

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

then the PC at time 19 = 6

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

Comments

Please log in to add comments