Proof: Pc 1

Let's prove the following theorem:

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

then the PC at time 2 = 2

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

Comments

Please log in to add comments