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