Proof: Pc 18

Let's prove the following theorem:

if the following are true:
  • instruction #4 is addi dst=4 src=4 imm=1
  • the PC at time 18 = 4

then the PC at time 19 = 5

Proof:

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

Given
1 instruction #4 is addi dst=4 src=4 imm=1
2 the PC at time 18 = 4
Proof Table
# Claim Reason
1 the PC at time (18 + 1) = 4 + 1 if instruction #4 is addi dst=4 src=4 imm=1 and the PC at time 18 = 4, then the PC at time (18 + 1) = 4 + 1
2 18 + 1 = 19 18 + 1 = 19
3 4 + 1 = 5 4 + 1 = 5
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 = 5 if the PC at time (18 + 1) = 4 + 1 and the PC at time (18 + 1) = the PC at time 19 and 4 + 1 = 5, then the PC at time 19 = 5

Comments

Please log in to add comments