Proof: Pc 7

Let's prove the following theorem:

if the following are true:
  • instruction #0 is load dst=7 addr=5 imm=0
  • the PC at time 7 = 0

then the PC at time 8 = 1

Proof:

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

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

Comments

Please log in to add comments