Proof: Pc 12

Let's prove the following theorem:

if the following are true:
  • instruction #6 is addi dst=2 src=3 imm=0
  • the PC at time 12 = 6

then the PC at time 13 = 7

Instructions
Memory Cells
Program Counter Time
0 0
LW Computer Simulator

Proof:

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

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

Comments

Please log in to add comments