| TMLInv(gs, lsf, pcf), TMLInv(gs0, lsf0, pcf0), TMS2Inv(ags, alsf, apcf), ls = lsf(tid), pc = pcf(tid), pre(gs, ls, pc, a), gs0 = gstepf(gs, ls, pc, a), ls0 = lstepf(gs, ls, pc, a), pc0 = pcstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pcf0 = pcf(tid := pc0), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ren(a, ags, alsf) = aa, aa ≠ τ, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apcf0 = apcf(tid := apc0) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLInv(gs, lsf, pcf), TMS2Inv(ags, alsf, apcf), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLInv(gs, lsf, pcf), TMS2Inv(ags, alsf, apcf), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ TMLInv(gs, lsf, pcf) ↔ TMLGInv(gs) ∧ (∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)))
ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, aa ≠ τ, TMLGInv(gs), TMLInv(gs0, lsf0, pcf0), TMS2Inv(ags, alsf, apcf), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: gs, lsf, pcf
| ⊦ TMLInv(gs, lsf, pcf) ↔ TMLGInv(gs) ∧ (∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid))) |
| ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, aa ≠ τ, TMLGInv(gs), TMLInv(gs0, lsf0, pcf0), TMS2Inv(ags, alsf, apcf), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ TMLGInv(gs) ↔ even(gs.glb) ↔ gs.w = None
even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMS2Inv(ags, alsf, apcf), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: gs
| ⊦ TMLGInv(gs) ↔ even(gs.glb) ↔ gs.w = None |
| even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMS2Inv(ags, alsf, apcf), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ TMS2Inv(gs, lsf, pcf) ↔ TMS2GInv(gs) ∧ (∀ tid. lsf(tid).tid = tid ∧ TMS2LInv(gs, lsf(tid), pcf(tid)))
even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMS2GInv(ags), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: ags, alsf, apcf
| ⊦ TMS2Inv(gs, lsf, pcf) ↔ TMS2GInv(gs) ∧ (∀ tid. lsf(tid).tid = tid ∧ TMS2LInv(gs, lsf(tid), pcf(tid))) |
| even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMS2GInv(ags), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ TMS2GInv(gs) ↔ gs.memories ≠ []
even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: ags
| ⊦ TMS2GInv(gs) ↔ gs.memories ≠ [] |
| even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMS2LInv(ags, alsf(tid), apcf(tid)), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: tid
| alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMS2LInv(ags, alsf(tid), apcf(tid)), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: tid
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ gabs(gs0, lsf0, pcf0, ags0, alsf0, apcf0) ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ gabs(gs, lsf, pcf, ags, alsf, apcf) ↔ true
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: lsf0, ags0, alsf0, gs0, apcf0, pcf0
| ⊦ gabs(gs, lsf, pcf, ags, alsf, apcf) ↔ true |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), gabs(gs, lsf, pcf, ags, alsf, apcf), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ gabs(gs, lsf, pcf, ags, alsf, apcf) ↔ true
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: lsf, ags, alsf, gs, apcf, pcf
| ⊦ gabs(gs, lsf, pcf, ags, alsf, apcf) ↔ true |
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0) ∧ (∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0) ∧ (∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)))
Used formulas: (∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0) ∧ (∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0) ∧ (∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)))
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ 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
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: ags, alsf(tid), apcf(tid)
| ⊦ 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 |
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ 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))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: gs, lsf(tid), pcf(tid)
| ⊦ 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)) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = B4, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = E1, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = E3, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = I, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = R2, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = R3, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = R4, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = S, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = W3, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = W5, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = W6, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-doCommitWriter: ⊦ ren(doCommitWriter(tid), ags, alsf) = callDoCommitWriter(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; TMLPC freely generated by A, B1, B2, B3, B4, C, E1, E2, E3, I, R1, R2, R3, R4, S, W1, W2, W3, W4, W5, W6 ;; ⊦ pre(gs, ls, W4, a) ↔ a = τ; (s) ⊦ odd(n) → ¬ even(n); (s) ⊦ even(n) → ¬ odd(n); (s) ⊦ pcstepf(gs, ls, W4, a) = W5; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ mem ⊕ ∅ = mem; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ A ≠ W4; (s) ⊦ C ≠ W4; (s) ⊦ W4 ≠ W6; (s) ⊦ W4 ≠ W5; (s) ⊦ W3 ≠ W4; (s) ⊦ W2 ≠ W4; (s) ⊦ W1 ≠ W4; (s) ⊦ E3 ≠ W4; (s) ⊦ E2 ≠ W4; (s) ⊦ E1 ≠ W4; (s) ⊦ R4 ≠ W4; (s) ⊦ R3 ≠ W4; (s) ⊦ R2 ≠ W4; (s) ⊦ R1 ≠ W4; (s) ⊦ I ≠ W4; (s) ⊦ B4 ≠ W4; (s) ⊦ B3 ≠ W4; (s) ⊦ B2 ≠ W4; (s) ⊦ B1 ≠ W4; (s) ⊦ S ≠ W4; (s) ⊦ Some(t) ≠ None; (s) ⊦ pre(gs, ls, W2, a) ↔ a = τ; (s) ⊦ I ≠ W2; (s) ⊦ B2 ≠ W2; (s) ⊦ B3 ≠ W2; (s) ⊦ B4 ≠ W2; (s) ⊦ W1 ≠ W2; (s) ⊦ R1 ≠ W2; (s) ⊦ R2 ≠ W2; (s) ⊦ R4 ≠ W2; (s) ⊦ R3 ≠ W2; (s) ⊦ E3 ≠ W2; (s) ⊦ C ≠ W2; (s) ⊦ A ≠ W2; (s) ⊦ B1 ≠ W2; (s) ⊦ S ≠ W2; (s) ⊦ pcstepf(gs, ls, W2, a) = (ls.loc = gs.glb ⊃ W4;W3); (s) ⊦ W2 ≠ W5; (s) ⊦ E2 ≠ W2; (s) ⊦ pre(gs, ls, W1, a) ↔ a = τ; (s) ⊦ I ≠ W1; (s) ⊦ B2 ≠ W1; (s) ⊦ B3 ≠ W1; (s) ⊦ B4 ≠ W1; (s) ⊦ R1 ≠ W1; (s) ⊦ R2 ≠ W1; (s) ⊦ R4 ≠ W1; (s) ⊦ R3 ≠ W1; (s) ⊦ E3 ≠ W1; (s) ⊦ C ≠ W1; (s) ⊦ A ≠ W1; (s) ⊦ B1 ≠ W1; (s) ⊦ S ≠ W1; (s) ⊦ pcstepf(gs, ls, W1, a) = (even(ls.loc) ⊃ W2;W5); (s) ⊦ pre(gs, ls, R1, a) ↔ a = τ; (s) ⊦ I ≠ R1; (s) ⊦ B2 ≠ R1; (s) ⊦ B3 ≠ R1; (s) ⊦ B4 ≠ R1; (s) ⊦ R1 ≠ W3; (s) ⊦ R1 ≠ W5; (s) ⊦ R1 ≠ R3; (s) ⊦ E3 ≠ R1; (s) ⊦ C ≠ R1; (s) ⊦ A ≠ R1; (s) ⊦ B1 ≠ R1; (s) ⊦ R1 ≠ S; (s) ⊦ pcstepf(gs, ls, R1, a) = R2; (s) ⊦ pre(gs, ls, E2, a) ↔ a = doCommitWriter(ls.tid); (s) ⊦ E2 ≠ I; (s) ⊦ E2 ≠ W6; (s) ⊦ E1 ≠ E2; (s) ⊦ E2 ≠ W1; (s) ⊦ E2 ≠ W3; (s) ⊦ E2 ≠ W5; (s) ⊦ E2 ≠ R1; (s) ⊦ E2 ≠ R4; (s) ⊦ E2 ≠ R3; (s) ⊦ C ≠ E2; (s) ⊦ A ≠ E2; (s) ⊦ gstepf(gs, ls, E2, a) = (gs.glb:= (ls.loc + 1)).w:= None; (s) ⊦ lstepf(gs, ls, E2, a) = ls; (s) ⊦ pcstepf(gs, ls, E2, a) = E3; (s) ⊦ B3 ≠ E2; (s) ⊦ B2 ≠ E2; (s) ⊦ B1 ≠ E2; (s) ⊦ E2 ≠ S; (s) ⊦ B4 ≠ E2; (s) ⊦ callDoCommitWriter(tid) ≠ τ; (s) ⊦ m ≤ m; (s) ⊦ E2 ≠ R2; (s) ⊦ pre(gs, ls, CommitInv, a) ↔ a = callDoCommitReadOnly(ls.tid) ∧ ls.wrset = ∅ ∧ ∃valid(ls.beginIdx, ls.rdset, gs.memories) ∨ a = callDoCommitWriter(ls.tid) ∧ ls.rdset ⊆ gs.memories.last ∨ a = callRetAbort(ls.tid); (s) ⊦ callDoCommitReadOnly(tid) ≠ callDoCommitWriter(tid0); (s) ⊦ callDoCommitWriter(tid) = callDoCommitWriter(tid0) ↔ tid = tid0; (s) ⊦ ls.tid = tid → gstepf(gs, ls, CommitInv, callDoCommitWriter(tid)) = gs.memories:= (gs.memories + (gs.memories.last ⊕ ls.wrset)); (s) ⊦ x + a = x + a '; (s) ⊦ ls.tid = tid → lstepf(gs, ls, CommitInv, callDoCommitWriter(tid)) = ls; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, CommitInv, callDoCommitWriter(tid)) = CommitResp; (s) ⊦ E3 ≠ I; (s) ⊦ E3 ≠ W6; (s) ⊦ E1 ≠ E3; (s) ⊦ E2 ≠ E3; (s) ⊦ E3 ≠ S; (s) ⊦ B1 ≠ E3; (s) ⊦ B2 ≠ E3; (s) ⊦ B3 ≠ E3; (s) ⊦ B4 ≠ E3; (s) ⊦ E3 ≠ W3; (s) ⊦ E3 ≠ W5; (s) ⊦ E3 ≠ R2; (s) ⊦ E3 ≠ R4; (s) ⊦ E3 ≠ R3; (s) ⊦ (gs.w:= w).mem = gs.mem; (s) ⊦ (gs.glb:= glb).mem = gs.mem; (s) ⊦ (gs.memories:= memories).memories = memories; (s) ⊦ (x + a ').last = a; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[memlist] ⊦ (gs.w:= w).glb = gs.glb; (s) ⊦ (gs.glb:= glb).glb = glb; (s) ⊦ even(n + 1) ↔ odd(n); (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ (gs.w:= w).w = w; (s) ⊦ pre(gs, ls, C, a) ↔ false; (s) ⊦ pre(gs, ls, B3, a) ↔ a = τ; (s) ⊦ B2 ≠ B3; (s) ⊦ B3 ≠ W3; (s) ⊦ B3 ≠ R2; (s) ⊦ B3 ≠ R4; (s) ⊦ B3 ≠ R3; (s) ⊦ B3 ≠ C; (s) ⊦ A ≠ B3; (s) ⊦ B1 ≠ B3; (s) ⊦ B3 ≠ S; (s) ⊦ pcstepf(gs, ls, B3, a) = B2; (s) ⊦ B3 ≠ W5; (s) ⊦ pre(gs, ls, B2, a) ↔ a = τ; (s) ⊦ B2 ≠ W3; (s) ⊦ B2 ≠ R2; (s) ⊦ B2 ≠ R4; (s) ⊦ B2 ≠ R3; (s) ⊦ B2 ≠ C; (s) ⊦ A ≠ B2; (s) ⊦ B1 ≠ B2; (s) ⊦ B2 ≠ S; (s) ⊦ pcstepf(gs, ls, B2, a) = (odd(ls.loc) ⊃ B3;B4); (s) ⊦ B2 ≠ W5; (s) ⊦ pre(gs, ls, B1, a) ↔ a = τ; (s) ⊦ B1 ≠ S; (s) ⊦ B1 ≠ W3; (s) ⊦ B1 ≠ R2; (s) ⊦ B1 ≠ R4; (s) ⊦ B1 ≠ R3; (s) ⊦ B1 ≠ C; (s) ⊦ A ≠ B1; (s) ⊦ pcstepf(gs, ls, B1, a) = B2; (s) ⊦ B1 ≠ W5; (s) ⊦ pre(gs, ls, A, a) ↔ false; (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = B4, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = B4, pcf0(tid) = I, apcf(tid) = apc, (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetTMBegin(ls.tid)), ags0.memories ≠ [], pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)), true, ls.tid = als.tid ∧ abspc(B4) = apc ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = als.il) ∧ (B4 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → als.wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetTMBegin(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(I) = apc0 ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls0.l = als0.il) ∧ (I = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (I ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;I ≠ E3 ∧ I ≠ C → als0.wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs0.glb = ls0.loc ∨ I = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = B4, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = B4 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(B4) = apcf(tid) ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = alsf(tid).il) ∧ (B4 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retTMBEGIN: ⊦ ren(retTMBEGIN(tid), ags, alsf) = callRetTMBegin(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, pc, callRetTMBegin(tid)) ↔ pc = BeginPending ∧ ls.tid = tid; (s) ⊦ even(n) → ¬ odd(n); (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ B4 ≠ E2; (s) ⊦ B4 ≠ W4; (s) ⊦ B4 ≠ W5; (s) ⊦ pre(gs, ls, B4, a) ↔ a = retTMBEGIN(ls.tid); (s) ⊦ B4 ≠ E3; (s) ⊦ B4 ≠ C; (s) ⊦ A ≠ B4; (s) ⊦ B1 ≠ B4; (s) ⊦ B4 ≠ S; (s) ⊦ ∅ ⊆ mem; (s) ⊦ beginIdx < # memories → ∃valid(beginIdx, ∅, memories); (ss) ⊦ B4 ≠ W1; (s) ⊦ B4 ≠ W2; (s) ⊦ B4 ≠ W3; (s) ⊦ B4 ≠ R3; (s) ⊦ B4 ≠ R1; (s) ⊦ B4 ≠ R2; (s) ⊦ B4 ≠ R4; (s) ⊦ pre(gs, ls, BeginPending, a) ↔ a = callRetTMBegin(ls.tid) ∨ a = callRetAbort(ls.tid); (s) ⊦ pcstepf(gs, ls, B4, a) = I; (s) ⊦ gstepf(gs, ls, BeginPending, a) = gs; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, BeginPending, callRetTMBegin(tid)) = Ready; (s) ⊦ callRetTMBegin(tid) ≠ τ; (s) ⊦ callRetTMBegin(tid) = callRetTMBegin(tid0) ↔ tid = tid0; (s) ⊦ ls.tid = tid → lstepf(gs, ls, BeginPending, callRetTMBegin(tid)) = ls; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R2; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ B1 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ I ≠ W4; (s) Used terms: lsf, ags, apcf(tid), ags0, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, ls, apc0, lsf0
| 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) = B4, pcf0(tid) = I, apcf(tid) = apc, (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetTMBegin(ls.tid)), ags0.memories ≠ [], pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)), true, ls.tid = als.tid ∧ abspc(B4) = apc ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = als.il) ∧ (B4 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → als.wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetTMBegin(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(I) = apc0 ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls0.l = als0.il) ∧ (I = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (I ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;I ≠ E3 ∧ I ≠ C → als0.wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs0.glb = ls0.loc ∨ I = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = B4, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = B4 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(B4) = apcf(tid) ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = alsf(tid).il) ∧ (B4 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, B4 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, B4, a), ls = lsf(tid), ls0 = lstepf(gs, ls, B4, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, B4, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, B4, ags, alsf(tid), apcf(tid)), pre(gs, ls, B4, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = B4 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(B4) = apcf(tid) ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = alsf(tid).il) ∧ (B4 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, B4 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, B4, a), ls = lsf(tid), ls0 = lstepf(gs, ls, B4, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, B4, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, B4, ags, alsf(tid), apcf(tid)), pre(gs, ls, B4, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = B4 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(B4) = apcf(tid) ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = alsf(tid).il) ∧ (B4 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ pre(gs, ls, B4, a) ↔ a = retTMBEGIN(ls.tid)
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, B4 = pcf(tid), a = retTMBEGIN(ls.tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, B4, a), ls = lsf(tid), ls0 = lstepf(gs, ls, B4, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, B4, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, B4, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = B4 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(B4) = apcf(tid) ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = alsf(tid).il) ∧ (B4 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used terms: gs, ls, a
| ⊦ pre(gs, ls, B4, a) ↔ a = retTMBEGIN(ls.tid) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, B4 = pcf(tid), a = retTMBEGIN(ls.tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, B4, a), ls = lsf(tid), ls0 = lstepf(gs, ls, B4, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, B4, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, B4, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = B4 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(B4) = apcf(tid) ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = alsf(tid).il) ∧ (B4 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, B4 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)), pcf0 = pcf(tid := pc0), ren(retTMBEGIN(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, B4, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = B4 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(B4) = apcf(tid) ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = alsf(tid).il) ∧ (B4 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, B4 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)), pcf0 = pcf(tid := pc0), ren(retTMBEGIN(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, B4, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = B4 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ even(ls.loc) ∧ gs.w ≠ Some(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ I = pcstepf(gs, ls, B4, retTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(B4) = apcf(tid) ∧ (B4 = S ∨ B4 = B1 ∨ B4 = B2 ∨ B4 = B3 ∨ B4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (B4 = W1 ∨ B4 = W2 ∨ B4 = W3 ∨ B4 = W4 ∨ B4 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (B4 = R1 ∨ B4 = R2 ∨ B4 = R4 → ls.l = alsf(tid).il) ∧ (B4 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (B4 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;B4 ≠ E3 ∧ B4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( B4 ≠ E3 ∧ B4 ≠ C ∧ B4 ≠ A ∧ B4 ≠ B1 ∧ B4 ≠ S → (gs.glb = ls.loc ∨ B4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retTMBEGIN: ⊦ ren(retTMBEGIN(tid), ags, alsf) = callRetTMBegin(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ callRetTMBegin(tid) ≠ τ; (s) ⊦ mkTMLls(tid, loc, l, v) = mkTMLls(tid0, loc0, l0, v0) ↔ tid = tid0 ∧ loc = loc0 ∧ l = l0 ∧ v = v0; (ws) ⊦ pre(gs, ls, B4, a) ↔ a = retTMBEGIN(ls.tid); (s) ⊦ retTMBEGIN(tid) = retTMBEGIN(tid0) ↔ tid = tid0; (s) ⊦ B2 ≠ B4; (s) ⊦ B3 ≠ B4; (s) ⊦ B4 ≠ W1; (s) ⊦ B4 ≠ W2; (s) ⊦ B4 ≠ W3; (s) ⊦ B4 ≠ R1; (s) ⊦ B4 ≠ R4; (s) ⊦ B4 ≠ R3; (s) ⊦ even(n) → ¬ odd(n); (s) ⊦ B4 ≠ E3; (s) ⊦ B4 ≠ C; (s) ⊦ A ≠ B4; (s) ⊦ B1 ≠ B4; (s) ⊦ B4 ≠ S; (s) ⊦ pre(gs, ls, pc, callRetTMBegin(tid)) ↔ pc = BeginPending ∧ ls.tid = tid; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), B4, retTMBEGIN(tid)) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), B4, retTMBEGIN(tid)) = mkTMLls(tid, loc, l, v); (s) ⊦ pcstepf(gs, ls, B4, a) = I; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R2; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ B1 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ I ≠ W4; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ B4 ≠ E2; (s) ⊦ B4 ≠ W4; (s) ⊦ B4 ≠ W5; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ B4 ≠ R2; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, BeginPending, callRetTMBegin(tid)) = Ready; (s) ⊦ ls.tid = tid → lstepf(gs, ls, BeginPending, callRetTMBegin(tid)) = ls; (s) ⊦ gstepf(gs, ls, BeginPending, a) = gs; (s) ⊦ ∅ ⊆ mem; (s) ⊦ beginIdx < # memories → ∃valid(beginIdx, ∅, memories); (ss)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = E1, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
even(ls.loc), 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) = E1, pcf0(tid) = E3, apcf(tid) = apc, (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 ∧ (gs0.w = Some(tid) → odd(ls0.loc)), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callDoCommitReadOnly(ls.tid)) → ags0 = gstepf(ags, als, apc, callDoCommitReadOnly(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callDoCommitReadOnly(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callDoCommitReadOnly(ls.tid)), ags0.memories ≠ [], pre(gs, ls, E1, doCommitReadOnly(ls.tid)) ∧ gs0 = gstepf(gs, ls, E1, doCommitReadOnly(ls.tid)) ∧ ls0 = lstepf(gs, ls, E1, doCommitReadOnly(ls.tid)) ∧ E3 = pcstepf(gs, ls, E1, doCommitReadOnly(ls.tid)), true, ls.tid = als.tid ∧ abspc(E1) = apc ∧ (E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls.l = als.il) ∧ (E1 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (E1 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als.wrset = ∅ ) ∧ ( E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs.glb = ls.loc ∨ E1 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callDoCommitReadOnly(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(E3) = apc0 ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → ls0.l = als0.il) ∧ (E3 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (E3 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E3 ≠ E3 ∧ E3 ≠ C → als0.wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs0.glb = ls0.loc ∨ E3 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = E1, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), even(lsf(tid).loc) ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = E1 ∧ pcf0(tid) = E3 ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callDoCommitReadOnly(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callDoCommitReadOnly(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callDoCommitReadOnly(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callDoCommitReadOnly(lsf(tid).tid))) ∧ pre(gs, lsf(tid), E1, doCommitReadOnly(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), E1, doCommitReadOnly(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), E1, doCommitReadOnly(lsf(tid).tid)) ∧ E3 = pcstepf(gs, lsf(tid), E1, doCommitReadOnly(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(E1) = apcf(tid) ∧ (E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → lsf(tid).l = alsf(tid).il) ∧ (E1 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (E1 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;E1 ≠ E3 ∧ E1 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs.glb = lsf(tid).loc ∨ E1 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-tau: ⊦ ren(τ, ags, alsf) = τ; ren-doCommitReadOnly: ⊦ ren(doCommitReadOnly(tid), ags, alsf) = callDoCommitReadOnly(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, pc, callDoCommitReadOnly(tid)) ↔ pc = CommitInv ∧ ls.tid = tid ∧ ls.wrset = ∅ ∧ ∃valid(ls.beginIdx, ls.rdset, gs.memories); (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ E1 ≠ I; (s) ⊦ E1 ≠ W6; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ pre(gs, ls, E1, a) ↔ a = (even(ls.loc) ⊃ doCommitReadOnly(ls.tid);τ); (s) ⊦ E1 ≠ E2; (s) ⊦ C ≠ E1; (s) ⊦ A ≠ E1; (s) ⊦ ∅ ⊆ mem; (s) ⊦ mem ⊕ ∅ = mem; (s) ⊦ E1 ≠ R3; (s) ⊦ E1 ≠ R1; (s) ⊦ E1 ≠ R2; (s) ⊦ E1 ≠ R4; (s) ⊦ E1 ≠ W1; (s) ⊦ E1 ≠ W2; (s) ⊦ E1 ≠ W3; (s) ⊦ E1 ≠ W4; (s) ⊦ E1 ≠ W5; (s) ⊦ E1 ≠ S; (s) ⊦ B1 ≠ E1; (s) ⊦ B2 ≠ E1; (s) ⊦ B3 ≠ E1; (s) ⊦ B4 ≠ E1; (s) ⊦ pre(gs, ls, CommitInv, a) ↔ a = callDoCommitReadOnly(ls.tid) ∧ ls.wrset = ∅ ∧ ∃valid(ls.beginIdx, ls.rdset, gs.memories) ∨ a = callDoCommitWriter(ls.tid) ∧ ls.rdset ⊆ gs.memories.last ∨ a = callRetAbort(ls.tid); (s) ⊦ gstepf(gs, ls, E1, a) = gs; (s) ⊦ lstepf(gs, ls, E1, a) = ls; (s) ⊦ pcstepf(gs, ls, E1, a) = (odd(ls.loc) ⊃ E2;E3); (s) ⊦ ls.tid = tid → pcstepf(gs, ls, CommitInv, callDoCommitReadOnly(tid)) = CommitResp; (s) ⊦ odd(n) → ¬ even(n); (s) ⊦ callDoCommitReadOnly(tid) ≠ τ; (s) ⊦ callDoCommitReadOnly(tid) = callDoCommitReadOnly(tid0) ↔ tid = tid0; (s) ⊦ ls.tid = tid → gstepf(gs, ls, CommitInv, callDoCommitReadOnly(tid)) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, CommitInv, callDoCommitReadOnly(tid)) = ls; (s) ⊦ E3 ≠ I; (s) ⊦ E3 ≠ W6; (s) ⊦ E1 ≠ E3; (s) ⊦ E2 ≠ E3; (s) ⊦ E3 ≠ S; (s) ⊦ B1 ≠ E3; (s) ⊦ B2 ≠ E3; (s) ⊦ B3 ≠ E3; (s) ⊦ B4 ≠ E3; (s) ⊦ E3 ≠ W1; (s) ⊦ E3 ≠ W2; (s) ⊦ E3 ≠ W3; (s) ⊦ E3 ≠ W5; (s) ⊦ E3 ≠ R1; (s) ⊦ E3 ≠ R2; (s) ⊦ E3 ≠ R4; (s) ⊦ E3 ≠ R3; (s) ⊦ E3 ≠ W4; (s) ⊦ even(n) → ¬ odd(n); (s) Used terms: lsf, ags, apcf(tid), ags, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, lsf(tid), apc0, lsf0
| even(ls.loc), 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) = E1, pcf0(tid) = E3, apcf(tid) = apc, (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 ∧ (gs0.w = Some(tid) → odd(ls0.loc)), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callDoCommitReadOnly(ls.tid)) → ags0 = gstepf(ags, als, apc, callDoCommitReadOnly(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callDoCommitReadOnly(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callDoCommitReadOnly(ls.tid)), ags0.memories ≠ [], pre(gs, ls, E1, doCommitReadOnly(ls.tid)) ∧ gs0 = gstepf(gs, ls, E1, doCommitReadOnly(ls.tid)) ∧ ls0 = lstepf(gs, ls, E1, doCommitReadOnly(ls.tid)) ∧ E3 = pcstepf(gs, ls, E1, doCommitReadOnly(ls.tid)), true, ls.tid = als.tid ∧ abspc(E1) = apc ∧ (E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls.l = als.il) ∧ (E1 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (E1 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als.wrset = ∅ ) ∧ ( E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs.glb = ls.loc ∨ E1 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callDoCommitReadOnly(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(E3) = apc0 ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → ls0.l = als0.il) ∧ (E3 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (E3 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E3 ≠ E3 ∧ E3 ≠ C → als0.wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs0.glb = ls0.loc ∨ E3 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = E1, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), even(lsf(tid).loc) ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = E1 ∧ pcf0(tid) = E3 ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callDoCommitReadOnly(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callDoCommitReadOnly(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callDoCommitReadOnly(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callDoCommitReadOnly(lsf(tid).tid))) ∧ pre(gs, lsf(tid), E1, doCommitReadOnly(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), E1, doCommitReadOnly(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), E1, doCommitReadOnly(lsf(tid).tid)) ∧ E3 = pcstepf(gs, lsf(tid), E1, doCommitReadOnly(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(E1) = apcf(tid) ∧ (E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → lsf(tid).l = alsf(tid).il) ∧ (E1 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (E1 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;E1 ≠ E3 ∧ E1 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs.glb = lsf(tid).loc ∨ E1 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = E1, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ¬ TMS2LInv(ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doCommitReadOnly: ⊦ ren(doCommitReadOnly(tid), ags, alsf) = callDoCommitReadOnly(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, E1, a) ↔ a = (even(ls.loc) ⊃ doCommitReadOnly(ls.tid);τ); (s) ⊦ E1 ≠ I; (s) ⊦ E1 ≠ W6; (s) ⊦ B2 ≠ E1; (s) ⊦ B3 ≠ E1; (s) ⊦ B4 ≠ E1; (s) ⊦ E1 ≠ W1; (s) ⊦ E1 ≠ W2; (s) ⊦ E1 ≠ W3; (s) ⊦ E1 ≠ W5; (s) ⊦ E1 ≠ R1; (s) ⊦ E1 ≠ R2; (s) ⊦ E1 ≠ R4; (s) ⊦ E1 ≠ R3; (s) ⊦ E1 ≠ W4; (s) ⊦ E1 ≠ E3; (s) ⊦ C ≠ E1; (s) ⊦ A ≠ E1; (s) ⊦ B1 ≠ E1; (s) ⊦ E1 ≠ S; (s) ⊦ E2 ≠ E3; (s) ⊦ odd(n) → ¬ even(n); (s) ⊦ gstepf(gs, ls, E1, a) = gs; (s) ⊦ lstepf(gs, ls, E1, a) = ls; (s) ⊦ pcstepf(gs, ls, E1, a) = (odd(ls.loc) ⊃ E2;E3); (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ Some(t) ≠ None; (s) ⊦ doCommitReadOnly(tid) = doCommitReadOnly(tid0) ↔ tid = tid0; (s) ⊦ pre(gs, ls, pc, callDoCommitReadOnly(tid)) ↔ pc = CommitInv ∧ ls.tid = tid ∧ ls.wrset = ∅ ∧ ∃valid(ls.beginIdx, ls.rdset, gs.memories); (s) ⊦ callDoCommitReadOnly(tid) ≠ τ; (s) ⊦ E1 ≠ E2; (s) ⊦ pre(gs, ls, CommitInv, a) ↔ a = callDoCommitReadOnly(ls.tid) ∧ ls.wrset = ∅ ∧ ∃valid(ls.beginIdx, ls.rdset, gs.memories) ∨ a = callDoCommitWriter(ls.tid) ∧ ls.rdset ⊆ gs.memories.last ∨ a = callRetAbort(ls.tid); (s) ⊦ callDoCommitReadOnly(tid) = callDoCommitReadOnly(tid0) ↔ tid = tid0; (s) ⊦ E3 ≠ I; (s) ⊦ E3 ≠ W6; (s) ⊦ E3 ≠ S; (s) ⊦ B1 ≠ E3; (s) ⊦ B2 ≠ E3; (s) ⊦ B3 ≠ E3; (s) ⊦ B4 ≠ E3; (s) ⊦ E3 ≠ W1; (s) ⊦ E3 ≠ W2; (s) ⊦ E3 ≠ W3; (s) ⊦ E3 ≠ W5; (s) ⊦ E3 ≠ R1; (s) ⊦ E3 ≠ R2; (s) ⊦ E3 ≠ R4; (s) ⊦ E3 ≠ R3; (s) ⊦ E3 ≠ W4; (s) ⊦ even(n) → ¬ odd(n); (s) ⊦ ls.tid = tid → gstepf(gs, ls, CommitInv, callDoCommitReadOnly(tid)) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, CommitInv, callDoCommitReadOnly(tid)) = ls; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, CommitInv, callDoCommitReadOnly(tid)) = CommitResp; (s) ⊦ odd(n) ↔ ¬ even(n); (ss) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < n → (n ≤ m ↔ false); (s) ⊦ even(n) ↔ ¬ odd(n); (ss) ⊦ m ≠ n → (m ≤ n ↔ m < n); (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = E1, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ¬ TMS2LInv(ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ 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: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m ≤ n → (n < m ↔ false); (s) Used terms: ags, alsf(tid), apcf(tid)
| ⊦ 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 |
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = E3, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = E3, pcf0(tid) = C, apcf(tid) = apc, (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ (gs.w = Some(tid) → odd(ls.loc)), (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetTMEnd(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetTMEnd(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetTMEnd(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetTMEnd(ls.tid)), ags0.memories ≠ [], pre(gs, ls, E3, retTMEND(ls.tid)) ∧ gs0 = gstepf(gs, ls, E3, retTMEND(ls.tid)) ∧ ls0 = lstepf(gs, ls, E3, retTMEND(ls.tid)) ∧ C = pcstepf(gs, ls, E3, retTMEND(ls.tid)), true, ls.tid = als.tid ∧ abspc(E3) = apc ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → ls.l = als.il) ∧ (E3 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (E3 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;E3 ≠ E3 ∧ E3 ≠ C → als.wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs.glb = ls.loc ∨ E3 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetTMEnd(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(C) = apc0 ∧ (C = S ∨ C = B1 ∨ C = B2 ∨ C = B3 ∨ C = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (C = W1 ∨ C = W2 ∨ C = W3 ∨ C = W4 ∨ C = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (C = R1 ∨ C = R2 ∨ C = R4 → ls0.l = als0.il) ∧ (C = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (C ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;C ≠ E3 ∧ C ≠ C → als0.wrset = ∅ ) ∧ ( C ≠ E3 ∧ C ≠ C ∧ C ≠ A ∧ C ≠ B1 ∧ C ≠ S → (gs0.glb = ls0.loc ∨ C = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = E3, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = E3 ∧ pcf0(tid) = C ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid))) ∧ pre(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ C = pcstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(E3) = apcf(tid) ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (E3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (E3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;E3 ≠ E3 ∧ E3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs.glb = lsf(tid).loc ∨ E3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retTMEND: ⊦ ren(retTMEND(tid), ags, alsf) = callRetTMEnd(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, E3, a) ↔ a = retTMEND(ls.tid); (s) ⊦ E3 ≠ I; (s) ⊦ E1 ≠ E3; (s) ⊦ E3 ≠ W6; (s) ⊦ A ≠ E3; (s) ⊦ E3 ≠ R3; (s) ⊦ E3 ≠ R1; (s) ⊦ E3 ≠ R4; (s) ⊦ E3 ≠ W1; (s) ⊦ E3 ≠ W3; (s) ⊦ E3 ≠ S; (s) ⊦ B1 ≠ E3; (s) ⊦ B2 ≠ E3; (s) ⊦ B3 ≠ E3; (s) ⊦ B4 ≠ E3; (s) ⊦ E2 ≠ E3; (s) ⊦ E3 ≠ R2; (s) ⊦ E3 ≠ W2; (s) ⊦ E3 ≠ W4; (s) ⊦ E3 ≠ W5; (s) ⊦ pcstepf(gs, ls, E3, a) = C; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ ls.tid = tid → pcstepf(gs, ls, CommitResp, callRetTMEnd(tid)) = Committed; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ callRetTMEnd(tid) ≠ τ; (s) ⊦ pre(gs, ls, CommitResp, a) ↔ a = callRetTMEnd(ls.tid); (s) ⊦ callRetTMEnd(tid) = callRetTMEnd(tid0) ↔ tid = tid0; (s) ⊦ ls.tid = tid → gstepf(gs, ls, CommitResp, callRetTMEnd(tid)) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, CommitResp, callRetTMEnd(tid)) = ls; (s) ⊦ C ≠ I; (s) ⊦ C ≠ W6; (s) ⊦ C ≠ E1; (s) ⊦ C ≠ E2; (s) ⊦ C ≠ S; (s) ⊦ B1 ≠ C; (s) ⊦ B2 ≠ C; (s) ⊦ B3 ≠ C; (s) ⊦ B4 ≠ C; (s) ⊦ C ≠ W1; (s) ⊦ C ≠ W2; (s) ⊦ C ≠ W3; (s) ⊦ C ≠ W5; (s) ⊦ C ≠ R1; (s) ⊦ C ≠ R2; (s) ⊦ C ≠ R4; (s) ⊦ C ≠ R3; (s) ⊦ C ≠ W4; (s) ⊦ C ≠ E3; (s) Used terms: lsf, ags, apcf(tid), ags, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, lsf(tid), apc0, lsf0
| 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) = E3, pcf0(tid) = C, apcf(tid) = apc, (gs.w = Some(tid) → odd(gs.glb)) ∧ ls.loc ≤ gs.glb ∧ (gs.w = Some(tid) → odd(ls.loc)), (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetTMEnd(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetTMEnd(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetTMEnd(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetTMEnd(ls.tid)), ags0.memories ≠ [], pre(gs, ls, E3, retTMEND(ls.tid)) ∧ gs0 = gstepf(gs, ls, E3, retTMEND(ls.tid)) ∧ ls0 = lstepf(gs, ls, E3, retTMEND(ls.tid)) ∧ C = pcstepf(gs, ls, E3, retTMEND(ls.tid)), true, ls.tid = als.tid ∧ abspc(E3) = apc ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → ls.l = als.il) ∧ (E3 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (E3 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;E3 ≠ E3 ∧ E3 ≠ C → als.wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs.glb = ls.loc ∨ E3 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetTMEnd(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(C) = apc0 ∧ (C = S ∨ C = B1 ∨ C = B2 ∨ C = B3 ∨ C = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (C = W1 ∨ C = W2 ∨ C = W3 ∨ C = W4 ∨ C = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (C = R1 ∨ C = R2 ∨ C = R4 → ls0.l = als0.il) ∧ (C = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (C ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;C ≠ E3 ∧ C ≠ C → als0.wrset = ∅ ) ∧ ( C ≠ E3 ∧ C ≠ C ∧ C ≠ A ∧ C ≠ B1 ∧ C ≠ S → (gs0.glb = ls0.loc ∨ C = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = E3, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = E3 ∧ pcf0(tid) = C ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid))) ∧ pre(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ C = pcstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(E3) = apcf(tid) ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (E3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (E3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;E3 ≠ E3 ∧ E3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs.glb = lsf(tid).loc ∨ E3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, E3 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, E3, a), ls = lsf(tid), ls0 = lstepf(gs, ls, E3, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, E3, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, E3, ags, alsf(tid), apcf(tid)), pre(gs, ls, E3, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = E3 ∧ pcf0(tid) = C ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid))) ∧ pre(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ C = pcstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(E3) = apcf(tid) ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (E3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (E3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;E3 ≠ E3 ∧ E3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs.glb = lsf(tid).loc ∨ E3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, E3 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, E3, a), ls = lsf(tid), ls0 = lstepf(gs, ls, E3, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, E3, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, E3, ags, alsf(tid), apcf(tid)), pre(gs, ls, E3, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = E3 ∧ pcf0(tid) = C ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid))) ∧ pre(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ C = pcstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(E3) = apcf(tid) ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (E3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (E3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;E3 ≠ E3 ∧ E3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs.glb = lsf(tid).loc ∨ E3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ pre(gs, ls, E3, a) ↔ a = retTMEND(ls.tid)
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, E3 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, E3, a), ls = lsf(tid), ls0 = lstepf(gs, ls, E3, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, E3, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, E3, ags, alsf(tid), apcf(tid)), pre(gs, ls, E3, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = E3 ∧ pcf0(tid) = C ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid))) ∧ retTMEND(lsf(tid).tid) = retTMEND(lsf(tid).tid) ∧ gs0 = gstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ C = pcstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(E3) = apcf(tid) ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (E3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (E3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;E3 ≠ E3 ∧ E3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs.glb = lsf(tid).loc ∨ E3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used terms: gs, lsf(tid), retTMEND(lsf(tid).tid)
| ⊦ pre(gs, ls, E3, a) ↔ a = retTMEND(ls.tid) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, E3 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, E3, a), ls = lsf(tid), ls0 = lstepf(gs, ls, E3, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, E3, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, E3, ags, alsf(tid), apcf(tid)), pre(gs, ls, E3, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = E3 ∧ pcf0(tid) = C ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMEnd(lsf(tid).tid))) ∧ retTMEND(lsf(tid).tid) = retTMEND(lsf(tid).tid) ∧ gs0 = gstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ C = pcstepf(gs, lsf(tid), E3, retTMEND(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(E3) = apcf(tid) ∧ (E3 = S ∨ E3 = B1 ∨ E3 = B2 ∨ E3 = B3 ∨ E3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (E3 = W1 ∨ E3 = W2 ∨ E3 = W3 ∨ E3 = W4 ∨ E3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (E3 = R1 ∨ E3 = R2 ∨ E3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (E3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (E3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;E3 ≠ E3 ∧ E3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( E3 ≠ E3 ∧ E3 ≠ C ∧ E3 ≠ A ∧ E3 ≠ B1 ∧ E3 ≠ S → (gs.glb = lsf(tid).loc ∨ E3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retTMEND: ⊦ ren(retTMEND(tid), ags, alsf) = callRetTMEnd(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ pre(gs, ls, E3, a) ↔ a = retTMEND(ls.tid); (s) ⊦ pcstepf(gs, ls, E3, a) = C; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ callRetTMEnd(tid) ≠ τ; (s) ⊦ A ≠ E3; (s) ⊦ E3 ≠ S; (s) ⊦ B1 ≠ E3; (s) ⊦ B2 ≠ E3; (s) ⊦ B3 ≠ E3; (s) ⊦ E3 ≠ I; (s) ⊦ E3 ≠ R1; (s) ⊦ E3 ≠ R2; (s) ⊦ E3 ≠ R3; (s) ⊦ E3 ≠ R4; (s) ⊦ E1 ≠ E3; (s) ⊦ E2 ≠ E3; (s) ⊦ E3 ≠ W1; (s) ⊦ E3 ≠ W2; (s) ⊦ E3 ≠ W3; (s) ⊦ E3 ≠ W4; (s) ⊦ E3 ≠ W5; (s) ⊦ E3 ≠ W6; (s) ⊦ B4 ≠ E3; (s) ⊦ pre(gs, ls, CommitResp, a) ↔ a = callRetTMEnd(ls.tid); (s) ⊦ callRetTMEnd(tid) = callRetTMEnd(tid0) ↔ tid = tid0; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), E3, retTMEND(tid)) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), E3, retTMEND(tid)) = mkTMLls(tid, loc, l, v); (s) ⊦ ls.tid = tid → gstepf(gs, ls, CommitResp, callRetTMEnd(tid)) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, CommitResp, callRetTMEnd(tid)) = ls; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, CommitResp, callRetTMEnd(tid)) = Committed; (s) ⊦ C ≠ I; (s) ⊦ C ≠ W6; (s) ⊦ C ≠ E1; (s) ⊦ C ≠ E2; (s) ⊦ C ≠ S; (s) ⊦ B1 ≠ C; (s) ⊦ B2 ≠ C; (s) ⊦ B3 ≠ C; (s) ⊦ B4 ≠ C; (s) ⊦ C ≠ W1; (s) ⊦ C ≠ W2; (s) ⊦ C ≠ W3; (s) ⊦ C ≠ W5; (s) ⊦ C ≠ R1; (s) ⊦ C ≠ R2; (s) ⊦ C ≠ R4; (s) ⊦ C ≠ R3; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ C ≠ W4; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ C ≠ E3; (s) ⊦ even(n) → ¬ odd(n); (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = I, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(gs, ls, I, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(gs, ls, I, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ pre(gs, ls, I, a) ↔ a = invTMEND(ls.tid) ∨ (∃ l0. a = invTMREAD(ls.tid, l0)) ∨ (∃ l0, v0. a = invTMWRITE(ls.tid, l0, v0))
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), a = invTMEND(ls.tid) ∨ (∃ l0. a = invTMREAD(ls.tid, l0)) ∨ (∃ l0, v0. a = invTMWRITE(ls.tid, l0, v0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: gs, ls, a
| ⊦ pre(gs, ls, I, a) ↔ a = invTMEND(ls.tid) ∨ (∃ l0. a = invTMREAD(ls.tid, l0)) ∨ (∃ l0, v0. a = invTMWRITE(ls.tid, l0, v0)) |
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), a = invTMEND(ls.tid) ∨ (∃ l0. a = invTMREAD(ls.tid, l0)) ∨ (∃ l0, v0. a = invTMWRITE(ls.tid, l0, v0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMEND(ls.tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∃ l0. a = invTMREAD(ls.tid, l0) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∃ l0, v0. a = invTMWRITE(ls.tid, l0, v0) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMEND(ls.tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = I, pcf0(tid) = E1, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callInvTMEnd(ls.tid)) → ags0 = gstepf(ags, als, apc, callInvTMEnd(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callInvTMEnd(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callInvTMEnd(ls.tid)), ags0.memories ≠ [], pre(gs, ls, I, invTMEND(ls.tid)) ∧ gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)) ∧ ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)) ∧ E1 = pcstepf(gs, ls, I, invTMEND(ls.tid)), true, ls.tid = als.tid ∧ abspc(I) = apc ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = als.il) ∧ (I = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → als.wrset = ∅ ) ∧ (I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callInvTMEnd(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(E1) = apc0 ∧ (E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il) ∧ (E1 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ) ∧ ( E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMEND(ls.tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = I ∧ pcf0(tid) = E1 ∧ apcf(tid) = apcf(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, I, invTMEND(ls.tid)) ∧ gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)) ∧ ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)) ∧ E1 = pcstepf(gs, ls, I, invTMEND(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(I) = apcf(tid) ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = alsf(tid).il) ∧ (I = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → alsf(tid).wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
alsf(tid).tid = tid, lsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMEND(ls.tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: lsf, ags, apcf(tid), ags0, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, ls, apc0, lsf0
| 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) = I, pcf0(tid) = E1, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callInvTMEnd(ls.tid)) → ags0 = gstepf(ags, als, apc, callInvTMEnd(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callInvTMEnd(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callInvTMEnd(ls.tid)), ags0.memories ≠ [], pre(gs, ls, I, invTMEND(ls.tid)) ∧ gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)) ∧ ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)) ∧ E1 = pcstepf(gs, ls, I, invTMEND(ls.tid)), true, ls.tid = als.tid ∧ abspc(I) = apc ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = als.il) ∧ (I = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → als.wrset = ∅ ) ∧ (I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callInvTMEnd(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(E1) = apc0 ∧ (E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il) ∧ (E1 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ) ∧ ( E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMEND(ls.tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = I ∧ pcf0(tid) = E1 ∧ apcf(tid) = apcf(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, I, invTMEND(ls.tid)) ∧ gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)) ∧ ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)) ∧ E1 = pcstepf(gs, ls, I, invTMEND(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(I) = apcf(tid) ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = alsf(tid).il) ∧ (I = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → alsf(tid).wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ren(invTMEND(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = I ∧ pcf0(tid) = E1 ∧ apcf(tid) = apcf(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, I, invTMEND(ls.tid)) ∧ gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)) ∧ ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)) ∧ E1 = pcstepf(gs, ls, I, invTMEND(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(I) = apcf(tid) ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = alsf(tid).il) ∧ (I = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → alsf(tid).wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ren(invTMEND(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = I ∧ pcf0(tid) = E1 ∧ apcf(tid) = apcf(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, I, invTMEND(ls.tid)) ∧ gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)) ∧ ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)) ∧ E1 = pcstepf(gs, ls, I, invTMEND(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(I) = apcf(tid) ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = alsf(tid).il) ∧ (I = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → alsf(tid).wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-invTMEND: ⊦ ren(invTMEND(tid), ags, alsf) = callInvTMEnd(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ callInvTMEnd(tid) ≠ τ; (s) ⊦ mkTMLls(tid, loc, l, v) = mkTMLls(tid0, loc0, l0, v0) ↔ tid = tid0 ∧ loc = loc0 ∧ l = l0 ∧ v = v0; (ws) ⊦ pre(gs, ls, I, a) ↔ a = invTMEND(ls.tid) ∨ (∃ l0. a = invTMREAD(ls.tid, l0)) ∨ (∃ l0, v0. a = invTMWRITE(ls.tid, l0, v0)); (s) ⊦ invTMEND(tid) = invTMEND(tid0) ↔ tid = tid0; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ pre(gs, ls, pc, callInvTMEnd(tid)) ↔ pc = Ready ∧ ls.tid = tid; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), I, a) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), I, invTMEND(tid)) = mkTMLls(tid, loc, l, v); (s) ⊦ pcstepf(gs, mkTMLls(tid, loc, l, v), I, invTMEND(tid)) = E1; (s) ⊦ E1 ≠ I; (s) ⊦ E1 ≠ W6; (s) ⊦ B2 ≠ E1; (s) ⊦ B3 ≠ E1; (s) ⊦ B4 ≠ E1; (s) ⊦ E1 ≠ W1; (s) ⊦ E1 ≠ W2; (s) ⊦ E1 ≠ W3; (s) ⊦ E1 ≠ W5; (s) ⊦ E1 ≠ R1; (s) ⊦ E1 ≠ R2; (s) ⊦ E1 ≠ R4; (s) ⊦ E1 ≠ R3; (s) ⊦ E1 ≠ E3; (s) ⊦ C ≠ E1; (s) ⊦ A ≠ E1; (s) ⊦ B1 ≠ E1; (s) ⊦ E1 ≠ S; (s) ⊦ E1 ≠ W4; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ W4; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ R2; (s) ⊦ E2 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ B1 ≠ I; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, Ready, callInvTMEnd(tid)) = CommitInv; (s) ⊦ ls.tid = tid → lstepf(gs, ls, Ready, callInvTMEnd(tid)) = ls; (s) ⊦ gstepf(gs, ls, Ready, a) = gs; (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMEND(ls.tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
ls0.tid = als0.tid, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ren(invTMEND(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 = R3 → ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, even(ls0.loc) → als0.wrset = ∅, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| ls0.tid = als0.tid, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ren(invTMEND(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 = R3 → ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, even(ls0.loc) → als0.wrset = ∅, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ ren(invTMEND(tid), ags, alsf) = callInvTMEnd(tid)
alsf(tid).tid = tid, lsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), callInvTMEnd(ls.tid) = aa, gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: ls.tid, ags, alsf
| ⊦ ren(invTMEND(tid), ags, alsf) = callInvTMEnd(tid) |
| alsf(tid).tid = tid, lsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), callInvTMEnd(ls.tid) = aa, gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
ls0.tid = als0.tid, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ags.memories ≠ [], callInvTMEnd(ls.tid) ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 = R3 → ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, even(ls0.loc) → als0.wrset = ∅, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| ls0.tid = als0.tid, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ags.memories ≠ [], callInvTMEnd(ls.tid) ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 = R3 → ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, even(ls0.loc) → als0.wrset = ∅, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
alsf(tid).tid = tid, lsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ags.memories ≠ [], callInvTMEnd(ls.tid) ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), ¬ labs(gs0, ls0, pc0, ags0, als0, apc0), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦
| alsf(tid).tid = tid, lsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(E1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMEND(ls.tid)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMEND(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMEND(ls.tid)), pcf0 = pcf(tid := pc0), ags.memories ≠ [], callInvTMEnd(ls.tid) ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMEnd(ls.tid)), ¬ labs(gs0, ls0, pc0, ags0, als0, apc0), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, E1 = S ∨ E1 = B1 ∨ E1 = B2 ∨ E1 = B3 ∨ E1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, E1 = W1 ∨ E1 = W2 ∨ E1 = W3 ∨ E1 = W4 ∨ E1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, E1 = R1 ∨ E1 = R2 ∨ E1 = R4 → ls0.l = als0.il, E1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), E1 ≠ E3 ∧ E1 ≠ C ∧ E1 ≠ A ∧ E1 ≠ B1 ∧ E1 ≠ S → (gs0.glb = ls0.loc ∨ E1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (E1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;E1 ≠ E3 ∧ E1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ callInvTMEnd(tid) ≠ τ; (s) ⊦ pre(gs, ls, pc, callInvTMEnd(tid)) ↔ pc = Ready ∧ ls.tid = tid; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R2; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ B1 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ I ≠ W4; (s) ⊦ pcstepf(gs, mkTMLls(tid, loc, l, v), I, invTMEND(tid)) = E1; (s) ⊦ E1 ≠ I; (s) ⊦ E1 ≠ W6; (s) ⊦ B2 ≠ E1; (s) ⊦ B3 ≠ E1; (s) ⊦ B4 ≠ E1; (s) ⊦ E1 ≠ W1; (s) ⊦ E1 ≠ W2; (s) ⊦ E1 ≠ W3; (s) ⊦ E1 ≠ W5; (s) ⊦ E1 ≠ R1; (s) ⊦ E1 ≠ R2; (s) ⊦ E1 ≠ R4; (s) ⊦ E1 ≠ R3; (s) ⊦ E1 ≠ E3; (s) ⊦ C ≠ E1; (s) ⊦ A ≠ E1; (s) ⊦ B1 ≠ E1; (s) ⊦ E1 ≠ S; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), I, a) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), I, invTMEND(tid)) = mkTMLls(tid, loc, l, v); (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ E1 ≠ W4; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∃ l0. a = invTMREAD(ls.tid, l0) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMREAD(ls.tid, l0), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMREAD(ls.tid, l0), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = I, pcf0(tid) = R1, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callInvTMRead(ls.tid, l0)) → ags0 = gstepf(ags, als, apc, callInvTMRead(ls.tid, l0)) ∧ als0 = lstepf(ags, als, apc, callInvTMRead(ls.tid, l0)) ∧ apc0 = pcstepf(ags, als, apc, callInvTMRead(ls.tid, l0)), ags0.memories ≠ [], pre(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ gs0 = gstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ ls0 = lstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ R1 = pcstepf(gs, ls, I, invTMREAD(ls.tid, l0)), true, ls.tid = als.tid ∧ abspc(I) = apc ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = als.il) ∧ (I = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → als.wrset = ∅ ) ∧ (I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callInvTMRead(ls.tid, l0)) ∧ ls0.tid = als0.tid ∧ abspc(R1) = apc0 ∧ (R1 = S ∨ R1 = B1 ∨ R1 = B2 ∨ R1 = B3 ∨ R1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (R1 = W1 ∨ R1 = W2 ∨ R1 = W3 ∨ R1 = W4 ∨ R1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (R1 = R1 ∨ R1 = R2 ∨ R1 = R4 → ls0.l = als0.il) ∧ (R1 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (R1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R1 ≠ E3 ∧ R1 ≠ C → als0.wrset = ∅ ) ∧ ( R1 ≠ E3 ∧ R1 ≠ C ∧ R1 ≠ A ∧ R1 ≠ B1 ∧ R1 ≠ S → (gs0.glb = ls0.loc ∨ R1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMREAD(ls.tid, l0), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = I ∧ pcf0(tid) = R1 ∧ apcf(tid) = apcf(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ gs0 = gstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ ls0 = lstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ R1 = pcstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(I) = apcf(tid) ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = alsf(tid).il) ∧ (I = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → alsf(tid).wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMREAD(ls.tid, l0), abspc(R1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), R1 = S ∨ R1 = B1 ∨ R1 = B2 ∨ R1 = B3 ∨ R1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, R1 = W1 ∨ R1 = W2 ∨ R1 = W3 ∨ R1 = W4 ∨ R1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, R1 = R1 ∨ R1 = R2 ∨ R1 = R4 → ls0.l = als0.il, R1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), R1 ≠ E3 ∧ R1 ≠ C ∧ R1 ≠ A ∧ R1 ≠ B1 ∧ R1 ≠ S → (gs0.glb = ls0.loc ∨ R1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (R1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R1 ≠ E3 ∧ R1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: lsf, ags, apcf(tid), ags0, alsf(tid), als0, alsf, gs0, tid, l0, gs, ls0, pcf0, apcf, pcf, ls, apc0, lsf0
| 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) = I, pcf0(tid) = R1, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callInvTMRead(ls.tid, l0)) → ags0 = gstepf(ags, als, apc, callInvTMRead(ls.tid, l0)) ∧ als0 = lstepf(ags, als, apc, callInvTMRead(ls.tid, l0)) ∧ apc0 = pcstepf(ags, als, apc, callInvTMRead(ls.tid, l0)), ags0.memories ≠ [], pre(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ gs0 = gstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ ls0 = lstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ R1 = pcstepf(gs, ls, I, invTMREAD(ls.tid, l0)), true, ls.tid = als.tid ∧ abspc(I) = apc ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = als.il) ∧ (I = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → als.wrset = ∅ ) ∧ (I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callInvTMRead(ls.tid, l0)) ∧ ls0.tid = als0.tid ∧ abspc(R1) = apc0 ∧ (R1 = S ∨ R1 = B1 ∨ R1 = B2 ∨ R1 = B3 ∨ R1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (R1 = W1 ∨ R1 = W2 ∨ R1 = W3 ∨ R1 = W4 ∨ R1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (R1 = R1 ∨ R1 = R2 ∨ R1 = R4 → ls0.l = als0.il) ∧ (R1 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (R1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R1 ≠ E3 ∧ R1 ≠ C → als0.wrset = ∅ ) ∧ ( R1 ≠ E3 ∧ R1 ≠ C ∧ R1 ≠ A ∧ R1 ≠ B1 ∧ R1 ≠ S → (gs0.glb = ls0.loc ∨ R1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMREAD(ls.tid, l0), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = I ∧ pcf0(tid) = R1 ∧ apcf(tid) = apcf(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ gs0 = gstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ ls0 = lstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ R1 = pcstepf(gs, ls, I, invTMREAD(ls.tid, l0)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(I) = apcf(tid) ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = alsf(tid).il) ∧ (I = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → alsf(tid).wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-invTMREAD: ⊦ ren(invTMREAD(tid, l), ags, alsf) = callInvTMRead(tid, l); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ callInvTMRead(tid, invInvTMReadl) ≠ τ; (s) ⊦ B2 ≠ R1; (s) ⊦ B3 ≠ R1; (s) ⊦ B4 ≠ R1; (s) ⊦ R1 ≠ W1; (s) ⊦ R1 ≠ W2; (s) ⊦ R1 ≠ W3; (s) ⊦ R1 ≠ W5; (s) ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ R1 ≠ R3; (s) ⊦ E3 ≠ R1; (s) ⊦ C ≠ R1; (s) ⊦ A ≠ R1; (s) ⊦ B1 ≠ R1; (s) ⊦ R1 ≠ S; (s) ⊦ R1 ≠ W4; (s) ⊦ mkTMLls(tid, loc, l, v) = mkTMLls(tid0, loc0, l0, v0) ↔ tid = tid0 ∧ loc = loc0 ∧ l = l0 ∧ v = v0; (ws) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), I, a) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), I, invTMREAD(tid, l0)) = mkTMLls(tid, loc, l0, v); (s) ⊦ pre(gs, ls, pc, callInvTMRead(tid, l)) ↔ pc = Ready ∧ ls.tid = tid; (s) ⊦ pre(gs, ls, I, a) ↔ a = invTMEND(ls.tid) ∨ (∃ l0. a = invTMREAD(ls.tid, l0)) ∨ (∃ l0, v0. a = invTMWRITE(ls.tid, l0, v0)); (s) ⊦ invTMEND(tid) ≠ invTMREAD(tid0, invTMREADl); (s) ⊦ invTMREAD(tid, invTMREADl) = invTMREAD(tid0, invTMREADl0) ↔ tid = tid0 ∧ invTMREADl = invTMREADl0; (ws) ⊦ pcstepf(gs, mkTMLls(tid, loc, l, v), I, invTMREAD(tid, l0)) = R1; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ W4; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ R2; (s) ⊦ E2 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ B1 ≠ I; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ (ls.il:= il).tid = ls.tid; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, Ready, callInvTMRead(tid, l)) = ReadInv; (s) ⊦ (ls.il:= il).il = il; (s) ⊦ (ls.il:= il).wrset = ls.wrset; (s) ⊦ (ls.il:= il).beginIdx = ls.beginIdx; (s) ⊦ ls.tid = tid → lstepf(gs, ls, Ready, callInvTMRead(tid, l)) = ls.il:= l; (s) ⊦ (ls.il:= il).rdset = ls.rdset; (s) ⊦ gstepf(gs, ls, Ready, a) = gs; (s)
| lsf(tid).tid = tid, alsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMREAD(ls.tid, l0), abspc(R1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), R1 = S ∨ R1 = B1 ∨ R1 = B2 ∨ R1 = B3 ∨ R1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, R1 = W1 ∨ R1 = W2 ∨ R1 = W3 ∨ R1 = W4 ∨ R1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, R1 = R1 ∨ R1 = R2 ∨ R1 = R4 → ls0.l = als0.il, R1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), R1 ≠ E3 ∧ R1 ≠ C ∧ R1 ≠ A ∧ R1 ≠ B1 ∧ R1 ≠ S → (gs0.glb = ls0.loc ∨ R1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (R1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R1 ≠ E3 ∧ R1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
ls0.tid = als0.tid, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(R1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMREAD(ls.tid, l0)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMREAD(ls.tid, l0)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMREAD(ls.tid, l0)), pcf0 = pcf(tid := pc0), ren(invTMREAD(ls.tid, l0), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)), R1 ≠ E3 ∧ R1 ≠ C ∧ R1 ≠ A ∧ R1 ≠ B1 ∧ R1 ≠ S → (gs0.glb = ls0.loc ∨ R1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), R1 = R3 → ls0.v = als0.ov, R1 = R1 ∨ R1 = R2 ∨ R1 = R4 → ls0.l = als0.il, R1 = W1 ∨ R1 = W2 ∨ R1 = W3 ∨ R1 = W4 ∨ R1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, even(ls0.loc) → als0.wrset = ∅, R1 = S ∨ R1 = B1 ∨ R1 = B2 ∨ R1 = B3 ∨ R1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, (gs0.w = Some(ls0.tid) ⊃ (R1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R1 ≠ E3 ∧ R1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| ls0.tid = als0.tid, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), abspc(R1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, invTMREAD(ls.tid, l0)), ls = lsf(tid), ls0 = lstepf(gs, ls, I, invTMREAD(ls.tid, l0)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, invTMREAD(ls.tid, l0)), pcf0 = pcf(tid := pc0), ren(invTMREAD(ls.tid, l0), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMRead(ls.tid, l0)), R1 ≠ E3 ∧ R1 ≠ C ∧ R1 ≠ A ∧ R1 ≠ B1 ∧ R1 ≠ S → (gs0.glb = ls0.loc ∨ R1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), R1 = R3 → ls0.v = als0.ov, R1 = R1 ∨ R1 = R2 ∨ R1 = R4 → ls0.l = als0.il, R1 = W1 ∨ R1 = W2 ∨ R1 = W3 ∨ R1 = W4 ∨ R1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, even(ls0.loc) → als0.wrset = ∅, R1 = S ∨ R1 = B1 ∨ R1 = B2 ∨ R1 = B3 ∨ R1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, (gs0.w = Some(ls0.tid) ⊃ (R1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R1 ≠ E3 ∧ R1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-invTMREAD: ⊦ ren(invTMREAD(tid, l), ags, alsf) = callInvTMRead(tid, l); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ callInvTMRead(tid, invInvTMReadl) ≠ τ; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ R2; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ B1 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ I ≠ W4; (s) ⊦ pre(gs, ls, pc, callInvTMRead(tid, l)) ↔ pc = Ready ∧ ls.tid = tid; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), I, a) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), I, invTMREAD(tid, l0)) = mkTMLls(tid, loc, l0, v); (s) ⊦ pcstepf(gs, mkTMLls(tid, loc, l, v), I, invTMREAD(tid, l0)) = R1; (s) ⊦ I ≠ R1; (s) ⊦ B2 ≠ R1; (s) ⊦ B3 ≠ R1; (s) ⊦ B4 ≠ R1; (s) ⊦ R1 ≠ W1; (s) ⊦ R1 ≠ W2; (s) ⊦ R1 ≠ W3; (s) ⊦ R1 ≠ W5; (s) ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ R1 ≠ R3; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ E3 ≠ R1; (s) ⊦ C ≠ R1; (s) ⊦ A ≠ R1; (s) ⊦ B1 ≠ R1; (s) ⊦ R1 ≠ S; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ R1 ≠ W4; (s)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∃ l0, v0. a = invTMWRITE(ls.tid, l0, v0) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMWRITE(ls.tid, l0, v0), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMWRITE(ls.tid, l0, v0), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = I, pcf0(tid) = W1, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)) → ags0 = gstepf(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)) ∧ als0 = lstepf(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)) ∧ apc0 = pcstepf(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)), ags0.memories ≠ [], pre(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ gs0 = gstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ ls0 = lstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ W1 = pcstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)), true, ls.tid = als.tid ∧ abspc(I) = apc ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = als.il) ∧ (I = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → als.wrset = ∅ ) ∧ (I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)) ∧ ls0.tid = als0.tid ∧ abspc(W1) = apc0 ∧ (W1 = S ∨ W1 = B1 ∨ W1 = B2 ∨ W1 = B3 ∨ W1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (W1 = W1 ∨ W1 = W2 ∨ W1 = W3 ∨ W1 = W4 ∨ W1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (W1 = R1 ∨ W1 = R2 ∨ W1 = R4 → ls0.l = als0.il) ∧ (W1 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (W1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;W1 ≠ E3 ∧ W1 ≠ C → als0.wrset = ∅ ) ∧ ( W1 ≠ E3 ∧ W1 ≠ C ∧ W1 ≠ A ∧ W1 ≠ B1 ∧ W1 ≠ S → (gs0.glb = ls0.loc ∨ W1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMWRITE(ls.tid, l0, v0), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = I ∧ pcf0(tid) = W1 ∧ apcf(tid) = apcf(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ gs0 = gstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ ls0 = lstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ W1 = pcstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(I) = apcf(tid) ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = alsf(tid).il) ∧ (I = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → alsf(tid).wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMWRITE(ls.tid, l0, v0), abspc(W1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), W1 = S ∨ W1 = B1 ∨ W1 = B2 ∨ W1 = B3 ∨ W1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, W1 = W1 ∨ W1 = W2 ∨ W1 = W3 ∨ W1 = W4 ∨ W1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, W1 = R1 ∨ W1 = R2 ∨ W1 = R4 → ls0.l = als0.il, W1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), W1 ≠ E3 ∧ W1 ≠ C ∧ W1 ≠ A ∧ W1 ≠ B1 ∧ W1 ≠ S → (gs0.glb = ls0.loc ∨ W1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (W1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;W1 ≠ E3 ∧ W1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: lsf, ags, apcf(tid), ags0, alsf(tid), als0, alsf, gs0, tid, l0, gs, ls0, pcf0, apcf, pcf, ls, apc0, v0, lsf0
| 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) = I, pcf0(tid) = W1, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)) → ags0 = gstepf(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)) ∧ als0 = lstepf(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)) ∧ apc0 = pcstepf(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)), ags0.memories ≠ [], pre(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ gs0 = gstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ ls0 = lstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ W1 = pcstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)), true, ls.tid = als.tid ∧ abspc(I) = apc ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = als.il) ∧ (I = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → als.wrset = ∅ ) ∧ (I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callInvTMWrite(ls.tid, l0, v0)) ∧ ls0.tid = als0.tid ∧ abspc(W1) = apc0 ∧ (W1 = S ∨ W1 = B1 ∨ W1 = B2 ∨ W1 = B3 ∨ W1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (W1 = W1 ∨ W1 = W2 ∨ W1 = W3 ∨ W1 = W4 ∨ W1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (W1 = R1 ∨ W1 = R2 ∨ W1 = R4 → ls0.l = als0.il) ∧ (W1 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (W1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;W1 ≠ E3 ∧ W1 ≠ C → als0.wrset = ∅ ) ∧ ( W1 ≠ E3 ∧ W1 ≠ C ∧ W1 ≠ A ∧ W1 ≠ B1 ∧ W1 ≠ S → (gs0.glb = ls0.loc ∨ W1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMWRITE(ls.tid, l0, v0), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = I ∧ pcf0(tid) = W1 ∧ apcf(tid) = apcf(tid) ∧ (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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ gs0 = gstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ ls0 = lstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ W1 = pcstepf(gs, ls, I, invTMWRITE(ls.tid, l0, v0)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(I) = apcf(tid) ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls.l = alsf(tid).il) ∧ (I = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (I ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;I ≠ E3 ∧ I ≠ C → alsf(tid).wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs.glb = ls.loc ∨ I = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-invTMWRITE: ⊦ ren(invTMWRITE(tid, l, v), ags, alsf) = callInvTMWrite(tid, l, v); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ callInvTMWrite(tid, invInvTMReadl, invInvTMWritev) ≠ τ; (s) ⊦ B2 ≠ W1; (s) ⊦ B3 ≠ W1; (s) ⊦ B4 ≠ W1; (s) ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ mkTMLls(tid, loc, l, v).v = v; (s) ⊦ R1 ≠ W1; (s) ⊦ R2 ≠ W1; (s) ⊦ R4 ≠ W1; (s) ⊦ R3 ≠ W1; (s) ⊦ E3 ≠ W1; (s) ⊦ C ≠ W1; (s) ⊦ A ≠ W1; (s) ⊦ B1 ≠ W1; (s) ⊦ S ≠ W1; (s) ⊦ W1 ≠ W4; (s) ⊦ mkTMLls(tid, loc, l, v) = mkTMLls(tid0, loc0, l0, v0) ↔ tid = tid0 ∧ loc = loc0 ∧ l = l0 ∧ v = v0; (ws) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), I, a) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), I, invTMWRITE(tid, l0, v0)) = mkTMLls(tid, loc, l0, v0); (s) ⊦ pre(gs, ls, pc, callInvTMWrite(tid, l, v)) ↔ pc = Ready ∧ ls.tid = tid; (s) ⊦ pre(gs, ls, I, a) ↔ a = invTMEND(ls.tid) ∨ (∃ l0. a = invTMREAD(ls.tid, l0)) ∨ (∃ l0, v0. a = invTMWRITE(ls.tid, l0, v0)); (s) ⊦ invTMEND(tid) ≠ invTMWRITE(tid0, invTMREADl, invTMWRITEv); (s) ⊦ invTMREAD(tid, invTMREADl) ≠ invTMWRITE(tid0, invTMREADl0, invTMWRITEv); (s) ⊦ pcstepf(gs, mkTMLls(tid, loc, l, v), I, invTMWRITE(tid, l0, v0)) = W1; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ W4; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ R2; (s) ⊦ E2 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ B1 ≠ I; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ (ls.ov:= ov).tid = ls.tid; (s) ⊦ (ls.il:= il).tid = ls.tid; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, Ready, callInvTMWrite(tid, l, v)) = WriteInv; (s) ⊦ (ls.ov:= ov).il = ls.il; (s) ⊦ (ls.il:= il).il = il; (s) ⊦ (ls.ov:= ov).ov = ov; (s) ⊦ (ls.ov:= ov).wrset = ls.wrset; (s) ⊦ (ls.il:= il).wrset = ls.wrset; (s) ⊦ (ls.ov:= ov).beginIdx = ls.beginIdx; (s) ⊦ (ls.il:= il).beginIdx = ls.beginIdx; (s) ⊦ ls.tid = tid → lstepf(gs, ls, Ready, callInvTMWrite(tid, l, v)) = (ls.il:= l).ov:= v; (s) ⊦ (ls.ov:= ov).rdset = ls.rdset; (s) ⊦ (ls.il:= il).rdset = ls.rdset; (s) ⊦ gstepf(gs, ls, Ready, a) = gs; (s)
| lsf(tid).tid = tid, alsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, I = pcf(tid), a = invTMWRITE(ls.tid, l0, v0), abspc(W1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, I, a), ls = lsf(tid), ls0 = lstepf(gs, ls, I, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, I, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, I, ags, alsf(tid), apcf(tid)), pre(ags, alsf(tid), apcf(tid), callInvTMWrite(ls.tid, l0, v0)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), W1 = S ∨ W1 = B1 ∨ W1 = B2 ∨ W1 = B3 ∨ W1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, W1 = W1 ∨ W1 = W2 ∨ W1 = W3 ∨ W1 = W4 ∨ W1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, W1 = R1 ∨ W1 = R2 ∨ W1 = R4 → ls0.l = als0.il, W1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), W1 ≠ E3 ∧ W1 ≠ C ∧ W1 ≠ A ∧ W1 ≠ B1 ∧ W1 ≠ S → (gs0.glb = ls0.loc ∨ W1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (W1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;W1 ≠ E3 ∧ W1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-invTMWRITE: ⊦ ren(invTMWRITE(tid, l, v), ags, alsf) = callInvTMWrite(tid, l, v); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ callInvTMWrite(tid, invInvTMReadl, invInvTMWritev) ≠ τ; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R2; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ B1 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ I ≠ W4; (s) ⊦ pre(gs, ls, pc, callInvTMWrite(tid, l, v)) ↔ pc = Ready ∧ ls.tid = tid; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), I, a) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), I, invTMWRITE(tid, l0, v0)) = mkTMLls(tid, loc, l0, v0); (s) ⊦ pcstepf(gs, mkTMLls(tid, loc, l, v), I, invTMWRITE(tid, l0, v0)) = W1; (s) ⊦ I ≠ W1; (s) ⊦ B2 ≠ W1; (s) ⊦ B3 ≠ W1; (s) ⊦ B4 ≠ W1; (s) ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ mkTMLls(tid, loc, l, v).v = v; (s) ⊦ R1 ≠ W1; (s) ⊦ R2 ≠ W1; (s) ⊦ R4 ≠ W1; (s) ⊦ R3 ≠ W1; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ E3 ≠ W1; (s) ⊦ C ≠ W1; (s) ⊦ A ≠ W1; (s) ⊦ B1 ≠ W1; (s) ⊦ S ≠ W1; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ W1 ≠ W4; (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = R2, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, R2, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, R2, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ pcstepf(gs, ls, R2, a) = (gs.glb = ls.loc ⊃ R3;R4)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = (gs.glb = ls.loc ⊃ R3;R4), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: gs, ls, a
| ⊦ pcstepf(gs, ls, R2, a) = (gs.glb = ls.loc ⊃ R3;R4) |
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = (gs.glb = ls.loc ⊃ R3;R4), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
gs.glb = ls.loc, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-tau: ⊦ ren(τ, ags, alsf) = τ; ⊦ pre(gs, ls, R2, a) ↔ a = (ls.loc = gs.glb ⊃ doRead(ls.tid);τ); (s) ⊦ I ≠ R2; (s) ⊦ B2 ≠ R2; (s) ⊦ B3 ≠ R2; (s) ⊦ B4 ≠ R2; (s) ⊦ R2 ≠ W1; (s) ⊦ R2 ≠ W2; (s) ⊦ R2 ≠ W3; (s) ⊦ R1 ≠ R2; (s) ⊦ R2 ≠ R3; (s) ⊦ E3 ≠ R2; (s) ⊦ C ≠ R2; (s) ⊦ A ≠ R2; (s) ⊦ B1 ≠ R2; (s) ⊦ R2 ≠ S; (s) ⊦ odd(n) ↔ ¬ even(n); (ss) ⊦ m ≠ n → (m ≤ n ↔ m < n); (s) ⊦ even(n) → ¬ odd(n); (s) ⊦ gstepf(gs, ls, R2, a) = gs; (s) ⊦ lstepf(gs, ls, R2, a) = ls; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ m < n → n ≠ 0; (s) ⊦ R2 ≠ W5; (s) ⊦ R2 ≠ W4; (s) ⊦ E2 ≠ R2; (s)
| gs.glb = ls.loc, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), 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))) ⊦ pre(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) ∧ ls0.tid = als0.tid ∧ abspc(R3) = apc0 ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → ls0.l = als0.il) ∧ (R3 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (R3 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R3 ≠ E3 ∧ R3 ≠ C → als0.wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs0.glb = ls0.loc ∨ R3 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
gs.glb = ls.loc, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
gs.glb = ls.loc, alsf(tid).tid = tid, lsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), abspc(R3) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), pre(ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → ls0.l = als0.il, R3 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags.memories.last ∧ even(gs0.glb), R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs0.glb = ls0.loc ∨ R3 = W4 ⊃ als0.rdset ⊆ ags.memories.last;∃valid(als0.beginIdx, als0.rdset, ags.memories)), (gs0.w = Some(ls0.tid) ⊃ (R3 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R3 ≠ E3 ∧ R3 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: lsf, ags, apcf(tid), ags, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, lsf(tid), apc0, lsf0
| 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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), 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))) ⊦ pre(ags, als, apc, (als.il ∈ als.wrset ⊃ callDoReadWrSet(ls.tid);callDoReadIx(ls.tid, # ags.memories - 1))) ∧ ls0.tid = als0.tid ∧ abspc(R3) = apc0 ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → ls0.l = als0.il) ∧ (R3 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (R3 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R3 ≠ E3 ∧ R3 ≠ C → als0.wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs0.glb = ls0.loc ∨ R3 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| gs.glb = ls.loc, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
gs.glb = ls.loc, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used simplifier rules: TMLLState freely generated by mkTMLls;;
| gs.glb = ls.loc, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ pre(gs, ls, R2, a) ↔ a = (ls.loc = gs.glb ⊃ doRead(ls.tid);τ)
gs.glb = ls.loc, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), a = (ls.loc = gs.glb ⊃ doRead(ls.tid);τ), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = mkTMLls(tid1, x_Nat, l, v), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used terms: gs, ls, a
| ⊦ pre(gs, ls, R2, a) ↔ a = (ls.loc = gs.glb ⊃ doRead(ls.tid);τ) |
| gs.glb = ls.loc, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), a = (ls.loc = gs.glb ⊃ doRead(ls.tid);τ), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = mkTMLls(tid1, x_Nat, l, v), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
ls.loc = gs.glb, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), a = doRead(ls.tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| ls.loc = gs.glb, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), a = doRead(ls.tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
ls.loc = gs.glb, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, doRead(ls.tid)), ls = mkTMLls(tid1, x_Nat, l, v), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(doRead(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
| ls.loc = gs.glb, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, doRead(ls.tid)), ls = mkTMLls(tid1, x_Nat, l, v), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(doRead(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
⊦ gstepf(gs, ls, R2, a) = gs
ls.loc = gs.glb, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gs, ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(doRead(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: gs, ls, doRead(ls.tid)
| ⊦ gstepf(gs, ls, R2, a) = gs |
| ls.loc = gs.glb, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gs, ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(doRead(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ lsf(tid).loc = gs.glb ∧ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
ls.loc = gs.glb, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), ls = mkTMLls(tid1, x_Nat, l, v), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(doRead(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs, ls0, pc0, ags0, als0, apc0), lsf(tid).loc = gs.glb ∧ (even(gs.glb) ↔ gs.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).loc)) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls0.loc ≤ gs.glb ∧ (odd(ls0.loc) → ls0.loc = gs.glb) ∧ (gs.w = Some(tid) → odd(ls0.loc)) ∧ (gs.w ≠ Some(tid) → even(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
| ls.loc = gs.glb, alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), ls = mkTMLls(tid1, x_Nat, l, v), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(doRead(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs, ls0, pc0, ags0, als0, apc0), lsf(tid).loc = gs.glb ∧ (even(gs.glb) ↔ gs.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R2 ∧ pcf0(tid) = R3 ∧ apcf(tid) = apcf(tid) ∧ (lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).loc)) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ ls0.loc ≤ gs.glb ∧ (odd(ls0.loc) → ls0.loc = gs.glb) ∧ (gs.w = Some(tid) → odd(ls0.loc)) ∧ (gs.w ≠ Some(tid) → even(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) → ags = gstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ als0 = lstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))) ∧ apc0 = pcstepf (ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1)))) ∧ pre(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ gs = gstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ R3 = pcstepf(gs, lsf(tid), R2, doRead(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R2) = apcf(tid) ∧ (R2 = S ∨ R2 = B1 ∨ R2 = B2 ∨ R2 = B3 ∨ R2 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R2 = W1 ∨ R2 = W2 ∨ R2 = W3 ∨ R2 = W4 ∨ R2 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R2 = R1 ∨ R2 = R2 ∨ R2 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R2 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R2 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R2 ≠ E3 ∧ R2 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R2 ≠ E3 ∧ R2 ≠ C ∧ R2 ≠ A ∧ R2 ≠ B1 ∧ R2 ≠ S → (gs.glb = lsf(tid).loc ∨ R2 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
ls.loc = gs.glb, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(doRead(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), ¬ TMS2LInv(ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs, ls0, pc0, ags0, als0, apc0)
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); ⊦ I ≠ R2; (s) ⊦ B2 ≠ R2; (s) ⊦ B3 ≠ R2; (s) ⊦ B4 ≠ R2; (s) ⊦ R2 ≠ W1; (s) ⊦ R2 ≠ W2; (s) ⊦ R2 ≠ W3; (s) ⊦ R2 ≠ W5; (s) ⊦ R1 ≠ R2; (s) ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ R2 ≠ R3; (s) ⊦ E3 ≠ R2; (s) ⊦ C ≠ R2; (s) ⊦ A ≠ R2; (s) ⊦ B1 ≠ R2; (s) ⊦ R2 ≠ S; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ lstepf(gs, ls, R2, a) = ls; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ R2 ≠ W4; (s) ⊦ beginIdx < # memories ∧ rdset ⊆ memories.last → ∃valid(beginIdx, rdset, memories); (ss) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ m ≤ m; (s) ⊦ E2 ≠ R2; (s) ⊦ mkTMLls(tid, loc, l, v).v = v; (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) ⊦ callDoReadWrSet(tid) = callDoReadWrSet(tid0) ↔ tid = tid0; (s) ⊦ gstepf(gs, ls, ReadInv, a) = gs; (s) ⊦ 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) ⊦ callDoReadWrSet(tid) ≠ τ; (s) ⊦ odd(n) → ¬ even(n); (s) ⊦ even(n) → ¬ odd(n); (s) ⊦ pcstepf(gs, ls, R2, a) = (gs.glb = ls.loc ⊃ R3;R4); (s) ⊦ R3 ≠ R4; (s) ⊦ odd(n) ↔ ¬ even(n); (ss) ⊦ m ≠ n → (m ≤ n ↔ m < n); (s) lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic ⊦ m < n → n ≠ 0; (s) ⊦ gstepf(gs, ls, R2, a) = gs; (s) ⊦ pre(gs, ls, R2, a) ↔ a = (ls.loc = gs.glb ⊃ doRead(ls.tid);τ); (s) ⊦ doRead(tid) = doRead(tid0) ↔ tid = tid0; (s) ⊦ callDoReadIx(tid, invDoReadIxn) = callDoReadIx(tid0, invDoReadIxn0) ↔ tid = tid0 ∧ invDoReadIxn = invDoReadIxn0; (ws) ⊦ validIdx(n, beginIdx, rdset, memories) ↔ beginIdx ≤ n ∧ n < # memories ∧ rdset ⊆ memories[n]; (s) n0 ≤ n ⊦ m ≤ n - n0 ↔ m + n0 ≤ n; (s) ⊦ m + 1 ≤ n ↔ m < n; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < 1 ↔ m = 0; (s) n0 ≤ n ⊦ n - n0 < m ↔ n < m + n0; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ ¬ n < n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ callDoReadIx(tid, invDoReadIxn) ≠ callRetAbort(tid0); (s) ⊦ even(n) ↔ ¬ odd(n); (ss) fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic ⊦ m < n → ¬ n < m; (s) ⊦ Some(t) ≠ None; (s) ⊦ Some(t) = Some(t0) ↔ t = t0; (s) ⊦ m < n → (n ≤ m ↔ false); (s) ⊦ mkTMLls(tid, loc, l, v) = mkTMLls(tid0, loc0, l0, v0) ↔ tid = tid0 ∧ loc = loc0 ∧ l = l0 ∧ v = v0; (ws)
| ls.loc = gs.glb, lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, R2, doRead(ls.tid)), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(doRead(ls.tid), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), ¬ TMS2LInv(ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs, ls0, pc0, ags0, als0, apc0) |
⊦ 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: ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ I ≠ R2; (s) ⊦ B2 ≠ R2; (s) ⊦ B3 ≠ R2; (s) ⊦ B4 ≠ R2; (s) ⊦ R2 ≠ W1; (s) ⊦ R2 ≠ W2; (s) ⊦ R2 ≠ W3; (s) ⊦ R2 ≠ W5; (s) ⊦ R1 ≠ R2; (s) ⊦ R2 ≠ R3; (s) ⊦ R2 ≠ W4; (s) ⊦ E3 ≠ R2; (s) ⊦ C ≠ R2; (s) ⊦ A ≠ R2; (s) ⊦ B1 ≠ R2; (s) ⊦ R2 ≠ S; (s) ⊦ lstepf(gs, ls, R2, a) = ls; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m ≤ n → (n < m ↔ false); (s) Used terms: ags, alsf(tid), apcf(tid)
| ⊦ 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 |
| gs.glb = ls.loc, alsf(tid).tid = tid, lsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, R2 = pcf(tid), abspc(R3) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R2, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R2, a), lsf0 = lsf(tid := ls0), pc0 = R3, pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R2, ags, alsf(tid), apcf(tid)), pre(gs, ls, R2, a), pre(ags, alsf(tid), apcf(tid), (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(lsf(tid).tid);callDoReadIx(lsf(tid).tid, # ags.memories - 1))), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → ls0.l = als0.il, R3 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags.memories.last ∧ even(gs0.glb), R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs0.glb = ls0.loc ∨ R3 = W4 ⊃ als0.rdset ⊆ ags.memories.last;∃valid(als0.beginIdx, als0.rdset, ags.memories)), (gs0.w = Some(ls0.tid) ⊃ (R3 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;R3 ≠ E3 ∧ R3 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-doRead: ⊦ ren(doRead(tid), ags, alsf) = (alsf(tid).il ∈ alsf(tid).wrset ⊃ callDoReadWrSet(tid) ;callDoReadIx(tid, # ags.memories - 1) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, R2, a) ↔ a = (ls.loc = gs.glb ⊃ doRead(ls.tid);τ); (s) ⊦ I ≠ R2; (s) ⊦ R2 ≠ W1; (s) ⊦ R2 ≠ W3; (s) ⊦ R1 ≠ R2; (s) ⊦ E3 ≠ R2; (s) ⊦ C ≠ R2; (s) ⊦ A ≠ R2; (s) ⊦ gstepf(gs, ls, R2, a) = gs; (s) ⊦ lstepf(gs, ls, R2, a) = ls; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ ls.tid = tid → pcstepf(gs, ls, ReadInv, callDoReadIx(tid, n)) = ReadResp; (s) ⊦ callDoReadIx(tid, invDoReadIxn) ≠ τ; (s) ⊦ m ≤ m; (s) ⊦ E2 ≠ R2; (s) ⊦ R2 ≠ W2; (s) ⊦ R2 ≠ W4; (s) ⊦ R2 ≠ W5; (s) ⊦ R2 ≠ S; (s) ⊦ B1 ≠ R2; (s) ⊦ B2 ≠ R2; (s) ⊦ B3 ≠ R2; (s) ⊦ B4 ≠ R2; (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) ⊦ callDoReadIx(tid, invDoReadIxn) ≠ callDoReadWrSet(tid0); (s) ⊦ callDoReadIx(tid, invDoReadIxn) = callDoReadIx(tid0, invDoReadIxn0) ↔ tid = tid0 ∧ invDoReadIxn = invDoReadIxn0; (ws) ⊦ validIdx(n, beginIdx, rdset, memories) ↔ beginIdx ≤ n ∧ n < # memories ∧ rdset ⊆ memories[n]; (s) ⊦ callDoReadIx(tid, invDoReadIxn) ≠ callRetAbort(tid0); (s) ⊦ gstepf(gs, ls, ReadInv, a) = gs; (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) lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat n0 ≤ n ⊦ n - n0 < m ↔ n < m + n0; (s) ⊦ m < n + 1 ↔ ¬ n < m; (s) ⊦ ¬ n < n; (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ m < 1 ↔ m = 0; (s) ⊦ # x = 0 ↔ x = []; (s) n0 ≤ n ⊦ m ≤ n - n0 ↔ m + n0 ≤ n; (s) ⊦ m + 1 ≤ n ↔ m < n; (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ (ls.rdset:= rdset).tid = ls.tid; (s) ⊦ (ls.ov:= ov).tid = ls.tid; (s) ⊦ I ≠ R3; (s) ⊦ B2 ≠ R3; (s) ⊦ B3 ≠ R3; (s) ⊦ B4 ≠ R3; (s) ⊦ R3 ≠ W1; (s) ⊦ R3 ≠ W2; (s) ⊦ R3 ≠ W3; (s) ⊦ R3 ≠ W5; (s) ⊦ R1 ≠ R3; (s) ⊦ R2 ≠ R3; (s) ⊦ R3 ≠ R4; (s) ⊦ (ls.rdset:= rdset).ov = ls.ov; (s) ⊦ (ls.ov:= ov).ov = ov; (s) ⊦ R3 ≠ W4; (s) ⊦ (ls.rdset:= rdset).wrset = ls.wrset; (s) ⊦ (ls.ov:= ov).wrset = ls.wrset; (s) ⊦ E3 ≠ R3; (s) ⊦ C ≠ R3; (s) ⊦ A ≠ R3; (s) ⊦ B1 ≠ R3; (s) ⊦ R3 ≠ S; (s) ⊦ (ls.rdset:= rdset).rdset = rdset; (s) ⊦ wrset ⊆ mem → (wrset[l := v] ⊆ mem ↔ mem(l) = v); (s) ⊦ ls.tid = tid → pcstepf(gs, ls, ReadInv, callDoReadWrSet(tid)) = ReadResp; (s) ⊦ callDoReadWrSet(tid) ≠ τ; (s) ⊦ callDoReadWrSet(tid) = callDoReadWrSet(tid0) ↔ tid = tid0; (s) ⊦ ls.tid = tid → lstepf(gs, ls, ReadInv, callDoReadWrSet(tid)) = ls.ov:= ls.wrset[ls.il]; (s) ⊦ (ls.ov:= ov).rdset = ls.rdset; (s) ⊦ even(n) → ¬ odd(n); (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = R3, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = R3, pcf0(tid) = I, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetTMRead(ls.tid, v)) → ags0 = gstepf(ags, als, apc, callRetTMRead(ls.tid, v)) ∧ als0 = lstepf(ags, als, apc, callRetTMRead(ls.tid, v)) ∧ apc0 = pcstepf(ags, als, apc, callRetTMRead(ls.tid, v)), ags0.memories ≠ [], pre(gs, ls, R3, retTMREAD(ls.tid, v)) ∧ gs0 = gstepf(gs, ls, R3, retTMREAD(ls.tid, v)) ∧ ls0 = lstepf(gs, ls, R3, retTMREAD(ls.tid, v)) ∧ I = pcstepf(gs, ls, R3, retTMREAD(ls.tid, v)), true, ls.tid = als.tid ∧ abspc(R3) = apc ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → ls.l = als.il) ∧ (R3 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (R3 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → als.wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = ls.loc ∨ R3 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetTMRead(ls.tid, v)) ∧ ls0.tid = als0.tid ∧ abspc(I) = apc0 ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls0.l = als0.il) ∧ (I = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (I ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;I ≠ E3 ∧ I ≠ C → als0.wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs0.glb = ls0.loc ∨ I = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = R3, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R3 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v))) ∧ pre(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ gs0 = gstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ ls0 = lstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ I = pcstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R3) = apcf(tid) ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = lsf(tid).loc ∨ R3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retTMREAD: ⊦ ren(retTMREAD(tid, v), ags, alsf) = callRetTMRead(tid, v); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, pc, callRetTMRead(tid, v)) ↔ pc = ReadResp ∧ ls.tid = tid ∧ v = ls.ov; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ pre(gs, ls, R3, a) ↔ a = retTMREAD(ls.tid, ls.v); (s) ⊦ E2 ≠ R3; (s) ⊦ A ≠ R3; (s) ⊦ E3 ≠ R3; (s) ⊦ C ≠ R3; (s) ⊦ R1 ≠ R3; (s) ⊦ R2 ≠ R3; (s) ⊦ R3 ≠ R4; (s) ⊦ R3 ≠ W1; (s) ⊦ R3 ≠ W2; (s) ⊦ R3 ≠ W3; (s) ⊦ R3 ≠ W4; (s) ⊦ R3 ≠ W5; (s) ⊦ R3 ≠ S; (s) ⊦ B1 ≠ R3; (s) ⊦ B2 ≠ R3; (s) ⊦ B3 ≠ R3; (s) ⊦ B4 ≠ R3; (s) ⊦ pre(gs, ls, ReadResp, a) ↔ a = callRetTMRead(ls.tid, ls.ov) ∨ a = callRetAbort(ls.tid); (s) ⊦ pcstepf(gs, ls, R3, a) = I; (s) ⊦ gstepf(gs, ls, ReadResp, a) = gs; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, ReadResp, callRetTMRead(tid, v0)) = Ready; (s) ⊦ callRetTMRead(tid, invInvTMWritev) ≠ τ; (s) ⊦ callRetTMRead(tid, invInvTMWritev) = callRetTMRead(tid0, invInvTMWritev0) ↔ tid = tid0 ∧ invInvTMWritev = invInvTMWritev0; (ws) ⊦ ls.tid = tid → lstepf(gs, ls, ReadResp, callRetTMRead(tid, v0)) = ls; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R2; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ B1 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ I ≠ W4; (s) Used terms: lsf, ags, apcf(tid), ls.v, ags, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, lsf(tid), apc0, lsf0
| 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) = R3, pcf0(tid) = I, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetTMRead(ls.tid, v)) → ags0 = gstepf(ags, als, apc, callRetTMRead(ls.tid, v)) ∧ als0 = lstepf(ags, als, apc, callRetTMRead(ls.tid, v)) ∧ apc0 = pcstepf(ags, als, apc, callRetTMRead(ls.tid, v)), ags0.memories ≠ [], pre(gs, ls, R3, retTMREAD(ls.tid, v)) ∧ gs0 = gstepf(gs, ls, R3, retTMREAD(ls.tid, v)) ∧ ls0 = lstepf(gs, ls, R3, retTMREAD(ls.tid, v)) ∧ I = pcstepf(gs, ls, R3, retTMREAD(ls.tid, v)), true, ls.tid = als.tid ∧ abspc(R3) = apc ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → ls.l = als.il) ∧ (R3 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (R3 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → als.wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = ls.loc ∨ R3 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetTMRead(ls.tid, v)) ∧ ls0.tid = als0.tid ∧ abspc(I) = apc0 ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls0.l = als0.il) ∧ (I = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (I ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;I ≠ E3 ∧ I ≠ C → als0.wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs0.glb = ls0.loc ∨ I = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = R3, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R3 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v))) ∧ pre(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ gs0 = gstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ ls0 = lstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ I = pcstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R3) = apcf(tid) ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = lsf(tid).loc ∨ R3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R3 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R3, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R3, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, R3, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R3, ags, alsf(tid), apcf(tid)), pre(gs, ls, R3, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R3 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v))) ∧ pre(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ gs0 = gstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ ls0 = lstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ I = pcstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R3) = apcf(tid) ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = lsf(tid).loc ∨ R3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R3 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R3, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R3, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, R3, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R3, ags, alsf(tid), apcf(tid)), pre(gs, ls, R3, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R3 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v))) ∧ pre(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ gs0 = gstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ ls0 = lstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ I = pcstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R3) = apcf(tid) ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = lsf(tid).loc ∨ R3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ pre(gs, ls, R3, a) ↔ a = retTMREAD(ls.tid, ls.v)
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R3 = pcf(tid), a = retTMREAD(ls.tid, ls.v), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R3, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R3, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, R3, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R3, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R3 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v))) ∧ pre(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ gs0 = gstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ ls0 = lstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ I = pcstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R3) = apcf(tid) ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = lsf(tid).loc ∨ R3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used terms: gs, ls, a
| ⊦ pre(gs, ls, R3, a) ↔ a = retTMREAD(ls.tid, ls.v) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R3 = pcf(tid), a = retTMREAD(ls.tid, ls.v), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R3, a), ls = lsf(tid), ls0 = lstepf(gs, ls, R3, a), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, R3, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R3, ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R3 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v))) ∧ pre(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ gs0 = gstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ ls0 = lstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ I = pcstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R3) = apcf(tid) ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = lsf(tid).loc ∨ R3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R3 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R3, retTMREAD(ls.tid, ls.v)), ls = lsf(tid), ls0 = lstepf(gs, ls, R3, retTMREAD(ls.tid, ls.v)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, R3, retTMREAD(ls.tid, ls.v)), pcf0 = pcf(tid := pc0), ren(retTMREAD(ls.tid, ls.v), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R3, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R3 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v))) ∧ pre(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ gs0 = gstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ ls0 = lstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ I = pcstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R3) = apcf(tid) ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = lsf(tid).loc ∨ R3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, R3 = pcf(tid), ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, R3, retTMREAD(ls.tid, ls.v)), ls = lsf(tid), ls0 = lstepf(gs, ls, R3, retTMREAD(ls.tid, ls.v)), lsf0 = lsf(tid := ls0), pc0 = pcstepf(gs, ls, R3, retTMREAD(ls.tid, ls.v)), pcf0 = pcf(tid := pc0), ren(retTMREAD(ls.tid, ls.v), ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, R3, ags, alsf(tid), apcf(tid)), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R3 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMRead(lsf(tid).tid, ls.v))) ∧ pre(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ gs0 = gstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ ls0 = lstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ I = pcstepf(gs, lsf(tid), R3, retTMREAD(lsf(tid).tid, ls.v)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R3) = apcf(tid) ∧ (R3 = S ∨ R3 = B1 ∨ R3 = B2 ∨ R3 = B3 ∨ R3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R3 = W1 ∨ R3 = W2 ∨ R3 = W3 ∨ R3 = W4 ∨ R3 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R3 = R1 ∨ R3 = R2 ∨ R3 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R3 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R3 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R3 ≠ E3 ∧ R3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R3 ≠ E3 ∧ R3 ≠ C ∧ R3 ≠ A ∧ R3 ≠ B1 ∧ R3 ≠ S → (gs.glb = lsf(tid).loc ∨ R3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retTMREAD: ⊦ ren(retTMREAD(tid, v), ags, alsf) = callRetTMRead(tid, v); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ callRetTMRead(tid, invInvTMWritev) ≠ τ; (s) ⊦ mkTMLls(tid, loc, l, v) = mkTMLls(tid0, loc0, l0, v0) ↔ tid = tid0 ∧ loc = loc0 ∧ l = l0 ∧ v = v0; (ws) ⊦ pre(gs, ls, R3, a) ↔ a = retTMREAD(ls.tid, ls.v); (s) ⊦ retTMREAD(tid, invTMWRITEv) = retTMREAD(tid0, invTMWRITEv0) ↔ tid = tid0 ∧ invTMWRITEv = invTMWRITEv0; (ws) ⊦ R3 ≠ W1; (s) ⊦ R3 ≠ W3; (s) ⊦ R1 ≠ R3; (s) ⊦ R3 ≠ R4; (s) ⊦ E3 ≠ R3; (s) ⊦ C ≠ R3; (s) ⊦ A ≠ R3; (s) ⊦ pre(gs, ls, pc, callRetTMRead(tid, v)) ↔ pc = ReadResp ∧ ls.tid = tid ∧ v = ls.ov; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), R3, retTMREAD(tid, v)) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), R3, retTMREAD(tid, v)) = mkTMLls(tid, loc, l, v); (s) ⊦ pcstepf(gs, ls, R3, a) = I; (s) ⊦ mkTMLls(tid, loc, l, v).v = v; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R2; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ B1 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ I ≠ W4; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ E2 ≠ R3; (s) ⊦ R2 ≠ R3; (s) ⊦ R3 ≠ W2; (s) ⊦ R3 ≠ W4; (s) ⊦ R3 ≠ W5; (s) ⊦ R3 ≠ S; (s) ⊦ B1 ≠ R3; (s) ⊦ B2 ≠ R3; (s) ⊦ B3 ≠ R3; (s) ⊦ B4 ≠ R3; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, ReadResp, callRetTMRead(tid, v0)) = Ready; (s) ⊦ ls.tid = tid → lstepf(gs, ls, ReadResp, callRetTMRead(tid, v0)) = ls; (s) ⊦ gstepf(gs, ls, ReadResp, a) = gs; (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = R4, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = R4, pcf0(tid) = A, apcf(tid) = apc, (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 ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ (gs0.w ≠ Some(tid) → even(ls0.loc)), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetAbort(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetAbort(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetAbort(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetAbort(ls.tid)), ags0.memories ≠ [], pre(gs, ls, R4, retAbort(ls.tid)) ∧ gs0 = gstepf(gs, ls, R4, retAbort(ls.tid)) ∧ ls0 = lstepf(gs, ls, R4, retAbort(ls.tid)) ∧ A = pcstepf(gs, ls, R4, retAbort(ls.tid)), true, ls.tid = als.tid ∧ abspc(R4) = apc ∧ (R4 = S ∨ R4 = B1 ∨ R4 = B2 ∨ R4 = B3 ∨ R4 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (R4 = W1 ∨ R4 = W2 ∨ R4 = W3 ∨ R4 = W4 ∨ R4 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (R4 = R1 ∨ R4 = R2 ∨ R4 = R4 → ls.l = als.il) ∧ (R4 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (R4 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;R4 ≠ E3 ∧ R4 ≠ C → als.wrset = ∅ ) ∧ ( R4 ≠ E3 ∧ R4 ≠ C ∧ R4 ≠ A ∧ R4 ≠ B1 ∧ R4 ≠ S → (gs.glb = ls.loc ∨ R4 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetAbort(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(A) = apc0 ∧ (A = S ∨ A = B1 ∨ A = B2 ∨ A = B3 ∨ A = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (A = W1 ∨ A = W2 ∨ A = W3 ∨ A = W4 ∨ A = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (A = R1 ∨ A = R2 ∨ A = R4 → ls0.l = als0.il) ∧ (A = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (A ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;A ≠ E3 ∧ A ≠ C → als0.wrset = ∅ ) ∧ ( A ≠ E3 ∧ A ≠ C ∧ A ≠ A ∧ A ≠ B1 ∧ A ≠ S → (gs0.glb = ls0.loc ∨ A = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = R4, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R4 ∧ pcf(tid) = A ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ (gs0.w ≠ Some(tid) → even(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetAbort(lsf(tid).tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetAbort(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetAbort(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetAbort(lsf(tid).tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, lsf(tid), R4, retAbort(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R4, retAbort(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R4, retAbort(lsf(tid).tid)) ∧ A = pcstepf(gs, lsf(tid), R4, retAbort(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R4) = apcf(tid) ∧ (R4 = S ∨ R4 = B1 ∨ R4 = B2 ∨ R4 = B3 ∨ R4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R4 = W1 ∨ R4 = W2 ∨ R4 = W3 ∨ R4 = W4 ∨ R4 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R4 = R1 ∨ R4 = R2 ∨ R4 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R4 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R4 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R4 ≠ E3 ∧ R4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R4 ≠ E3 ∧ R4 ≠ C ∧ R4 ≠ A ∧ R4 ≠ B1 ∧ R4 ≠ S → (gs.glb = lsf(tid).loc ∨ R4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retAbort: ⊦ ren(retAbort(tid), ags, alsf) = callRetAbort(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, pc, callRetAbort(tid)) ↔ ls.tid = tid ∧ ( pc = WriteInv ∨ pc = CommitInv ∨ pc = ReadInv ∨ pc = BeginPending ∨ pc = CancelPending ∨ pc = WriteResp ∨ pc = ReadResp); (s) ⊦ I ≠ R4; (s) ⊦ pre(gs, ls, R4, a) ↔ a = retAbort(ls.tid); (s) ⊦ E3 ≠ R4; (s) ⊦ C ≠ R4; (s) ⊦ R3 ≠ R4; (s) ⊦ R4 ≠ W1; (s) ⊦ R4 ≠ W3; (s) ⊦ R4 ≠ S; (s) ⊦ B1 ≠ R4; (s) ⊦ B2 ≠ R4; (s) ⊦ B3 ≠ R4; (s) ⊦ B4 ≠ R4; (s) ⊦ E2 ≠ R4; (s) ⊦ R2 ≠ R4; (s) ⊦ R4 ≠ W2; (s) ⊦ R4 ≠ W4; (s) ⊦ R4 ≠ W5; (s) ⊦ pcstepf(gs, ls, R4, a) = A; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ ls.tid = tid → pcstepf(gs, ls, ReadInv, callRetAbort(tid)) = Aborted; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ callRetAbort(tid) ≠ τ; (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) ⊦ callDoReadWrSet(tid) ≠ callRetAbort(tid0); (s) ⊦ callDoReadIx(tid, invDoReadIxn) ≠ callRetAbort(tid0); (s) ⊦ callRetAbort(tid) = callRetAbort(tid0) ↔ tid = tid0; (s) ⊦ gstepf(gs, ls, ReadInv, a) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, ReadInv, callRetAbort(tid)) = ls; (s) ⊦ A ≠ I; (s) ⊦ A ≠ W6; (s) ⊦ A ≠ E1; (s) ⊦ A ≠ E2; (s) ⊦ A ≠ S; (s) ⊦ A ≠ B1; (s) ⊦ A ≠ B2; (s) ⊦ A ≠ B3; (s) ⊦ A ≠ B4; (s) ⊦ A ≠ W1; (s) ⊦ A ≠ W2; (s) ⊦ A ≠ W3; (s) ⊦ A ≠ W5; (s) ⊦ A ≠ R1; (s) ⊦ A ≠ R2; (s) ⊦ A ≠ R4; (s) ⊦ A ≠ R3; (s) ⊦ A ≠ W4; (s) ⊦ A ≠ E3; (s) ⊦ A ≠ C; (s) Used terms: lsf, ags, apcf(tid), ags0, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf, apcf, pcf, lsf(tid), apc0, lsf0
| 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) = R4, pcf0(tid) = A, apcf(tid) = apc, (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 ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ (gs0.w ≠ Some(tid) → even(ls0.loc)), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetAbort(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetAbort(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetAbort(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetAbort(ls.tid)), ags0.memories ≠ [], pre(gs, ls, R4, retAbort(ls.tid)) ∧ gs0 = gstepf(gs, ls, R4, retAbort(ls.tid)) ∧ ls0 = lstepf(gs, ls, R4, retAbort(ls.tid)) ∧ A = pcstepf(gs, ls, R4, retAbort(ls.tid)), true, ls.tid = als.tid ∧ abspc(R4) = apc ∧ (R4 = S ∨ R4 = B1 ∨ R4 = B2 ∨ R4 = B3 ∨ R4 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (R4 = W1 ∨ R4 = W2 ∨ R4 = W3 ∨ R4 = W4 ∨ R4 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (R4 = R1 ∨ R4 = R2 ∨ R4 = R4 → ls.l = als.il) ∧ (R4 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (R4 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;R4 ≠ E3 ∧ R4 ≠ C → als.wrset = ∅ ) ∧ ( R4 ≠ E3 ∧ R4 ≠ C ∧ R4 ≠ A ∧ R4 ≠ B1 ∧ R4 ≠ S → (gs.glb = ls.loc ∨ R4 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetAbort(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(A) = apc0 ∧ (A = S ∨ A = B1 ∨ A = B2 ∨ A = B3 ∨ A = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (A = W1 ∨ A = W2 ∨ A = W3 ∨ A = W4 ∨ A = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (A = R1 ∨ A = R2 ∨ A = R4 → ls0.l = als0.il) ∧ (A = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (A ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;A ≠ E3 ∧ A ≠ C → als0.wrset = ∅ ) ∧ ( A ≠ E3 ∧ A ≠ C ∧ A ≠ A ∧ A ≠ B1 ∧ A ≠ S → (gs0.glb = ls0.loc ∨ A = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = R4, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = R4 ∧ pcf(tid) = A ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).loc)) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ ls0.loc ≤ gs0.glb ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ (gs0.w ≠ Some(tid) → even(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetAbort(lsf(tid).tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetAbort(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetAbort(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetAbort(lsf(tid).tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, lsf(tid), R4, retAbort(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), R4, retAbort(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), R4, retAbort(lsf(tid).tid)) ∧ A = pcstepf(gs, lsf(tid), R4, retAbort(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(R4) = apcf(tid) ∧ (R4 = S ∨ R4 = B1 ∨ R4 = B2 ∨ R4 = B3 ∨ R4 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (R4 = W1 ∨ R4 = W2 ∨ R4 = W3 ∨ R4 = W4 ∨ R4 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (R4 = R1 ∨ R4 = R2 ∨ R4 = R4 → lsf(tid).l = alsf(tid).il) ∧ (R4 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (R4 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;R4 ≠ E3 ∧ R4 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( R4 ≠ E3 ∧ R4 ≠ C ∧ R4 ≠ A ∧ R4 ≠ B1 ∧ R4 ≠ S → (gs.glb = lsf(tid).loc ∨ R4 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retAbort: ⊦ ren(retAbort(tid), ags, alsf) = callRetAbort(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ pre(gs, ls, pc, callRetAbort(tid)) ↔ ls.tid = tid ∧ ( pc = WriteInv ∨ pc = CommitInv ∨ pc = ReadInv ∨ pc = BeginPending ∨ pc = CancelPending ∨ pc = WriteResp ∨ pc = ReadResp); (s) ⊦ pre(gs, ls, R4, a) ↔ a = retAbort(ls.tid); (s) ⊦ pcstepf(gs, ls, R4, a) = A; (s) ⊦ I ≠ R4; (s) ⊦ R4 ≠ W1; (s) ⊦ R4 ≠ W3; (s) ⊦ R1 ≠ R4; (s) ⊦ R3 ≠ R4; (s) ⊦ E3 ≠ R4; (s) ⊦ C ≠ R4; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ callRetAbort(tid) ≠ τ; (s) ⊦ R4 ≠ W5; (s) ⊦ R4 ≠ W4; (s) ⊦ R4 ≠ W2; (s) ⊦ R2 ≠ R4; (s) ⊦ E2 ≠ R4; (s) ⊦ R4 ≠ S; (s) ⊦ B1 ≠ R4; (s) ⊦ B2 ≠ R4; (s) ⊦ B3 ≠ R4; (s) ⊦ B4 ≠ R4; (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) ⊦ callDoReadWrSet(tid) ≠ callRetAbort(tid0); (s) ⊦ callDoReadIx(tid, invDoReadIxn) ≠ callRetAbort(tid0); (s) ⊦ callRetAbort(tid) = callRetAbort(tid0) ↔ tid = tid0; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), R4, retAbort(tid)) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), R4, retAbort(tid)) = mkTMLls(tid, loc, l, v); (s) ⊦ gstepf(gs, ls, ReadInv, a) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, ReadInv, callRetAbort(tid)) = ls; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, ReadInv, callRetAbort(tid)) = Aborted; (s) ⊦ A ≠ I; (s) ⊦ A ≠ W6; (s) ⊦ A ≠ E1; (s) ⊦ A ≠ E2; (s) ⊦ A ≠ S; (s) ⊦ A ≠ B1; (s) ⊦ A ≠ B2; (s) ⊦ A ≠ B3; (s) ⊦ A ≠ B4; (s) ⊦ A ≠ W1; (s) ⊦ A ≠ W2; (s) ⊦ A ≠ W3; (s) ⊦ A ≠ W5; (s) ⊦ A ≠ R1; (s) ⊦ A ≠ R2; (s) ⊦ A ≠ R4; (s) ⊦ A ≠ R3; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ A ≠ W4; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ A ≠ E3; (s) ⊦ A ≠ C; (s) ⊦ even(n) → ¬ odd(n); (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = S, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = S, pcf0(tid) = B1, apcf(tid) = apc, (gs.w = Some(tid) → odd(gs.glb)) ∧ gs.w ≠ Some(tid), (gs0.w = Some(tid) → odd(gs0.glb)) ∧ gs0.w ≠ Some(tid), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callInvTMBegin(ls.tid)) → ags0 = gstepf(ags, als, apc, callInvTMBegin(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callInvTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callInvTMBegin(ls.tid)), ags0.memories ≠ [], pre(gs, ls, S, invTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ B1 = pcstepf(gs, ls, S, invTMBEGIN(ls.tid)), true, ls.tid = als.tid ∧ abspc(S) = apc ∧ (S = S ∨ S = B1 ∨ S = B2 ∨ S = B3 ∨ S = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (S = W1 ∨ S = W2 ∨ S = W3 ∨ S = W4 ∨ S = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (S = R1 ∨ S = R2 ∨ S = R4 → ls.l = als.il) ∧ (S = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (S ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;S ≠ E3 ∧ S ≠ C → als.wrset = ∅ ) ∧ (S ≠ E3 ∧ S ≠ C ∧ S ≠ A ∧ S ≠ B1 ∧ S ≠ S → (gs.glb = ls.loc ∨ S = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callInvTMBegin(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(B1) = apc0 ∧ (B1 = S ∨ B1 = B1 ∨ B1 = B2 ∨ B1 = B3 ∨ B1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (B1 = W1 ∨ B1 = W2 ∨ B1 = W3 ∨ B1 = W4 ∨ B1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (B1 = R1 ∨ B1 = R2 ∨ B1 = R4 → ls0.l = als0.il) ∧ (B1 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (B1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;B1 ≠ E3 ∧ B1 ≠ C → als0.wrset = ∅ ) ∧ ( B1 ≠ E3 ∧ B1 ≠ C ∧ B1 ≠ A ∧ B1 ≠ B1 ∧ B1 ≠ S → (gs0.glb = ls0.loc ∨ B1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = S, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = S ∧ pcf0(tid) = B1 ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ gs.w ≠ Some(tid) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ gs0.w ≠ Some(tid) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, S, invTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ B1 = pcstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(S) = apcf(tid) ∧ (S = S ∨ S = B1 ∨ S = B2 ∨ S = B3 ∨ S = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (S = W1 ∨ S = W2 ∨ S = W3 ∨ S = W4 ∨ S = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (S = R1 ∨ S = R2 ∨ S = R4 → ls.l = alsf(tid).il) ∧ (S = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (S ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;S ≠ E3 ∧ S ≠ C → alsf(tid).wrset = ∅ ) ∧ ( S ≠ E3 ∧ S ≠ C ∧ S ≠ A ∧ S ≠ B1 ∧ S ≠ S → (gs.glb = ls.loc ∨ S = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, abspc(B1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = S, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pre(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), B1 = S ∨ B1 = B1 ∨ B1 = B2 ∨ B1 = B3 ∨ B1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, B1 = W1 ∨ B1 = W2 ∨ B1 = W3 ∨ B1 = W4 ∨ B1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, B1 = R1 ∨ B1 = R2 ∨ B1 = R4 → ls0.l = als0.il, B1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), B1 ≠ E3 ∧ B1 ≠ C ∧ B1 ≠ A ∧ B1 ≠ B1 ∧ B1 ≠ S → (gs0.glb = ls0.loc ∨ B1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (B1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;B1 ≠ E3 ∧ B1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: lsf, ags, apcf(tid), ags0, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, ls, apc0, lsf0
| 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) = S, pcf0(tid) = B1, apcf(tid) = apc, (gs.w = Some(tid) → odd(gs.glb)) ∧ gs.w ≠ Some(tid), (gs0.w = Some(tid) → odd(gs0.glb)) ∧ gs0.w ≠ Some(tid), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callInvTMBegin(ls.tid)) → ags0 = gstepf(ags, als, apc, callInvTMBegin(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callInvTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callInvTMBegin(ls.tid)), ags0.memories ≠ [], pre(gs, ls, S, invTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ B1 = pcstepf(gs, ls, S, invTMBEGIN(ls.tid)), true, ls.tid = als.tid ∧ abspc(S) = apc ∧ (S = S ∨ S = B1 ∨ S = B2 ∨ S = B3 ∨ S = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (S = W1 ∨ S = W2 ∨ S = W3 ∨ S = W4 ∨ S = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (S = R1 ∨ S = R2 ∨ S = R4 → ls.l = als.il) ∧ (S = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (S ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;S ≠ E3 ∧ S ≠ C → als.wrset = ∅ ) ∧ (S ≠ E3 ∧ S ≠ C ∧ S ≠ A ∧ S ≠ B1 ∧ S ≠ S → (gs.glb = ls.loc ∨ S = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callInvTMBegin(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(B1) = apc0 ∧ (B1 = S ∨ B1 = B1 ∨ B1 = B2 ∨ B1 = B3 ∨ B1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (B1 = W1 ∨ B1 = W2 ∨ B1 = W3 ∨ B1 = W4 ∨ B1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (B1 = R1 ∨ B1 = R2 ∨ B1 = R4 → ls0.l = als0.il) ∧ (B1 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (B1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;B1 ≠ E3 ∧ B1 ≠ C → als0.wrset = ∅ ) ∧ ( B1 ≠ E3 ∧ B1 ≠ C ∧ B1 ≠ A ∧ B1 ≠ B1 ∧ B1 ≠ S → (gs0.glb = ls0.loc ∨ B1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = S, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = S ∧ pcf0(tid) = B1 ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ gs.w ≠ Some(tid) ∧ (gs0.w = Some(tid) → odd(gs0.glb)) ∧ gs0.w ≠ Some(tid) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, S, invTMBEGIN(ls.tid)) ∧ gs0 = gstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ ls0 = lstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ B1 = pcstepf(gs, ls, S, invTMBEGIN(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(S) = apcf(tid) ∧ (S = S ∨ S = B1 ∨ S = B2 ∨ S = B3 ∨ S = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (S = W1 ∨ S = W2 ∨ S = W3 ∨ S = W4 ∨ S = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (S = R1 ∨ S = R2 ∨ S = R4 → ls.l = alsf(tid).il) ∧ (S = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (S ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;S ≠ E3 ∧ S ≠ C → alsf(tid).wrset = ∅ ) ∧ ( S ≠ E3 ∧ S ≠ C ∧ S ≠ A ∧ S ≠ B1 ∧ S ≠ S → (gs.glb = ls.loc ∨ S = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-invTMBEGIN: ⊦ ren(invTMBEGIN(tid), ags, alsf) = callInvTMBegin(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ pre(gs, ls, pc, callInvTMBegin(tid)) ↔ pc = NotStarted ∧ ls.tid = tid; (s) ⊦ pre(gs, ls, S, a) ↔ a = invTMBEGIN(ls.tid); (s) ⊦ invTMBEGIN(tid) = invTMBEGIN(tid0) ↔ tid = tid0; (s) ⊦ S ≠ W5; (s) ⊦ S ≠ W4; (s) ⊦ callInvTMBegin(tid) ≠ τ; (s) ⊦ I ≠ S; (s) ⊦ B2 ≠ S; (s) ⊦ B3 ≠ S; (s) ⊦ R1 ≠ S; (s) ⊦ R3 ≠ S; (s) ⊦ R4 ≠ S; (s) ⊦ E1 ≠ S; (s) ⊦ E3 ≠ S; (s) ⊦ S ≠ W1; (s) ⊦ S ≠ W3; (s) ⊦ S ≠ W6; (s) ⊦ C ≠ S; (s) ⊦ A ≠ S; (s) ⊦ S ≠ W2; (s) ⊦ R2 ≠ S; (s) ⊦ E2 ≠ S; (s) ⊦ NotStarted ≠ Ready; (s) ⊦ BeginPending ≠ NotStarted; (s) ⊦ CommitResp ≠ NotStarted; (s) ⊦ NotStarted ≠ ReadResp; (s) ⊦ NotStarted ≠ WriteResp; (s) ⊦ CommitInv ≠ NotStarted; (s) ⊦ NotStarted ≠ ReadInv; (s) ⊦ NotStarted ≠ WriteInv; (s) ⊦ CancelPending ≠ NotStarted; (s) ⊦ Committed ≠ NotStarted; (s) ⊦ Aborted ≠ NotStarted; (s) ⊦ B4 ≠ S; (s) ⊦ mkTMLls(tid, loc, l, v) = mkTMLls(tid0, loc0, l0, v0) ↔ tid = tid0 ∧ loc = loc0 ∧ l = l0 ∧ v = v0; (ws) ⊦ pre(gs, ls, NotStarted, a) ↔ a = callInvTMBegin(ls.tid); (s) ⊦ callInvTMBegin(tid) = callInvTMBegin(tid0) ↔ tid = tid0; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), S, invTMBEGIN(tid)) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), S, invTMBEGIN(tid)) = mkTMLls(tid, loc, l, v); (s) ⊦ pcstepf(gs, mkTMLls(tid, loc, l, v), S, invTMBEGIN(tid)) = B1; (s) ⊦ ls.tid = tid → gstepf(gs, ls, NotStarted, callInvTMBegin(tid)) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, NotStarted, callInvTMBegin(tid)) = ls.beginIdx:= (# gs.memories - 1); (s) ⊦ ls.tid = tid → pcstepf(gs, ls, NotStarted, callInvTMBegin(tid)) = BeginPending; (s) ⊦ (ls.beginIdx:= beginIdx).tid = ls.tid; (s) ⊦ B1 ≠ S; (s) ⊦ (ls.beginIdx:= beginIdx).rdset = ls.rdset; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ B1 ≠ W1; (s) ⊦ B1 ≠ W2; (s) ⊦ B1 ≠ W3; (s) ⊦ B1 ≠ W4; (s) ⊦ B1 ≠ W5; (s) ⊦ B1 ≠ R1; (s) ⊦ B1 ≠ R2; (s) ⊦ B1 ≠ R4; (s) ⊦ B1 ≠ R3; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ (ls.beginIdx:= beginIdx).wrset = ls.wrset; (s) ⊦ B1 ≠ E3; (s) ⊦ B1 ≠ C; (s) ⊦ A ≠ B1; (s)
| lsf(tid).tid = tid, alsf(tid).tid = tid, ls0.tid = als0.tid, even(gs.glb) ↔ gs.w = None, abspc(B1) = apc0, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = S, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pre(ags, alsf(tid), apcf(tid), callInvTMBegin(ls.tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), B1 = S ∨ B1 = B1 ∨ B1 = B2 ∨ B1 = B3 ∨ B1 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅, even(ls0.loc) → als0.wrset = ∅, B1 = W1 ∨ B1 = W2 ∨ B1 = W3 ∨ B1 = W4 ∨ B1 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov, B1 = R1 ∨ B1 = R2 ∨ B1 = R4 → ls0.l = als0.il, B1 = R3 → ls0.v = als0.ov, gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb), B1 ≠ E3 ∧ B1 ≠ C ∧ B1 ≠ A ∧ B1 ≠ B1 ∧ B1 ≠ S → (gs0.glb = ls0.loc ∨ B1 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)), (gs0.w = Some(ls0.tid) ⊃ (B1 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;B1 ≠ E3 ∧ B1 ≠ C → als0.wrset = ∅ ), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-invTMBEGIN: ⊦ ren(invTMBEGIN(tid), ags, alsf) = callInvTMBegin(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ pre(gs, ls, S, a) ↔ a = invTMBEGIN(ls.tid); (s) ⊦ pre(gs, ls, pc, callInvTMBegin(tid)) ↔ pc = NotStarted ∧ ls.tid = tid; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, NotStarted, callInvTMBegin(tid)) = BeginPending; (s) ⊦ S ≠ W5; (s) ⊦ S ≠ W4; (s) ⊦ callInvTMBegin(tid) ≠ τ; (s) ⊦ I ≠ S; (s) ⊦ B2 ≠ S; (s) ⊦ B3 ≠ S; (s) ⊦ R1 ≠ S; (s) ⊦ R3 ≠ S; (s) ⊦ R4 ≠ S; (s) ⊦ E1 ≠ S; (s) ⊦ E3 ≠ S; (s) ⊦ S ≠ W1; (s) ⊦ S ≠ W3; (s) ⊦ S ≠ W6; (s) ⊦ C ≠ S; (s) ⊦ A ≠ S; (s) ⊦ S ≠ W2; (s) ⊦ R2 ≠ S; (s) ⊦ E2 ≠ S; (s) ⊦ NotStarted ≠ Ready; (s) ⊦ BeginPending ≠ NotStarted; (s) ⊦ CommitResp ≠ NotStarted; (s) ⊦ NotStarted ≠ ReadResp; (s) ⊦ NotStarted ≠ WriteResp; (s) ⊦ CommitInv ≠ NotStarted; (s) ⊦ NotStarted ≠ ReadInv; (s) ⊦ NotStarted ≠ WriteInv; (s) ⊦ CancelPending ≠ NotStarted; (s) ⊦ Committed ≠ NotStarted; (s) ⊦ Aborted ≠ NotStarted; (s) ⊦ ∅ ⊆ mem; (s) ⊦ mem ⊕ ∅ = mem; (s) ⊦ B4 ≠ S; (s) ⊦ pre(gs, ls, NotStarted, a) ↔ a = callInvTMBegin(ls.tid); (s) ⊦ callInvTMBegin(tid) = callInvTMBegin(tid0) ↔ tid = tid0; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), S, invTMBEGIN(tid)) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), S, invTMBEGIN(tid)) = mkTMLls(tid, loc, l, v); (s) ⊦ pcstepf(gs, mkTMLls(tid, loc, l, v), S, invTMBEGIN(tid)) = B1; (s) ⊦ ls.tid = tid → gstepf(gs, ls, NotStarted, callInvTMBegin(tid)) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, NotStarted, callInvTMBegin(tid)) = ls.beginIdx:= (# gs.memories - 1); (s) ⊦ (ls.beginIdx:= beginIdx).tid = ls.tid; (s) ⊦ B1 ≠ S; (s) ⊦ (ls.beginIdx:= beginIdx).rdset = ls.rdset; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ B1 ≠ W1; (s) ⊦ B1 ≠ W2; (s) ⊦ B1 ≠ W3; (s) ⊦ B1 ≠ W4; (s) ⊦ B1 ≠ W5; (s) ⊦ B1 ≠ R1; (s) ⊦ B1 ≠ R2; (s) ⊦ B1 ≠ R4; (s) ⊦ B1 ≠ R3; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ (ls.beginIdx:= beginIdx).wrset = ls.wrset; (s) ⊦ B1 ≠ E3; (s) ⊦ B1 ≠ C; (s) ⊦ A ≠ B1; (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = W3, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = W3, pcf0(tid) = A, apcf(tid) = apc, (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 ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ (gs0.w ≠ Some(tid) → even(ls0.loc)), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetAbort(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetAbort(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetAbort(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetAbort(ls.tid)), ags0.memories ≠ [], pre(gs, ls, W3, retAbort(ls.tid)) ∧ gs0 = gstepf(gs, ls, W3, retAbort(ls.tid)) ∧ ls0 = lstepf(gs, ls, W3, retAbort(ls.tid)) ∧ A = pcstepf(gs, ls, W3, retAbort(ls.tid)), true, ls.tid = als.tid ∧ abspc(W3) = apc ∧ (W3 = S ∨ W3 = B1 ∨ W3 = B2 ∨ W3 = B3 ∨ W3 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (W3 = W1 ∨ W3 = W2 ∨ W3 = W3 ∨ W3 = W4 ∨ W3 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (W3 = R1 ∨ W3 = R2 ∨ W3 = R4 → ls.l = als.il) ∧ (W3 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (W3 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;W3 ≠ E3 ∧ W3 ≠ C → als.wrset = ∅ ) ∧ ( W3 ≠ E3 ∧ W3 ≠ C ∧ W3 ≠ A ∧ W3 ≠ B1 ∧ W3 ≠ S → (gs.glb = ls.loc ∨ W3 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetAbort(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(A) = apc0 ∧ (A = S ∨ A = B1 ∨ A = B2 ∨ A = B3 ∨ A = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (A = W1 ∨ A = W2 ∨ A = W3 ∨ A = W4 ∨ A = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (A = R1 ∨ A = R2 ∨ A = R4 → ls0.l = als0.il) ∧ (A = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (A ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;A ≠ E3 ∧ A ≠ C → als0.wrset = ∅ ) ∧ ( A ≠ E3 ∧ A ≠ C ∧ A ≠ A ∧ A ≠ B1 ∧ A ≠ S → (gs0.glb = ls0.loc ∨ A = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = W3, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = W3 ∧ pcf0(tid) = A ∧ apcf(tid) = apcf(tid) ∧ (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 ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ (gs0.w ≠ Some(tid) → even(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetAbort(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetAbort(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetAbort(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetAbort(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, W3, retAbort(ls.tid)) ∧ gs0 = gstepf(gs, ls, W3, retAbort(ls.tid)) ∧ ls0 = lstepf(gs, ls, W3, retAbort(ls.tid)) ∧ A = pcstepf(gs, ls, W3, retAbort(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(W3) = apcf(tid) ∧ (W3 = S ∨ W3 = B1 ∨ W3 = B2 ∨ W3 = B3 ∨ W3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (W3 = W1 ∨ W3 = W2 ∨ W3 = W3 ∨ W3 = W4 ∨ W3 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (W3 = R1 ∨ W3 = R2 ∨ W3 = R4 → ls.l = alsf(tid).il) ∧ (W3 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (W3 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;W3 ≠ E3 ∧ W3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( W3 ≠ E3 ∧ W3 ≠ C ∧ W3 ≠ A ∧ W3 ≠ B1 ∧ W3 ≠ S → (gs.glb = ls.loc ∨ W3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retAbort: ⊦ ren(retAbort(tid), ags, alsf) = callRetAbort(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, pc, callRetAbort(tid)) ↔ ls.tid = tid ∧ ( pc = WriteInv ∨ pc = CommitInv ∨ pc = ReadInv ∨ pc = BeginPending ∨ pc = CancelPending ∨ pc = WriteResp ∨ pc = ReadResp); (s) ⊦ I ≠ W3; (s) ⊦ R1 ≠ W3; (s) ⊦ R4 ≠ W3; (s) ⊦ R3 ≠ W3; (s) ⊦ pre(gs, ls, W3, a) ↔ a = retAbort(ls.tid); (s) ⊦ E3 ≠ W3; (s) ⊦ C ≠ W3; (s) ⊦ S ≠ W3; (s) ⊦ B1 ≠ W3; (s) ⊦ B2 ≠ W3; (s) ⊦ B3 ≠ W3; (s) ⊦ B4 ≠ W3; (s) ⊦ E2 ≠ W3; (s) ⊦ R2 ≠ W3; (s) ⊦ W2 ≠ W3; (s) ⊦ W3 ≠ W4; (s) ⊦ W3 ≠ W5; (s) ⊦ pcstepf(gs, ls, W3, a) = A; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ ls.tid = tid → pcstepf(gs, ls, WriteInv, callRetAbort(tid)) = Aborted; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ callRetAbort(tid) ≠ τ; (s) ⊦ pre(gs, ls, WriteInv, a) ↔ a = callDoWrite(ls.tid) ∨ a = callRetAbort(ls.tid); (s) ⊦ callDoWrite(tid) ≠ callRetAbort(tid0); (s) ⊦ callRetAbort(tid) = callRetAbort(tid0) ↔ tid = tid0; (s) ⊦ gstepf(gs, ls, WriteInv, a) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, WriteInv, callRetAbort(tid)) = ls; (s) ⊦ A ≠ I; (s) ⊦ A ≠ W6; (s) ⊦ A ≠ E1; (s) ⊦ A ≠ E2; (s) ⊦ A ≠ S; (s) ⊦ A ≠ B1; (s) ⊦ A ≠ B2; (s) ⊦ A ≠ B3; (s) ⊦ A ≠ B4; (s) ⊦ A ≠ W1; (s) ⊦ A ≠ W2; (s) ⊦ A ≠ W3; (s) ⊦ A ≠ W5; (s) ⊦ A ≠ R1; (s) ⊦ A ≠ R2; (s) ⊦ A ≠ R4; (s) ⊦ A ≠ R3; (s) ⊦ A ≠ W4; (s) ⊦ A ≠ E3; (s) ⊦ A ≠ C; (s) Used terms: lsf, ags, apcf(tid), ags0, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, ls, apc0, lsf0
| 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) = W3, pcf0(tid) = A, apcf(tid) = apc, (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 ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ (gs0.w ≠ Some(tid) → even(ls0.loc)), TMS2LInv(ags, als, apc), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetAbort(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetAbort(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetAbort(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetAbort(ls.tid)), ags0.memories ≠ [], pre(gs, ls, W3, retAbort(ls.tid)) ∧ gs0 = gstepf(gs, ls, W3, retAbort(ls.tid)) ∧ ls0 = lstepf(gs, ls, W3, retAbort(ls.tid)) ∧ A = pcstepf(gs, ls, W3, retAbort(ls.tid)), true, ls.tid = als.tid ∧ abspc(W3) = apc ∧ (W3 = S ∨ W3 = B1 ∨ W3 = B2 ∨ W3 = B3 ∨ W3 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (W3 = W1 ∨ W3 = W2 ∨ W3 = W3 ∨ W3 = W4 ∨ W3 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (W3 = R1 ∨ W3 = R2 ∨ W3 = R4 → ls.l = als.il) ∧ (W3 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (W3 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;W3 ≠ E3 ∧ W3 ≠ C → als.wrset = ∅ ) ∧ ( W3 ≠ E3 ∧ W3 ≠ C ∧ W3 ≠ A ∧ W3 ≠ B1 ∧ W3 ≠ S → (gs.glb = ls.loc ∨ W3 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetAbort(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(A) = apc0 ∧ (A = S ∨ A = B1 ∨ A = B2 ∨ A = B3 ∨ A = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (A = W1 ∨ A = W2 ∨ A = W3 ∨ A = W4 ∨ A = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (A = R1 ∨ A = R2 ∨ A = R4 → ls0.l = als0.il) ∧ (A = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (A ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;A ≠ E3 ∧ A ≠ C → als0.wrset = ∅ ) ∧ ( A ≠ E3 ∧ A ≠ C ∧ A ≠ A ∧ A ≠ B1 ∧ A ≠ S → (gs0.glb = ls0.loc ∨ A = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = W3, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = ls ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = W3 ∧ pcf0(tid) = A ∧ apcf(tid) = apcf(tid) ∧ (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 ∧ (gs0.w = Some(tid) → odd(ls0.loc)) ∧ (gs0.w ≠ Some(tid) → even(ls0.loc)) ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetAbort(ls.tid)) → ags0 = gstepf(ags, alsf(tid), apcf(tid), callRetAbort(ls.tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetAbort(ls.tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetAbort(ls.tid))) ∧ ags0.memories ≠ [] ∧ pre(gs, ls, W3, retAbort(ls.tid)) ∧ gs0 = gstepf(gs, ls, W3, retAbort(ls.tid)) ∧ ls0 = lstepf(gs, ls, W3, retAbort(ls.tid)) ∧ A = pcstepf(gs, ls, W3, retAbort(ls.tid)) ∧ true ∧ ls.tid = alsf(tid).tid ∧ abspc(W3) = apcf(tid) ∧ (W3 = S ∨ W3 = B1 ∨ W3 = B2 ∨ W3 = B3 ∨ W3 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(ls.loc) → alsf(tid).wrset = ∅) ∧ (W3 = W1 ∨ W3 = W2 ∨ W3 = W3 ∨ W3 = W4 ∨ W3 = W5 → ls.l = alsf(tid).il ∧ ls.v = alsf(tid).ov) ∧ (W3 = R1 ∨ W3 = R2 ∨ W3 = R4 → ls.l = alsf(tid).il) ∧ (W3 = R3 → ls.v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (W3 ≠ W4 → odd(ls.loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;W3 ≠ E3 ∧ W3 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( W3 ≠ E3 ∧ W3 ≠ C ∧ W3 ≠ A ∧ W3 ≠ B1 ∧ W3 ≠ S → (gs.glb = ls.loc ∨ W3 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retAbort: ⊦ ren(retAbort(tid), ags, alsf) = callRetAbort(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ pre(gs, ls, pc, callRetAbort(tid)) ↔ ls.tid = tid ∧ ( pc = WriteInv ∨ pc = CommitInv ∨ pc = ReadInv ∨ pc = BeginPending ∨ pc = CancelPending ∨ pc = WriteResp ∨ pc = ReadResp); (s) ⊦ pre(gs, ls, W3, a) ↔ a = retAbort(ls.tid); (s) ⊦ retAbort(tid) = retAbort(tid0) ↔ tid = tid0; (s) ⊦ pcstepf(gs, ls, W3, a) = A; (s) ⊦ I ≠ W3; (s) ⊦ W1 ≠ W3; (s) ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ mkTMLls(tid, loc, l, v).v = v; (s) ⊦ R1 ≠ W3; (s) ⊦ R4 ≠ W3; (s) ⊦ R3 ≠ W3; (s) ⊦ E3 ≠ W3; (s) ⊦ C ≠ W3; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ callRetAbort(tid) ≠ τ; (s) ⊦ W3 ≠ W5; (s) ⊦ W3 ≠ W4; (s) ⊦ W2 ≠ W3; (s) ⊦ R2 ≠ W3; (s) ⊦ E2 ≠ W3; (s) ⊦ S ≠ W3; (s) ⊦ B1 ≠ W3; (s) ⊦ B2 ≠ W3; (s) ⊦ B3 ≠ W3; (s) ⊦ B4 ≠ W3; (s) ⊦ mkTMLls(tid, loc, l, v) = mkTMLls(tid0, loc0, l0, v0) ↔ tid = tid0 ∧ loc = loc0 ∧ l = l0 ∧ v = v0; (ws) ⊦ pre(gs, ls, WriteInv, a) ↔ a = callDoWrite(ls.tid) ∨ a = callRetAbort(ls.tid); (s) ⊦ callDoWrite(tid) ≠ callRetAbort(tid0); (s) ⊦ callRetAbort(tid) = callRetAbort(tid0) ↔ tid = tid0; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), W3, retAbort(tid)) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), W3, retAbort(tid)) = mkTMLls(tid, loc, l, v); (s) ⊦ gstepf(gs, ls, WriteInv, a) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, WriteInv, callRetAbort(tid)) = ls; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, WriteInv, callRetAbort(tid)) = Aborted; (s) ⊦ A ≠ I; (s) ⊦ A ≠ W6; (s) ⊦ A ≠ E1; (s) ⊦ A ≠ E2; (s) ⊦ A ≠ S; (s) ⊦ A ≠ B1; (s) ⊦ A ≠ B2; (s) ⊦ A ≠ B3; (s) ⊦ A ≠ B4; (s) ⊦ A ≠ W1; (s) ⊦ A ≠ W2; (s) ⊦ A ≠ W3; (s) ⊦ A ≠ W5; (s) ⊦ A ≠ R1; (s) ⊦ A ≠ R2; (s) ⊦ A ≠ R4; (s) ⊦ A ≠ R3; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ A ≠ W4; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ A ≠ E3; (s) ⊦ A ≠ C; (s) ⊦ even(n) → ¬ odd(n); (s)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = W5, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = W5, pcf0(tid) = W6, apcf(tid) = apc, gs.w = Some(tid) ∧ (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callDoWrite(ls.tid)) → ags0 = gstepf(ags, als, apc, callDoWrite(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callDoWrite(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callDoWrite(ls.tid)), ags0.memories ≠ [], pre(gs, ls, W5, doWrite(ls.tid)) ∧ gs0 = gstepf(gs, ls, W5, doWrite(ls.tid)) ∧ ls0 = lstepf(gs, ls, W5, doWrite(ls.tid)) ∧ W6 = pcstepf(gs, ls, W5, doWrite(ls.tid)), true, ls.tid = als.tid ∧ abspc(W5) = apc ∧ (W5 = S ∨ W5 = B1 ∨ W5 = B2 ∨ W5 = B3 ∨ W5 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (W5 = W1 ∨ W5 = W2 ∨ W5 = W3 ∨ W5 = W4 ∨ W5 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (W5 = R1 ∨ W5 = R2 ∨ W5 = R4 → ls.l = als.il) ∧ (W5 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (W5 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;W5 ≠ E3 ∧ W5 ≠ C → als.wrset = ∅ ) ∧ ( W5 ≠ E3 ∧ W5 ≠ C ∧ W5 ≠ A ∧ W5 ≠ B1 ∧ W5 ≠ S → (gs.glb = ls.loc ∨ W5 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callDoWrite(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(W6) = apc0 ∧ (W6 = S ∨ W6 = B1 ∨ W6 = B2 ∨ W6 = B3 ∨ W6 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (W6 = W1 ∨ W6 = W2 ∨ W6 = W3 ∨ W6 = W4 ∨ W6 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (W6 = R1 ∨ W6 = R2 ∨ W6 = R4 → ls0.l = als0.il) ∧ (W6 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (W6 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;W6 ≠ E3 ∧ W6 ≠ C → als0.wrset = ∅ ) ∧ ( W6 ≠ E3 ∧ W6 ≠ C ∧ W6 ≠ A ∧ W6 ≠ B1 ∧ W6 ≠ S → (gs0.glb = ls0.loc ∨ W6 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = W5, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = W5 ∧ pcf0(tid) = W6 ∧ apcf(tid) = apcf(tid) ∧ gs.w = Some(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid))) ∧ pre(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ W6 = pcstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(W5) = apcf(tid) ∧ (W5 = S ∨ W5 = B1 ∨ W5 = B2 ∨ W5 = B3 ∨ W5 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (W5 = W1 ∨ W5 = W2 ∨ W5 = W3 ∨ W5 = W4 ∨ W5 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (W5 = R1 ∨ W5 = R2 ∨ W5 = R4 → lsf(tid).l = alsf(tid).il) ∧ (W5 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (W5 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;W5 ≠ E3 ∧ W5 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( W5 ≠ E3 ∧ W5 ≠ C ∧ W5 ≠ A ∧ W5 ≠ B1 ∧ W5 ≠ S → (gs.glb = lsf(tid).loc ∨ W5 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-doWrite: ⊦ ren(doWrite(tid), ags, alsf) = callDoWrite(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, pc, callDoWrite(tid)) ↔ pc = WriteInv ∧ ls.tid = tid; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ I ≠ W5; (s) ⊦ R1 ≠ W5; (s) ⊦ R4 ≠ W5; (s) ⊦ R3 ≠ W5; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ W2 ≠ W5; (s) ⊦ W4 ≠ W5; (s) ⊦ B4 ≠ W5; (s) ⊦ B3 ≠ W5; (s) ⊦ B2 ≠ W5; (s) ⊦ B1 ≠ W5; (s) ⊦ S ≠ W5; (s) ⊦ m ≤ m; (s) ⊦ pre(gs, ls, W5, a) ↔ a = doWrite(ls.tid); (s) ⊦ E3 ≠ W5; (s) ⊦ C ≠ W5; (s) ⊦ A ≠ W5; (s) ⊦ R2 ≠ W5; (s) ⊦ pre(gs, ls, WriteInv, a) ↔ a = callDoWrite(ls.tid) ∨ a = callRetAbort(ls.tid); (s) ⊦ gstepf(gs, ls, W5, a) = gs.mem:= gs.mem(ls.l := ls.v); (s) ⊦ lstepf(gs, ls, W5, a) = ls; (s) ⊦ pcstepf(gs, ls, W5, a) = W6; (s) ⊦ gstepf(gs, ls, WriteInv, a) = gs; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, WriteInv, callDoWrite(tid)) = WriteResp; (s) ⊦ callDoWrite(tid) ≠ τ; (s) ⊦ callDoWrite(tid) = callDoWrite(tid0) ↔ tid = tid0; (s) ⊦ ls.tid = tid → lstepf(gs, ls, WriteInv, callDoWrite(tid)) = ls.wrset:= ls.wrset[ls.il := ls.ov]; (s) ⊦ (ls.wrset:= rdset0).tid = ls.tid; (s) ⊦ I ≠ W6; (s) ⊦ B2 ≠ W6; (s) ⊦ B3 ≠ W6; (s) ⊦ B4 ≠ W6; (s) ⊦ W1 ≠ W6; (s) ⊦ W2 ≠ W6; (s) ⊦ W3 ≠ W6; (s) ⊦ W5 ≠ W6; (s) ⊦ R1 ≠ W6; (s) ⊦ R2 ≠ W6; (s) ⊦ R4 ≠ W6; (s) ⊦ R3 ≠ W6; (s) ⊦ (gs.mem:= mem).w = gs.w; (s) ⊦ W4 ≠ W6; (s) ⊦ (gs.mem:= mem).mem = mem; (s) ⊦ (ls.wrset:= rdset0).wrset = rdset0; (s) ⊦ st[a := d] ≠ ∅; (s) ⊦ E3 ≠ W6; (s) ⊦ C ≠ W6; (s) ⊦ A ≠ W6; (s) ⊦ B1 ≠ W6; (s) ⊦ S ≠ W6; (s) ⊦ (gs.mem:= mem).glb = gs.glb; (s) ⊦ (ls.wrset:= rdset0).rdset = ls.rdset; (s) ⊦ odd(n) → ¬ even(n); (s) ⊦ Some(t) ≠ None; (s) Used terms: lsf, ags, apcf(tid), ags, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, lsf(tid), apc0, lsf0
| 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) = W5, pcf0(tid) = W6, apcf(tid) = apc, gs.w = Some(tid) ∧ (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callDoWrite(ls.tid)) → ags0 = gstepf(ags, als, apc, callDoWrite(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callDoWrite(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callDoWrite(ls.tid)), ags0.memories ≠ [], pre(gs, ls, W5, doWrite(ls.tid)) ∧ gs0 = gstepf(gs, ls, W5, doWrite(ls.tid)) ∧ ls0 = lstepf(gs, ls, W5, doWrite(ls.tid)) ∧ W6 = pcstepf(gs, ls, W5, doWrite(ls.tid)), true, ls.tid = als.tid ∧ abspc(W5) = apc ∧ (W5 = S ∨ W5 = B1 ∨ W5 = B2 ∨ W5 = B3 ∨ W5 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (W5 = W1 ∨ W5 = W2 ∨ W5 = W3 ∨ W5 = W4 ∨ W5 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (W5 = R1 ∨ W5 = R2 ∨ W5 = R4 → ls.l = als.il) ∧ (W5 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (W5 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;W5 ≠ E3 ∧ W5 ≠ C → als.wrset = ∅ ) ∧ ( W5 ≠ E3 ∧ W5 ≠ C ∧ W5 ≠ A ∧ W5 ≠ B1 ∧ W5 ≠ S → (gs.glb = ls.loc ∨ W5 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callDoWrite(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(W6) = apc0 ∧ (W6 = S ∨ W6 = B1 ∨ W6 = B2 ∨ W6 = B3 ∨ W6 = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (W6 = W1 ∨ W6 = W2 ∨ W6 = W3 ∨ W6 = W4 ∨ W6 = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (W6 = R1 ∨ W6 = R2 ∨ W6 = R4 → ls0.l = als0.il) ∧ (W6 = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (W6 ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;W6 ≠ E3 ∧ W6 ≠ C → als0.wrset = ∅ ) ∧ ( W6 ≠ E3 ∧ W6 ≠ C ∧ W6 ≠ A ∧ W6 ≠ B1 ∧ W6 ≠ S → (gs0.glb = ls0.loc ∨ W6 = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = W5, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = W5 ∧ pcf0(tid) = W6 ∧ apcf(tid) = apcf(tid) ∧ gs.w = Some(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid))) ∧ pre(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ W6 = pcstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(W5) = apcf(tid) ∧ (W5 = S ∨ W5 = B1 ∨ W5 = B2 ∨ W5 = B3 ∨ W5 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (W5 = W1 ∨ W5 = W2 ∨ W5 = W3 ∨ W5 = W4 ∨ W5 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (W5 = R1 ∨ W5 = R2 ∨ W5 = R4 → lsf(tid).l = alsf(tid).il) ∧ (W5 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (W5 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;W5 ≠ E3 ∧ W5 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( W5 ≠ E3 ∧ W5 ≠ C ∧ W5 ≠ A ∧ W5 ≠ B1 ∧ W5 ≠ S → (gs.glb = lsf(tid).loc ∨ W5 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = W5, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = W5 ∧ pcf0(tid) = W6 ∧ apcf(tid) = apcf(tid) ∧ gs.w = Some(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid))) ∧ pre(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ W6 = pcstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(W5) = apcf(tid) ∧ (W5 = S ∨ W5 = B1 ∨ W5 = B2 ∨ W5 = B3 ∨ W5 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (W5 = W1 ∨ W5 = W2 ∨ W5 = W3 ∨ W5 = W4 ∨ W5 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (W5 = R1 ∨ W5 = R2 ∨ W5 = R4 → lsf(tid).l = alsf(tid).il) ∧ (W5 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (W5 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;W5 ≠ E3 ∧ W5 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( W5 ≠ E3 ∧ W5 ≠ C ∧ W5 ≠ A ∧ W5 ≠ B1 ∧ W5 ≠ S → (gs.glb = lsf(tid).loc ∨ W5 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used simplifier rules: TMLLState freely generated by mkTMLls;;
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls = mkTMLls(tid1, x_Nat, l, v), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = W5, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = W5 ∧ pcf0(tid) = W6 ∧ apcf(tid) = apcf(tid) ∧ gs.w = Some(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callDoWrite(lsf(tid).tid))) ∧ pre(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ W6 = pcstepf(gs, lsf(tid), W5, doWrite(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(W5) = apcf(tid) ∧ (W5 = S ∨ W5 = B1 ∨ W5 = B2 ∨ W5 = B3 ∨ W5 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (W5 = W1 ∨ W5 = W2 ∨ W5 = W3 ∨ W5 = W4 ∨ W5 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (W5 = R1 ∨ W5 = R2 ∨ W5 = R4 → lsf(tid).l = alsf(tid).il) ∧ (W5 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (W5 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;W5 ≠ E3 ∧ W5 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( W5 ≠ E3 ∧ W5 ≠ C ∧ W5 ≠ A ∧ W5 ≠ B1 ∧ W5 ≠ S → (gs.glb = lsf(tid).loc ∨ W5 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = mkTMLls(tid1, x_Nat, l, v), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = W5, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ¬ TMS2LInv(ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doWrite: ⊦ ren(doWrite(tid), ags, alsf) = callDoWrite(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ren-doWrite: ⊦ ren(doWrite(tid), ags, alsf) = callDoWrite(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ odd(n) → ¬ even(n); (s) ⊦ I ≠ W5; (s) ⊦ R1 ≠ W5; (s) ⊦ R4 ≠ W5; (s) ⊦ R3 ≠ W5; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ W2 ≠ W5; (s) ⊦ W4 ≠ W5; (s) ⊦ B4 ≠ W5; (s) ⊦ B3 ≠ W5; (s) ⊦ B2 ≠ W5; (s) ⊦ B1 ≠ W5; (s) ⊦ S ≠ W5; (s) ⊦ Some(t) ≠ None; (s) ⊦ m ≤ m; (s) ⊦ pre(gs, ls, W5, a) ↔ a = doWrite(ls.tid); (s) ⊦ gstepf(gs, ls, W5, a) = gs.mem:= gs.mem(ls.l := ls.v); (s) ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ mkTMLls(tid, loc, l, v).v = v; (s) ⊦ lstepf(gs, ls, W5, a) = ls; (s) ⊦ pcstepf(gs, ls, W5, a) = W6; (s) ⊦ R2 ≠ W5; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ E3 ≠ W5; (s) ⊦ C ≠ W5; (s) ⊦ A ≠ W5; (s) ⊦ W1 ≠ W5; (s) ⊦ W3 ≠ W5; (s) ⊦ mkTMLls(tid, loc, l, v) = mkTMLls(tid0, loc0, l0, v0) ↔ tid = tid0 ∧ loc = loc0 ∧ l = l0 ∧ v = v0; (ws) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ pre(gs, ls, pc, callDoWrite(tid)) ↔ pc = WriteInv ∧ ls.tid = tid; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ pre(gs, ls, WriteInv, a) ↔ a = callDoWrite(ls.tid) ∨ a = callRetAbort(ls.tid); (s) ⊦ gstepf(gs, ls, WriteInv, a) = gs; (s) ⊦ callDoWrite(tid) ≠ τ; (s) ⊦ ls.tid = tid → lstepf(gs, ls, WriteInv, callDoWrite(tid)) = ls.wrset:= ls.wrset[ls.il := ls.ov]; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, WriteInv, callDoWrite(tid)) = WriteResp; (s) ⊦ even(n) ↔ ¬ odd(n); (ss) ⊦ (gs.mem:= mem).w = gs.w; (s) ⊦ odd(n) ↔ ¬ even(n); (ss) ⊦ I ≠ W6; (s) ⊦ S ≠ W6; (s) ⊦ B1 ≠ W6; (s) ⊦ B2 ≠ W6; (s) ⊦ B3 ≠ W6; (s) ⊦ B4 ≠ W6; (s) ⊦ W1 ≠ W6; (s) ⊦ W2 ≠ W6; (s) ⊦ W3 ≠ W6; (s) ⊦ W5 ≠ W6; (s) ⊦ R1 ≠ W6; (s) ⊦ R2 ≠ W6; (s) ⊦ R4 ≠ W6; (s) ⊦ R3 ≠ W6; (s) ⊦ (gs.mem:= mem).mem = mem; (s) ⊦ (gs.mem:= mem).glb = gs.glb; (s) ⊦ W4 ≠ W6; (s) ⊦ even(n) → ¬ odd(n); (s) ⊦ m ≤ n ↔ ¬ n < m; (ss) ⊦ E3 ≠ W6; (s) ⊦ C ≠ W6; (s) ⊦ A ≠ W6; (s) lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic ⊦ m < n → n ≠ 0; (s) ⊦ ¬ n < n; (s) ⊦ m < n → (n ≤ m ↔ false); (s)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = mkTMLls(tid1, x_Nat, l, v), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = W5, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ¬ TMS2LInv(ags, alsf(tid), apcf(tid)), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
⊦ 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: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, W5, a) ↔ a = doWrite(ls.tid); (s) ⊦ I ≠ W5; (s) ⊦ B2 ≠ W5; (s) ⊦ B3 ≠ W5; (s) ⊦ B4 ≠ W5; (s) ⊦ W1 ≠ W5; (s) ⊦ W2 ≠ W5; (s) ⊦ W3 ≠ W5; (s) ⊦ R1 ≠ W5; (s) ⊦ R2 ≠ W5; (s) ⊦ R4 ≠ W5; (s) ⊦ R3 ≠ W5; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ E3 ≠ W5; (s) ⊦ C ≠ W5; (s) ⊦ A ≠ W5; (s) ⊦ B1 ≠ W5; (s) ⊦ S ≠ W5; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ W4 ≠ W5; (s) ⊦ gstepf(gs, ls, W5, a) = gs.mem:= gs.mem(ls.l := ls.v); (s) ⊦ mkTMLls(tid, loc, l, v).l = l; (s) ⊦ mkTMLls(tid, loc, l, v).v = v; (s) ⊦ lstepf(gs, ls, W5, a) = ls; (s) ⊦ pcstepf(gs, ls, W5, a) = W6; (s) ⊦ m < n ↔ ¬ n ≤ m; (ss) ⊦ m ≤ n → (n < m ↔ false); (s) Used terms: ags, alsf(tid), apcf(tid)
| ⊦ 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 |
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc = W6, pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = E2 → odd(lsf(tid).loc), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
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) = W6, pcf0(tid) = I, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetTMWrite(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetTMWrite(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetTMWrite(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetTMWrite(ls.tid)), ags0.memories ≠ [], pre(gs, ls, W6, retTMWRITE(ls.tid)) ∧ gs0 = gstepf(gs, ls, W6, retTMWRITE(ls.tid)) ∧ ls0 = lstepf(gs, ls, W6, retTMWRITE(ls.tid)) ∧ I = pcstepf(gs, ls, W6, retTMWRITE(ls.tid)), true, ls.tid = als.tid ∧ abspc(W6) = apc ∧ (W6 = S ∨ W6 = B1 ∨ W6 = B2 ∨ W6 = B3 ∨ W6 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (W6 = W1 ∨ W6 = W2 ∨ W6 = W3 ∨ W6 = W4 ∨ W6 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (W6 = R1 ∨ W6 = R2 ∨ W6 = R4 → ls.l = als.il) ∧ (W6 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (W6 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;W6 ≠ E3 ∧ W6 ≠ C → als.wrset = ∅ ) ∧ ( W6 ≠ E3 ∧ W6 ≠ C ∧ W6 ≠ A ∧ W6 ≠ B1 ∧ W6 ≠ S → (gs.glb = ls.loc ∨ W6 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetTMWrite(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(I) = apc0 ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls0.l = als0.il) ∧ (I = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (I ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;I ≠ E3 ∧ I ≠ C → als0.wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs0.glb = ls0.loc ∨ I = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories)))
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = W6, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = W6 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMWrite(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMWrite(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMWrite(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMWrite(lsf(tid).tid))) ∧ pre(gs, lsf(tid), W6, retTMWRITE(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), W6, retTMWRITE(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), W6, retTMWRITE(lsf(tid).tid)) ∧ I = pcstepf(gs, lsf(tid), W6, retTMWRITE(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(W6) = apcf(tid) ∧ (W6 = S ∨ W6 = B1 ∨ W6 = B2 ∨ W6 = B3 ∨ W6 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (W6 = W1 ∨ W6 = W2 ∨ W6 = W3 ∨ W6 = W4 ∨ W6 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (W6 = R1 ∨ W6 = R2 ∨ W6 = R4 → lsf(tid).l = alsf(tid).il) ∧ (W6 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (W6 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;W6 ≠ E3 ∧ W6 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( W6 ≠ E3 ∧ W6 ≠ C ∧ W6 ≠ A ∧ W6 ≠ B1 ∧ W6 ≠ S → (gs.glb = lsf(tid).loc ∨ W6 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories)))
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retTMWRITE: ⊦ ren(retTMWRITE(tid), ags, alsf) = callRetTMWrite(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); ⊦ pre(gs, ls, pc, callRetTMWrite(tid)) ↔ pc = WriteResp ∧ ls.tid = tid; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ I ≠ W6; (s) ⊦ # x = 0 ↔ x = []; (s) ⊦ pre(gs, ls, W6, a) ↔ a = retTMWRITE(ls.tid); (s) ⊦ E2 ≠ W6; (s) ⊦ A ≠ W6; (s) ⊦ E3 ≠ W6; (s) ⊦ C ≠ W6; (s) ⊦ R3 ≠ W6; (s) ⊦ R1 ≠ W6; (s) ⊦ R2 ≠ W6; (s) ⊦ R4 ≠ W6; (s) ⊦ W1 ≠ W6; (s) ⊦ W2 ≠ W6; (s) ⊦ W3 ≠ W6; (s) ⊦ W4 ≠ W6; (s) ⊦ W5 ≠ W6; (s) ⊦ S ≠ W6; (s) ⊦ B1 ≠ W6; (s) ⊦ B2 ≠ W6; (s) ⊦ B3 ≠ W6; (s) ⊦ B4 ≠ W6; (s) ⊦ pre(gs, ls, WriteResp, a) ↔ a = callRetTMWrite(ls.tid) ∨ a = callRetAbort(ls.tid); (s) ⊦ pcstepf(gs, ls, W6, a) = I; (s) ⊦ gstepf(gs, ls, WriteResp, a) = gs; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, WriteResp, callRetTMWrite(tid)) = Ready; (s) ⊦ callRetTMWrite(tid) ≠ τ; (s) ⊦ callRetTMWrite(tid) = callRetTMWrite(tid0) ↔ tid = tid0; (s) ⊦ ls.tid = tid → lstepf(gs, ls, WriteResp, callRetTMWrite(tid)) = ls; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R2; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ B1 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ I ≠ W4; (s) Used terms: lsf, ags, apcf(tid), ags, alsf(tid), als0, alsf, gs0, tid, gs, ls0, pcf0, apcf, pcf, lsf(tid), apc0, lsf0
| 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) = W6, pcf0(tid) = I, apcf(tid) = apc, (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), ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, als, apc, callRetTMWrite(ls.tid)) → ags0 = gstepf(ags, als, apc, callRetTMWrite(ls.tid)) ∧ als0 = lstepf(ags, als, apc, callRetTMWrite(ls.tid)) ∧ apc0 = pcstepf(ags, als, apc, callRetTMWrite(ls.tid)), ags0.memories ≠ [], pre(gs, ls, W6, retTMWRITE(ls.tid)) ∧ gs0 = gstepf(gs, ls, W6, retTMWRITE(ls.tid)) ∧ ls0 = lstepf(gs, ls, W6, retTMWRITE(ls.tid)) ∧ I = pcstepf(gs, ls, W6, retTMWRITE(ls.tid)), true, ls.tid = als.tid ∧ abspc(W6) = apc ∧ (W6 = S ∨ W6 = B1 ∨ W6 = B2 ∨ W6 = B3 ∨ W6 = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (W6 = W1 ∨ W6 = W2 ∨ W6 = W3 ∨ W6 = W4 ∨ W6 = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (W6 = R1 ∨ W6 = R2 ∨ W6 = R4 → ls.l = als.il) ∧ (W6 = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (W6 ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;W6 ≠ E3 ∧ W6 ≠ C → als.wrset = ∅ ) ∧ ( W6 ≠ E3 ∧ W6 ≠ C ∧ W6 ≠ A ∧ W6 ≠ B1 ∧ W6 ≠ S → (gs.glb = ls.loc ∨ W6 = W4 ⊃ als.rdset ⊆ ags.memories.last;∃valid(als.beginIdx, als.rdset, ags.memories))) ⊦ pre(ags, als, apc, callRetTMWrite(ls.tid)) ∧ ls0.tid = als0.tid ∧ abspc(I) = apc0 ∧ (I = S ∨ I = B1 ∨ I = B2 ∨ I = B3 ∨ I = B4 → als0.rdset = ∅ ∧ als0.wrset = ∅) ∧ (even(ls0.loc) → als0.wrset = ∅) ∧ (I = W1 ∨ I = W2 ∨ I = W3 ∨ I = W4 ∨ I = W5 → ls0.l = als0.il ∧ ls0.v = als0.ov) ∧ (I = R1 ∨ I = R2 ∨ I = R4 → ls0.l = als0.il) ∧ (I = R3 → ls0.v = als0.ov) ∧ (gs0.w = None → gs0.mem = ags0.memories.last ∧ even(gs0.glb)) ∧ (gs0.w = Some(ls0.tid) ⊃ (I ≠ W4 → odd(ls0.loc)) ∧ als0.wrset ⊆ gs0.mem ∧ gs0.mem = ags0.memories.last ⊕ als0.wrset ∧ odd(gs0.glb) ;I ≠ E3 ∧ I ≠ C → als0.wrset = ∅ ) ∧ ( I ≠ E3 ∧ I ≠ C ∧ I ≠ A ∧ I ≠ B1 ∧ I ≠ S → (gs0.glb = ls0.loc ∨ I = W4 ⊃ als0.rdset ⊆ ags0.memories.last;∃valid(als0.beginIdx, als0.rdset, ags0.memories))) |
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = W6, pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), apcf(tid) = Ready ∨ apcf(tid) = BeginPending ∨ apcf(tid) = CommitResp ∨ apcf(tid) = ReadResp ∨ apcf(tid) = WriteResp ∨ apcf(tid) = CommitInv ∨ apcf(tid) = ReadInv ∨ apcf(tid) = WriteInv ∨ apcf(tid) = CancelPending ∨ apcf(tid) = Committed ∨ apcf(tid) = Aborted → alsf(tid).beginIdx < # ags.memories, pcf(tid) = E2 → odd(lsf(tid).loc), pcf(tid) = R2 → lsf(tid).loc = gs.glb → gs.mem(lsf(tid).l) = lsf(tid).v, pcf(tid) = W2 → even(lsf(tid).loc), pcf(tid) = W4 → even(lsf(tid).loc) ∧ gs.glb = lsf(tid).loc + 1 ∧ gs.w = Some(lsf(tid).tid), pcf(tid) = W5 → gs.w = Some(lsf(tid).tid), pcf(tid) = S ∨ pcf(tid) = I ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(gs.glb), pcf(tid) = I ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → lsf(tid).loc ≤ gs.glb, pcf(tid) = B4 → even(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 → odd(lsf(tid).loc) → lsf(tid).loc = gs.glb, pcf(tid) = S ∨ pcf(tid) = B1 ∨ pcf(tid) = B2 ∨ pcf(tid) = B3 ∨ pcf(tid) = B4 → gs.w ≠ Some(lsf(tid).tid), pcf(tid) = I ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = E3 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = C ∨ pcf(tid) = A → gs.w = Some(lsf(tid).tid) → odd(lsf(tid).loc), pcf(tid) = I ∨ pcf(tid) = B4 ∨ pcf(tid) = R1 ∨ pcf(tid) = R2 ∨ pcf(tid) = R3 ∨ pcf(tid) = R4 ∨ pcf(tid) = E1 ∨ pcf(tid) = E2 ∨ pcf(tid) = W1 ∨ pcf(tid) = W2 ∨ pcf(tid) = W3 ∨ pcf(tid) = W4 ∨ pcf(tid) = W5 ∨ pcf(tid) = W6 ∨ pcf(tid) = A → gs.w ≠ Some(lsf(tid).tid) → even(lsf(tid).loc), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (even(gs0.glb) ↔ gs0.w = None) ∧ lsf(tid) = lsf(tid) ∧ lsf0(tid) = ls0 ∧ alsf(tid) = alsf(tid) ∧ pcf(tid) = W6 ∧ pcf0(tid) = I ∧ apcf(tid) = apcf(tid) ∧ (gs.w = Some(tid) → odd(gs.glb)) ∧ lsf(tid).loc ≤ gs.glb ∧ (odd(lsf(tid).loc) → lsf(tid).loc = gs.glb) ∧ (gs.w = Some(tid) → odd(lsf(tid).loc)) ∧ (gs.w ≠ Some(tid) → even(lsf(tid).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, alsf(tid), apcf(tid)) ∧ ( pre(ags, alsf(tid), apcf(tid), callRetTMWrite(lsf(tid).tid)) → ags = gstepf(ags, alsf(tid), apcf(tid), callRetTMWrite(lsf(tid).tid)) ∧ als0 = lstepf(ags, alsf(tid), apcf(tid), callRetTMWrite(lsf(tid).tid)) ∧ apc0 = pcstepf(ags, alsf(tid), apcf(tid), callRetTMWrite(lsf(tid).tid))) ∧ pre(gs, lsf(tid), W6, retTMWRITE(lsf(tid).tid)) ∧ gs0 = gstepf(gs, lsf(tid), W6, retTMWRITE(lsf(tid).tid)) ∧ ls0 = lstepf(gs, lsf(tid), W6, retTMWRITE(lsf(tid).tid)) ∧ I = pcstepf(gs, lsf(tid), W6, retTMWRITE(lsf(tid).tid)) ∧ true ∧ lsf(tid).tid = alsf(tid).tid ∧ abspc(W6) = apcf(tid) ∧ (W6 = S ∨ W6 = B1 ∨ W6 = B2 ∨ W6 = B3 ∨ W6 = B4 → alsf(tid).rdset = ∅ ∧ alsf(tid).wrset = ∅) ∧ (even(lsf(tid).loc) → alsf(tid).wrset = ∅) ∧ (W6 = W1 ∨ W6 = W2 ∨ W6 = W3 ∨ W6 = W4 ∨ W6 = W5 → lsf(tid).l = alsf(tid).il ∧ lsf(tid).v = alsf(tid).ov) ∧ (W6 = R1 ∨ W6 = R2 ∨ W6 = R4 → lsf(tid).l = alsf(tid).il) ∧ (W6 = R3 → lsf(tid).v = alsf(tid).ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(lsf(tid).tid) ⊃ (W6 ≠ W4 → odd(lsf(tid).loc)) ∧ alsf(tid).wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ alsf(tid).wrset ∧ odd(gs.glb) ;W6 ≠ E3 ∧ W6 ≠ C → alsf(tid).wrset = ∅ ) ∧ ( W6 ≠ E3 ∧ W6 ≠ C ∧ W6 ≠ A ∧ W6 ≠ B1 ∧ W6 ≠ S → (gs.glb = lsf(tid).loc ∨ W6 = W4 ⊃ alsf(tid).rdset ⊆ ags.memories.last;∃valid(alsf(tid).beginIdx, alsf(tid).rdset, ags.memories))) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); ren-retTMWRITE: ⊦ ren(retTMWRITE(tid), ags, alsf) = callRetTMWrite(tid); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); TMLLState freely generated by mkTMLls;; ⊦ pre(gs, ls, pc, callRetTMWrite(tid)) ↔ pc = WriteResp ∧ ls.tid = tid; (s) ⊦ pre(gs, ls, W6, a) ↔ a = retTMWRITE(ls.tid); (s) ⊦ pcstepf(gs, ls, W6, a) = I; (s) ⊦ I ≠ W6; (s) ⊦ W1 ≠ W6; (s) ⊦ W3 ≠ W6; (s) ⊦ R1 ≠ W6; (s) ⊦ R4 ≠ W6; (s) ⊦ R3 ≠ W6; (s) ⊦ E3 ≠ W6; (s) ⊦ C ≠ W6; (s) ⊦ A ≠ W6; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic ⊦ # x = 0 ↔ x = []; (s) ⊦ callRetTMWrite(tid) ≠ τ; (s) ⊦ W5 ≠ W6; (s) ⊦ W4 ≠ W6; (s) ⊦ W2 ≠ W6; (s) ⊦ R2 ≠ W6; (s) ⊦ E2 ≠ W6; (s) ⊦ S ≠ W6; (s) ⊦ B1 ≠ W6; (s) ⊦ B2 ≠ W6; (s) ⊦ B3 ≠ W6; (s) ⊦ B4 ≠ W6; (s) ⊦ pre(gs, ls, WriteResp, a) ↔ a = callRetTMWrite(ls.tid) ∨ a = callRetAbort(ls.tid); (s) ⊦ callRetTMWrite(tid) = callRetTMWrite(tid0) ↔ tid = tid0; (s) ⊦ gstepf(gs, mkTMLls(tid, loc, l, v), W6, retTMWRITE(tid)) = gs; (s) ⊦ lstepf(gs, mkTMLls(tid, loc, l, v), W6, retTMWRITE(tid)) = mkTMLls(tid, loc, l, v); (s) ⊦ gstepf(gs, ls, WriteResp, a) = gs; (s) ⊦ ls.tid = tid → lstepf(gs, ls, WriteResp, callRetTMWrite(tid)) = ls; (s) ⊦ ls.tid = tid → pcstepf(gs, ls, WriteResp, callRetTMWrite(tid)) = Ready; (s) ⊦ B2 ≠ I; (s) ⊦ B3 ≠ I; (s) ⊦ B4 ≠ I; (s) ⊦ I ≠ W1; (s) ⊦ I ≠ W2; (s) ⊦ I ≠ W3; (s) ⊦ I ≠ W5; (s) ⊦ I ≠ R1; (s) ⊦ I ≠ R2; (s) ⊦ I ≠ R4; (s) ⊦ I ≠ R3; (s) ⊦ mkTMLls(tid, loc, l, v).tid = tid; (s) ⊦ E3 ≠ I; (s) ⊦ C ≠ I; (s) ⊦ A ≠ I; (s) ⊦ B1 ≠ I; (s) ⊦ I ≠ S; (s) ⊦ mkTMLls(tid, loc, l, v).loc = loc; (s) ⊦ I ≠ W4; (s) ⊦ even(n) → ¬ odd(n); (s)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), (∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0) ∧ (∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0) ∧ (∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0))) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ ∀ tid0. tid0 ≠ tid → lsf(tid0).tid = tid0, pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], lsf(tid0).tid ≠ tid0, aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], lsf(tid0).tid ≠ tid0, aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
Used terms: tid0
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ ∀ tid0. tid0 ≠ tid → alsf(tid0).tid = tid0, pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], alsf(tid0).tid ≠ tid0, aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], alsf(tid0).tid ≠ tid0, aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
Used terms: tid0
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) ⊦ ∀ tid0. tid0 ≠ tid → TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0))
| lsf(tid).tid = tid, alsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), ∀ tid0. tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) |
alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)) ⊦ TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0)
Used terms: tid0
| alsf(tid).tid = tid, lsf(tid).tid = tid, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)), ∀ tid. lsf(tid).tid = tid ∧ TMLLInv(gs, lsf(tid), pcf(tid)) ⊦ TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0) |
lsf(tid).tid = tid, alsf(tid).tid = tid, lsf(tid0).tid = tid0, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMLLInv(gs, lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0))
Used terms: tid0
| lsf(tid).tid = tid, alsf(tid).tid = tid, lsf(tid0).tid = tid0, even(gs.glb) ↔ gs.w = None, ags0 = gstepf(ags, alsf(tid), apcf(tid), aa), als0 = lstepf(ags, alsf(tid), apcf(tid), aa), alsf0 = alsf(tid := als0), apc0 = pcstepf(ags, alsf(tid), apcf(tid), aa), apcf0 = apcf(tid := apc0), gs0 = gstepf(gs, ls, pc, a), ls = lsf(tid), ls0 = lstepf(gs, ls, pc, a), lsf0 = lsf(tid := ls0), pc = pcf(tid), pc0 = pcstepf(gs, ls, pc, a), pcf0 = pcf(tid := pc0), ren(a, ags, alsf) = aa, ags.memories ≠ [], aa ≠ τ, tid0 ≠ tid, TMLInv(gs0, lsf0, pcf0), TMLLInv(gs, lsf(tid), pcf(tid)), TMLLInv(gs, lsf(tid0), pcf(tid0)), TMS2LInv(ags, alsf(tid), apcf(tid)), labs(gs, ls, pc, ags, alsf(tid), apcf(tid)), pre(gs, ls, pc, a), tid0 ≠ tid → labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)), ∀ tid. alsf(tid).tid = tid ∧ TMS2LInv(ags, alsf(tid), apcf(tid)) ⊦ pre(ags, alsf(tid), apcf(tid), aa) ∧ true ∧ labs(gs0, ls0, pc0, ags0, als0, apc0), TMLLInv(gs, lsf(tid0), pcf(tid0)) ∧ TMS2LInv(ags, alsf(tid0), apcf(tid0)) ∧ labs(gs, lsf(tid0), pcf(tid0), ags, alsf(tid0), apcf(tid0)) |
Used simplifier rules: labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); labs-def: ⊦ labs(gs, ls, pc, ags, als, apc) ↔ ls.tid = als.tid ∧ abspc(pc) = apc ∧ (pc = S ∨ pc = B1 ∨ pc = B2 ∨ pc = B3 ∨ pc = B4 → als.rdset = ∅ ∧ als.wrset = ∅) ∧ (even(ls.loc) → als.wrset = ∅) ∧ (pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 → ls.l = als.il ∧ ls.v = als.ov) ∧ (pc = R1 ∨ pc = R2 ∨ pc = R4 → ls.l = als.il) ∧ (pc = R3 → ls.v = als.ov) ∧ (gs.w = None → gs.mem = ags.memories.last ∧ even(gs.glb)) ∧ (gs.w = Some(ls.tid) ⊃ (pc ≠ W4 → odd(ls.loc)) ∧ als.wrset ⊆ gs.mem ∧ gs.mem = ags.memories.last ⊕ als.wrset ∧ odd(gs.glb) ;pc ≠ E3 ∧ pc ≠ C → als.wrset = ∅ ) ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A ∧ pc ≠ B1 ∧ pc ≠ S → (gs.glb = ls.loc ∨ pc = W4 ⊃ als.rdset ⊆ ags.memories.last ;∃valid(als.beginIdx, als.rdset, ags.memories) )); 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)) ) ) ) ) ) ) ) ); Used terms: tid0
The following image shows the proof tree of sequent calculus. The proved goal is at the bottom. You can click on the nodes to view additional rules. See here for details on colors in a proof tree.