Proof: Jump Help 1
Let's prove the following theorem:
if the following are true:
- instruction #1 is
jump imm=8 - the PC at time 1 = 1
then the PC at time 2 = 8
Proof:
Given
| 1 | instruction #1 is jump imm=8 |
|---|---|
| 2 | the PC at time 1 = 1 |
| # | Claim | Reason |
|---|---|---|
| 1 | the PC at time (1 + 1) = 8 | if instruction #1 is jump imm=8 and the PC at time 1 = 1, then the PC at time (1 + 1) = 8 |
| 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 = 8 | if the PC at time (1 + 1) = the PC at time 2 and the PC at time (1 + 1) = 8, then the PC at time 2 = 8 |
Comments
Please log in to add comments