| a ≠ DoRead(t), FW(t, memories, apcf(t), beginIdxf(t), rdsetf(t), wrsetf(t), glb, mem, pcf(t), locf(t), lf(t), vf(t), w), w ≠ None → FW(w.t, memories, apcf(w.t), beginIdxf(w.t), rdsetf(w.t), wrsetf(w.t), glb, mem, pcf(w.t), locf(w.t), lf(w.t), vf(w.t), w), TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), memories ≠ [], (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) ) |
a ≠ DoRead(t), memories ≠ [], FW(t, memories, apcf(t), beginIdxf(t), rdsetf(t), wrsetf(t), glb, mem, pcf(t), locf(t), lf(t), vf(t), w), TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), w ≠ None → FW(w.t, memories, apcf(w.t), beginIdxf(w.t), rdsetf(w.t), wrsetf(w.t), glb, mem, pcf(w.t), locf(w.t), lf(w.t), vf(w.t), w), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) )
| a ≠ DoRead(t), memories ≠ [], FW(t, memories, apcf(t), beginIdxf(t), rdsetf(t), wrsetf(t), glb, mem, pcf(t), locf(t), lf(t), vf(t), w), TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), w ≠ None → FW(w.t, memories, apcf(w.t), beginIdxf(w.t), rdsetf(w.t), wrsetf(w.t), glb, mem, pcf(w.t), locf(w.t), lf(w.t), vf(w.t), w), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) ) |
apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), a ≠ DoRead(t), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = E2 → odd(locf(t)), pcf(t) = W5 → odd(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W2 → even(locf(t)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) )
Used simplifier rules: FW-def: ⊦ FW(t, memories, apc, beginIdx, rdset, wrset, glb, mem, pc, loc, l, v, w) ↔ (w = Some(t) ⊃ (pc ≠ W4 → odd(loc)) ∧ wrset ⊆ mem ;(pc ≠ E3 ∧ pc ≠ C → wrset = ∅) ∧ (pc ≠ B1 ∧ pc ≠ B2 ∧ pc ≠ E3 ∧ pc ≠ C → even(loc)) ) ∧ (pc = W2 → even(loc)) ∧ (pc = W4 → even(loc) ∧ glb = loc + 1 ∧ w = Some(t)) ∧ (pc = W5 → odd(loc)) ∧ (pc = E2 → odd(loc)) ∧ (pc = R2 ∧ loc = glb → mem(l) = v) ∧ apc = abspc(pc, l, v) ∧ (pc = S → rdset = ∅ ∧ wrset = ∅) ∧ (even(loc) ∨ pc = B1 ∨ pc = B2 → wrset = ∅) ∧ (pc = B1 ∨ pc = B2 → rdset = ∅) ∧ (odd(loc) ∧ pc ≠ S ∧ pc ≠ A ∧ pc ≠ C ∧ pc ≠ B1 ∧ pc ≠ B2 ∧ pc ≠ E3 → loc = glb) ∧ beginIdx < # memories ∧ ( pc ≠ E3 ∧ pc ≠ C ∧ pc ≠ A → (glb = loc ∨ pc = W4 ⊃ rdset ⊆ memories.last ;∃valid(beginIdx, rdset, memories) ∧ loc < glb )); abspc-def: ⊦ abspc(pc, l, v) = (pc = S ⊃ notStarted ;(pc = B1 ∨ pc = B2 ∨ pc = B3 ⊃ beginPending ;(pc = I ⊃ ready ;(pc = R1 ∨ pc = R2 ∨ pc = R4 ⊃ doRead(l) ;(pc = R3 ⊃ readResp(v) ;(pc = W1 ∨ pc = W2 ∨ pc = W3 ∨ pc = W4 ∨ pc = W5 ⊃ doWrite(l, v) ;(pc = W6 ⊃ writeResp ;(pc = E1 ∨ pc = E2 ⊃ doCommit ;(pc = E3 ⊃ commitResp;(pc = C ⊃ committed;aborted)) ) ) ) ) ) ) ) ); ⊦ # x = 0 ↔ x = []; (s) f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic
| apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), a ≠ DoRead(t), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = E2 → odd(locf(t)), pcf(t) = W5 → odd(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W2 → even(locf(t)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) ) |
a = τ, apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), a ≠ DoRead(t), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W5 → odd(locf(t)), pcf(t) = E2 → odd(locf(t)), pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) )
a = respabort(t0), apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), a ≠ DoRead(t), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W5 → odd(locf(t)), pcf(t) = E2 → odd(locf(t)), pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) )
a = DoWrite(t0), apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), a ≠ DoRead(t), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W5 → odd(locf(t)), pcf(t) = E2 → odd(locf(t)), pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) )
Used simplifier rules: TMS2action freely generated by τ, invTMBegin, invTMRead, invTMWrite, invTMEnd, invcancel, respTMBegin, respTMRead, respTMWrite, respTMEnd, respabort, DoCommitWriter, DoCommitReadOnly, DoRead, DoWrite ;; ⊦ DoRead(t) = DoRead(t0) ↔ t = t0; (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', DoRead(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = R2 ∧ locf(t) = glb ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ DoCommitReadOnly(t) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', DoCommitReadOnly(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = E1 ∧ even(locf(t)) ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ τ ≠ DoCommitReadOnly(t); (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).memories = memories; (s) ⊦ TMS2stepf(st, DoCommitReadOnly(t)) = st.apcf:= st.apcf(t := commitResp); (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).apcf = apcf; (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).apcf:= apcf0 = mkst(memories, apcf0, beginIdxf, rdsetf, rdsetf0); (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).wrsetf = rdsetf0; (s) ⊦ LOP(glb, mem, E1, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = (odd(loc) ⊃ E2;E3) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ DoCommitWriter(t) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', DoCommitWriter(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = E2 ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = None); (s) ⊦ τ ≠ DoCommitWriter(t); (s) ⊦ x + a ' ≠ []; (s) ⊦ TMS2stepf(st, DoCommitWriter(t)) = (st.apcf:= st.apcf(t := commitResp)) .memories:= (st.memories + (st.memories.last ⊕ st.wrsetf(t))); (s) ⊦ x + a = x + a '; (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).memories:= memories0 = mkst(memories0, apcf, beginIdxf, rdsetf, rdsetf0); (s) ⊦ (x + a ').last = a; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[memlist] ⊦ LOP(glb, mem, E2, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = loc + 1 ∧ mem' = mem ∧ pc' = E3 ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ odd(n) → ¬ even(n); (s) ⊦ B3 ≠ E2; (s) ⊦ I ≠ E2; (s) ⊦ R1 ≠ E2; (s) ⊦ R4 ≠ E2; (s) ⊦ R3 ≠ E2; (s) ⊦ W1 ≠ E2; (s) ⊦ W3 ≠ E2; (s) ⊦ W5 ≠ E2; (s) ⊦ W6 ≠ E2; (s) ⊦ W4 ≠ E2; (s) ⊦ W2 ≠ E2; (s) ⊦ Some(t) ≠ None; (s) ⊦ R2 ≠ E2; (s) ⊦ S ≠ E2; (s) ⊦ E2 ≠ A; (s) ⊦ E2 ≠ C; (s) ⊦ E2 ≠ E3; (s) ⊦ B1 ≠ E2; (s) ⊦ B2 ≠ E2; (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 ⊦ Some(t).t = t; (s) ⊦ respTMEnd(t) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', respTMEnd(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = E3 ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ τ ≠ respTMEnd(t); (s) ⊦ TMS2stepf(st, respTMEnd(t)) = st.apcf:= st.apcf(t := committed); (s) ⊦ LOP(glb, mem, E3, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = C ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ respTMWrite(t) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', respTMWrite(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = W6 ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ τ ≠ respTMWrite(t); (s) ⊦ TMS2stepf(st, respTMWrite(t)) = st.apcf:= st.apcf(t := ready); (s) ⊦ LOP(glb, mem, W6, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = I ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ respTMRead(t, v) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', respTMRead(t, v), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = R3 ∧ v = vf(t) ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ τ ≠ respTMRead(t, v); (s) ⊦ TMS2stepf(st, respTMRead(t, v)) = st.apcf:= st.apcf(t := ready); (s) ⊦ LOP(glb, mem, R3, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = I ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ respTMBegin(t) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', respTMBegin(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = B3 ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ τ ≠ respTMBegin(t); (s) ⊦ TMS2stepf(st, respTMBegin(t)) = st.apcf:= st.apcf(t := ready); (s) ⊦ LOP(glb, mem, B3, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = I ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ invcancel(t) ≠ DoRead(t0); (s) ⊦ ¬ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', invcancel(t), mkcs(glb', mem', pcf', locf', lf', vf', w')); (s) ⊦ invTMEnd(t) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', invTMEnd(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = I ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ τ ≠ invTMEnd(t); (s) ⊦ TMS2stepf(st, invTMEnd(t)) = st.apcf:= st.apcf(t := doCommit); (s) ⊦ LOP(glb, mem, I, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = E1 ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ invTMWrite(t, l, v) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', invTMWrite(t, l0, v0), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ write0 (l0, v0, glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ write0(l0, v0, glb, mem, pc, loc, l, v, glb', mem', pc', loc', l', v') ↔ pc = I ∧ glb' = glb ∧ mem' = mem ∧ pc' = W1 ∧ loc' = loc ∧ l' = l0 ∧ v' = v0; (s) ⊦ τ ≠ invTMWrite(t, l, v); (s) ⊦ TMS2stepf(st, invTMWrite(t, l, v)) = st.apcf:= st.apcf(t := doWrite(l, v)); (s) ⊦ invTMRead(t, l) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', invTMRead(t, l), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ read0(l, glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ read0(l0, glb, mem, pc, loc, l, v, glb', mem', pc', loc', l', v') ↔ pc = I ∧ glb' = glb ∧ mem' = mem ∧ pc' = R1 ∧ loc' = loc ∧ l' = l0 ∧ v' = v; (s) ⊦ τ ≠ invTMRead(t, l); (s) ⊦ TMS2stepf(st, invTMRead(t, l)) = st.apcf:= st.apcf(t := doRead(l)); (s) ⊦ invTMBegin(t) ≠ DoRead(t0); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', invTMBegin(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = S ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ τ ≠ invTMBegin(t); (s) ⊦ TMS2stepf(st, invTMBegin(t)) = (st.apcf:= st.apcf(t := beginPending)) .beginIdxf:= st.beginIdxf(t := # st.memories - 1); (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).beginIdxf = beginIdxf; (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).beginIdxf:= beginIdxf0 = mkst(memories, apcf, beginIdxf0, rdsetf, rdsetf0); (s) ⊦ LOP(glb, mem, S, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = B1 ∧ loc' = loc ∧ l' = l ∧ v' = v; (s)
| a = τ, apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), a ≠ DoRead(t), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W5 → odd(locf(t)), pcf(t) = E2 → odd(locf(t)), pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) ) |
apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, τ, mkcs(glb', mem', pcf', locf', lf', vf', w')), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = E2 → odd(locf(t)), pcf(t) = W5 → odd(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W2 → even(locf(t)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb'))
Used simplifier rules: ⊦ τ ≠ DoRead(t); (s)
| apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, τ, mkcs(glb', mem', pcf', locf', lf', vf', w')), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = E2 → odd(locf(t)), pcf(t) = W5 → odd(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W2 → even(locf(t)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) |
⊦ TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, τ, mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. ¬(pcf(t) = R2 ∧ locf(t) = glb) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ I ∧ pcf(t) ≠ B3 ∧ pcf(t) ≠ R3 ∧ pcf(t) ≠ W6 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ R4 ∧ pcf(t) ≠ W3 ∧ pcf(t) ≠ E2 ∧ ¬(pcf(t) = E1 ∧ even(locf(t))) ∧ pcf(t) ≠ W5 ∧ ¬(pcf(t) = R2 ∧ locf(t) = glb) ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = (pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w))
apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), memories ≠ [], beginIdxf(t) < # memories, pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W5 → odd(locf(t)), pcf(t) = E2 → odd(locf(t)), pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ), ∃ pc', loc', l', v'. ¬(pcf(t) = R2 ∧ locf(t) = glb) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ I ∧ pcf(t) ≠ B3 ∧ pcf(t) ≠ R3 ∧ pcf(t) ≠ W6 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ R4 ∧ pcf(t) ≠ W3 ∧ pcf(t) ≠ E2 ∧ ¬(pcf(t) = E1 ∧ even(locf(t))) ∧ pcf(t) ≠ W5 ∧ ¬(pcf(t) = R2 ∧ locf(t) = glb) ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = (pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w) ⊦ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb'))
Used terms: glb', lf, w', vf, mem', lf', mem, w, glb, vf', pcf', t, pcf, locf, locf'
| ⊦ TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, τ, mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. ¬(pcf(t) = R2 ∧ locf(t) = glb) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ I ∧ pcf(t) ≠ B3 ∧ pcf(t) ≠ R3 ∧ pcf(t) ≠ W6 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ R4 ∧ pcf(t) ≠ W3 ∧ pcf(t) ≠ E2 ∧ ¬(pcf(t) = E1 ∧ even(locf(t))) ∧ pcf(t) ≠ W5 ∧ ¬(pcf(t) = R2 ∧ locf(t) = glb) ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = (pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w)) |
| apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), memories ≠ [], beginIdxf(t) < # memories, pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W5 → odd(locf(t)), pcf(t) = E2 → odd(locf(t)), pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ), ∃ pc', loc', l', v'. ¬(pcf(t) = R2 ∧ locf(t) = glb) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ I ∧ pcf(t) ≠ B3 ∧ pcf(t) ≠ R3 ∧ pcf(t) ≠ W6 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ R4 ∧ pcf(t) ≠ W3 ∧ pcf(t) ≠ E2 ∧ ¬(pcf(t) = E1 ∧ even(locf(t))) ∧ pcf(t) ≠ W5 ∧ ¬(pcf(t) = R2 ∧ locf(t) = glb) ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = (pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w) ⊦ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) |
apcf(t) = (pcf(t) = B1 ∨ pcf(t) = B2 ⊃ beginPending ;(pcf(t) = R1 ∨ pcf(t) = R2 ⊃ doRead(lf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W4 ⊃ doWrite(lf(t), vf(t));(pcf(t) = E1 ⊃ doCommit;(pcf(t) = C ⊃ committed;aborted))) ) ), memories ≠ [], pcf(t) ≠ W5, pcf(t) ≠ E2, pcf(t) ≠ W3, pcf(t) ≠ R4, pcf(t) ≠ E3, pcf(t) ≠ W6, pcf(t) ≠ R3, pcf(t) ≠ B3, pcf(t) ≠ I, pcf(t) ≠ S, beginIdxf(t) < # memories, LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v'), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W2 → even(locf(t)), pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), odd(locf(t)) ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 → locf(t) = glb, (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem;(pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ C → even(locf(t)))) ⊦ ((pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w) = None ⊃ mem' = memories.last ∧ even(glb') ;mem' = memories.last ⊕ wrsetf((pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w).t) ∧ odd(glb') ), pcf(t) = E1 ∧ even(locf(t)), pcf(t) = R2 ∧ locf(t) = glb
| apcf(t) = (pcf(t) = B1 ∨ pcf(t) = B2 ⊃ beginPending ;(pcf(t) = R1 ∨ pcf(t) = R2 ⊃ doRead(lf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W4 ⊃ doWrite(lf(t), vf(t));(pcf(t) = E1 ⊃ doCommit;(pcf(t) = C ⊃ committed;aborted))) ) ), memories ≠ [], pcf(t) ≠ W5, pcf(t) ≠ E2, pcf(t) ≠ W3, pcf(t) ≠ R4, pcf(t) ≠ E3, pcf(t) ≠ W6, pcf(t) ≠ R3, pcf(t) ≠ B3, pcf(t) ≠ I, pcf(t) ≠ S, beginIdxf(t) < # memories, LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v'), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W2 → even(locf(t)), pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), odd(locf(t)) ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 → locf(t) = glb, (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem;(pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ C → even(locf(t)))) ⊦ ((pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w) = None ⊃ mem' = memories.last ∧ even(glb') ;mem' = memories.last ⊕ wrsetf((pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w).t) ∧ odd(glb') ), pcf(t) = E1 ∧ even(locf(t)), pcf(t) = R2 ∧ locf(t) = glb |
W2 = pcf(t), apcf(t) = (pcf(t) = B1 ∨ pcf(t) = B2 ⊃ beginPending ;(pcf(t) = R1 ∨ pcf(t) = R2 ⊃ doRead(lf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W4 ⊃ doWrite(lf(t), vf(t));(pcf(t) = E1 ⊃ doCommit;(pcf(t) = C ⊃ committed;aborted))) ) ), memories ≠ [], pcf(t) ≠ W5, pcf(t) ≠ E2, pcf(t) ≠ W3, pcf(t) ≠ R4, pcf(t) ≠ E3, pcf(t) ≠ W6, pcf(t) ≠ R3, pcf(t) ≠ B3, pcf(t) ≠ I, pcf(t) ≠ S, beginIdxf(t) < # memories, LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v'), odd(locf(t)) ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 → locf(t) = glb, pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem;(pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ C → even(locf(t)))), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ ((pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w) = None ⊃ mem' = memories.last ∧ even(glb') ;mem' = memories.last ⊕ wrsetf((pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w).t) ∧ odd(glb') ), pcf(t) = R2 ∧ locf(t) = glb, pcf(t) = E1 ∧ even(locf(t))
Used simplifier rules: PC freely generated by S, I, B1, B2, B3, R1, R2, R3, R4, W1, W2, W3, W4, W5, W6, E1, E2, E3, C, A ;; ⊦ B1 ≠ A; (s) ⊦ B2 ≠ A; (s) ⊦ R1 ≠ A; (s) ⊦ R2 ≠ A; (s) ⊦ W1 ≠ A; (s) ⊦ W2 ≠ A; (s) ⊦ W4 ≠ A; (s) ⊦ E1 ≠ A; (s) ⊦ C ≠ A; (s) ⊦ S ≠ A; (s) ⊦ I ≠ A; (s) ⊦ B3 ≠ A; (s) ⊦ R3 ≠ A; (s) ⊦ W6 ≠ A; (s) ⊦ E3 ≠ A; (s) ⊦ R4 ≠ A; (s) ⊦ W3 ≠ A; (s) ⊦ E2 ≠ A; (s) ⊦ W5 ≠ A; (s) ⊦ ¬ LOP(glb, mem, A, loc, l, v, glb', mem', pc', loc', l', v'); (s) ⊦ B1 ≠ C; (s) ⊦ B2 ≠ C; (s) ⊦ R1 ≠ C; (s) ⊦ R2 ≠ C; (s) ⊦ W1 ≠ C; (s) ⊦ W2 ≠ C; (s) ⊦ W4 ≠ C; (s) ⊦ E1 ≠ C; (s) ⊦ S ≠ C; (s) ⊦ I ≠ C; (s) ⊦ B3 ≠ C; (s) ⊦ R3 ≠ C; (s) ⊦ W6 ≠ C; (s) ⊦ E3 ≠ C; (s) ⊦ R4 ≠ C; (s) ⊦ W3 ≠ C; (s) ⊦ E2 ≠ C; (s) ⊦ W5 ≠ C; (s) ⊦ ¬ LOP(glb, mem, C, loc, l, v, glb', mem', pc', loc', l', v'); (s) ⊦ even(n) ↔ ¬ odd(n); (ss) ⊦ odd(n) → ¬ even(n); (s) ⊦ B1 ≠ E1; (s) ⊦ B2 ≠ E1; (s) ⊦ R1 ≠ E1; (s) ⊦ R2 ≠ E1; (s) ⊦ W1 ≠ E1; (s) ⊦ W2 ≠ E1; (s) ⊦ W4 ≠ E1; (s) ⊦ S ≠ E1; (s) ⊦ I ≠ E1; (s) ⊦ B3 ≠ E1; (s) ⊦ R3 ≠ E1; (s) ⊦ W6 ≠ E1; (s) ⊦ E1 ≠ E3; (s) ⊦ R4 ≠ E1; (s) ⊦ W3 ≠ E1; (s) ⊦ E1 ≠ E2; (s) ⊦ W5 ≠ E1; (s) ⊦ LOP(glb, mem, E1, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = (odd(loc) ⊃ E2;E3) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ W4 ≠ W6; (s) ⊦ W4 ≠ E3; (s) ⊦ W3 ≠ W4; (s) ⊦ LOP(glb, mem, W4, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = W5 ∧ loc' = loc + 1 ∧ l' = l ∧ v' = v; (s) ⊦ m + n = m + n0 ↔ n = n0; (s) ⊦ Some(t) = Some(t0) ↔ t = t0; (s) ⊦ even(n) → ¬ odd(n); (s) ⊦ m = m + n ↔ n = 0; (s) ⊦ Some(t) ≠ None; (s) ⊦ W2 ≠ W4; (s) ⊦ Some(t).t = t; (s) ⊦ B3 ≠ W4; (s) ⊦ I ≠ W4; (s) ⊦ R1 ≠ W4; (s) ⊦ R2 ≠ W4; (s) ⊦ R4 ≠ W4; (s) ⊦ R3 ≠ W4; (s) ⊦ doWrite(l, v) = doWrite(l0, v0) ↔ l = l0 ∧ v = v0; (ws) ⊦ W4 ≠ W5; (s) ⊦ W4 ≠ E2; (s) ⊦ mem ⊕ ∅ = mem; (s) ⊦ ∅ ⊆ mem; (s) ⊦ B1 ≠ W4; (s) ⊦ B2 ≠ W4; (s) ⊦ S ≠ W4; (s) ⊦ odd(n + 1) ↔ even(n); (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ R1 ≠ W1; (s) ⊦ S ≠ W1; (s) ⊦ I ≠ W1; (s) ⊦ B3 ≠ W1; (s) ⊦ R3 ≠ W1; (s) ⊦ W1 ≠ W6; (s) ⊦ W1 ≠ E3; (s) ⊦ R4 ≠ W1; (s) ⊦ W1 ≠ W3; (s) ⊦ W1 ≠ E2; (s) ⊦ W1 ≠ W5; (s) ⊦ LOP(glb, mem, W1, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = (odd(loc) ⊃ W5;W2) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ W1 ≠ W4; (s) ⊦ B1 ≠ W1; (s) ⊦ B2 ≠ W1; (s) ⊦ W1 ≠ W2; (s) ⊦ R2 ≠ W1; (s) ⊦ B1 ≠ R2; (s) ⊦ B2 ≠ R2; (s) ⊦ S ≠ R2; (s) ⊦ I ≠ R2; (s) ⊦ B3 ≠ R2; (s) ⊦ R2 ≠ R3; (s) ⊦ R2 ≠ W6; (s) ⊦ R2 ≠ E3; (s) ⊦ R2 ≠ R4; (s) ⊦ R2 ≠ W3; (s) ⊦ R2 ≠ E2; (s) ⊦ R2 ≠ W5; (s) ⊦ LOP(glb, mem, R2, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = (glb = loc ⊃ R3;R4) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ R1; (s) ⊦ I ≠ R1; (s) ⊦ B3 ≠ R1; (s) ⊦ R1 ≠ R3; (s) ⊦ R1 ≠ W6; (s) ⊦ R1 ≠ E3; (s) ⊦ R1 ≠ R4; (s) ⊦ R1 ≠ W3; (s) ⊦ R1 ≠ E2; (s) ⊦ R1 ≠ W5; (s) ⊦ LOP(glb, mem, R1, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = R2 ∧ loc' = loc ∧ l' = l ∧ v' = mem(l); (s) ⊦ B1 ≠ R1; (s) ⊦ B2 ≠ R1; (s) ⊦ R1 ≠ W2; (s) ⊦ R1 ≠ R2; (s) ⊦ S ≠ B2; (s) ⊦ I ≠ B2; (s) ⊦ B2 ≠ B3; (s) ⊦ B2 ≠ R3; (s) ⊦ B2 ≠ W6; (s) ⊦ B2 ≠ E3; (s) ⊦ B2 ≠ R4; (s) ⊦ B2 ≠ W3; (s) ⊦ B2 ≠ E2; (s) ⊦ B2 ≠ W5; (s) ⊦ LOP(glb, mem, B2, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = (odd(loc) ⊃ B1;B3) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ B2 ≠ W2; (s) ⊦ S ≠ B1; (s) ⊦ I ≠ B1; (s) ⊦ B1 ≠ B3; (s) ⊦ B1 ≠ R3; (s) ⊦ B1 ≠ W6; (s) ⊦ B1 ≠ E3; (s) ⊦ B1 ≠ R4; (s) ⊦ B1 ≠ W3; (s) ⊦ B1 ≠ E2; (s) ⊦ B1 ≠ W5; (s) ⊦ LOP(glb, mem, B1, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = B2 ∧ loc' = glb ∧ l' = l ∧ v' = v; (s) ⊦ B1 ≠ W2; (s)
| W2 = pcf(t), apcf(t) = (pcf(t) = B1 ∨ pcf(t) = B2 ⊃ beginPending ;(pcf(t) = R1 ∨ pcf(t) = R2 ⊃ doRead(lf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W4 ⊃ doWrite(lf(t), vf(t));(pcf(t) = E1 ⊃ doCommit;(pcf(t) = C ⊃ committed;aborted))) ) ), memories ≠ [], pcf(t) ≠ W5, pcf(t) ≠ E2, pcf(t) ≠ W3, pcf(t) ≠ R4, pcf(t) ≠ E3, pcf(t) ≠ W6, pcf(t) ≠ R3, pcf(t) ≠ B3, pcf(t) ≠ I, pcf(t) ≠ S, beginIdxf(t) < # memories, LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v'), odd(locf(t)) ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 → locf(t) = glb, pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem;(pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ C → even(locf(t)))), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ ((pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w) = None ⊃ mem' = memories.last ∧ even(glb') ;mem' = memories.last ⊕ wrsetf((pcf(t) = W2 ∧ glb = locf(t) ⊃ Some(t);w).t) ∧ odd(glb') ), pcf(t) = R2 ∧ locf(t) = glb, pcf(t) = E1 ∧ even(locf(t)) |
W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ ((glb = locf(t) ⊃ Some(t);w) = None ⊃ mem = memories.last ∧ even((locf(t) = glb ⊃ locf(t) + 1;glb)) ;mem = memories.last ⊕ wrsetf((glb = locf(t) ⊃ Some(t);w).t) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb)) )
Used simplifier rules: ⊦ R2 ≠ W2; (s) ⊦ W2 ≠ W4; (s) ⊦ W2 ≠ A; (s) ⊦ W2 ≠ C; (s) ⊦ B2 ≠ W2; (s) ⊦ B1 ≠ W2; (s) ⊦ LOP(glb, mem, W2, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = (loc = glb ⊃ loc + 1;glb) ∧ mem' = mem ∧ pc' = (loc = glb ⊃ W4;W3) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ W2 ≠ W5; (s) ⊦ W2 ≠ E2; (s) ⊦ W2 ≠ W3; (s) ⊦ R4 ≠ W2; (s) ⊦ W2 ≠ E3; (s) ⊦ W2 ≠ W6; (s) ⊦ R3 ≠ W2; (s) ⊦ B3 ≠ W2; (s) ⊦ I ≠ W2; (s) ⊦ S ≠ W2; (s) ⊦ W2 ≠ E1; (s) ⊦ R1 ≠ W2; (s) ⊦ even(n) → ¬ odd(n); (s)
| W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ ((glb = locf(t) ⊃ Some(t);w) = None ⊃ mem = memories.last ∧ even((locf(t) = glb ⊃ locf(t) + 1;glb)) ;mem = memories.last ⊕ wrsetf((glb = locf(t) ⊃ Some(t);w).t) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb)) ) |
W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, (glb = locf(t) ⊃ Some(t);w) ≠ None, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb) ⊦ mem = memories.last ⊕ wrsetf((glb = locf(t) ⊃ Some(t);w).t) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb))
Used simplifier rules: ⊦ Some(t) ≠ None; (s)
| W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, (glb = locf(t) ⊃ Some(t);w) ≠ None, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb) ⊦ mem = memories.last ⊕ wrsetf((glb = locf(t) ⊃ Some(t);w).t) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb)) |
W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, (glb = locf(t) ⊃ Some(t);w) ≠ None, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ mem = memories.last ⊕ wrsetf((glb = locf(t) ⊃ Some(t);w).t) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb))
| W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, (glb = locf(t) ⊃ Some(t);w) ≠ None, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)) ⊦ mem = memories.last ⊕ wrsetf((glb = locf(t) ⊃ Some(t);w).t) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb)) |
(glb = locf(t) ⊃ Some(t);w) = Some(t0), W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, (glb = locf(t) ⊃ Some(t);w) ≠ None, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb) ⊦ mem = memories.last ⊕ wrsetf(t0) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb))
Used simplifier rules: ⊦ w ≠ None → (t = w.t ↔ w = Some(t)); (elim) Used terms: (glb = locf(t) ⊃ Some(t);w), t0
| (glb = locf(t) ⊃ Some(t);w) = Some(t0), W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, (glb = locf(t) ⊃ Some(t);w) ≠ None, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb) ⊦ mem = memories.last ⊕ wrsetf(t0) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb)) |
(glb = locf(t) ⊃ Some(t);w) = Some(t0), W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb) ⊦ mem = memories.last ⊕ wrsetf(t0) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb))
Used simplifier rules: ⊦ Some(t) ≠ None; (s)
| (glb = locf(t) ⊃ Some(t);w) = Some(t0), W2 = pcf(t), apcf(t) = doWrite(lf(t), vf(t)), wrsetf(t) = ∅, memories ≠ [], w ≠ Some(t), beginIdxf(t) < # memories, even(locf(t)), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (glb = locf(t) ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb) ⊦ mem = memories.last ⊕ wrsetf(t0) ∧ odd((locf(t) = glb ⊃ locf(t) + 1;glb)) |
Used simplifier rules: ⊦ Some(t) ≠ None; (s) ⊦ Some(t) = Some(t0) ↔ t = t0; (s) ⊦ Some(t).t = t; (s) ⊦ even(n) → ¬ odd(n); (s) ⊦ odd(n + 1) ↔ even(n); (s) a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic c: ⊦ m + n = n + m; from specification nat-basic ⊦ mem ⊕ ∅ = mem; (s)
| a = respabort(t0), apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), a ≠ DoRead(t), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W5 → odd(locf(t)), pcf(t) = E2 → odd(locf(t)), pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) ) |
apcf(t0) = (pcf(t0) = S ⊃ notStarted ;(pcf(t0) = B1 ∨ pcf(t0) = B2 ∨ pcf(t0) = B3 ⊃ beginPending ;(pcf(t0) = I ⊃ ready ;(pcf(t0) = R1 ∨ pcf(t0) = R2 ∨ pcf(t0) = R4 ⊃ doRead(lf(t0)) ;(pcf(t0) = R3 ⊃ readResp(vf(t0)) ;(pcf(t0) = W1 ∨ pcf(t0) = W2 ∨ pcf(t0) = W3 ∨ pcf(t0) = W4 ∨ pcf(t0) = W5 ⊃ doWrite(lf(t0), vf(t0)) ;(pcf(t0) = W6 ⊃ writeResp;(pcf(t0) = E1 ∨ pcf(t0) = E2 ⊃ doCommit;(pcf(t0) = E3 ⊃ commitResp;(pcf(t0) = C ⊃ committed;aborted)))) ) ) ) ) ) ), memories ≠ [], beginIdxf(t0) < # memories, LOP(glb, mem, pcf(t0), locf(t0), lf(t0), vf(t0), glb', mem', pc', loc', l', v'), pcf(t0) = W2 → even(locf(t0)), pcf(t0) = W4 → even(locf(t0)) ∧ glb = locf(t0) + 1 ∧ w = Some(t0), pcf(t0) = W5 → odd(locf(t0)), pcf(t0) = E2 → odd(locf(t0)), pcf(t0) = R2 ∧ locf(t0) = glb → mem(lf(t0)) = vf(t0), pcf(t0) = S → rdsetf(t0) = ∅ ∧ wrsetf(t0) = ∅, even(locf(t0)) ∨ pcf(t0) = B1 ∨ pcf(t0) = B2 → wrsetf(t0) = ∅, pcf(t0) = B1 ∨ pcf(t0) = B2 → rdsetf(t0) = ∅, odd(locf(t0)) ∧ pcf(t0) ≠ S ∧ pcf(t0) ≠ A ∧ pcf(t0) ≠ C ∧ pcf(t0) ≠ B1 ∧ pcf(t0) ≠ B2 ∧ pcf(t0) ≠ E3 → locf(t0) = glb, pcf(t0) ≠ E3 ∧ pcf(t0) ≠ C ∧ pcf(t0) ≠ A → (glb = locf(t0) ∨ pcf(t0) = W4 ⊃ rdsetf(t0) ⊆ memories.last;∃valid(beginIdxf(t0), rdsetf(t0), memories) ∧ locf(t0) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t0) ⊃ (pcf(t0) ≠ W4 → odd(locf(t0))) ∧ wrsetf(t0) ⊆ mem ;(pcf(t0) ≠ E3 ∧ pcf(t0) ≠ C → wrsetf(t0) = ∅) ∧ (pcf(t0) ≠ B1 ∧ pcf(t0) ≠ B2 ∧ pcf(t0) ≠ E3 ∧ pcf(t0) ≠ C → even(locf(t0))) ), pcf(t0) = R4 ∨ pcf(t0) = W3 ⊦ (w = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w.t) ∧ odd(glb'))
Used simplifier rules: ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).wrsetf = rdsetf0; (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).apcf:= apcf0 = mkst(memories, apcf0, beginIdxf, rdsetf, rdsetf0); (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).apcf = apcf; (s) ⊦ TMS2stepf(st, respabort(t)) = st.apcf:= st.apcf(t := aborted); (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).memories = memories; (s) ⊦ τ ≠ respabort(t); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', respabort(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ (pcf(t) = R4 ∨ pcf(t) = W3) ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ respabort(t) ≠ DoRead(t0); (s)
| apcf(t0) = (pcf(t0) = S ⊃ notStarted ;(pcf(t0) = B1 ∨ pcf(t0) = B2 ∨ pcf(t0) = B3 ⊃ beginPending ;(pcf(t0) = I ⊃ ready ;(pcf(t0) = R1 ∨ pcf(t0) = R2 ∨ pcf(t0) = R4 ⊃ doRead(lf(t0)) ;(pcf(t0) = R3 ⊃ readResp(vf(t0)) ;(pcf(t0) = W1 ∨ pcf(t0) = W2 ∨ pcf(t0) = W3 ∨ pcf(t0) = W4 ∨ pcf(t0) = W5 ⊃ doWrite(lf(t0), vf(t0)) ;(pcf(t0) = W6 ⊃ writeResp;(pcf(t0) = E1 ∨ pcf(t0) = E2 ⊃ doCommit;(pcf(t0) = E3 ⊃ commitResp;(pcf(t0) = C ⊃ committed;aborted)))) ) ) ) ) ) ), memories ≠ [], beginIdxf(t0) < # memories, LOP(glb, mem, pcf(t0), locf(t0), lf(t0), vf(t0), glb', mem', pc', loc', l', v'), pcf(t0) = W2 → even(locf(t0)), pcf(t0) = W4 → even(locf(t0)) ∧ glb = locf(t0) + 1 ∧ w = Some(t0), pcf(t0) = W5 → odd(locf(t0)), pcf(t0) = E2 → odd(locf(t0)), pcf(t0) = R2 ∧ locf(t0) = glb → mem(lf(t0)) = vf(t0), pcf(t0) = S → rdsetf(t0) = ∅ ∧ wrsetf(t0) = ∅, even(locf(t0)) ∨ pcf(t0) = B1 ∨ pcf(t0) = B2 → wrsetf(t0) = ∅, pcf(t0) = B1 ∨ pcf(t0) = B2 → rdsetf(t0) = ∅, odd(locf(t0)) ∧ pcf(t0) ≠ S ∧ pcf(t0) ≠ A ∧ pcf(t0) ≠ C ∧ pcf(t0) ≠ B1 ∧ pcf(t0) ≠ B2 ∧ pcf(t0) ≠ E3 → locf(t0) = glb, pcf(t0) ≠ E3 ∧ pcf(t0) ≠ C ∧ pcf(t0) ≠ A → (glb = locf(t0) ∨ pcf(t0) = W4 ⊃ rdsetf(t0) ⊆ memories.last;∃valid(beginIdxf(t0), rdsetf(t0), memories) ∧ locf(t0) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t0) ⊃ (pcf(t0) ≠ W4 → odd(locf(t0))) ∧ wrsetf(t0) ⊆ mem ;(pcf(t0) ≠ E3 ∧ pcf(t0) ≠ C → wrsetf(t0) = ∅) ∧ (pcf(t0) ≠ B1 ∧ pcf(t0) ≠ B2 ∧ pcf(t0) ≠ E3 ∧ pcf(t0) ≠ C → even(locf(t0))) ), pcf(t0) = R4 ∨ pcf(t0) = W3 ⊦ (w = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w.t) ∧ odd(glb')) |
Used simplifier rules: PC freely generated by S, I, B1, B2, B3, R1, R2, R3, R4, W1, W2, W3, W4, W5, W6, E1, E2, E3, C, A ;; ⊦ S ≠ A; (s) ⊦ B1 ≠ A; (s) ⊦ B2 ≠ A; (s) ⊦ B3 ≠ A; (s) ⊦ I ≠ A; (s) ⊦ R1 ≠ A; (s) ⊦ R2 ≠ A; (s) ⊦ R4 ≠ A; (s) ⊦ R3 ≠ A; (s) ⊦ W1 ≠ A; (s) ⊦ W2 ≠ A; (s) ⊦ W3 ≠ A; (s) ⊦ W4 ≠ A; (s) ⊦ W5 ≠ A; (s) ⊦ W6 ≠ A; (s) ⊦ E1 ≠ A; (s) ⊦ E2 ≠ A; (s) ⊦ E3 ≠ A; (s) ⊦ C ≠ A; (s) ⊦ ¬ LOP(glb, mem, A, loc, l, v, glb', mem', pc', loc', l', v'); (s) ⊦ S ≠ C; (s) ⊦ B1 ≠ C; (s) ⊦ B2 ≠ C; (s) ⊦ B3 ≠ C; (s) ⊦ I ≠ C; (s) ⊦ R1 ≠ C; (s) ⊦ R2 ≠ C; (s) ⊦ R4 ≠ C; (s) ⊦ R3 ≠ C; (s) ⊦ W1 ≠ C; (s) ⊦ W2 ≠ C; (s) ⊦ W3 ≠ C; (s) ⊦ W4 ≠ C; (s) ⊦ W5 ≠ C; (s) ⊦ W6 ≠ C; (s) ⊦ E1 ≠ C; (s) ⊦ E2 ≠ C; (s) ⊦ E3 ≠ C; (s) ⊦ ¬ LOP(glb, mem, C, loc, l, v, glb', mem', pc', loc', l', v'); (s) ⊦ S ≠ E3; (s) ⊦ B1 ≠ E3; (s) ⊦ B2 ≠ E3; (s) ⊦ B3 ≠ E3; (s) ⊦ I ≠ E3; (s) ⊦ R1 ≠ E3; (s) ⊦ R2 ≠ E3; (s) ⊦ R4 ≠ E3; (s) ⊦ R3 ≠ E3; (s) ⊦ W1 ≠ E3; (s) ⊦ W2 ≠ E3; (s) ⊦ W3 ≠ E3; (s) ⊦ W4 ≠ E3; (s) ⊦ W5 ≠ E3; (s) ⊦ W6 ≠ E3; (s) ⊦ E1 ≠ E3; (s) ⊦ E2 ≠ E3; (s) ⊦ LOP(glb, mem, E3, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = C ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ odd(n) → ¬ even(n); (s) ⊦ S ≠ E2; (s) ⊦ B3 ≠ E2; (s) ⊦ I ≠ E2; (s) ⊦ R1 ≠ E2; (s) ⊦ R2 ≠ E2; (s) ⊦ R3 ≠ E2; (s) ⊦ W1 ≠ E2; (s) ⊦ W5 ≠ E2; (s) ⊦ W6 ≠ E2; (s) ⊦ W4 ≠ E2; (s) ⊦ W2 ≠ E2; (s) ⊦ LOP(glb, mem, E2, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = loc + 1 ∧ mem' = mem ∧ pc' = E3 ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ B1 ≠ E2; (s) ⊦ B2 ≠ E2; (s) ⊦ Some(t) ≠ None; (s) ⊦ R4 ≠ E2; (s) ⊦ W3 ≠ E2; (s) ⊦ S ≠ E1; (s) ⊦ B1 ≠ E1; (s) ⊦ B2 ≠ E1; (s) ⊦ B3 ≠ E1; (s) ⊦ I ≠ E1; (s) ⊦ R1 ≠ E1; (s) ⊦ R2 ≠ E1; (s) ⊦ R4 ≠ E1; (s) ⊦ R3 ≠ E1; (s) ⊦ W1 ≠ E1; (s) ⊦ W2 ≠ E1; (s) ⊦ W3 ≠ E1; (s) ⊦ W4 ≠ E1; (s) ⊦ W5 ≠ E1; (s) ⊦ W6 ≠ E1; (s) ⊦ LOP(glb, mem, E1, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = (odd(loc) ⊃ E2;E3) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ W6; (s) ⊦ B1 ≠ W6; (s) ⊦ B2 ≠ W6; (s) ⊦ B3 ≠ W6; (s) ⊦ I ≠ W6; (s) ⊦ R1 ≠ W6; (s) ⊦ R2 ≠ W6; (s) ⊦ R4 ≠ W6; (s) ⊦ R3 ≠ W6; (s) ⊦ W1 ≠ W6; (s) ⊦ W2 ≠ W6; (s) ⊦ W3 ≠ W6; (s) ⊦ W4 ≠ W6; (s) ⊦ W5 ≠ W6; (s) ⊦ LOP(glb, mem, W6, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = I ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ W5; (s) ⊦ B3 ≠ W5; (s) ⊦ I ≠ W5; (s) ⊦ R1 ≠ W5; (s) ⊦ R2 ≠ W5; (s) ⊦ R3 ≠ W5; (s) ⊦ W4 ≠ W5; (s) ⊦ W2 ≠ W5; (s) ⊦ LOP(glb, mem, W5, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem(l := v) ∧ pc' = W6 ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ B1 ≠ W5; (s) ⊦ B2 ≠ W5; (s) ⊦ R4 ≠ W5; (s) ⊦ W3 ≠ W5; (s) ⊦ even(n) → ¬ odd(n); (s) ⊦ S ≠ W4; (s) ⊦ B1 ≠ W4; (s) ⊦ B2 ≠ W4; (s) ⊦ B3 ≠ W4; (s) ⊦ I ≠ W4; (s) ⊦ R1 ≠ W4; (s) ⊦ R2 ≠ W4; (s) ⊦ R4 ≠ W4; (s) ⊦ R3 ≠ W4; (s) ⊦ ∅ ⊆ mem; (s) ⊦ LOP(glb, mem, W4, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = W5 ∧ loc' = loc + 1 ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ W3; (s) ⊦ B1 ≠ W3; (s) ⊦ B2 ≠ W3; (s) ⊦ B3 ≠ W3; (s) ⊦ I ≠ W3; (s) ⊦ R1 ≠ W3; (s) ⊦ R2 ≠ W3; (s) ⊦ R4 ≠ W3; (s) ⊦ R3 ≠ W3; (s) ⊦ LOP(glb, mem, W3, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = A ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ B1 ≠ W2; (s) ⊦ B2 ≠ W2; (s) ⊦ B3 ≠ W2; (s) ⊦ I ≠ W2; (s) ⊦ R1 ≠ W2; (s) ⊦ R3 ≠ W2; (s) ⊦ LOP(glb, mem, W2, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = (loc = glb ⊃ loc + 1;glb) ∧ mem' = mem ∧ pc' = (loc = glb ⊃ W4;W3) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ W2; (s) ⊦ R2 ≠ W2; (s) ⊦ W2 ≠ W4; (s) ⊦ R4 ≠ W2; (s) ⊦ W2 ≠ W3; (s) ⊦ S ≠ W1; (s) ⊦ B1 ≠ W1; (s) ⊦ B2 ≠ W1; (s) ⊦ B3 ≠ W1; (s) ⊦ I ≠ W1; (s) ⊦ R1 ≠ W1; (s) ⊦ R2 ≠ W1; (s) ⊦ R4 ≠ W1; (s) ⊦ R3 ≠ W1; (s) ⊦ LOP(glb, mem, W1, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = (odd(loc) ⊃ W5;W2) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ R4; (s) ⊦ B1 ≠ R4; (s) ⊦ B2 ≠ R4; (s) ⊦ B3 ≠ R4; (s) ⊦ I ≠ R4; (s) ⊦ LOP(glb, mem, R4, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = A ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ R3; (s) ⊦ B1 ≠ R3; (s) ⊦ B2 ≠ R3; (s) ⊦ B3 ≠ R3; (s) ⊦ I ≠ R3; (s) ⊦ R1 ≠ R3; (s) ⊦ R2 ≠ R3; (s) ⊦ R3 ≠ R4; (s) ⊦ LOP(glb, mem, R3, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = I ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ R2; (s) ⊦ B1 ≠ R2; (s) ⊦ B2 ≠ R2; (s) ⊦ B3 ≠ R2; (s) ⊦ I ≠ R2; (s) ⊦ LOP(glb, mem, R2, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = (glb = loc ⊃ R3;R4) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ R1; (s) ⊦ B1 ≠ R1; (s) ⊦ B2 ≠ R1; (s) ⊦ B3 ≠ R1; (s) ⊦ I ≠ R1; (s) ⊦ LOP(glb, mem, R1, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = R2 ∧ loc' = loc ∧ l' = l ∧ v' = mem(l); (s) ⊦ S ≠ B3; (s) ⊦ LOP(glb, mem, B3, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = I ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ B2; (s) ⊦ LOP(glb, mem, B2, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = (odd(loc) ⊃ B1;B3) ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ B1; (s) ⊦ LOP(glb, mem, B1, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = B2 ∧ loc' = glb ∧ l' = l ∧ v' = v; (s) ⊦ S ≠ I; (s) ⊦ I ≠ B1; (s) ⊦ I ≠ B2; (s) ⊦ I ≠ B3; (s) ⊦ LOP(glb, mem, I, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = E1 ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ LOP(glb, mem, S, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem ∧ pc' = B1 ∧ loc' = loc ∧ l' = l ∧ v' = v; (s)
| a = DoWrite(t0), apcf(t) = (pcf(t) = S ⊃ notStarted ;(pcf(t) = B1 ∨ pcf(t) = B2 ∨ pcf(t) = B3 ⊃ beginPending ;(pcf(t) = I ⊃ ready ;(pcf(t) = R1 ∨ pcf(t) = R2 ∨ pcf(t) = R4 ⊃ doRead(lf(t)) ;(pcf(t) = R3 ⊃ readResp(vf(t)) ;(pcf(t) = W1 ∨ pcf(t) = W2 ∨ pcf(t) = W3 ∨ pcf(t) = W4 ∨ pcf(t) = W5 ⊃ doWrite(lf(t), vf(t)) ;(pcf(t) = W6 ⊃ writeResp;(pcf(t) = E1 ∨ pcf(t) = E2 ⊃ doCommit;(pcf(t) = E3 ⊃ commitResp;(pcf(t) = C ⊃ committed;aborted)))) ) ) ) ) ) ), a ≠ DoRead(t), memories ≠ [], beginIdxf(t) < # memories, TMLstept(mkcs(glb, mem, pcf, locf, lf, vf, w), t, a, mkcs(glb', mem', pcf', locf', lf', vf', w')), pcf(t) = W2 → even(locf(t)), pcf(t) = W4 → even(locf(t)) ∧ glb = locf(t) + 1 ∧ w = Some(t), pcf(t) = W5 → odd(locf(t)), pcf(t) = E2 → odd(locf(t)), pcf(t) = R2 ∧ locf(t) = glb → mem(lf(t)) = vf(t), pcf(t) = S → rdsetf(t) = ∅ ∧ wrsetf(t) = ∅, even(locf(t)) ∨ pcf(t) = B1 ∨ pcf(t) = B2 → wrsetf(t) = ∅, pcf(t) = B1 ∨ pcf(t) = B2 → rdsetf(t) = ∅, odd(locf(t)) ∧ pcf(t) ≠ S ∧ pcf(t) ≠ A ∧ pcf(t) ≠ C ∧ pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 → locf(t) = glb, pcf(t) ≠ E3 ∧ pcf(t) ≠ C ∧ pcf(t) ≠ A → (glb = locf(t) ∨ pcf(t) = W4 ⊃ rdsetf(t) ⊆ memories.last;∃valid(beginIdxf(t), rdsetf(t), memories) ∧ locf(t) < glb), w ≠ None → (w = Some(w.t) ⊃ (pcf(w.t) ≠ W4 → odd(locf(w.t))) ∧ wrsetf(w.t) ⊆ mem ;(pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → wrsetf(w.t) = ∅) ∧ (pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C → even(locf(w.t))) ) ∧ (pcf(w.t) = W2 → even(locf(w.t))) ∧ (pcf(w.t) = W4 → even(locf(w.t)) ∧ glb = locf(w.t) + 1 ∧ w = Some(w.t)) ∧ (pcf(w.t) = W5 → odd(locf(w.t))) ∧ (pcf(w.t) = E2 → odd(locf(w.t))) ∧ (pcf(w.t) = R2 ∧ locf(w.t) = glb → mem(lf(w.t)) = vf(w.t)) ∧ apcf(w.t) = (pcf(w.t) = S ⊃ notStarted ;(pcf(w.t) = B1 ∨ pcf(w.t) = B2 ∨ pcf(w.t) = B3 ⊃ beginPending ;(pcf(w.t) = I ⊃ ready ;(pcf(w.t) = R1 ∨ pcf(w.t) = R2 ∨ pcf(w.t) = R4 ⊃ doRead(lf(w.t)) ;(pcf(w.t) = R3 ⊃ readResp(vf(w.t)) ;(pcf(w.t) = W1 ∨ pcf(w.t) = W2 ∨ pcf(w.t) = W3 ∨ pcf(w.t) = W4 ∨ pcf(w.t) = W5 ⊃ doWrite(lf(w.t), vf(w.t)) ;(pcf(w.t) = W6 ⊃ writeResp;(pcf(w.t) = E1 ∨ pcf(w.t) = E2 ⊃ doCommit;(pcf(w.t) = E3 ⊃ commitResp;(pcf(w.t) = C ⊃ committed;aborted)))) ) ) ) ) ) ) ∧ (pcf(w.t) = S → rdsetf(w.t) = ∅ ∧ wrsetf(w.t) = ∅) ∧ (even(locf(w.t)) ∨ pcf(w.t) = B1 ∨ pcf(w.t) = B2 → wrsetf(w.t) = ∅) ∧ (pcf(w.t) = B1 ∨ pcf(w.t) = B2 → rdsetf(w.t) = ∅) ∧ (odd(locf(w.t)) ∧ pcf(w.t) ≠ S ∧ pcf(w.t) ≠ A ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ B1 ∧ pcf(w.t) ≠ B2 ∧ pcf(w.t) ≠ E3 → locf(w.t) = glb) ∧ beginIdxf(w.t) < # memories ∧ ( pcf(w.t) ≠ E3 ∧ pcf(w.t) ≠ C ∧ pcf(w.t) ≠ A → (glb = locf(w.t) ∨ pcf(w.t) = W4 ⊃ rdsetf(w.t) ⊆ memories.last;∃valid(beginIdxf(w.t), rdsetf(w.t), memories) ∧ locf(w.t) < glb)), (w = None ⊃ mem = memories.last ∧ even(glb);mem = memories.last ⊕ wrsetf(w.t) ∧ odd(glb)), (w = Some(t) ⊃ (pcf(t) ≠ W4 → odd(locf(t))) ∧ wrsetf(t) ⊆ mem ;(pcf(t) ≠ E3 ∧ pcf(t) ≠ C → wrsetf(t) = ∅) ∧ (pcf(t) ≠ B1 ∧ pcf(t) ≠ B2 ∧ pcf(t) ≠ E3 ∧ pcf(t) ≠ C → even(locf(t))) ) ⊦ (a = τ ⊃ (w' = None ⊃ mem' = memories.last ∧ even(glb');mem' = memories.last ⊕ wrsetf(w'.t) ∧ odd(glb')) ; TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories ≠ [] ∧ (w' = None ⊃ mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ∧ even(glb') ; mem' = TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).memories.last ⊕ TMS2stepf(mkst(memories, apcf, locf1, rdsetf, wrsetf), a).wrsetf(w'.t) ∧ odd(glb') ) ) |
apcf(t0) = doWrite(lf(t0), vf(t0)), pcf(t0) = W5, (memories.last ⊕ wrsetf(t0))(lf(t0) := vf(t0)) ≠ memories.last ⊕ wrsetf(t0)[lf(t0) := vf(t0)], memories ≠ [], beginIdxf(t0) < # memories, odd(locf(t0)), wrsetf(t0) ⊆ memories.last ⊕ wrsetf(t0), rdsetf(t0) ⊆ memories.last ⊦
Used simplifier rules: ⊦ B2 ≠ W5; (s) ⊦ B1 ≠ W5; (s) ⊦ S ≠ W5; (s) ⊦ R2 ≠ W5; (s) ⊦ doWrite(l, v).v = v; (s) ⊦ doWrite(l, v).l = l; (s) ⊦ W4 ≠ W5; (s) ⊦ W2 ≠ W5; (s) ⊦ doWrite(l, v) = doWrite(l0, v0) ↔ l = l0 ∧ v = v0; (ws) ⊦ R3 ≠ W5; (s) ⊦ R4 ≠ W5; (s) ⊦ R1 ≠ W5; (s) ⊦ I ≠ W5; (s) ⊦ B3 ≠ W5; (s) ⊦ Some(t).t = t; (s) ⊦ Some(t) = Some(t0) ↔ t = t0; (s) ⊦ odd(n) → ¬ even(n); (s) ⊦ ((mem ⊕ rws))(l) = (l ∈ rws ⊃ rws[l];mem(l)); (s) ⊦ Some(t) ≠ None; (s) ⊦ W5 ≠ E3; (s) ⊦ W5 ≠ C; (s) ⊦ W5 ≠ A; (s) ⊦ LOP(glb, mem, W5, loc, l, v, glb', mem', pc', loc', l', v') ↔ glb' = glb ∧ mem' = mem(l := v) ∧ pc' = W6 ∧ loc' = loc ∧ l' = l ∧ v' = v; (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).wrsetf = rdsetf0; (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).wrsetf:= rdsetf2 = mkst(memories, apcf, beginIdxf, rdsetf, rdsetf2); (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).apcf = apcf; (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).apcf:= apcf0 = mkst(memories, apcf0, beginIdxf, rdsetf, rdsetf0); (s) ⊦ TMS2stepf(st, DoWrite(t)) = (st.apcf:= st.apcf(t := writeResp)) .wrsetf:= st.wrsetf(t := st.wrsetf(t)[st.apcf(t).l := st.apcf(t).v]); (s) ⊦ mkst(memories, apcf, beginIdxf, rdsetf, rdsetf0).memories = memories; (s) ⊦ τ ≠ DoWrite(t); (s) ⊦ TMLstept (mkcs(glb, mem, pcf, locf, lf, vf, w), t', DoWrite(t), mkcs(glb', mem', pcf', locf', lf', vf', w')) ↔ (∃ pc', loc', l', v'. t' = t ∧ pcf(t) = W5 ∧ LOP(glb, mem, pcf(t), locf(t), lf(t), vf(t), glb', mem', pc', loc', l', v') ∧ locf' = locf(t := loc') ∧ pcf' = pcf(t := pc') ∧ lf' = lf(t := l') ∧ vf' = vf(t := v') ∧ w' = w); (s) ⊦ DoRead(t) ≠ DoWrite(t0); (s)
| apcf(t0) = doWrite(lf(t0), vf(t0)), pcf(t0) = W5, (memories.last ⊕ wrsetf(t0))(lf(t0) := vf(t0)) ≠ memories.last ⊕ wrsetf(t0)[lf(t0) := vf(t0)], memories ≠ [], beginIdxf(t0) < # memories, odd(locf(t0)), wrsetf(t0) ⊆ memories.last ⊕ wrsetf(t0), rdsetf(t0) ⊆ memories.last ⊦ |
apcf(t0) = doWrite(lf(t0), vf(t0)), pcf(t0) = W5, (memories.last ⊕ wrsetf(t0))(lf(t0) := vf(t0))(l) ≠ ((memories.last ⊕ wrsetf(t0)[lf(t0) := vf(t0)]))(l), memories ≠ [], beginIdxf(t0) < # memories, odd(locf(t0)), rdsetf(t0) ⊆ memories.last, wrsetf(t0) ⊆ memories.last ⊕ wrsetf(t0) ⊦
| apcf(t0) = doWrite(lf(t0), vf(t0)), pcf(t0) = W5, (memories.last ⊕ wrsetf(t0))(lf(t0) := vf(t0))(l) ≠ ((memories.last ⊕ wrsetf(t0)[lf(t0) := vf(t0)]))(l), memories ≠ [], beginIdxf(t0) < # memories, odd(locf(t0)), rdsetf(t0) ⊆ memories.last, wrsetf(t0) ⊆ memories.last ⊕ wrsetf(t0) ⊦ |
apcf(t0) = doWrite(lf(t0), vf(t0)), pcf(t0) = W5, (lf(t0) = l ⊃ vf(t0);(l ∈ wrsetf(t0) ⊃ wrsetf(t0)[l];memories.last(l))) ≠ (l ∈ wrsetf(t0)[lf(t0) := vf(t0)] ⊃ (wrsetf(t0)[lf(t0) := vf(t0)])[l];memories.last(l)), memories ≠ [], beginIdxf(t0) < # memories, odd(locf(t0)), wrsetf(t0) ⊆ memories.last ⊕ wrsetf(t0), rdsetf(t0) ⊆ memories.last ⊦
Used simplifier rules: ⊦ ((mem ⊕ rws))(l) = (l ∈ rws ⊃ rws[l];mem(l)); (s)
| apcf(t0) = doWrite(lf(t0), vf(t0)), pcf(t0) = W5, (lf(t0) = l ⊃ vf(t0);(l ∈ wrsetf(t0) ⊃ wrsetf(t0)[l];memories.last(l))) ≠ (l ∈ wrsetf(t0)[lf(t0) := vf(t0)] ⊃ (wrsetf(t0)[lf(t0) := vf(t0)])[l];memories.last(l)), memories ≠ [], beginIdxf(t0) < # memories, odd(locf(t0)), wrsetf(t0) ⊆ memories.last ⊕ wrsetf(t0), rdsetf(t0) ⊆ memories.last ⊦ |
Used simplifier rules: ⊦ a ≠ b → (a ∈ st[b := d] ↔ a ∈ st); (s) ⊦ a ≠ b → (st[b := d])[a] = st[a]; (s) ⊦ a ∈ st[a := d]; (s) ⊦ a = b → (st[b := d])[a] = d; (s) Used formulas: l = lf(t0)
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.