| ⊦ pre(gs, ls, pc, callDoCommitReadOnly(tid)) ↔ pc = CommitInv ∧ ls.tid = tid ∧ ls.wrset = ∅ ∧ ∃valid(ls.beginIdx, ls.rdset, gs.memories) |
¬(pre(gs, ls, pc, callDoCommitReadOnly(tid)) ↔ pc = CommitInv ∧ ls.tid = tid ∧ ls.wrset = ∅ ∧ ∃valid(ls.beginIdx, ls.rdset, gs.memories)) ⊦
| ¬(pre(gs, ls, pc, callDoCommitReadOnly(tid)) ↔ pc = CommitInv ∧ ls.tid = tid ∧ ls.wrset = ∅ ∧ ∃valid(ls.beginIdx, ls.rdset, gs.memories)) ⊦ |
⊦ pre(gs, ls, pc, callDoCommitReadOnly(tid)) ↔ pc = CommitInv ∧ ls.tid = tid ∧ ls.wrset = ∅ ∧ (∃ n. ls.beginIdx ≤ n ∧ n < # gs.memories ∧ (∀ l. l ∈ ls.rdset → ls.rdset[l] = gs.memories[n](l)))
Used simplifier rules: exvalid-def: ⊦ ∃valid(beginIdx, rdset, memories) ↔ (∃ n. beginIdx ≤ n ∧ n < # memories ∧ rdset ⊆ memories[n]); subset-def: ⊦ rws ⊆ mem ↔ (∀ l. l ∈ rws → rws[l] = mem(l));
| ⊦ pre(gs, ls, pc, callDoCommitReadOnly(tid)) ↔ pc = CommitInv ∧ ls.tid = tid ∧ ls.wrset = ∅ ∧ (∃ n. ls.beginIdx ≤ n ∧ n < # gs.memories ∧ (∀ l. l ∈ ls.rdset → ls.rdset[l] = gs.memories[n](l))) |
Used simplifier rules: gen-TMS2PC: ⊦ ; pre-Aborted: ⊦ pre(gs, ls, Aborted, a) ↔ false; disj-Aborted-CommitInv: ⊦ Aborted ≠ CommitInv; pre-BeginPending: ⊦ pre(gs, ls, BeginPending, a) ↔ a = callRetTMBegin(ls.tid) ∨ a = callRetAbort(ls.tid); disj-callDoCommitReadOnly-callRetTMBegin: ⊦ callDoCommitReadOnly(tid) ≠ callRetTMBegin(tid0); disj-callDoCommitReadOnly-callRetAbort: ⊦ callDoCommitReadOnly(tid) ≠ callRetAbort(tid0); disj-BeginPending-CommitInv: ⊦ BeginPending ≠ CommitInv; pre-CancelPending: ⊦ pre(gs, ls, CancelPending, a) ↔ a = callRetAbort(ls.tid); disj-callDoCommitReadOnly-callRetAbort: ⊦ callDoCommitReadOnly(tid) ≠ callRetAbort(tid0); disj-CancelPending-CommitInv: ⊦ CancelPending ≠ CommitInv; pre-CommitInv: ⊦ pre(gs, ls, CommitInv, a) ↔ a = callDoCommitReadOnly(ls.tid) ∧ ls.wrset = ∅ ∧ ∃valid(ls.beginIdx, ls.rdset, gs.memories) ∨ a = callDoCommitWriter(ls.tid) ∧ ls.rdset ⊆ gs.memories.last ∨ a = callRetAbort(ls.tid); inj-callDoCommitReadOnly: ⊦ callDoCommitReadOnly(tid) = callDoCommitReadOnly(tid0) ↔ tid = tid0; exvalid-def: ⊦ ∃valid(beginIdx, rdset, memories) ↔ (∃ n. beginIdx ≤ n ∧ n < # memories ∧ rdset ⊆ memories[n]); subset-def: ⊦ rws ⊆ mem ↔ (∀ l. l ∈ rws → rws[l] = mem(l)); disj-callDoCommitReadOnly-callDoCommitWriter: ⊦ callDoCommitReadOnly(tid) ≠ callDoCommitWriter(tid0); disj-callDoCommitReadOnly-callRetAbort: ⊦ callDoCommitReadOnly(tid) ≠ callRetAbort(tid0); pre-CommitResp: ⊦ pre(gs, ls, CommitResp, a) ↔ a = callRetTMEnd(ls.tid); disj-callDoCommitReadOnly-callRetTMEnd: ⊦ callDoCommitReadOnly(tid) ≠ callRetTMEnd(tid0); disj-CommitInv-CommitResp: ⊦ CommitInv ≠ CommitResp; pre-Committed: ⊦ pre(gs, ls, Committed, a) ↔ false; disj-CommitInv-Committed: ⊦ CommitInv ≠ Committed; pre-NotStarted: ⊦ pre(gs, ls, NotStarted, a) ↔ a = callInvTMBegin(ls.tid); disj-callDoCommitReadOnly-callInvTMBegin: ⊦ callDoCommitReadOnly(tid) ≠ callInvTMBegin(tid0); disj-CommitInv-NotStarted: ⊦ CommitInv ≠ NotStarted; pre-ReadInv: ⊦ pre(gs, ls, ReadInv, a) ↔ a = callDoReadWrSet(ls.tid) ∧ ls.il ∈ ls.wrset ∨ (∃ n. a = callDoReadIx(ls.tid, n) ∧ ¬ ls.il ∈ ls.wrset ∧ validIdx(n, ls.beginIdx, ls.rdset, gs.memories)) ∨ a = callRetAbort(ls.tid); disj-callDoCommitReadOnly-callDoReadWrSet: ⊦ callDoCommitReadOnly(tid) ≠ callDoReadWrSet(tid0); disj-callDoCommitReadOnly-callDoReadIx: ⊦ callDoCommitReadOnly(tid) ≠ callDoReadIx(tid0, invDoReadIxn); disj-callDoCommitReadOnly-callRetAbort: ⊦ callDoCommitReadOnly(tid) ≠ callRetAbort(tid0); disj-CommitInv-ReadInv: ⊦ CommitInv ≠ ReadInv; pre-ReadResp-corrected: ⊦ pre(gs, ls, ReadResp, a) ↔ a = callRetTMRead(ls.tid, ls.ov) ∨ a = callRetAbort(ls.tid); disj-callDoCommitReadOnly-callRetTMRead: ⊦ callDoCommitReadOnly(tid) ≠ callRetTMRead(tid0, invInvTMWritev); disj-callDoCommitReadOnly-callRetAbort: ⊦ callDoCommitReadOnly(tid) ≠ callRetAbort(tid0); disj-CommitInv-ReadResp: ⊦ CommitInv ≠ ReadResp; pre-Ready: ⊦ pre(gs, ls, Ready, a) ↔ a = callInvTMEnd(ls.tid) ∨ (∃ l. a = callInvTMRead(ls.tid, l)) ∨ (∃ l, v. a = callInvTMWrite(ls.tid, l, v)) ∨ a = callInvCancel(ls.tid); disj-callDoCommitReadOnly-callInvTMEnd: ⊦ callDoCommitReadOnly(tid) ≠ callInvTMEnd(tid0); disj-callDoCommitReadOnly-callInvTMRead: ⊦ callDoCommitReadOnly(tid) ≠ callInvTMRead(tid0, invInvTMReadl); disj-callDoCommitReadOnly-callInvTMWrite: ⊦ callDoCommitReadOnly(tid) ≠ callInvTMWrite(tid0, invInvTMReadl, invInvTMWritev); disj-callDoCommitReadOnly-callInvCancel: ⊦ callDoCommitReadOnly(tid) ≠ callInvCancel(tid0); disj-CommitInv-Ready: ⊦ CommitInv ≠ Ready; pre-WriteInv: ⊦ pre(gs, ls, WriteInv, a) ↔ a = callDoWrite(ls.tid) ∨ a = callRetAbort(ls.tid); disj-callDoCommitReadOnly-callDoWrite: ⊦ callDoCommitReadOnly(tid) ≠ callDoWrite(tid0); disj-callDoCommitReadOnly-callRetAbort: ⊦ callDoCommitReadOnly(tid) ≠ callRetAbort(tid0); disj-CommitInv-WriteInv: ⊦ CommitInv ≠ WriteInv; pre-WriteResp: ⊦ pre(gs, ls, WriteResp, a) ↔ a = callRetTMWrite(ls.tid) ∨ a = callRetAbort(ls.tid); disj-callDoCommitReadOnly-callRetTMWrite: ⊦ callDoCommitReadOnly(tid) ≠ callRetTMWrite(tid0); disj-callDoCommitReadOnly-callRetAbort: ⊦ callDoCommitReadOnly(tid) ≠ callRetAbort(tid0); disj-CommitInv-WriteResp: ⊦ CommitInv ≠ WriteResp;
The following image shows the proof tree of sequent calculus. The proved goal is at the bottom. You can click on the nodes to view additional rules. See here for details on colors in a proof tree.