[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 INV
enrich
   opaque, 
   COP, 
   CState
with
   

   
   
   
   predicates  INV : CState × run;
              comment: main invariant, existentially quantifying over transaction sequence.;
               INV : CState × run × translist;
              comment: same as main invariant, but with trans. seq. as argument.;
               LINV : nat × (L → V) × PC × nat × L × V;
              comment: local invariant for one process.;
               D : nat × PC × nat × PC;
              comment: two processes cannot have odd loc at the same time.;
               GINV : CState;
              comment: global inv on glb and memory;
               livenonidle : CState × run;
              comment: transactions are live in run iff (roughly) pc has a running operation.;
               livesortedloc : CState × run × translist;
              comment: transactions are nonstrictly sorted by their loc V.;
               oddlocatend : CState × run × translist;
              comment: a transaction with odd loc are the last one.;
               evenlocnowrite : CState × run × translist;
              comment: transactions with even loc have not done any writes.;
               curlocnofinishedafter : CState × run × translist;
              comment: a live transaction with loc = glb is never followed by a finished one.;
               opaque+ : run × translist × (L → V);
              comment: transactionlist is opaque, and the final memory is mem.;
               semok : run × translist × (L → V);
              comment: semantics of transactions is ok;
               abortnowrites : run × translist;
              comment: all aborting transactions have no writes.;
               nowrites : run;
              comment: run has no writes;
               AnyOps : nat × Proc × CState × run × CState × run;
              comment: executes n arbitrary operations, which are not returns of p.;
   
   variables  pc0 : PC;
              loc0 : nat;
              cs0 : CState;
              cs1 : CState;
              cs2 : CState;
              cs3 : CState;
              cs' : CState;
              r : run;
              r0 : run;
              r1 : run;
              r2 : run;
              ts' : translist;
   
   

   

   axioms AnyOps-base :  ⊦ AnyOps(0, p, cs, r, cs0, r0) ↔ ¬ ¬(cs0 = cs ∧ r0 = r);
          used for: s, ls;
          AnyOps-rec
          : ⊦   AnyOps(n + 1, p, cs, r, cs0, r0)
              ↔ (∃ cs1, r1. 
                     AnyOps(n, p, cs, r, cs1, r1)
                   ∧ (∃ p0. 
                          (∃ cj. COp(cj, p0)(cs1, r1, cs0, r0)) ∨ (∃ ij, inp. INVOp(ij, p0)(inp, cs1, r1, cs0, r0))
                        ∨ (∃ rj, out. p ≠ p0 ∧ RETOp(rj, p0)(cs1, r1, cs0, r0, out))));
          used for: s, ls;
          abortnowrites-def :  ⊦ abortnowrites(r, ts) ↔ (∀ m, n. m .. n ∈ ts ∧ atr(m, n, r) → nowrites(runevs(m, n, r)));
          opaqueplus-def :  ⊦ opaque+(r, ts, mem) ↔ transseq(r, ts) ∧ presrt(r, ts) ∧ semok(r, ts, mem) ∧ (ts = [] → mem = ∅);
          semok-def
          : ⊦   semok(r, ts, mem)
              ↔ (∀ n. n < # ts → (∃ σ. σ[0] = ∅ ∧ ⟦cp(firstn(n, ts), r) + runevs(ts[n].begin, ts[n].end, r)⟧ (σ) ∧ (n + 1 = # ts → σ.last = mem)));
          D-def
          : ⊦   D(loc, pc, loc0, pc0)
              ↔ ¬((odd(loc) ∧ pc ≠ N ∧ pc ≠ B1 ∧ pc ≠ B2 ∧ pc ≠ E3 ∨ pc = W4) ∧ (odd(loc0) ∧ pc0 ≠ N ∧ pc0 ≠ B1 ∧ pc0 ≠ B2 ∧ pc0 ≠ E3 ∨ pc0 = W4));
          comment: not two processes with both odd(loc) for relevant pcs;
          GINV-def
          : ⊦   GINV(cs)
              ↔ (∀ p. LINV(cs.glb, cs.mem, cs.pc(p), cs.loc(p), cs.l(p), cs.v(p))) ∧ (∀ p, p0. p ≠ p0 → D(cs.loc(p), cs.pc(p), cs.loc(p0), cs.pc(p0)));
          LINV-def
          : ⊦   LINV(glb, mem, pc, loc, l, v)
              ↔   loc ≤ glb ∧ (pc = W2 → even(loc)) ∧ (pc = W4 → even(loc) ∧ glb = loc + 1) ∧ (pc = W5 → odd(loc)) ∧ (pc = E2 → odd(loc))
                ∧ (pc = R2 ∧ loc = glb → mem(l) = v) ∧ (odd(loc) ∧ pc ≠ N ∧ pc ≠ B1 ∧ pc ≠ B2 ∧ pc ≠ E3 → loc = glb);
          INVh-def
          : ⊦   INV(cs, r, ts)
              ↔   opaque+(r, ts, cs.mem) ∧ livesortedloc(cs, r, ts) ∧ oddlocatend(cs, r, ts) ∧ evenlocnowrite(cs, r, ts)
                ∧ curlocnofinishedafter(cs, r, ts) ∧ abortnowrites(r, ts);
          INV-def
          : ⊦   INV(cs, r)
              ↔ (∃ ts. 
                     opaque+(r, ts, cs.mem) ∧ livesortedloc(cs, r, ts) ∧ oddlocatend(cs, r, ts) ∧ evenlocnowrite(cs, r, ts)
                   ∧ curlocnofinishedafter(cs, r, ts) ∧ abortnowrites(r, ts));
          livenonidle-def
          : ⊦   livenonidle(cs, r)
              ↔ (∀ p. 
                     (∃ m, n. ltrans(m, n, p, r))
                   ↔ cs.pc(p) ≠ N ∧ cs.pc(p) ≠ B1 ∧ (cs.pc(p) ≠ B2 ∨ even(cs.loc(p))) ∧ cs.pc(p) ≠ E3 ∧ cs.pc(p) ≠ W3 ∧ cs.pc(p) ≠ R4);
          comment: live transactions are those which 
         have pc after linpoint of begin, but before linpoint of End and before aborting linpoints of read/write.;
          livesortedloc-def
          : ⊦   livesortedloc(cs, r, ts)
              ↔ (∀ m, n, p, m0, n0, p0. ltrans(m, n, p, r) ∧ ltrans(m0, n0, p0, r) ∧ pos(m .. n, ts) < pos(m0 .. n0, ts) → cs.loc(p) ≤ cs.loc(p0));
          comment: if one live transaction is before the other then the loc Vs are less or equal.;
          oddlocatend-def :  ⊦ oddlocatend(cs, r, ts) ↔ (∀ m, n, p. ltrans(m, n, p, r) ∧ odd(cs.loc(p)) → ts.last = m .. n);
          comment: live write transaction that has modified memory can only be the last of transaction sequence.;
          evenlocnowrite-def :  ⊦ evenlocnowrite(cs, r, ts) ↔ (∀ m, n, p. ltrans(m, n, p, r) ∧ even(cs.loc(p)) → nowrites(runevs(m, n, r)));
          comment: live transactions with even loc do not have a write.;
          nowrites-def :  ⊦ nowrites(r) ↔ (∀ re. re ∈ r → ¬ write?(re));
          curlocnofinishedafter-def
          : ⊦   curlocnofinishedafter(cs, r, ts)
              ↔ (∀ m, n, p, m0, n0, p0. 
                   ftrans(m, n, p, r) ∧ ltrans(m0, n0, p0, r) ∧ (cs.loc(p0) = cs.glb ∨ cs.pc(p0) = W4) → pos(m .. n, ts) < pos(m0 .. n0, ts));
          comment: a live transaction with loc = glb must be after all finished transactions.;

   

   
end enrich