Proof: Pc 8

Let's prove the following theorem:

if the following are true:
  • instruction #14 is load dst=3 addr=1 imm=1
  • the PC at time 8 = 14

then the PC at time 9 = 15

Proof:

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

Given
1 instruction #14 is load dst=3 addr=1 imm=1
2 the PC at time 8 = 14
Proof Table
# Claim Reason
1 the PC at time (8 + 1) = 14 + 1 if instruction #14 is load dst=3 addr=1 imm=1 and the PC at time 8 = 14, then the PC at time (8 + 1) = 14 + 1
2 8 + 1 = 9 8 + 1 = 9
3 14 + 1 = 15 14 + 1 = 15
4 the PC at time (8 + 1) = the PC at time 9 if 8 + 1 = 9, then the PC at time (8 + 1) = the PC at time 9
5 the PC at time 9 = 15 if the PC at time (8 + 1) = 14 + 1 and the PC at time (8 + 1) = the PC at time 9 and 14 + 1 = 15, then the PC at time 9 = 15

Comments

Please log in to add comments