[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 1 from proof step-D9-D10 (conclusion) (back to tree)

⊦ ( gs.vtail ∈ gs.orl + gs.qrl from ls.lst ∧ ( listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns) ∧ ¬ dups(gs.orl + gs.qrl) ∧ markedp(gs.orl, gs.ps) ∧ markedp(gs.orl, gs.vs) ∧ unmarkedp(gs.qrl, gs.ps) ∧ gs.orl ≠ [] ∧ gs.phead ∈ gs.orl ∧ rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns) ∧ allocrv(gs.vretRefs, gs.vrvHp) ∧ nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs) ∧ rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns) ∧ allocrv(gs.pretRefs, gs.prvHp) ∧ dom gs.vrvHp = dom gs.prvHp ∧ ( gs.vs[gs.vhead].next ≠ null ∧ gs.vs[gs.vs[gs.vhead].next].deqID ≠ None → gs.rvowns(gs.vretRefs(gs.vs[gs.vs[gs.vhead].next].deqID.tid)) = Claimed(gs.vs[gs.vs[gs.vhead].next].deqID.tid, gs.vs[gs.vs[gs.vhead].next].val)) ∧ ( gs.orl.last = gs.vhead ∧ (gs.qrl ≠ [] → unmarkedp(gs.qrl.tail, gs.vs)) ∨ gs.orl.butlast ≠ [] ∧ gs.orl.butlast.last = gs.vhead ∧ gs.phead ≠ gs.orl.last ∧ unmarkedp(gs.qrl, gs.vs)) ∧ ( gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[(gs.orl + gs.qrl).last].next = null)) ∧ (¬ ls.success ∧ gs.rvowns(gs.vretRefs(ls.tid)) = Pending(ls.tid)) ∧ (ls.first ∈ gs.orl ∧ gs.vhead ∈ gs.orl from ls.first) ∧ ls.lst ∈ gs.orl + gs.qrl from ls.first ∧ (gs.vretRefs(ls.tid) = ls.rvref ∧ gs.pretRefs(ls.tid) = ls.rvref ∧ ls.rvref ∈ gs.vrvHp ∧ ls.rvref ≠ null) ∧ nextnottid(ls.tid, gs.vhead, gs.vs) ∧ noid(ls.tid, gs.orl + gs.qrl, ls.first, gs.vs) ∧ noowns(ls.tid, gs.owns)) ∧ pre(gs, ls, D9, a) ∧ pcstepf(gs, ls, D9, a) = D10 → ( gstepf(gs, ls, D9, a).vtail ∈ gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl from lstepf(gs, ls, D9, a).lst ∧ (lstepf(gs, ls, D9, a).nxt ≠ null → lstepf(gs, ls, D9, a).nxt = gstepf(gs, ls, D9, a).vs[lstepf(gs, ls, D9, a).first].next) ∧ ( lstepf(gs, ls, D9, a).first ≠ lstepf(gs, ls, D9, a).lst → lstepf(gs, ls, D9, a).nxt ≠ null ∧ lstepf(gs, ls, D9, a).nxt = gstepf(gs, ls, D9, a).ps[lstepf(gs, ls, D9, a).first].next)) ∧ ( listp(gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl, gstepf(gs, ls, D9, a).vs, gstepf(gs, ls, D9, a).ps, gstepf(gs, ls, D9, a).owns) ∧ ¬ dups(gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl) ∧ markedp(gstepf(gs, ls, D9, a).orl, gstepf(gs, ls, D9, a).ps) ∧ markedp(gstepf(gs, ls, D9, a).orl, gstepf(gs, ls, D9, a).vs) ∧ unmarkedp(gstepf(gs, ls, D9, a).qrl, gstepf(gs, ls, D9, a).ps) ∧ gstepf(gs, ls, D9, a).orl ≠ [] ∧ gstepf(gs, ls, D9, a).phead ∈ gstepf(gs, ls, D9, a).orl ∧ rvownerok(gstepf(gs, ls, D9, a).vretRefs, gstepf(gs, ls, D9, a).vrvHp, gstepf(gs, ls, D9, a).rvowns) ∧ allocrv(gstepf(gs, ls, D9, a).vretRefs, gstepf(gs, ls, D9, a).vrvHp) ∧ nonullRetRefs (gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl, gstepf(gs, ls, D9, a).vs, gstepf(gs, ls, D9, a).vretRefs, gstepf(gs, ls, D9, a).pretRefs) ∧ rvownerok(gstepf(gs, ls, D9, a).pretRefs, gstepf(gs, ls, D9, a).prvHp, gstepf(gs, ls, D9, a).rvowns) ∧ allocrv(gstepf(gs, ls, D9, a).pretRefs, gstepf(gs, ls, D9, a).prvHp) ∧ dom gstepf(gs, ls, D9, a).vrvHp = dom gstepf(gs, ls, D9, a).prvHp ∧ ( gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next ≠ null ∧ gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next].deqID ≠ None → gstepf(gs, ls, D9, a).rvowns (gstepf(gs, ls, D9, a).vretRefs(gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next].deqID.tid)) = Claimed (gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next].deqID.tid, gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next].val)) ∧ ( gstepf(gs, ls, D9, a).orl.last = gstepf(gs, ls, D9, a).vhead ∧ (gstepf(gs, ls, D9, a).qrl ≠ [] → unmarkedp(gstepf(gs, ls, D9, a).qrl.tail, gstepf(gs, ls, D9, a).vs)) ∨ gstepf(gs, ls, D9, a).orl.butlast ≠ [] ∧ gstepf(gs, ls, D9, a).orl.butlast.last = gstepf(gs, ls, D9, a).vhead ∧ gstepf(gs, ls, D9, a).phead ≠ gstepf(gs, ls, D9, a).orl.last ∧ unmarkedp(gstepf(gs, ls, D9, a).qrl, gstepf(gs, ls, D9, a).vs)) ∧ ( gstepf(gs, ls, D9, a).vtail = (gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl).last ∨ gstepf(gs, ls, D9, a).qrl ≠ [] ∧ gstepf(gs, ls, D9, a).vtail = (gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl.butlast).last ∧ gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).qrl.last].deqID = None ∧ gstepf(gs, ls, D9, a).vs[(gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl).last].next = null)) ∧ ( ¬ lstepf(gs, ls, D9, a).success ∧ gstepf(gs, ls, D9, a).rvowns(gstepf(gs, ls, D9, a).vretRefs(lstepf(gs, ls, D9, a).tid)) = Pending(lstepf(gs, ls, D9, a).tid)) ∧ ( lstepf(gs, ls, D9, a).first ∈ gstepf(gs, ls, D9, a).orl ∧ gstepf(gs, ls, D9, a).vhead ∈ gstepf(gs, ls, D9, a).orl from lstepf(gs, ls, D9, a).first) ∧ lstepf(gs, ls, D9, a).lst ∈ gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl from lstepf(gs, ls, D9, a).first ∧ ( gstepf(gs, ls, D9, a).vretRefs(lstepf(gs, ls, D9, a).tid) = lstepf(gs, ls, D9, a).rvref ∧ gstepf(gs, ls, D9, a).pretRefs(lstepf(gs, ls, D9, a).tid) = lstepf(gs, ls, D9, a).rvref ∧ lstepf(gs, ls, D9, a).rvref ∈ gstepf(gs, ls, D9, a).vrvHp ∧ lstepf(gs, ls, D9, a).rvref ≠ null) ∧ nextnottid(lstepf(gs, ls, D9, a).tid, gstepf(gs, ls, D9, a).vhead, gstepf(gs, ls, D9, a).vs) ∧ noid(lstepf(gs, ls, D9, a).tid, gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl, lstepf(gs, ls, D9, a).first, gstepf(gs, ls, D9, a).vs) ∧ noowns(lstepf(gs, ls, D9, a).tid, gstepf(gs, ls, D9, a).owns)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof step-D9-D10 (previous step) (back to tree)

gs.pretRefs(ls.tid) = ls.rvref, gs.rvowns(gs.vretRefs(ls.tid)) = Pending(ls.tid), gs.vretRefs(ls.tid) = ls.rvref, dom gs.vrvHp = dom gs.prvHp, pcstepf(gs, ls, D9, a) = D10, gs.orl ≠ [], ls.rvref ≠ null, allocrv(gs.vretRefs, gs.vrvHp), allocrv(gs.pretRefs, gs.prvHp), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), markedp(gs.orl, gs.ps), markedp(gs.orl, gs.vs), nextnottid(ls.tid, gs.vhead, gs.vs), noid(ls.tid, gs.orl + gs.qrl, ls.first, gs.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), noowns(ls.tid, gs.owns), pre(gs, ls, D9, a), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), unmarkedp(gs.qrl, gs.ps), gs.vtail ∈ gs.orl + gs.qrl from ls.lst, gs.phead ∈ gs.orl, ls.first ∈ gs.orl, gs.vhead ∈ gs.orl from ls.first, ls.lst ∈ gs.orl + gs.qrl from ls.first, ls.rvref ∈ gs.vrvHp, ¬ ls.success, ¬ dups(gs.orl + gs.qrl), gs.vs[gs.vhead].next ≠ null ∧ gs.vs[gs.vs[gs.vhead].next].deqID ≠ None → gs.rvowns(gs.vretRefs(gs.vs[gs.vs[gs.vhead].next].deqID.tid)) = Claimed(gs.vs[gs.vs[gs.vhead].next].deqID.tid, gs.vs[gs.vs[gs.vhead].next].val), gs.orl.last = gs.vhead ∧ (gs.qrl ≠ [] → unmarkedp(gs.qrl.tail, gs.vs)) ∨ gs.orl.butlast ≠ [] ∧ gs.orl.butlast.last = gs.vhead ∧ gs.phead ≠ gs.orl.last ∧ unmarkedp(gs.qrl, gs.vs), gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[(gs.orl + gs.qrl).last].next = null ⊦ ( gstepf(gs, ls, D9, a).vtail ∈ gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl from lstepf(gs, ls, D9, a).lst ∧ (lstepf(gs, ls, D9, a).nxt ≠ null → lstepf(gs, ls, D9, a).nxt = gstepf(gs, ls, D9, a).vs[lstepf(gs, ls, D9, a).first].next) ∧ ( lstepf(gs, ls, D9, a).first ≠ lstepf(gs, ls, D9, a).lst → lstepf(gs, ls, D9, a).nxt ≠ null ∧ lstepf(gs, ls, D9, a).nxt = gstepf(gs, ls, D9, a).ps[lstepf(gs, ls, D9, a).first].next)) ∧ ( listp(gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl, gstepf(gs, ls, D9, a).vs, gstepf(gs, ls, D9, a).ps, gstepf(gs, ls, D9, a).owns) ∧ ¬ dups(gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl) ∧ markedp(gstepf(gs, ls, D9, a).orl, gstepf(gs, ls, D9, a).ps) ∧ markedp(gstepf(gs, ls, D9, a).orl, gstepf(gs, ls, D9, a).vs) ∧ unmarkedp(gstepf(gs, ls, D9, a).qrl, gstepf(gs, ls, D9, a).ps) ∧ gstepf(gs, ls, D9, a).orl ≠ [] ∧ gstepf(gs, ls, D9, a).phead ∈ gstepf(gs, ls, D9, a).orl ∧ rvownerok(gstepf(gs, ls, D9, a).vretRefs, gstepf(gs, ls, D9, a).vrvHp, gstepf(gs, ls, D9, a).rvowns) ∧ allocrv(gstepf(gs, ls, D9, a).vretRefs, gstepf(gs, ls, D9, a).vrvHp) ∧ nonullRetRefs (gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl, gstepf(gs, ls, D9, a).vs, gstepf(gs, ls, D9, a).vretRefs, gstepf(gs, ls, D9, a).pretRefs) ∧ rvownerok(gstepf(gs, ls, D9, a).pretRefs, gstepf(gs, ls, D9, a).prvHp, gstepf(gs, ls, D9, a).rvowns) ∧ allocrv(gstepf(gs, ls, D9, a).pretRefs, gstepf(gs, ls, D9, a).prvHp) ∧ dom gstepf(gs, ls, D9, a).vrvHp = dom gstepf(gs, ls, D9, a).prvHp ∧ ( gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next ≠ null ∧ gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next].deqID ≠ None → gstepf(gs, ls, D9, a).rvowns (gstepf(gs, ls, D9, a).vretRefs(gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next].deqID.tid)) = Claimed (gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next].deqID.tid, gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).vhead].next].val)) ∧ ( gstepf(gs, ls, D9, a).orl.last = gstepf(gs, ls, D9, a).vhead ∧ (gstepf(gs, ls, D9, a).qrl ≠ [] → unmarkedp(gstepf(gs, ls, D9, a).qrl.tail, gstepf(gs, ls, D9, a).vs)) ∨ gstepf(gs, ls, D9, a).orl.butlast ≠ [] ∧ gstepf(gs, ls, D9, a).orl.butlast.last = gstepf(gs, ls, D9, a).vhead ∧ gstepf(gs, ls, D9, a).phead ≠ gstepf(gs, ls, D9, a).orl.last ∧ unmarkedp(gstepf(gs, ls, D9, a).qrl, gstepf(gs, ls, D9, a).vs)) ∧ ( gstepf(gs, ls, D9, a).vtail = (gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl).last ∨ gstepf(gs, ls, D9, a).qrl ≠ [] ∧ gstepf(gs, ls, D9, a).vtail = (gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl.butlast).last ∧ gstepf(gs, ls, D9, a).vs[gstepf(gs, ls, D9, a).qrl.last].deqID = None ∧ gstepf(gs, ls, D9, a).vs[(gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl).last].next = null)) ∧ ( ¬ lstepf(gs, ls, D9, a).success ∧ gstepf(gs, ls, D9, a).rvowns(gstepf(gs, ls, D9, a).vretRefs(lstepf(gs, ls, D9, a).tid)) = Pending(lstepf(gs, ls, D9, a).tid)) ∧ ( lstepf(gs, ls, D9, a).first ∈ gstepf(gs, ls, D9, a).orl ∧ gstepf(gs, ls, D9, a).vhead ∈ gstepf(gs, ls, D9, a).orl from lstepf(gs, ls, D9, a).first) ∧ lstepf(gs, ls, D9, a).lst ∈ gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl from lstepf(gs, ls, D9, a).first ∧ ( gstepf(gs, ls, D9, a).vretRefs(lstepf(gs, ls, D9, a).tid) = lstepf(gs, ls, D9, a).rvref ∧ gstepf(gs, ls, D9, a).pretRefs(lstepf(gs, ls, D9, a).tid) = lstepf(gs, ls, D9, a).rvref ∧ lstepf(gs, ls, D9, a).rvref ∈ gstepf(gs, ls, D9, a).vrvHp ∧ lstepf(gs, ls, D9, a).rvref ≠ null) ∧ nextnottid(lstepf(gs, ls, D9, a).tid, gstepf(gs, ls, D9, a).vhead, gstepf(gs, ls, D9, a).vs) ∧ noid(lstepf(gs, ls, D9, a).tid, gstepf(gs, ls, D9, a).orl + gstepf(gs, ls, D9, a).qrl, lstepf(gs, ls, D9, a).first, gstepf(gs, ls, D9, a).vs) ∧ noowns(lstepf(gs, ls, D9, a).tid, gstepf(gs, ls, D9, a).owns)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] list-elem-in-app11: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ vs; (forward) from specification DMSQ list-elem-in-app12: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ ps; (forward) from specification DMSQ ⊦ gstepf(gs, ls, D9, a) = gs; (s) ⊦ (ls.nxt:= node1).tid = ls.tid; (s) ⊦ lstepf(gs, ls, D9, a) = ls.nxt:= (gs.ps ⊕ gs.vs)[ls.first].next; (s) ⊦ (ls.nxt:= node1).first = ls.first; (s) ⊦ (ls.nxt:= node1).rvref = ls.rvref; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ (ls.nxt:= node1).lst = ls.lst; (s) ⊦ (ls.nxt:= node1).success ↔ ls.success; (s) ⊦ y ≠ [] → (x + y).last = y.last; (s) ⊦ (ls.nxt:= node1).nxt = node1; (s) ⊦ pre(gs, ls, D9, a) ↔ a = (gs.qrl = [] ⊃ checkEmp(ls.tid);τ); (s) ⊦ pcstepf(gs, ls, D9, a) = D10; (s)

Proof step 3 from proof step-D9-D10 (previous step) (back to tree)

gs.pretRefs(ls.tid) = ls.rvref, gs.rvowns(ls.rvref) = Pending(ls.tid), gs.vretRefs(ls.tid) = ls.rvref, dom gs.vrvHp = dom gs.prvHp, gs.orl ≠ [], ls.rvref ≠ null, allocrv(gs.vretRefs, gs.vrvHp), allocrv(gs.pretRefs, gs.prvHp), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), markedp(gs.orl, gs.ps), markedp(gs.orl, gs.vs), nextnottid(ls.tid, gs.vhead, gs.vs), noid(ls.tid, gs.orl + gs.qrl, ls.first, gs.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), noowns(ls.tid, gs.owns), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), unmarkedp(gs.qrl, gs.ps), gs.phead ∈ gs.ps, ls.first ∈ gs.ps, gs.phead ∈ gs.vs, ls.first ∈ gs.vs, gs.vtail ∈ gs.orl + gs.qrl from ls.lst, gs.phead ∈ gs.orl, ls.first ∈ gs.orl, gs.vhead ∈ gs.orl from ls.first, ls.rvref ∈ gs.vrvHp, ¬ ls.success, ¬ dups(gs.qrl), ¬ dups(gs.orl), ¬ dups(gs.orl + gs.qrl), gs.vs[gs.vhead].next ≠ null ∧ gs.vs[gs.vs[gs.vhead].next].deqID ≠ None → gs.rvowns(gs.vretRefs(gs.vs[gs.vs[gs.vhead].next].deqID.tid)) = Claimed(gs.vs[gs.vs[gs.vhead].next].deqID.tid, gs.vs[gs.vs[gs.vhead].next].val), gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[gs.qrl.last].next = null, ls.lst ∈ gs.orl from ls.first ∨ ls.lst ∈ gs.qrl, gs.orl.last = gs.vhead ∧ (gs.qrl ≠ [] → unmarkedp(gs.qrl.tail, gs.vs)) ∨ gs.orl.butlast ≠ [] ∧ gs.orl.butlast.last = gs.vhead ∧ gs.phead ≠ gs.orl.last ∧ unmarkedp(gs.qrl, gs.vs) ⊦ ((gs.ps ⊕ gs.vs)[ls.first].next ≠ null → (gs.ps ⊕ gs.vs)[ls.first].next = gs.vs[ls.first].next) ∧ (ls.first ≠ ls.lst → (gs.ps ⊕ gs.vs)[ls.first].next ≠ null ∧ (gs.ps ⊕ gs.vs)[ls.first].next = gs.ps[ls.first].next)

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:elim-mkgs, seq:⊦ ( ( ( ( ( ( ( ( ( ( (ps = gs.ps ∧ vs = gs.vs) ∧ phead = gs.phead) ∧ vhead = gs.vhead) ∧ vtail = gs.vtail) ∧ vretRefs = gs.vretRefs) ∧ pretRefs = gs.pretRefs) ∧ vrvHp = gs.vrvHp) ∧ prvHp = gs.prvHp) ∧ qrl = gs.qrl) ∧ orl = gs.orl) ∧ owns = gs.owns) ∧ rvowns = gs.rvowns ↔ gs = mkgs (ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), subst:[qrl, ps, phead, vrvHp, vretRefs, vhead, vtail, gs, owns, rvowns, orl, prvHp, pretRefs, vs] → [qrl, ps, phead, vrvHp, vretRefs, vhead, vtail, gs, owns, rvowns, orl, prvHp, pretRefs, vs]

Additional information

Used simplifier rules: ⊦ ( ( ( ( ( ( ( ( ( ((ps = gs.ps ∧ vs = gs.vs) ∧ phead = gs.phead) ∧ vhead = gs.vhead) ∧ vtail = gs.vtail) ∧ vretRefs = gs.vretRefs) ∧ pretRefs = gs.pretRefs) ∧ vrvHp = gs.vrvHp) ∧ prvHp = gs.prvHp) ∧ qrl = gs.qrl) ∧ orl = gs.orl) ∧ owns = gs.owns) ∧ rvowns = gs.rvowns ↔ gs = mkgs (ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns); (elim) Used terms: qrl, ps, phead, vrvHp, vretRefs, vhead, vtail, gs, owns, rvowns, orl, prvHp, pretRefs, vs

Proof step 4 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, gs = mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, ls.rvref ≠ null, orl ≠ [], allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(ls.tid, vhead, vs), noid(ls.tid, orl + qrl, ls.first, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), ls.rvref ∈ vrvHp, vhead ∈ orl from ls.first, ls.first ∈ orl, phead ∈ orl, vtail ∈ orl + qrl from ls.lst, ls.first ∈ vs, phead ∈ vs, ls.first ∈ ps, phead ∈ ps, ¬ ls.success, ¬ dups(qrl), ¬ dups(orl), ¬ dups(orl + qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), ls.lst ∈ orl from ls.first ∨ ls.lst ∈ qrl, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ ((ps ⊕ vs)[ls.first].next ≠ null → (ps ⊕ vs)[ls.first].next = vs[ls.first].next) ∧ (ls.first ≠ ls.lst → (ps ⊕ vs)[ls.first].next ≠ null ∧ (ps ⊕ vs)[ls.first].next = ps[ls.first].next)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] list-elem-in-app11: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ vs; (forward) from specification DMSQ list-elem-in-app12: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ ps; (forward) from specification DMSQ

Proof step 5 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, ls.rvref ≠ null, orl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), nextnottid(ls.tid, vhead, vs), noid(ls.tid, orl + qrl, ls.first, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), vtail ∈ orl + qrl from ls.lst, phead ∈ orl, ls.first ∈ orl, vhead ∈ orl from ls.first, ls.rvref ∈ vrvHp, phead ∈ vs, ls.first ∈ vs, phead ∈ ps, ls.first ∈ ps, ¬ ls.success, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, ls.lst ∈ orl from ls.first ∨ ls.lst ∈ qrl, orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ ((ps ⊕ vs)[ls.first].next ≠ null → (ps ⊕ vs)[ls.first].next = vs[ls.first].next) ∧ (ls.first ≠ ls.lst → (ps ⊕ vs)[ls.first].next ≠ null ∧ (ps ⊕ vs)[ls.first].next = ps[ls.first].next)

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:elim-mkls, seq:⊦ ( ( ( ( ( ( ( ( ( ( (tid = ls.tid ∧ value = ls.value) ∧ optval = ls.optval) ∧ node = ls.node) ∧ nd = ls.nd) ∧ (success ↔ ls.success)) ∧ lst = ls.lst) ∧ nxt = ls.nxt) ∧ rvref = ls.rvref) ∧ optval0 = ls.optval0) ∧ first = ls.first) ∧ othertid = ls.othertid) ∧ addr = ls.addr ↔ ls = mkls (tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), subst:[value, nxt, optval0, node, nd, ls, addr, tid, lst, first, rvref, othertid, success, optval] → [value, nxt, optval0, node, nd, ls, addr, tid, lst, first, rvref, othertid, success, optval]

Additional information

Used simplifier rules: ⊦ ( ( ( ( ( ( ( ( ( ( (tid = ls.tid ∧ value = ls.value) ∧ optval = ls.optval) ∧ node = ls.node) ∧ nd = ls.nd) ∧ (success ↔ ls.success)) ∧ lst = ls.lst) ∧ nxt = ls.nxt) ∧ rvref = ls.rvref) ∧ optval0 = ls.optval0) ∧ first = ls.first) ∧ othertid = ls.othertid) ∧ addr = ls.addr ↔ ls = mkls (tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr); (elim) Used terms: value, nxt, optval, node, nd, ls, addr, tid, lst, first, rvref, othertid, success, optval

Proof step 6 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, ls = mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), pretRefs(tid) = rvref, rvowns(rvref) = Pending(tid), ¬ success, vretRefs(tid) = rvref, orl ≠ [], rvref ≠ null, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, first, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), first ∈ ps, phead ∈ ps, first ∈ vs, phead ∈ vs, rvref ∈ vrvHp, vhead ∈ orl from first, first ∈ orl, phead ∈ orl, vtail ∈ orl + qrl from lst, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), lst ∈ orl from first ∨ lst ∈ qrl, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ ((ps ⊕ vs)[first].next ≠ null → (ps ⊕ vs)[first].next = vs[first].next) ∧ (first ≠ lst → (ps ⊕ vs)[first].next ≠ null ∧ (ps ⊕ vs)[first].next = ps[first].next)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] list-elem-in-app11: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ vs; (forward) from specification DMSQ list-elem-in-app12: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ ps; (forward) from specification DMSQ

Proof step 7 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Pending(tid), orl ≠ [], vretRefs(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, first, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), vtail ∈ orl + qrl from lst, phead ∈ orl, first ∈ orl, vhead ∈ orl from first, vretRefs(tid) ∈ vrvHp, phead ∈ vs, phead ∈ ps, first ∈ vs, first ∈ ps, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, lst ∈ orl from first ∨ lst ∈ qrl, orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ ((ps ⊕ vs)[first].next ≠ null → (ps ⊕ vs)[first].next = vs[first].next) ∧ (first ≠ lst → (ps ⊕ vs)[first].next ≠ null ∧ (ps ⊕ vs)[first].next = ps[first].next)

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:oplus-sel, seq: ⊦ (ps ⊕ vs)[r] = (r ∈ vs ⊃ vs[r];ps[r]), subst:[ps, vs, r] → [ps, vs, first], <all paths>

Additional information

Used terms: ps, vs, first

Proof step 8 from proof step-D9-D10 (previous step) (back to tree)

⊦ (ps ⊕ vs)[r] = (r ∈ vs ⊃ vs[r];ps[r])

A spec-lemma

Proof step 9 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Pending(tid), orl ≠ [], vretRefs(tid) ≠ null, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, first, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), first ∈ ps, first ∈ vs, phead ∈ ps, phead ∈ vs, vretRefs(tid) ∈ vrvHp, vhead ∈ orl from first, first ∈ orl, phead ∈ orl, vtail ∈ orl + qrl from lst, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), lst ∈ orl from first ∨ lst ∈ qrl, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ ((first ∈ vs ⊃ vs[first];ps[first]).next ≠ null → (first ∈ vs ⊃ vs[first];ps[first]).next = vs[first].next) ∧ (first ≠ lst → (first ∈ vs ⊃ vs[first];ps[first]).next ≠ null ∧ (first ∈ vs ⊃ vs[first];ps[first]).next = ps[first].next)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Proof step 10 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Pending(tid), first ≠ lst, orl ≠ [], vretRefs(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, first, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), vtail ∈ orl + qrl from lst, phead ∈ orl, first ∈ orl, vhead ∈ orl from first, vretRefs(tid) ∈ vrvHp, phead ∈ vs, phead ∈ ps, first ∈ vs, first ∈ ps, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, lst ∈ orl from first ∨ lst ∈ qrl, orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ vs[first].next ≠ null ∧ vs[first].next = ps[first].next

User applied rule apply lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:listp-in-postfix1, seq:⊦ listp(rl + rl0, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2 + rl0, vs, ps, owns)), subst:[ps, rl, owns, r, rl0, vs] → [ps, orl, owns, first, qrl, vs]

Additional information

Used terms: ps, orl, owns, first, qrl, vs

Proof step 11 from proof step-D9-D10 (previous step) (back to tree)

⊦ listp(rl + rl0, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2 + rl0, vs, ps, owns))

A spec-lemma

Proof step 12 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Pending(tid), first ≠ lst, orl ≠ [], vretRefs(tid) ≠ null, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, first, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), first ∈ ps, first ∈ vs, phead ∈ ps, phead ∈ vs, vretRefs(tid) ∈ vrvHp, vhead ∈ orl from first, first ∈ orl, phead ∈ orl, vtail ∈ orl + qrl from lst, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), listp(orl + qrl, vs, ps, owns) ∧ first ∈ orl → (∃ rl1, rl2. orl = rl1 + first ' + rl2 ∧ listp(first ' + rl2 + qrl, vs, ps, owns)), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), lst ∈ orl from first ∨ lst ∈ qrl, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs[first].next ≠ null ∧ vs[first].next = ps[first].next

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ (x + a ' + y).butlast = x + (a ' + y).butlast; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ x + a ' + y ≠ []; (s) ⊦ x = y + a ' + z → a ∈ x; (s)

Proof step 13 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Pending(tid), first ≠ lst, vretRefs(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(first ' + rl2 + qrl, vs, ps, owns), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs), markedp(rl1, vs), nextnottid(tid, vhead, vs), noid(tid, (rl1 + first ' + rl2) + qrl, first, vs), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vtail ∈ (rl1 + first ' + rl2) + qrl from lst, vretRefs(tid) ∈ vrvHp, phead ∈ vs, phead ∈ ps, first ∈ vs, first ∈ ps, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl2), ¬ dups(qrl), ¬ first ∈ qrl, ¬ first ∈ rl2, ¬ first ∈ rl1, vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), vhead = first ∨ vhead ∈ rl2, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦ vs[first].next ≠ null ∧ vs[first].next = ps[first].next

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: rl2

Additional information

Used simplifier rules: reflist freely generated by [], +;; ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ listp(r ' + r0 ' + rl, vs, ps, owns) ↔ owns(r) = None ∧ r ∈ vs ∧ r ∈ ps ∧ r ≠ null ∧ ¬ weak?(vs[r].deqID) ∧ (ps[r].deqID = vs[r].deqID ∨ ps[r].deqID = None) ∧ ps[r].val = vs[r].val ∧ ps[r].next = vs[r].next ∧ ps[r].next = r0 ∧ listp(r0 ' + rl, vs, ps, owns); (s) ⊦ some?(opttid) → opttid ≠ None; (as) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ x + a ' + y ≠ []; (s) ⊦ (a ' + b ' + x).butlast = a ' + (b ' + x).butlast; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ a + x = a ' + x; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) listp-twoin: ⊦ listp(rl + r ' + r0 ' + rl0, vs, ps, owns) → ps[r].next = r0; (forward) from specification DMSQ a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ ¬ listp(null ' + rl0, vs, ps, owns); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist]

Proof step 14 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, pretRefs(tid) = vretRefs(tid), rl2 = [], rvowns(vretRefs(tid)) = Pending(tid), first ≠ lst, vretRefs(tid) ≠ null, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(first ' + rl2 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), markedp(rl1, vs), markedp(rl2, vs), markedp(rl1, ps), markedp(rl2, ps), nextnottid(tid, vhead, vs), noid(tid, (rl1 + first ' + rl2) + qrl, first, vs), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), some?(vs[first].deqID), some?(ps[first].deqID), unmarkedp(qrl, ps), first ∈ ps, first ∈ vs, phead ∈ ps, phead ∈ vs, vretRefs(tid) ∈ vrvHp, vtail ∈ (rl1 + first ' + rl2) + qrl from lst, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl2), ¬ dups(qrl), ¬ first ∈ qrl, ¬ first ∈ rl2, ¬ first ∈ rl1, vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vhead = first ∨ vhead ∈ rl2, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs[first].next ≠ null ∧ vs[first].next = ps[first].next

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] list-elem-in-app21: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ vs; (forward) from specification DMSQ list-elem-in-app22: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ ps; (forward) from specification DMSQ ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ ¬ a ∈ []; (s) ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) ⊦ a '.butlast = []; (s) ⊦ [] + x = x; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s)

Proof step 15 from proof step-D9-D10 (previous step) (back to tree)

dom vrvHp = dom prvHp, pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Pending(tid), first ≠ lst, vretRefs(tid) ≠ null, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(first ' + qrl, vs, ps, owns), listp(rl1 + first ' + qrl, vs, ps, owns), markedp(rl1, vs), markedp(rl1, ps), nextnottid(tid, first, vs), noid(tid, rl1 + first ' + qrl, first, vs), nonullRetRefs(rl1 + first ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), some?(vs[first].deqID), some?(ps[first].deqID), unmarkedp(qrl, ps), lst ∈ ps, lst ∈ vs, lst ∈ qrl, first ∈ ps, first ∈ vs, phead ∈ ps, phead ∈ vs, vretRefs(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + qrl from lst, ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl1 + qrl), ¬ first ∈ rl1, ¬ first ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = qrl.last ∨ qrl ≠ [] ∧ vtail = (first ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 ≠ [] ∧ rl1.last = first ∧ phead ≠ rl1.last ∧ unmarkedp(qrl, vs) ⊦ vs[first].next ≠ null ∧ vs[first].next = ps[first].next

Heuristic elimination applied rule apply elim lemma

And closed the goal!

Rule argument

spec: list-data[reflist], name:elim-list-c, seq:x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y, subst:[x, a, y] → [qrl, vtail0, rl]

Additional information

Used simplifier rules: ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ listp(r ' + r0 ' + rl, vs, ps, owns) ↔ owns(r) = None ∧ r ∈ vs ∧ r ∈ ps ∧ r ≠ null ∧ ¬ weak?(vs[r].deqID) ∧ (ps[r].deqID = vs[r].deqID ∨ ps[r].deqID = None) ∧ ps[r].val = vs[r].val ∧ ps[r].next = vs[r].next ∧ ps[r].next = r0 ∧ listp(r0 ' + rl, vs, ps, owns); (s) ⊦ some?(opttid) → opttid ≠ None; (as) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ a ' + x ≠ []; (s) ⊦ a + x = a ' + x; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) listp-twoin: ⊦ listp(rl + r ' + r0 ' + rl0, vs, ps, owns) → ps[r].next = r0; (forward) from specification DMSQ a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ ¬ listp(null ' + rl0, vs, ps, owns); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, vtail0, y

Proof Tree for step-D9-D10 (View conclusion)

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.

the proof tree