| ⊦ pre(gs, ls, pc, callRetTMBegin(tid)) ↔ pc = BeginPending ∧ ls.tid = tid |
¬(pre(gs, ls, pc, callRetTMBegin(tid)) ↔ pc = BeginPending ∧ ls.tid = tid) ⊦
| ¬(pre(gs, ls, pc, callRetTMBegin(tid)) ↔ pc = BeginPending ∧ ls.tid = tid) ⊦ |
pre(gs, ls, pc, callRetTMBegin(tid)) ⊦ pc = BeginPending ∧ ls.tid = tid
Used simplifier rules: pre-BeginPending: ⊦ pre(gs, ls, BeginPending, a) ↔ a = callRetTMBegin(ls.tid) ∨ a = callRetAbort(ls.tid);
| pre(gs, ls, pc, callRetTMBegin(tid)) ⊦ pc = BeginPending ∧ ls.tid = tid |
Used simplifier rules: gen-TMS2PC: ⊦ ; pre-Aborted: ⊦ pre(gs, ls, Aborted, a) ↔ false; pre-BeginPending: ⊦ pre(gs, ls, BeginPending, a) ↔ a = callRetTMBegin(ls.tid) ∨ a = callRetAbort(ls.tid); inj-callRetTMBegin: ⊦ callRetTMBegin(tid) = callRetTMBegin(tid0) ↔ tid = tid0; disj-callRetAbort-callRetTMBegin: ⊦ callRetAbort(tid) ≠ callRetTMBegin(tid0); pre-CancelPending: ⊦ pre(gs, ls, CancelPending, a) ↔ a = callRetAbort(ls.tid); disj-callRetAbort-callRetTMBegin: ⊦ callRetAbort(tid) ≠ callRetTMBegin(tid0); 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); disj-callDoCommitReadOnly-callRetTMBegin: ⊦ callDoCommitReadOnly(tid) ≠ callRetTMBegin(tid0); disj-callDoCommitWriter-callRetTMBegin: ⊦ callDoCommitWriter(tid) ≠ callRetTMBegin(tid0); disj-callRetAbort-callRetTMBegin: ⊦ callRetAbort(tid) ≠ callRetTMBegin(tid0); pre-CommitResp: ⊦ pre(gs, ls, CommitResp, a) ↔ a = callRetTMEnd(ls.tid); disj-callRetTMBegin-callRetTMEnd: ⊦ callRetTMBegin(tid) ≠ callRetTMEnd(tid0); pre-Committed: ⊦ pre(gs, ls, Committed, a) ↔ false; pre-NotStarted: ⊦ pre(gs, ls, NotStarted, a) ↔ a = callInvTMBegin(ls.tid); disj-callInvTMBegin-callRetTMBegin: ⊦ callInvTMBegin(tid) ≠ callRetTMBegin(tid0); 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-callDoReadWrSet-callRetTMBegin: ⊦ callDoReadWrSet(tid) ≠ callRetTMBegin(tid0); disj-callDoReadIx-callRetTMBegin: ⊦ callDoReadIx(tid, invDoReadIxn) ≠ callRetTMBegin(tid0); disj-callRetAbort-callRetTMBegin: ⊦ callRetAbort(tid) ≠ callRetTMBegin(tid0); pre-ReadResp-corrected: ⊦ pre(gs, ls, ReadResp, a) ↔ a = callRetTMRead(ls.tid, ls.ov) ∨ a = callRetAbort(ls.tid); disj-callRetTMBegin-callRetTMRead: ⊦ callRetTMBegin(tid) ≠ callRetTMRead(tid0, invInvTMWritev); disj-callRetAbort-callRetTMBegin: ⊦ callRetAbort(tid) ≠ callRetTMBegin(tid0); 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-callInvTMEnd-callRetTMBegin: ⊦ callInvTMEnd(tid) ≠ callRetTMBegin(tid0); disj-callInvTMRead-callRetTMBegin: ⊦ callInvTMRead(tid, invInvTMReadl) ≠ callRetTMBegin(tid0); disj-callInvTMWrite-callRetTMBegin: ⊦ callInvTMWrite(tid, invInvTMReadl, invInvTMWritev) ≠ callRetTMBegin(tid0); disj-callInvCancel-callRetTMBegin: ⊦ callInvCancel(tid) ≠ callRetTMBegin(tid0); pre-WriteInv: ⊦ pre(gs, ls, WriteInv, a) ↔ a = callDoWrite(ls.tid) ∨ a = callRetAbort(ls.tid); disj-callDoWrite-callRetTMBegin: ⊦ callDoWrite(tid) ≠ callRetTMBegin(tid0); disj-callRetAbort-callRetTMBegin: ⊦ callRetAbort(tid) ≠ callRetTMBegin(tid0); pre-WriteResp: ⊦ pre(gs, ls, WriteResp, a) ↔ a = callRetTMWrite(ls.tid) ∨ a = callRetAbort(ls.tid); disj-callRetTMBegin-callRetTMWrite: ⊦ callRetTMBegin(tid) ≠ callRetTMWrite(tid0); disj-callRetAbort-callRetTMBegin: ⊦ callRetAbort(tid) ≠ callRetTMBegin(tid0);
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.