| ls.loc = gs.glb, even(gs.glb) ↔ gs.w = None, even(gs0.glb) ↔ gs0.w = None, ags.memories ≠ [], lsf(tid) = ls, lsf0(tid) = ls0, alsf(tid) = als, alsf(tid).tid = tid, lsf(tid).tid = tid, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, pcf(tid) = R2, pcf0(tid) = R3, apcf(tid) = apc, (ls.loc = gs.glb → gs.mem(ls.l) = ls.v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ (odd(ls.loc) → ls.loc = gs.glb) ∧ (gs.w = Some(tid) → odd(ls.loc)) ∧ (gs.w ≠ Some(tid) → even(ls.loc)), (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (odd(ls0.loc) → ls0.loc = gs0.glb) ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ (gs0.w ≠ Some(tid) → even(ls0.loc)), TMS2LInv(ags, als, apc), tid ≠ tid0, lsf(tid0).tid = tid0, TMLLInv(gs, lsf(tid0), pcf(tid0)), TMLLInv(gs0, lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(gs, lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(gs, lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), pre(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) → ags0 = gstepf(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) ∧ als0 = lstepf(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) ∧ apc0 = pcstepf(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))), ags0.memories ≠ [], pre(gs, ls, R2, doRead(ls.tid)) ∧ gs0 = gstepf(gs, ls, R2, doRead(ls.tid)) ∧ ls0 = lstepf(gs, ls, R2, doRead(ls.tid)) ∧ R3 = pcstepf(gs, ls, R2, doRead(ls.tid)), true, ls.tid = als.tid ∧ abspc(R2) = apc ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → ls.l = als.il) ∧ (R2 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (R2 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → als.wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = ls.loc ∨ R2 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))), lsf(tid0).tid = alsf(tid0).tid ∧ abspc(pcf(tid0)) = apcf(tid0) ∧ (pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅) ∧ (even(lsf(tid0).loc) → alsf(tid0).wrset = ∅) ∧ (pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov) ∧ (pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il) ∧ (pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid0).tid) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories))) ⊦ lsf(tid0).tid = alsf(tid0).tid ∧ abspc(pcf(tid0)) = apcf(tid0) ∧ (pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅) ∧ (even(lsf(tid0).loc) → alsf(tid0).wrset = ∅) ∧ (pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov) ∧ (pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il) ∧ (pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(lsf(tid0).tid) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs0.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs0.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
ls.loc = gs.glb, lsf(tid0).tid = alsf(tid0).tid, ls.tid = als.tid, lsf(tid0).tid = tid0, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs0.glb) ↔ gs0.w = None, even(gs.glb) ↔ gs.w = None, R3 = pcstepf(gs, ls, R2, doRead(ls.tid)), abspc(pcf(tid0)) = apcf(tid0), abspc(R2) = apc, alsf(tid) = als, apcf(tid) = apc, gs0 = gstepf(gs, ls, R2, doRead(ls.tid)), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf(tid) = ls, lsf0(tid) = ls0, pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(gs0, lsf(tid0), pcf(tid0)), TMLLInv(gs, lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, als, apc), pre(gs, ls, R2, doRead(ls.tid)), ls0.loc ≤ gs0.glb, ls.loc ≤ gs.glb, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → als.rdset = ∅ ∧ als.wrset = ∅, even(ls.loc) → als.wrset = ∅, R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → ls.l = als.il ∧ ls.v = als.ov, R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → ls.l = als.il, R2 = R3 → ls.v = als.ov, gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb), R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = ls.loc ∨ R2 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories)), pre(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) → ags0 = gstepf(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) ∧ als0 = lstepf(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) ∧ apc0 = pcstepf(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))), gs0.w = Some(tid) → odd(gs0.glb), odd(ls0.loc) → ls0.loc = gs0.glb, gs0.w = Some(tid) → odd(ls0.loc), gs0.w ≠ Some(tid) → even(ls0.loc), ls.loc = gs.glb → gs.mem(ls.l) = ls.v, gs.w = Some(tid) → odd(gs.glb), odd(ls.loc) → ls.loc = gs.glb, gs.w = Some(tid) → odd(ls.loc), gs.w ≠ Some(tid) → even(ls.loc), (gs.w = Some(lsf(tid0).tid) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (gs.w = Some(ls.tid) ⊃ (R2 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → als.wrset = ∅ ), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(gs, lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(gs, lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0 ⊦ lsf(tid0).tid = alsf(tid0).tid ∧ abspc(pcf(tid0)) = apcf(tid0) ∧ (pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅) ∧ (even(lsf(tid0).loc) → alsf(tid0).wrset = ∅) ∧ (pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov) ∧ (pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il) ∧ (pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(lsf(tid0).tid) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs0.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs0.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
| ls.loc = gs.glb, lsf(tid0).tid = alsf(tid0).tid, ls.tid = als.tid, lsf(tid0).tid = tid0, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs0.glb) ↔ gs0.w = None, even(gs.glb) ↔ gs.w = None, R3 = pcstepf(gs, ls, R2, doRead(ls.tid)), abspc(pcf(tid0)) = apcf(tid0), abspc(R2) = apc, alsf(tid) = als, apcf(tid) = apc, gs0 = gstepf(gs, ls, R2, doRead(ls.tid)), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf(tid) = ls, lsf0(tid) = ls0, pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(gs0, lsf(tid0), pcf(tid0)), TMLLInv(gs, lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, als, apc), pre(gs, ls, R2, doRead(ls.tid)), ls0.loc ≤ gs0.glb, ls.loc ≤ gs.glb, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → als.rdset = ∅ ∧ als.wrset = ∅, even(ls.loc) → als.wrset = ∅, R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → ls.l = als.il ∧ ls.v = als.ov, R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → ls.l = als.il, R2 = R3 → ls.v = als.ov, gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb), R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = ls.loc ∨ R2 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories)), pre(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) → ags0 = gstepf(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) ∧ als0 = lstepf(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) ∧ apc0 = pcstepf(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))), gs0.w = Some(tid) → odd(gs0.glb), odd(ls0.loc) → ls0.loc = gs0.glb, gs0.w = Some(tid) → odd(ls0.loc), gs0.w ≠ Some(tid) → even(ls0.loc), ls.loc = gs.glb → gs.mem(ls.l) = ls.v, gs.w = Some(tid) → odd(gs.glb), odd(ls.loc) → ls.loc = gs.glb, gs.w = Some(tid) → odd(ls.loc), gs.w ≠ Some(tid) → even(ls.loc), (gs.w = Some(lsf(tid0).tid) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (gs.w = Some(ls.tid) ⊃ (R2 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → als.wrset = ∅ ), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(gs, lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(gs, lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0 ⊦ lsf(tid0).tid = alsf(tid0).tid ∧ abspc(pcf(tid0)) = apcf(tid0) ∧ (pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅) ∧ (even(lsf(tid0).loc) → alsf(tid0).wrset = ∅) ∧ (pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov) ∧ (pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il) ∧ (pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(lsf(tid0).tid) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs0.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs0.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
lsf(tid).l = alsf(tid).il, lsf(tid).loc = gs.glb, gs.mem(alsf(tid).il) = lsf(tid).v, lsf(tid0).tid = tid0, lsf(tid).tid = tid, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(gs.glb) ↔ gs.w = None, ReadInv = apcf(tid), lsf0(tid) = lsf(tid), pcf(tid) = R2, pcf0(tid) = R3, ags0.memories ≠ [], ags.memories ≠ [], tid ≠ tid0, TMLLInv(gs, lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, gs.w = Some(tid) → odd(gs.glb), gs.w ≠ Some(tid) → gs.w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), gs.w = None → alsf(tid).wrset = ∅, gs.w = None → gs.mem = ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ alsf(tid).beginIdx < # ags.memories ∧ alsf(tid).rdset ⊆ ags.memories[# ags.memories - 1] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))), (gs.w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (gs.w = Some(tid) ⊃ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(gs, lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(gs, lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (gs.w = None → gs.mem = ags0.memories.last) ∧ (gs.w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs.mem ∧ gs.mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used simplifier rules: abspc-def: ⊦ abspc(pc) = (pc = S ⊃ NotStarted ;(pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 ⊃ BeginPending ;(pc = I ⊃ Ready ;(pc = R1 ∨ pc = R2 ∨ pc = R4 ⊃ ReadInv ;(pc = R3 ⊃ ReadResp ;(pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ⊃ WriteInv ;(pc = W6 ⊃ WriteResp ;(pc = E1 ∨ pc = E2 ⊃ CommitInv ;(pc = E3 ⊃ CommitResp;(pc = C ⊃ Committed;Aborted)) ) ) ) ) ) ) ) ); ⊦ gstepf(gs, ls, ReadInv, a) = gs; (s) ⊦ callDoReadIx(tid, invDoReadIxn) ≠ callRetAbort(tid0); (s) c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ ¬ n < n; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) n0 ≤ n ⊦ n - n0 < m ↔ n < m + n0; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m + 1 ≤ n ↔ m < n; (s) n0 ≤ n ⊦ m ≤ n - n0 ↔ m + n0 ≤ n; (s) ⊦ validIdx(n, beginIdx, rdset, memories) ↔ beginIdx ≤ n ∧ n < # memories ∧ rdset ⊆ memories[n]; (s) ⊦ callDoReadIx(tid, invDoReadIxn) = callDoReadIx(tid0, invDoReadIxn0) ↔ tid = tid0 ∧ invDoReadIxn = invDoReadIxn0; (ws) ⊦ callDoReadWrSet(tid) = callDoReadWrSet(tid0) ↔ tid = tid0; (s) ⊦ 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); (s) ⊦ m ≤ m; (s) ⊦ m ≤ n → (n ≤ m ↔ m = n); (s) ⊦ gstepf(gs, ls, R2, a) = gs; (s) ⊦ B4 ≠ R2; (s) ⊦ B3 ≠ R2; (s) ⊦ B2 ≠ R2; (s) ⊦ B1 ≠ R2; (s) ⊦ R2 ≠ S; (s) ⊦ R2 ≠ W5; (s) ⊦ R2 ≠ W4; (s) ⊦ R2 ≠ W3; (s) ⊦ R2 ≠ W2; (s) ⊦ R2 ≠ W1; (s) ⊦ R1 ≠ R2; (s) ⊦ R2 ≠ R3; (s) ⊦ A ≠ R2; (s) ⊦ C ≠ R2; (s) ⊦ E3 ≠ R2; (s) ⊦ doRead(tid) = doRead(tid0) ↔ tid = tid0; (s) ⊦ pre(gs, ls, R2, a) ↔ a = (ls.loc = gs.glb ⊃ doRead(ls.tid);τ); (s) ⊦ pcstepf(gs, ls, R2, a) = (gs.glb = ls.loc ⊃ R3;R4); (s) ⊦ I ≠ R2; (s) ⊦ lstepf(gs, ls, R2, a) = ls; (s)
| lsf(tid).l = alsf(tid).il, lsf(tid).loc = gs.glb, gs.mem(alsf(tid).il) = lsf(tid).v, lsf(tid0).tid = tid0, lsf(tid).tid = tid, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(gs.glb) ↔ gs.w = None, ReadInv = apcf(tid), lsf0(tid) = lsf(tid), pcf(tid) = R2, pcf0(tid) = R3, ags0.memories ≠ [], ags.memories ≠ [], tid ≠ tid0, TMLLInv(gs, lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, gs.w = Some(tid) → odd(gs.glb), gs.w ≠ Some(tid) → gs.w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), gs.w = None → alsf(tid).wrset = ∅, gs.w = None → gs.mem = ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ alsf(tid).beginIdx < # ags.memories ∧ alsf(tid).rdset ⊆ ags.memories[# ags.memories - 1] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))), (gs.w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (gs.w = Some(tid) ⊃ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(gs, lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(gs, lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (gs.w = None → gs.mem = ags0.memories.last) ∧ (gs.w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ gs.mem ∧ gs.mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(gs.glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (gs.glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
lsf(tid).l = alsf(tid).il, lsf(tid).loc = glb, alsf(tid).tid = tid, alsf(tid0).tid = tid0, lsf(tid).tid = tid, lsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(glb) ↔ w = None, ReadInv = apcf(tid), gs = mkTMLgs(mem, glb, w), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = lsf(tid).v, pcf(tid) = R2, pcf0(tid) = R3, ags0.memories ≠ [], ags.memories ≠ [], tid ≠ tid0, TMLLInv(gs, lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ alsf(tid).beginIdx < # ags.memories ∧ alsf(tid).rdset ⊆ ags.memories[# ags.memories - 1] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))), w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(glb), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ mem ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(glb);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ mem ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(gs, lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(gs, lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ mem ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used simplifier rules: ⊦ (mem = gs.mem ∧ glb = gs.glb) ∧ w = gs.w ↔ gs = mkTMLgs(mem, glb, w); (elim) Used terms: gs, mem, glb, w
| lsf(tid).l = alsf(tid).il, lsf(tid).loc = glb, alsf(tid).tid = tid, alsf(tid0).tid = tid0, lsf(tid).tid = tid, lsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(glb) ↔ w = None, ReadInv = apcf(tid), gs = mkTMLgs(mem, glb, w), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = lsf(tid).v, pcf(tid) = R2, pcf0(tid) = R3, ags0.memories ≠ [], ags.memories ≠ [], tid ≠ tid0, TMLLInv(gs, lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ alsf(tid).beginIdx < # ags.memories ∧ alsf(tid).rdset ⊆ ags.memories[# ags.memories - 1] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))), w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(glb), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ mem ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(glb);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ mem ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(gs, lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(gs, lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ mem ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(glb) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (glb = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
lsf(tid).l = alsf(tid).il, lsf(tid0).tid = tid0, lsf(tid).tid = tid, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(lsf(tid).loc) ↔ w = None, ReadInv = apcf(tid), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = lsf(tid).v, pcf(tid) = R2, pcf0(tid) = R3, ags0.memories ≠ [], ags.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, w = Some(tid) → odd(lsf(tid).loc), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ alsf(tid).beginIdx < # ags.memories ∧ alsf(tid).rdset ⊆ ags.memories[# ags.memories - 1] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(lsf(tid).loc) ;alsf(tid).wrset = ∅ ), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last ;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories) ))
| lsf(tid).l = alsf(tid).il, lsf(tid0).tid = tid0, lsf(tid).tid = tid, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(lsf(tid).loc) ↔ w = None, ReadInv = apcf(tid), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = lsf(tid).v, pcf(tid) = R2, pcf0(tid) = R3, ags0.memories ≠ [], ags.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, w = Some(tid) → odd(lsf(tid).loc), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ alsf(tid).beginIdx < # ags.memories ∧ alsf(tid).rdset ⊆ ags.memories[# ags.memories - 1] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, # ags.memories - 1))), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(lsf(tid).loc) ;alsf(tid).wrset = ∅ ), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last ;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories) )) |
# ags.memories = n0 + 1, lsf(tid).l = alsf(tid).il, alsf(tid).tid = tid, alsf(tid0).tid = tid0, lsf(tid).tid = tid, lsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(lsf(tid).loc) ↔ w = None, ReadInv = apcf(tid), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = lsf(tid).v, pcf(tid) = R2, pcf0(tid) = R3, # ags.memories ≠ 0, ags0.memories ≠ [], ags.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ alsf(tid).beginIdx < # ags.memories ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(lsf(tid).loc), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(lsf(tid).loc) ;alsf(tid).wrset = ∅ ), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last ;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories) ))
Used simplifier rules: ⊦ # x = 0 ↔ x = []; (s) n ≠ 0 ⊦ m = n - 1 ↔ n = m + 1; (elim) Used terms: # ags.memories, n0
| # ags.memories = n0 + 1, lsf(tid).l = alsf(tid).il, alsf(tid).tid = tid, alsf(tid0).tid = tid0, lsf(tid).tid = tid, lsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(lsf(tid).loc) ↔ w = None, ReadInv = apcf(tid), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = lsf(tid).v, pcf(tid) = R2, pcf0(tid) = R3, # ags.memories ≠ 0, ags0.memories ≠ [], ags.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ alsf(tid).beginIdx < # ags.memories ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(lsf(tid).loc), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(lsf(tid).loc) ;alsf(tid).wrset = ∅ ), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last ;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories) )) |
# ags.memories = n0 + 1, lsf(tid).l = alsf(tid).il, alsf(tid).tid = tid, alsf(tid0).tid = tid0, lsf(tid).tid = tid, lsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(lsf(tid).loc) ↔ w = None, ReadInv = apcf(tid), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = lsf(tid).v, pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(lsf(tid).loc), alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(lsf(tid).loc) ;alsf(tid).wrset = ∅ ), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last ;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories) ))
Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ # x = 0 ↔ x = []; (s)
| # ags.memories = n0 + 1, lsf(tid).l = alsf(tid).il, alsf(tid).tid = tid, alsf(tid0).tid = tid0, lsf(tid).tid = tid, lsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(lsf(tid).loc) ↔ w = None, ReadInv = apcf(tid), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = lsf(tid).v, pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(lsf(tid).loc), alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(lsf(tid).loc) ;alsf(tid).wrset = ∅ ), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, lsf(tid).loc, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(lsf(tid).loc) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (lsf(tid).loc = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last ;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories) )) |
# ags.memories = n0 + 1, lsf(tid0).tid = tid0, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), l = alsf(tid).il, lsf(tid) = mkTMLls(tid2, n, l, v), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = v, pcf(tid) = R2, pcf0(tid) = R3, tid2 = tid, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used simplifier rules: ⊦ ((tid = ls.tid ∧ loc = ls.loc) ∧ l = ls.l) ∧ v = ls.v ↔ ls = mkTMLls(tid, loc, l, v); (elim) Used terms: v, l, tid2, lsf(tid), n
| # ags.memories = n0 + 1, lsf(tid0).tid = tid0, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), l = alsf(tid).il, lsf(tid) = mkTMLls(tid2, n, l, v), lsf0(tid) = lsf(tid), mem(alsf(tid).il) = v, pcf(tid) = R2, pcf0(tid) = R3, tid2 = tid, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
# ags.memories = n0 + 1, alsf(tid).tid = tid, alsf(tid0).tid = tid0, lsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
| # ags.memories = n0 + 1, alsf(tid).tid = tid, alsf(tid0).tid = tid0, lsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → lsf(tid0).v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → lsf(tid0).l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → lsf(tid0).l = alsf(tid0).il ∧ lsf(tid0).v = alsf(tid0).ov, even(lsf(tid0).loc) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(lsf(tid0).loc)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = lsf(tid0).loc ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
# ags.memories = n0 + 1, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf(tid0) = mkTMLls(tid2, n1, l, v), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, tid2 = tid0, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used simplifier rules: ⊦ ((tid = ls.tid ∧ loc = ls.loc) ∧ l = ls.l) ∧ v = ls.v ↔ ls = mkTMLls(tid, loc, l, v); (elim) Used terms: v, l, tid2, lsf(tid0), n1
| # ags.memories = n0 + 1, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf(tid0) = mkTMLls(tid2, n1, l, v), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, tid2 = tid0, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
# ags.memories = n0 + 1, alsf(tid).tid = tid, alsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), mkTMLls(tid0, n1, l, v), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
| # ags.memories = n0 + 1, alsf(tid).tid = tid, alsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), mkTMLls(tid0, n1, l, v), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
# ags.memories = n0 + 1, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), mkTMLls(tid0, n1, l, v), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used simplifier rules: ⊦ ls.tid = tid → lstepf(gs, ls, ReadInv, callDoReadWrSet(tid)) = ls.ov:= ls.wrset[ls.il]; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, ReadInv, callDoReadWrSet(tid)) = ReadResp; (s) Used formulas: alsf(tid).il ∈ alsf(tid).wrset
| # ags.memories = n0 + 1, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), mkTMLls(tid0, n1, l, v), pcf(tid0)), TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, alsf(tid).il ∈ alsf(tid).wrset ∨ ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = lstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))) ∧ apc0 = pcstepf(ags, alsf(tid), ReadInv, (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid);callDoReadIx(tid, n0))), w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
# ags.memories = n0 + 1, alsf(tid).tid = tid, alsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), mkTMLls(tid0, n1, l, v), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories[n0](alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories[n0](alsf(tid).il)] ∧ apc0 = ReadResp, (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used simplifier rules: ⊦ ls.tid = tid → pcstepf(gs, ls, ReadInv, callDoReadIx(tid, n)) = ReadResp; (s) ⊦ ls.tid = tid → lstepf(gs, ls, ReadInv, callDoReadIx(tid, n)) = (ls.ov:= gs.memories[n](ls.il)).rdset:= ls.rdset[ls.il := gs.memories[n](ls.il)]; (s)
| # ags.memories = n0 + 1, alsf(tid).tid = tid, alsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMLLInv(mkTMLgs(mem, n, w), mkTMLls(tid0, n1, l, v), pcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories[n0](alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories[n0](alsf(tid).il)] ∧ apc0 = ReadResp, (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
⊦ TMLLInv(gs, ls, pc) ↔ (pc = E2 → odd(ls.loc)) ∧ (pc = R2 → ls.loc = gs.glb → gs.mem(ls.l) = ls.v) ∧ (pc = W2 → even(ls.loc)) ∧ (pc = W4 → even(ls.loc) ∧ gs.glb = ls.loc + 1 ∧ gs.w = Some(ls.tid)) ∧ (pc = W5 → gs.w = Some(ls.tid)) ∧ ( pc = S ∨ pc = I ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = E3 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ∨ pc = W6 ∨ pc = C ∨ pc = A → gs.w = Some(ls.tid) → odd(gs.glb)) ∧ ( pc = I ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = E3 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ∨ pc = W6 ∨ pc = C ∨ pc = A → ls.loc ≤ gs.glb) ∧ (pc = B4 → even(ls.loc)) ∧ ( pc = I ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ∨ pc = W6 → odd(ls.loc) → ls.loc = gs.glb) ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → gs.w ≠ Some(ls.tid)) ∧ ( pc = I ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = E3 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W5 ∨ pc = W6 ∨ pc = C ∨ pc = A → gs.w = Some(ls.tid) → odd(ls.loc)) ∧ ( pc = I ∨ pc = B4 ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ∨ pc = W6 ∨ pc = A → gs.w ≠ Some(ls.tid) → even(ls.loc))
# ags.memories = n0 + 1, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories[n0](alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories[n0](alsf(tid).il)] ∧ apc0 = ReadResp, w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, pcf(tid0) = E2 → odd(mkTMLls(tid0, n1, l, v).loc), pcf(tid0) = R2 → mkTMLls(tid0, n1, l, v).loc = mkTMLgs(mem, n, w).glb → mkTMLgs(mem, n, w).mem(mkTMLls(tid0, n1, l, v).l) = mkTMLls(tid0, n1, l, v).v, pcf(tid0) = W2 → even(mkTMLls(tid0, n1, l, v).loc), pcf(tid0) = W4 → even(mkTMLls(tid0, n1, l, v).loc) ∧ mkTMLgs(mem, n, w).glb = mkTMLls(tid0, n1, l, v).loc + 1 ∧ mkTMLgs(mem, n, w).w = Some(mkTMLls(tid0, n1, l, v).tid), pcf(tid0) = W5 → mkTMLgs(mem, n, w).w = Some(mkTMLls(tid0, n1, l, v).tid), pcf(tid0) = S ∨ pcf(tid0) = I ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → mkTMLgs(mem, n, w).w = Some(mkTMLls(tid0, n1, l, v).tid) → odd(mkTMLgs(mem, n, w).glb), pcf(tid0) = I ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → mkTMLls(tid0, n1, l, v).loc ≤ mkTMLgs(mem, n, w).glb, pcf(tid0) = B4 → even(mkTMLls(tid0, n1, l, v).loc), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 → odd(mkTMLls(tid0, n1, l, v).loc) → mkTMLls(tid0, n1, l, v).loc = mkTMLgs(mem, n, w).glb, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → mkTMLgs(mem, n, w).w ≠ Some(mkTMLls(tid0, n1, l, v).tid), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → mkTMLgs(mem, n, w).w = Some(mkTMLls(tid0, n1, l, v).tid) → odd(mkTMLls(tid0, n1, l, v).loc), pcf(tid0) = I ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = A → mkTMLgs(mem, n, w).w ≠ Some(mkTMLls(tid0, n1, l, v).tid) → even(mkTMLls(tid0, n1, l, v).loc), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used terms: mkTMLgs(mem, n, w), mkTMLls(tid0, n1, l, v), pcf(tid0)
| ⊦ TMLLInv(gs, ls, pc) ↔ (pc = E2 → odd(ls.loc)) ∧ (pc = R2 → ls.loc = gs.glb → gs.mem(ls.l) = ls.v) ∧ (pc = W2 → even(ls.loc)) ∧ (pc = W4 → even(ls.loc) ∧ gs.glb = ls.loc + 1 ∧ gs.w = Some(ls.tid)) ∧ (pc = W5 → gs.w = Some(ls.tid)) ∧ ( pc = S ∨ pc = I ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = E3 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ∨ pc = W6 ∨ pc = C ∨ pc = A → gs.w = Some(ls.tid) → odd(gs.glb)) ∧ ( pc = I ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = E3 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ∨ pc = W6 ∨ pc = C ∨ pc = A → ls.loc ≤ gs.glb) ∧ (pc = B4 → even(ls.loc)) ∧ ( pc = I ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ∨ pc = W6 → odd(ls.loc) → ls.loc = gs.glb) ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → gs.w ≠ Some(ls.tid)) ∧ ( pc = I ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = E3 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W5 ∨ pc = W6 ∨ pc = C ∨ pc = A → gs.w = Some(ls.tid) → odd(ls.loc)) ∧ ( pc = I ∨ pc = B4 ∨ pc = R1 ∨ pc = R2 ∨ pc = R3 ∨ pc = R4 ∨ pc = E1 ∨ pc = E2 ∨ pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ∨ pc = W6 ∨ pc = A → gs.w ≠ Some(ls.tid) → even(ls.loc)) |
| # ags.memories = n0 + 1, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories[n0](alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories[n0](alsf(tid).il)] ∧ apc0 = ReadResp, w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, pcf(tid0) = E2 → odd(mkTMLls(tid0, n1, l, v).loc), pcf(tid0) = R2 → mkTMLls(tid0, n1, l, v).loc = mkTMLgs(mem, n, w).glb → mkTMLgs(mem, n, w).mem(mkTMLls(tid0, n1, l, v).l) = mkTMLls(tid0, n1, l, v).v, pcf(tid0) = W2 → even(mkTMLls(tid0, n1, l, v).loc), pcf(tid0) = W4 → even(mkTMLls(tid0, n1, l, v).loc) ∧ mkTMLgs(mem, n, w).glb = mkTMLls(tid0, n1, l, v).loc + 1 ∧ mkTMLgs(mem, n, w).w = Some(mkTMLls(tid0, n1, l, v).tid), pcf(tid0) = W5 → mkTMLgs(mem, n, w).w = Some(mkTMLls(tid0, n1, l, v).tid), pcf(tid0) = S ∨ pcf(tid0) = I ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → mkTMLgs(mem, n, w).w = Some(mkTMLls(tid0, n1, l, v).tid) → odd(mkTMLgs(mem, n, w).glb), pcf(tid0) = I ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → mkTMLls(tid0, n1, l, v).loc ≤ mkTMLgs(mem, n, w).glb, pcf(tid0) = B4 → even(mkTMLls(tid0, n1, l, v).loc), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 → odd(mkTMLls(tid0, n1, l, v).loc) → mkTMLls(tid0, n1, l, v).loc = mkTMLgs(mem, n, w).glb, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → mkTMLgs(mem, n, w).w ≠ Some(mkTMLls(tid0, n1, l, v).tid), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → mkTMLgs(mem, n, w).w = Some(mkTMLls(tid0, n1, l, v).tid) → odd(mkTMLls(tid0, n1, l, v).loc), pcf(tid0) = I ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = A → mkTMLgs(mem, n, w).w ≠ Some(mkTMLls(tid0, n1, l, v).tid) → even(mkTMLls(tid0, n1, l, v).loc), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
# ags.memories = n0 + 1, alsf(tid).tid = tid, alsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories[n0](alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories[n0](alsf(tid).il)] ∧ apc0 = ReadResp, pcf(tid0) = I ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = A → w ≠ Some(tid0) → even(n1), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n1), pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → w ≠ Some(tid0), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 → odd(n1) → n1 = n, pcf(tid0) = B4 → even(n1), pcf(tid0) = I ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → n1 ≤ n, pcf(tid0) = S ∨ pcf(tid0) = I ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n), pcf(tid0) = W5 → w = Some(tid0), pcf(tid0) = W4 → even(n1) ∧ n = n1 + 1 ∧ w = Some(tid0), pcf(tid0) = W2 → even(n1), pcf(tid0) = R2 → n1 = n → mem(l) = v, pcf(tid0) = E2 → odd(n1), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used simplifier rules: ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ mkTMLls(tid, loc, l, v).v = v; (s) ⊦ mkTMLgs(mem, glb, w).mem = mem; (s) ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ mkTMLgs(mem, glb, w).glb = glb; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ mkTMLgs(mem, glb, w).w = w; (s)
| # ags.memories = n0 + 1, alsf(tid).tid = tid, alsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories[n0] → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories[n0](alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories[n0](alsf(tid).il)] ∧ apc0 = ReadResp, pcf(tid0) = I ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = A → w ≠ Some(tid0) → even(n1), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n1), pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → w ≠ Some(tid0), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 → odd(n1) → n1 = n, pcf(tid0) = B4 → even(n1), pcf(tid0) = I ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → n1 ≤ n, pcf(tid0) = S ∨ pcf(tid0) = I ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n), pcf(tid0) = W5 → w = Some(tid0), pcf(tid0) = W4 → even(n1) ∧ n = n1 + 1 ∧ w = Some(tid0), pcf(tid0) = W2 → even(n1), pcf(tid0) = R2 → n1 = n → mem(l) = v, pcf(tid0) = E2 → odd(n1), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
⊦ n = # x - 1 ∧ 0 < # x → x[n] = x.last
# ags.memories = n0 + 1, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), n0 = # ags.memories - 1, pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, 0 < # ags.memories, TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, pcf(tid0) = E2 → odd(n1), pcf(tid0) = R2 → n1 = n → mem(l) = v, pcf(tid0) = W2 → even(n1), pcf(tid0) = W4 → even(n1) ∧ n = n1 + 1 ∧ w = Some(tid0), pcf(tid0) = W5 → w = Some(tid0), pcf(tid0) = S ∨ pcf(tid0) = I ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n), pcf(tid0) = I ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → n1 ≤ n, pcf(tid0) = B4 → even(n1), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 → odd(n1) → n1 = n, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → w ≠ Some(tid0), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n1), pcf(tid0) = I ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = A → w ≠ Some(tid0) → even(n1), ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories.last → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories.last(alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories.last(alsf(tid).il)] ∧ apc0 = ReadResp, w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used simplifier rules: ⊦ 0 < m ↔ m ≠ 0; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ n ≤ m → m + n0 - n = (m - n) + n0; (s) ⊦ n + 0 = n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic Used terms: ags.memories, n0
| ⊦ n = # x - 1 ∧ 0 < # x → x[n] = x.last |
| # ags.memories = n0 + 1, alsf(tid0).tid = tid0, alsf(tid).tid = tid, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), n0 = # ags.memories - 1, pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, 0 < # ags.memories, TMS2LInv(ags, alsf(tid0), apcf(tid0)), TMS2LInv(ags, alsf(tid), ReadInv), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, pcf(tid0) = E2 → odd(n1), pcf(tid0) = R2 → n1 = n → mem(l) = v, pcf(tid0) = W2 → even(n1), pcf(tid0) = W4 → even(n1) ∧ n = n1 + 1 ∧ w = Some(tid0), pcf(tid0) = W5 → w = Some(tid0), pcf(tid0) = S ∨ pcf(tid0) = I ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n), pcf(tid0) = I ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → n1 ≤ n, pcf(tid0) = B4 → even(n1), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 → odd(n1) → n1 = n, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → w ≠ Some(tid0), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n1), pcf(tid0) = I ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = A → w ≠ Some(tid0) → even(n1), ¬ n0 < alsf(tid).beginIdx ∧ alsf(tid).rdset ⊆ ags.memories.last → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories.last(alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories.last(alsf(tid).il)] ∧ apc0 = ReadResp, w = Some(tid) → odd(n), w ≠ Some(tid) → w = None, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), w = None → alsf(tid).wrset = ∅, w = None → mem = ags.memories.last, (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)), ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. lsf(tid1).tid = tid1 ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
alsf(tid).tid = tid, alsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), pcf(tid0) = I ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = A → w ≠ Some(tid0) → even(n1), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n1), pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → w ≠ Some(tid0), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 → odd(n1) → n1 = n, pcf(tid0) = B4 → even(n1), pcf(tid0) = I ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → n1 ≤ n, pcf(tid0) = S ∨ pcf(tid0) = I ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n), pcf(tid0) = W5 → w = Some(tid0), pcf(tid0) = W4 → even(n1) ∧ n = n1 + 1 ∧ w = Some(tid0), pcf(tid0) = W2 → even(n1), pcf(tid0) = R2 → n1 = n → mem(l) = v, pcf(tid0) = E2 → odd(n1), alsf(tid).beginIdx < # ags.memories → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories.last(alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories.last(alsf(tid).il)] ∧ apc0 = ReadResp, (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories)))
Used simplifier rules: c: ⊦ m + n = n + m; from specification nat-basic a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic ⊦ m < n + 1 ↔ ¬ n < m; (s) n0 ≤ n ⊦ n - n0 < m ↔ n < m + n0; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ m < 1 ↔ m = 0; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ 0 < m ↔ m ≠ 0; (s) n ≤ m ⊦ (m - n) + n0 = n1 ↔ m + n0 = n + n1; (s)
| alsf(tid).tid = tid, alsf(tid0).tid = tid0, (pcf(tid0) = S ⊃ NotStarted ;(pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ⊃ BeginPending ;(pcf(tid0) = I ⊃ Ready ;(pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 ⊃ ReadInv ;(pcf(tid0) = R3 ⊃ ReadResp ;(pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ⊃ WriteInv ;(pcf(tid0) = W6 ⊃ WriteResp;(pcf(tid0) = E1 ∨ pcf(tid0) = E2 ⊃ CommitInv;(pcf(tid0) = E3 ⊃ CommitResp;(pcf(tid0) = C ⊃ Committed;Aborted)))) ) ) ) ) ) ) = apcf(tid0), even(n) ↔ w = None, ReadInv = apcf(tid), lsf(tid0) = mkTMLls(tid0, n1, l, v), lsf(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), lsf0(tid) = mkTMLls(tid, n, alsf(tid).il, mem(alsf(tid).il)), pcf(tid) = R2, pcf0(tid) = R3, ags.memories ≠ [], ags0.memories ≠ [], tid ≠ tid0, TMS2LInv(ags, alsf(tid), ReadInv), TMS2LInv(ags, alsf(tid0), apcf(tid0)), alsf(tid).rdset ⊆ ags.memories.last, ¬ alsf(tid).il ∈ alsf(tid).wrset, w = None → mem = ags.memories.last, w = None → alsf(tid).wrset = ∅, pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags.memories)), pcf(tid0) = R3 → v = alsf(tid0).ov, pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R4 → l = alsf(tid0).il, pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 → l = alsf(tid0).il ∧ v = alsf(tid0).ov, even(n1) → alsf(tid0).wrset = ∅, pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → alsf(tid0).rdset = ∅ ∧ alsf(tid0).wrset = ∅, w ≠ Some(tid) → w = None, w = Some(tid) → odd(n), pcf(tid0) = I ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = A → w ≠ Some(tid0) → even(n1), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n1), pcf(tid0) = S ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 → w ≠ Some(tid0), pcf(tid0) = I ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 → odd(n1) → n1 = n, pcf(tid0) = B4 → even(n1), pcf(tid0) = I ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → n1 ≤ n, pcf(tid0) = S ∨ pcf(tid0) = I ∨ pcf(tid0) = B1 ∨ pcf(tid0) = B2 ∨ pcf(tid0) = B3 ∨ pcf(tid0) = B4 ∨ pcf(tid0) = R1 ∨ pcf(tid0) = R2 ∨ pcf(tid0) = R3 ∨ pcf(tid0) = R4 ∨ pcf(tid0) = E1 ∨ pcf(tid0) = E2 ∨ pcf(tid0) = E3 ∨ pcf(tid0) = W1 ∨ pcf(tid0) = W2 ∨ pcf(tid0) = W3 ∨ pcf(tid0) = W4 ∨ pcf(tid0) = W5 ∨ pcf(tid0) = W6 ∨ pcf(tid0) = C ∨ pcf(tid0) = A → w = Some(tid0) → odd(n), pcf(tid0) = W5 → w = Some(tid0), pcf(tid0) = W4 → even(n1) ∧ n = n1 + 1 ∧ w = Some(tid0), pcf(tid0) = W2 → even(n1), pcf(tid0) = R2 → n1 = n → mem(l) = v, pcf(tid0) = E2 → odd(n1), alsf(tid).beginIdx < # ags.memories → ags0 = ags ∧ als0 = (alsf(tid).ov:= ags.memories.last(alsf(tid).il)).rdset:= alsf(tid).rdset[alsf(tid).il := ags.memories.last(alsf(tid).il)] ∧ apc0 = ReadResp, (w = Some(tid) ⊃ alsf(tid).wrset ⊆ ags.memories.last ⊕ alsf(tid).wrset ∧ mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(n);alsf(tid).wrset = ∅), (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ), ∀ tid1. lsf(tid1).tid = tid1, ∀ tid1. alsf(tid1).tid = tid1, ∀ tid1. tid1 ≠ tid ∧ tid1 ≠ tid0 → TMLLInv(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1)) ∧ TMS2LInv(ags, alsf(tid1), apcf(tid1)) ∧ labs(mkTMLgs(mem, n, w), lsf(tid1), pcf(tid1), ags, alsf(tid1), apcf(tid1)) ⊦ (w = None → mem = ags0.memories.last) ∧ (w = Some(tid0) ⊃ (pcf(tid0) ≠ W4 → odd(n1)) ∧ alsf(tid0).wrset ⊆ ags0.memories.last ⊕ alsf(tid0).wrset ∧ mem = ags0.memories.last ⊕ alsf(tid0).wrset ∧ odd(n) ;pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C → alsf(tid0).wrset = ∅ ) ∧ ( pcf(tid0) ≠ E3 ∧ pcf(tid0) ≠ C ∧ pcf(tid0) ≠ A ∧ pcf(tid0) ≠ B1 ∧ pcf(tid0) ≠ S → (n = n1 ∨ pcf(tid0) = W4 ⊃ alsf(tid0).rdset ⊆ ags0.memories.last;∃valid(alsf(tid0).beginIdx, alsf(tid0).rdset, ags0.memories))) |
⊦ TMS2LInv(gs, ls, pc) ↔ pc = Ready ∨ pc = BeginPending ∨ pc = CommitResp ∨ pc = ReadResp ∨ pc = WriteResp ∨ pc = CommitInv ∨ pc = ReadInv ∨ pc = WriteInv ∨ pc = CancelPending ∨ pc = Committed ∨ pc = Aborted → ls.beginIdx < # gs.memories
Used simplifier rules: ⊦ ReadInv ≠ Ready; (s) ⊦ BeginPending ≠ ReadInv; (s) ⊦ CommitResp ≠ ReadInv; (s) ⊦ ReadInv ≠ ReadResp; (s) ⊦ ReadInv ≠ WriteResp; (s) ⊦ CommitInv ≠ ReadInv; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) Used terms: ags, alsf(tid), ReadInv
| ⊦ TMS2LInv(gs, ls, pc) ↔ pc = Ready ∨ pc = BeginPending ∨ pc = CommitResp ∨ pc = ReadResp ∨ pc = WriteResp ∨ pc = CommitInv ∨ pc = ReadInv ∨ pc = WriteInv ∨ pc = CancelPending ∨ pc = Committed ∨ pc = Aborted → ls.beginIdx < # gs.memories |
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.