Proof: Pc 2
Let's prove the following theorem:
if the following are true:
- instruction #2 is
addi dst=5 src=0 imm=0 - the PC at time 2 = 2
then the PC at time 3 = 3
Proof:
Given
| 1 | instruction #2 is addi dst=5 src=0 imm=0 |
|---|---|
| 2 | the PC at time 2 = 2 |
| # | Claim | Reason |
|---|---|---|
| 1 | the PC at time (2 + 1) = 2 + 1 | if instruction #2 is addi dst=5 src=0 imm=0 and the PC at time 2 = 2, then the PC at time (2 + 1) = 2 + 1 |
| 2 | 2 + 1 = 3 | 2 + 1 = 3 |
| 3 | the PC at time (2 + 1) = the PC at time 3 | if 2 + 1 = 3, then the PC at time (2 + 1) = the PC at time 3 |
| 4 | the PC at time 3 = 3 | if the PC at time (2 + 1) = 2 + 1 and the PC at time (2 + 1) = the PC at time 3 and 2 + 1 = 3, then the PC at time 3 = 3 |
Comments
Please log in to add comments