[Imprint][Data Privacy Statement][E-Mail]

Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Specification TML-refines-TMS2-localPOs-FWSim
automaton refinement 
   export TMS2-proofs
   
   import TML-proofs
   
   functions 
       abspc : TMLPC → TMS2PC;
   
   predicates 
       TMLastep : TMLState × TMS2Action × TMLState;
   
   variables 
       pc : TMLPC;
       apc : TMS2PC;
       l : L;
       v : V;
       s : TMLState;
       as : TMS2State;
       a : TMLAction;
       aa : TMS2Action;
       gs : TMLGState;
       ags : TMS2GState;
       ls : TMLLState;
       als : TMS2LState;
       lsf : T → TMLLState;
       alsf : T → TMS2LState;
       pcf : T → TMLPC;
       apcf : T → TMS2PC;
       tid : T;
   
   
   axioms 
      abspc-def: 
        abspc(pc)
      = (pc = S
        ⊃ NotStarted
        ;(pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4
         ⊃ BeginPending
         ;(pc = I
          ⊃ Ready
          ;(pc = R1 ∨ pc = R2 ∨ pc = R4
           ⊃ ReadInv
           ;(pc = R3
            ⊃ ReadResp
            ;(pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5
             ⊃ WriteInv
             ;(pc = W6 ⊃ WriteResp;(pc = E1 ∨ pc = E2 ⊃ CommitInv;(pc = E3 ⊃ CommitResp;(pc = C ⊃ Committed;Aborted))))
             )
            )
           )
          )
         )
        );
   
   local abstraction 
       
      :   abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → rdset = ∅ ∧ wrset = ∅) ∧ (even(loc) → wrset = ∅)
        ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → l = il ∧ v = ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → l = il) ∧ (pc = R3 → v = ov)
        ∧ (w = None → mem = memories.last ∧ even(glb))
        ∧ (w = Some(tid) ⊃ (pc ≠ W4 → odd(loc)) ∧ wrset ⊆ mem ∧ mem = memories.last ⊕ wrset ∧ odd(glb);pc ≠ E3 ∧ pc ≠ C → wrset = ∅)
        ∧ (pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (glb = loc ∨ pc = W4 ⊃ rdset ⊆ memories.last;∃valid(beginIdx, rdset, memories)));
   
   by action mapping doCommitReadOnly(tid); -> callDoCommitReadOnly(tid); doCommitWriter(tid); -> callDoCommitWriter(tid); 
                     doRead(tid); -> (il ∈ wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # memories - 1)); doWrite(tid); -> callDoWrite(tid); 
                     invTMBEGIN(tid); -> callInvTMBegin(tid); invTMEND(tid); -> callInvTMEnd(tid); invTMREAD(tid, l); -> callInvTMRead(tid, l); 
                     invTMWRITE(tid, l, v); -> callInvTMWrite(tid, l, v); retTMBEGIN(tid); -> callRetTMBegin(tid); retTMEND(tid); -> callRetTMEnd(tid); 
                     retTMREAD(tid, v); -> callRetTMRead(tid, v); retTMWRITE(tid); -> callRetTMWrite(tid); retAbort(tid); -> callRetAbort(tid);
end automaton refinement