[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 transaction
enrich
   run, 
   translist
with
   

   
   
   functions  . | . : run × Proc → run prio 6 right;
             comment: restrict run to runevents of p;
              cp : translist × run → run;
             comment: committed part of the sequential run given by translist;
              runevs : nat × nat × run → run;
             comment: the operations of a transaction.;
   predicates  ctrans : nat × nat × Proc × run;
              comment: commited transaction;
               atrans : nat × nat × Proc × run;
              comment: aborted transaction;
               ltrans : nat × nat × Proc × run;
              comment: live transaction;
               trans : nat × nat × Proc × run;
              comment: transaction;
               ftrans : nat × nat × Proc × run;
              comment: finished transaction;
               ctr : nat × nat × run;
              comment: committed transaction;
               atr : nat × nat × run;
              comment: aborted transaction;
               ltr : nat × nat × run;
              comment: live transaction;
               tr : nat × nat × run;
              comment: transaction;
               ftr : nat × nat × run;
              comment: finished transaction;
               wf : run;
   
   
   
   

   

   axioms ctrans-def
          : ⊦   ctrans(n0, n1, p, r)
              ↔   n0 < n1 ∧ n1 < # r ∧ r[n0] = Begin(p) ∧ r[n1] = Commit(p)
                ∧ (∀ n. n0 < n ∧ n < n1 → r[n] ≠ Begin(p) ∧ r[n] ≠ Commit(p) ∧ r[n] ≠ Abort(p));
          ctr-def :  ⊦ ctr(n0, n1, r) ↔ (∃ p. ctrans(n0, n1, p, r));
          atrans-def
          : ⊦   atrans(n0, n1, p, r)
              ↔   n0 < n1 ∧ n1 < # r ∧ r[n0] = Begin(p) ∧ r[n1] = Abort(p)
                ∧ (∀ n. n0 < n ∧ n < n1 → r[n] ≠ Begin(p) ∧ r[n] ≠ Commit(p) ∧ r[n] ≠ Abort(p));
          atr-def :  ⊦ atr(n0, n1, r) ↔ (∃ p. atrans(n0, n1, p, r));
          ltrans-def
          : ⊦   ltrans(n0, n1, p, r)
              ↔   n0 ≤ n1 ∧ n1 < # r ∧ r[n0] = Begin(p) ∧ r[n1].p = p
                ∧ (∀ n. n0 < n ∧ n ≤ n1 → r[n] ≠ Begin(p) ∧ r[n] ≠ Commit(p) ∧ r[n] ≠ Abort(p)) ∧ (∀ n. n1 < n ∧ n < # r → r[n].p ≠ p);
          ltr-def :  ⊦ ltr(n0, n1, r) ↔ (∃ p. ltrans(n0, n1, p, r));
          ftrans-def :  ⊦ ftrans(n0, n1, p, r) ↔ ctrans(n0, n1, p, r) ∨ atrans(n0, n1, p, r);
          ftr-def :  ⊦ ftr(n0, n1, r) ↔ (∃ p. ftrans(n0, n1, p, r));
          trans-def :  ⊦ trans(n0, n1, p, r) ↔ ftrans(n0, n1, p, r) ∨ ltrans(n0, n1, p, r);
          tr-def :  ⊦ tr(n0, n1, r) ↔ (∃ p. trans(n0, n1, p, r));
          wf-def :  ⊦ wf(r) ↔ (∀ n, p. n < # r ∧ r[n].p = p → (∃ n0, n1. n0 ≤ n ∧ n ≤ n1 ∧ trans(n0, n1, p, r)));
          comment: A run is wellformed, if all events belong to a transaction.;
          ops-def :  ⊦ runevs(m, n, r) = r[m .. n] | r[m].p;
          comment: the run events of the transaction from position m to n in the run r;
          restrict-base :  ⊦ [] | p = [];
          used for: s, ls;
          restrict-rec :  ⊦ re ' + r | p = (re.p = p ⊃ re ' + (r | p);r | p);
          used for: s, ls;
          cp-base :  ⊦ cp([], r) = [];
          cp-rec :  ⊦ cp((n0 .. n1)' + ts, r) = (ctr(n0, n1, r) ⊃ runevs(n0, n1, r);[]) + cp(ts, r);

   

   
end enrich