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