[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,
enrich
TML-proofs,
TMS2-proofs
with
functions
ren : TMLAction → TMS2Action;
abspc : TMLPC → TMS2PC;
predicates
abs : TMLState × TMS2State;
labs : TMLGState × TMLLState × TMLPC × TMS2GState × TMS2LState × TMS2PC;
variables
cpc : TMLPC;
apc : TMS2PC;
l : L;
v : V;
cs : TMLState;
as : TMS2State;
ca : TMLAction;
a : TMS2Action;
cgs : TMLGState;
ags : TMS2GState;
cls : TMLLState;
als : TMS2LState;
clsf : T → TMLLState;
alsf : T → TMS2LState;
cpcf : T → TMLPC;
apcf : T → TMS2PC;
tid : T;
axioms
abspc-def:
abspc(cpc)
= (cpc = S
⊃ NotStarted
;(cpc = B1 ∨ cpc = B2 ∨ cpc = B3 ∨ cpc = B4
⊃ BeginPending
;(cpc = I
⊃ Ready
;(cpc = R1 ∨ cpc = R2 ∨ cpc = R4
⊃ ReadInv
;(cpc = R3
⊃ ReadResp
;(cpc = W1 ∨ cpc = W2 ∨ cpc = W3 ∨ cpc = W4 ∨ cpc = W5 ∨ cpc = W5
⊃ WriteInv
;(cpc = W6 ⊃ WriteResp;(cpc = E1 ∨ cpc = E2 ⊃ CommitInv;(cpc = E3 ⊃ CommitResp;(cpc = C ⊃ Committed;Aborted))))
)
)
)
)
)
);
used for: s, ls;
abs-def: abs(cs, as) ↔ (∀ tid. labs(cs.gstate, cs.lsf(tid), cs.pcf(tid), as.gstate, as.lsf(tid), as.pcf(tid)));
labs-def:
labs(cgs, cls, cpc, ags, als, apc)
↔ abspc(cpc) = apc ∧ cls.tid = als.tid ∧ (cpc = S ∨ cpc = B1 ∨ cpc = B2 ∨ cpc = B3 ∨ cpc = B4 → als.rdset = ∅ ∧ als.wrset = ∅)
∧ (even(cls.loc) → als.wrset = ∅) ∧ (cpc = W1 ∨ cpc = W2 ∨ cpc = W3 ∨ cpc = W4 ∨ cpc = W5 → cls.l = als.il ∧ cls.v = als.ov)
∧ (cpc = R1 ∨ cpc = R2 ∨ cpc = R4 → cls.l = als.il) ∧ (cpc = R3 → cls.v = als.ov)
∧ (cgs.w = None → cgs.mem = ags.memories.last ∧ even(cgs.glb))
∧ (cgs.w = Some(cls.tid)
⊃ (cpc ≠ W4 → odd(cls.loc)) ∧ als.wrset ⊆ cgs.mem ∧ cgs.mem = ags.memories.last ⊕ als.wrset ∧ odd(cgs.glb)
;cpc ≠ E3 ∧ cpc ≠ C → als.wrset = ∅
)
∧ ( cpc ≠ E3 ∧ cpc ≠ C ∧ cpc ≠ A ∧ cpc ≠ B1 ∧ cpc ≠ S
→ (cgs.glb = cls.loc ∨ cpc = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories)));
ren-doCommitReadOnly: ren(doCommitReadOnly(tid)) = callDoCommitReadOnly(tid);
used for: s, ls;
ren-doCommitWriter: ren(doCommitWriter(tid)) = callDoCommitWriter(tid);
used for: s, ls;
ren-doRead: ren(doRead(tid)) = callDoReadWrSet(tid);
used for: s, ls;
comment: defined only to ensure aabs(ren(doRead(tid))) = τ;
ren-doWrite: ren(doWrite(tid)) = callDoWrite(tid);
used for: s, ls;
ren-invTMBEGIN: ren(invTMBEGIN(tid)) = callInvTMBegin(tid);
used for: s, ls;
ren-invTMEND: ren(invTMEND(tid)) = callInvTMEnd(tid);
used for: s, ls;
ren-invTMREAD: ren(invTMREAD(tid, l)) = callInvTMRead(tid, l);
used for: s, ls;
ren-invTMWRITE: ren(invTMWRITE(tid, l, v)) = callInvTMWrite(tid, l, v);
used for: s, ls;
ren-retTMBEGIN: ren(retTMBEGIN(tid)) = callRetTMBegin(tid);
used for: s, ls;
ren-retTMEND: ren(retTMEND(tid)) = callRetTMEnd(tid);
used for: s, ls;
ren-retTMREAD: ren(retTMREAD(tid, v)) = callRetTMRead(tid, v);
used for: s, ls;
ren-retTMWRITE: ren(retTMWRITE(tid)) = callRetTMWrite(tid);
used for: s, ls;
ren-retAbort: ren(retAbort(tid)) = callRetAbort(tid);
used for: s, ls;
ren-tau: ren(τ) = τ;
used for: s, ls;
end enrich