[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 rely-D24-D6 (conclusion) (back to tree)

⊦ ls.tid ≠ tid0 ∧ ( ( gs.ps[ls.nxt].deqID ≠ None ∧ ls.first ∈ gs.orl ∧ ls.nxt ≠ null ∧ ls.nxt = gs.ps[ls.first].next ∧ ls.optval = gs.vrvHp[ls.rvref] ∧ ls.optval = gs.prvHp[ls.rvref]) ∧ ( 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.first ≠ ls.lst ∧ gs.vtail ∈ gs.orl + gs.qrl from ls.lst) ∧ 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) ∧ ( ls.success ∧ gs.vretRefs(ls.tid) ∈ gs.vrvHp ∧ gs.vretRefs(ls.tid) ≠ null ∧ gs.rvowns(gs.vretRefs(ls.tid)) = Claimed(ls.tid, ls.optval.val) ∧ ls.optval = Val(gs.vs[ls.nxt].val)) ∧ (gs.vhead ≠ ls.first → nextnottid(ls.tid, gs.vhead, gs.vs)) ∧ noid(ls.tid, gs.orl + gs.qrl, ls.nxt, gs.vs) ∧ noowns(ls.tid, gs.owns)) ∧ pre(gs, ls, D24, a) ∧ pcstepf(gs, ls, D24, a) = D6 → (∃ rl. gs.orl + gs.qrl + rl = gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl) ∧ (∃ rl0. gs.orl + rl0 = gstepf(gs, ls, D24, a).orl) ∧ gstepf(gs, ls, D24, a).vtail ∈ gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl from gs.vtail ∧ gstepf(gs, ls, D24, a).phead ∈ gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl from gs.phead ∧ gstepf(gs, ls, D24, a).vhead ∈ gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl from gs.vhead ∧ equalrl(gs.orl + gs.qrl, gs.vs, gs.ps, gstepf(gs, ls, D24, a).vs, gstepf(gs, ls, D24, a).ps) ∧ equalowns(gs.vs, gs.ps, gs.owns, tid0, gstepf(gs, ls, D24, a).vs, gstepf(gs, ls, D24, a).ps, gstepf(gs, ls, D24, a).owns) ∧ gs.vretRefs(tid0) = gstepf(gs, ls, D24, a).vretRefs(tid0) ∧ (gs.pretRefs(tid0) = gstepf(gs, ls, D24, a).pretRefs(tid0) ∨ gs.vretRefs(tid0) = gstepf(gs, ls, D24, a).pretRefs(tid0)) ∧ rvownsrely(tid0, gs.rvowns, gstepf(gs, ls, D24, a).rvowns, gs.vrvHp) ∧ rvrely(tid0, gs.rvowns, gs.vretRefs, gs.vrvHp, gstepf(gs, ls, D24, a).vretRefs, gstepf(gs, ls, D24, a).vrvHp) ∧ dom gs.vrvHp ⊆ dom gstepf(gs, ls, D24, a).vrvHp ∧ prvHpRely(gs.vrvHp, gs.prvHp, gstepf(gs, ls, D24, a).prvHp) ∧ noidRely(tid0, gs.orl + gs.qrl, gs.vs, gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl, gstepf(gs, ls, D24, a).vs) ∧ nextnottidRely(tid0, gs.vhead, gs.vs, gstepf(gs, ls, D24, a).vhead, gstepf(gs, ls, D24, a).vs) ∧ ownsRely(tid0, gs.owns, gstepf(gs, ls, D24, a).owns)

System applied rule normalize

And obtained the following new goals

Rule argument

Additional information

Proof step 2 from proof rely-D24-D6 (previous step) (back to tree)

ls.nxt = gs.ps[ls.first].next, ls.optval = gs.vrvHp[ls.rvref], ls.optval = gs.prvHp[ls.rvref], ls.optval = Val(gs.vs[ls.nxt].val), gs.pretRefs(ls.tid) = ls.rvref, gs.rvowns(gs.vretRefs(ls.tid)) = Claimed(ls.tid, ls.optval.val), gs.vretRefs(ls.tid) = ls.rvref, dom gs.vrvHp = dom gs.prvHp, pcstepf(gs, ls, D24, a) = D6, gs.ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, gs.orl ≠ [], ls.rvref ≠ null, ls.tid ≠ tid0, gs.vretRefs(ls.tid) ≠ null, ls.success, 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), noid(ls.tid, gs.orl + gs.qrl, ls.nxt, gs.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), noowns(ls.tid, gs.owns), pre(gs, ls, D24, a), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), unmarkedp(gs.qrl, gs.ps), ls.first ∈ gs.orl, gs.phead ∈ gs.orl, gs.vtail ∈ gs.orl + gs.qrl from ls.lst, ls.lst ∈ gs.orl + gs.qrl from ls.first, ls.rvref ∈ gs.vrvHp, gs.vretRefs(ls.tid) ∈ gs.vrvHp, ¬ 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.vhead ≠ ls.first → nextnottid(ls.tid, gs.vhead, gs.vs), 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 ⊦ (∃ rl. gs.orl + gs.qrl + rl = gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl) ∧ (∃ rl0. gs.orl + rl0 = gstepf(gs, ls, D24, a).orl) ∧ gstepf(gs, ls, D24, a).vtail ∈ gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl from gs.vtail ∧ gstepf(gs, ls, D24, a).phead ∈ gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl from gs.phead ∧ gstepf(gs, ls, D24, a).vhead ∈ gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl from gs.vhead ∧ equalrl(gs.orl + gs.qrl, gs.vs, gs.ps, gstepf(gs, ls, D24, a).vs, gstepf(gs, ls, D24, a).ps) ∧ equalowns(gs.vs, gs.ps, gs.owns, tid0, gstepf(gs, ls, D24, a).vs, gstepf(gs, ls, D24, a).ps, gstepf(gs, ls, D24, a).owns) ∧ gs.vretRefs(tid0) = gstepf(gs, ls, D24, a).vretRefs(tid0) ∧ (gs.pretRefs(tid0) = gstepf(gs, ls, D24, a).pretRefs(tid0) ∨ gs.vretRefs(tid0) = gstepf(gs, ls, D24, a).pretRefs(tid0)) ∧ rvownsrely(tid0, gs.rvowns, gstepf(gs, ls, D24, a).rvowns, gs.vrvHp) ∧ rvrely(tid0, gs.rvowns, gs.vretRefs, gs.vrvHp, gstepf(gs, ls, D24, a).vretRefs, gstepf(gs, ls, D24, a).vrvHp) ∧ dom gs.vrvHp ⊆ dom gstepf(gs, ls, D24, a).vrvHp ∧ prvHpRely(gs.vrvHp, gs.prvHp, gstepf(gs, ls, D24, a).prvHp) ∧ noidRely(tid0, gs.orl + gs.qrl, gs.vs, gstepf(gs, ls, D24, a).orl + gstepf(gs, ls, D24, a).qrl, gstepf(gs, ls, D24, a).vs) ∧ nextnottidRely(tid0, gs.vhead, gs.vs, gstepf(gs, ls, D24, a).vhead, gstepf(gs, ls, D24, a).vs) ∧ ownsRely(tid0, gs.owns, gstepf(gs, ls, D24, a).owns)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ Val(val).val = val; (s) 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, D24, a) = (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs); (s) ⊦ y ≠ [] → (x + y).last = y.last; (s) ⊦ pre(gs, ls, D24, a) ↔ a = τ; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ pcstepf(gs, ls, D24, a) = D6; (s)

Proof step 3 from proof rely-D24-D6 (previous step) (back to tree)

ls.nxt = gs.ps[ls.first].next, ls.optval = Val(gs.vs[ls.nxt].val), gs.pretRefs(ls.tid) = ls.rvref, gs.rvowns(ls.rvref) = Claimed(ls.tid, gs.vs[ls.nxt].val), gs.vretRefs(ls.tid) = ls.rvref, Val(gs.vs[ls.nxt].val) = gs.vrvHp[ls.rvref], Val(gs.vs[ls.nxt].val) = gs.prvHp[ls.rvref], dom gs.vrvHp = dom gs.prvHp, gs.ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, gs.orl ≠ [], ls.rvref ≠ null, ls.tid ≠ tid0, ls.success, 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), noid(ls.tid, gs.orl + gs.qrl, ls.nxt, 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), ls.first ∈ gs.ps, gs.phead ∈ gs.ps, ls.first ∈ gs.vs, gs.phead ∈ gs.vs, ls.first ∈ gs.orl, gs.phead ∈ gs.orl, gs.vtail ∈ gs.orl + gs.qrl from ls.lst, ls.rvref ∈ gs.vrvHp, ¬ 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.vhead ≠ ls.first → nextnottid(ls.tid, gs.vhead, 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.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) ⊦ (∃ rl. gs.orl + gs.qrl + rl = (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl) ∧ (∃ rl0. gs.orl + rl0 = (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl) ∧ (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vtail ∈ (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl from gs.vtail ∧ (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).phead ∈ (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl from gs.phead ∧ (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vhead ∈ (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl from gs.vhead ∧ equalrl(gs.orl + gs.qrl, gs.vs, gs.ps, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vs, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).ps) ∧ equalowns (gs.vs, gs.ps, gs.owns, tid0, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vs, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).ps, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).owns) ∧ gs.vretRefs(tid0) = (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vretRefs(tid0) ∧ ( gs.pretRefs(tid0) = (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).pretRefs(tid0) ∨ gs.vretRefs(tid0) = (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).pretRefs(tid0)) ∧ rvownsrely(tid0, gs.rvowns, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).rvowns, gs.vrvHp) ∧ rvrely (tid0, gs.rvowns, gs.vretRefs, gs.vrvHp, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vretRefs, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vrvHp) ∧ dom gs.prvHp ⊆ dom (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vrvHp ∧ prvHpRely(gs.vrvHp, gs.prvHp, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).prvHp) ∧ noidRely (tid0, gs.orl + gs.qrl, gs.vs, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vs) ∧ nextnottidRely(tid0, gs.vhead, gs.vs, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vhead, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vs) ∧ ownsRely(tid0, gs.owns, (gs.vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).owns)

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 rely-D24-D6 (previous step) (back to tree)

ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), Val(vs[ls.nxt].val) = prvHp[ls.rvref], Val(vs[ls.nxt].val) = vrvHp[ls.rvref], 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) = Claimed(ls.tid, vs[ls.nxt].val), vretRefs(ls.tid) = ls.rvref, ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, ls.tid ≠ tid0, orl ≠ [], ls.success, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), noid(ls.tid, orl + qrl, ls.nxt, 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, vtail ∈ orl + qrl from ls.lst, phead ∈ orl, ls.first ∈ orl, phead ∈ vs, ls.first ∈ vs, phead ∈ ps, ls.first ∈ ps, ¬ dups(qrl), ¬ dups(orl), ¬ dups(orl + qrl), vhead ≠ ls.first → nextnottid(ls.tid, vhead, vs), 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 ⊦ (∃ rl. orl + qrl + rl = (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl) ∧ (∃ rl0. orl + rl0 = (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl) ∧ (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vtail ∈ (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl from vtail ∧ (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).phead ∈ (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl from phead ∧ (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vhead ∈ (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl from vhead ∧ equalrl(orl + qrl, vs, ps, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vs, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).ps) ∧ equalowns (vs, ps, owns, tid0, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vs, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).ps, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).owns) ∧ vretRefs(tid0) = (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vretRefs(tid0) ∧ ( pretRefs(tid0) = (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).pretRefs(tid0) ∨ vretRefs(tid0) = (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).pretRefs(tid0)) ∧ rvownsrely(tid0, rvowns, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).rvowns, vrvHp) ∧ rvrely(tid0, rvowns, vretRefs, vrvHp, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vretRefs, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vrvHp) ∧ dom prvHp ⊆ dom (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vrvHp ∧ prvHpRely(vrvHp, prvHp, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).prvHp) ∧ noidRely (tid0, orl + qrl, vs, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).orl + (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).qrl, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vs) ∧ nextnottidRely(tid0, vhead, vs, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vhead, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).vs) ∧ ownsRely(tid0, owns, (vhead = ls.first ⊃ gs.vhead:= ls.nxt;gs).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 ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) .vhead:= phead3 = mkgs (ps, ps0, phead, phead3, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns); (s)

Proof step 5 from proof rely-D24-D6 (previous step) (back to tree)

ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), Val(vs[ls.nxt].val) = vrvHp[ls.rvref], Val(vs[ls.nxt].val) = prvHp[ls.rvref], dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Claimed(ls.tid, vs[ls.nxt].val), vretRefs(ls.tid) = ls.rvref, ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, ls.tid ≠ tid0, orl ≠ [], ls.success, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), noid(ls.tid, orl + qrl, ls.nxt, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), ls.first ∈ orl, phead ∈ orl, vtail ∈ orl + qrl from ls.lst, ls.rvref ∈ vrvHp, ls.first ∈ vs, phead ∈ vs, ls.first ∈ ps, phead ∈ 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), vhead ≠ ls.first → nextnottid(ls.tid, vhead, vs), 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) ⊦ (∃ rl. orl + qrl + rl = (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl) ∧ (∃ rl0. orl + rl0 = (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl) ∧ (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vtail ∈ (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl from vtail ∧ (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .phead ∈ (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl from phead ∧ (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vhead ∈ (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl from vhead ∧ equalrl (orl + qrl, vs, ps, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .ps) ∧ equalowns (vs, ps, owns, tid0, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .ps, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .owns) ∧ vretRefs(tid0) = (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vretRefs (tid0) ∧ ( pretRefs(tid0) = (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .pretRefs (tid0) ∨ vretRefs(tid0) = (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .pretRefs (tid0)) ∧ rvownsrely (tid0, rvowns, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .rvowns, vrvHp) ∧ rvrely (tid0, rvowns, vretRefs, vrvHp, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vretRefs, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vrvHp) ∧ dom prvHp ⊆ dom (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vrvHp ∧ prvHpRely (vrvHp, prvHp, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .prvHp) ∧ noidRely (tid0, orl + qrl, vs, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs) ∧ nextnottidRely (tid0, vhead, vs, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vhead, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs) ∧ ownsRely (tid0, owns, (vhead = ls.first ⊃ mkgs(ps, vs, phead, ls.nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .owns)

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 rely-D24-D6 (previous step) (back to tree)

Val(vs[nxt].val) = prvHp[rvref], Val(vs[nxt].val) = vrvHp[rvref], dom vrvHp = dom prvHp, ls = mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), nxt = ps[first].next, optval = Val(vs[nxt].val), pretRefs(tid) = rvref, rvowns(rvref) = Claimed(tid, vs[nxt].val), success, vretRefs(tid) = rvref, ps[nxt].deqID ≠ None, first ≠ lst, nxt ≠ null, orl ≠ [], rvref ≠ null, tid ≠ tid0, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), noid(tid, orl + qrl, nxt, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), phead ∈ ps, first ∈ ps, phead ∈ vs, first ∈ vs, rvref ∈ vrvHp, vtail ∈ orl + qrl from lst, phead ∈ orl, first ∈ orl, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vhead ≠ first → nextnottid(tid, vhead, vs), 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 ⊦ (∃ rl. orl + qrl + rl = (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl) ∧ (∃ rl0. orl + rl0 = (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl) ∧ (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vtail ∈ (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl from vtail ∧ (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .phead ∈ (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl from phead ∧ (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vhead ∈ (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl from vhead ∧ equalrl (orl + qrl, vs, ps, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .ps) ∧ equalowns (vs, ps, owns, tid0, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .ps, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .owns) ∧ vretRefs(tid0) = (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vretRefs (tid0) ∧ ( pretRefs(tid0) = (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .pretRefs (tid0) ∨ vretRefs(tid0) = (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .pretRefs (tid0)) ∧ rvownsrely (tid0, rvowns, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .rvowns, vrvHp) ∧ rvrely (tid0, rvowns, vretRefs, vrvHp, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vretRefs, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vrvHp) ∧ dom prvHp ⊆ dom (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vrvHp ∧ prvHpRely (vrvHp, prvHp, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .prvHp) ∧ noidRely (tid0, orl + qrl, vs, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs) ∧ nextnottidRely (tid0, vhead, vs, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vhead, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs) ∧ ownsRely (tid0, owns, (vhead = first ⊃ mkgs(ps, vs, phead, nxt, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .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] 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 rely-D24-D6 (previous step) (back to tree)

Val(vs[ps[first].next].val) = vrvHp[vretRefs(tid)], Val(vs[ps[first].next].val) = prvHp[vretRefs(tid)], dom vrvHp = dom prvHp, pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Claimed(tid, vs[ps[first].next].val), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], tid ≠ tid0, vretRefs(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), noid(tid, orl + qrl, ps[first].next, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), first ∈ orl, phead ∈ orl, vtail ∈ orl + qrl from lst, 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), vhead ≠ first → nextnottid(tid, vhead, vs), 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) ⊦ (∃ rl. orl + qrl + rl = (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl) ∧ (∃ rl0. orl + rl0 = (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl) ∧ (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vtail ∈ (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl from vtail ∧ (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .phead ∈ (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl from phead ∧ (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vhead ∈ (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl from vhead ∧ equalrl (orl + qrl, vs, ps, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .ps) ∧ equalowns (vs, ps, owns, tid0, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .ps, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .owns) ∧ vretRefs(tid0) = (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vretRefs (tid0) ∧ ( pretRefs(tid0) = (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .pretRefs (tid0) ∨ vretRefs(tid0) = (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .pretRefs (tid0)) ∧ rvownsrely (tid0, rvowns, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .rvowns, vrvHp) ∧ rvrely (tid0, rvowns, vretRefs, vrvHp, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vretRefs, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vrvHp) ∧ dom prvHp ⊆ dom (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vrvHp ∧ prvHpRely (vrvHp, prvHp, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .prvHp) ∧ noidRely (tid0, orl + qrl, vs, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .orl + (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .qrl, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs) ∧ nextnottidRely (tid0, vhead, vs, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vhead, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .vs) ∧ ownsRely (tid0, owns, (vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) .owns)

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] → [qrl0, ps0, phead0, vrvHp0, vretRefs0, vhead0, vtail0, (vhead = first ⊃ mkgs (ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs (ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ), owns0, rvowns0, orl0, prvHp0, pretRefs0, vs0]

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: qrl0, ps0, phead0, vrvHp0, vretRefs0, vhead0, vtail0, (vhead = first ⊃ mkgs (ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs (ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ), owns0, rvowns0, orl0, prvHp0, pretRefs0, vs0

Proof step 8 from proof rely-D24-D6 (previous step) (back to tree)

(vhead = first ⊃ mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ;mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) ) = mkgs(ps0, vs0, phead0, vhead0, vtail0, vretRefs0, pretRefs0, vrvHp0, prvHp0, qrl0, orl0, owns0, rvowns0), Val(vs[ps[first].next].val) = prvHp[vretRefs(tid)], Val(vs[ps[first].next].val) = vrvHp[vretRefs(tid)], dom vrvHp = dom prvHp, pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Claimed(tid, vs[ps[first].next].val), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], tid ≠ tid0, vretRefs(tid) ≠ null, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), noid(tid, orl + qrl, ps[first].next, 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, vtail ∈ orl + qrl from lst, phead ∈ orl, first ∈ orl, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vhead ≠ first → nextnottid(tid, vhead, vs), 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 ⊦ (∃ rl. orl + qrl + rl = orl0 + qrl0) ∧ (∃ rl0. orl + rl0 = orl0) ∧ vtail0 ∈ orl0 + qrl0 from vtail ∧ phead0 ∈ orl0 + qrl0 from phead ∧ vhead0 ∈ orl0 + qrl0 from vhead ∧ equalrl(orl + qrl, vs, ps, vs0, ps0) ∧ equalowns(vs, ps, owns, tid0, vs0, ps0, owns0) ∧ vretRefs(tid0) = vretRefs0(tid0) ∧ (pretRefs(tid0) = pretRefs0(tid0) ∨ vretRefs(tid0) = pretRefs0(tid0)) ∧ rvownsrely(tid0, rvowns, rvowns0, vrvHp) ∧ rvrely(tid0, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0) ∧ dom prvHp ⊆ dom vrvHp0 ∧ prvHpRely(vrvHp, prvHp, prvHp0) ∧ noidRely(tid0, orl + qrl, vs, orl0 + qrl0, vs0) ∧ nextnottidRely(tid0, vhead, vs, vhead0, vs0) ∧ ownsRely(tid0, owns, owns0)

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Proof step 9 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs[ps[first].next].val) = vrvHp[vretRefs(tid)], Val(vs[ps[first].next].val) = prvHp[vretRefs(tid)], dom vrvHp = dom prvHp, mkgs(ps, vs, phead, ps[first].next, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) = mkgs(ps0, vs0, phead0, vhead0, vtail0, vretRefs0, pretRefs0, vrvHp0, prvHp0, qrl0, orl0, owns0, rvowns0), pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Claimed(tid, vs[ps[first].next].val), vhead = first, ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], tid ≠ tid0, vretRefs(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), noid(tid, orl + qrl, ps[first].next, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), first ∈ orl, phead ∈ orl, vtail ∈ orl + qrl from lst, 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), vhead ≠ first → nextnottid(tid, vhead, vs), 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) ⊦ (∃ rl. orl + qrl + rl = orl0 + qrl0) ∧ (∃ rl0. orl + rl0 = orl0) ∧ vtail0 ∈ orl0 + qrl0 from vtail ∧ phead0 ∈ orl0 + qrl0 from phead ∧ vhead0 ∈ orl0 + qrl0 from vhead ∧ equalrl(orl + qrl, vs, ps, vs0, ps0) ∧ equalowns(vs, ps, owns, tid0, vs0, ps0, owns0) ∧ vretRefs(tid0) = vretRefs0(tid0) ∧ (pretRefs(tid0) = pretRefs0(tid0) ∨ vretRefs(tid0) = pretRefs0(tid0)) ∧ rvownsrely(tid0, rvowns, rvowns0, vrvHp) ∧ rvrely(tid0, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0) ∧ dom prvHp ⊆ dom vrvHp0 ∧ prvHpRely(vrvHp, prvHp, prvHp0) ∧ noidRely(tid0, orl + qrl, vs, orl0 + qrl0, vs0) ∧ nextnottidRely(tid0, vhead, vs, vhead0, vs0) ∧ ownsRely(tid0, owns, owns0)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # s = # s0 → (s ⊆ s0 ↔ s = s0); (s) 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 ⊦ ownsRely(tid, owns, owns); (s) ⊦ noidRely(tid, rl, vs, rl, vs); (s) ⊦ prvHpRely(vrvHp, prvHp, prvHp); (s) ⊦ rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs, vrvHp); (s) ⊦ rvownsrely(tid, rvowns, rvowns, vrvHp); (s) ⊦ equalowns(vs, ps, owns, tid, vs, ps, owns); (s) ⊦ equalrl(rl, vs, ps, vs, ps); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ r ∈ rl → r ∈ rl from r; (ss) ⊦ x = x + y ↔ y = []; (s) ⊦ # x = # z → (x + y = z + y0 ↔ x = z ∧ y = y0); (ws) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) = mkgs (ps1, ps2, phead2, phead3, phead4, vretRefs1, vretRefs2, vrvHp1, vrvHp2, qrl1, qrl2, owns0, rvowns0) ↔ ps = ps1 ∧ ps0 = ps2 ∧ phead = phead2 ∧ phead0 = phead3 ∧ phead1 = phead4 ∧ vretRefs = vretRefs1 ∧ vretRefs0 = vretRefs2 ∧ vrvHp = vrvHp1 ∧ vrvHp0 = vrvHp2 ∧ qrl = qrl1 ∧ qrl0 = qrl2 ∧ owns = owns0 ∧ rvowns = rvowns0; (ws)

Proof step 10 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), orl0.last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0), lst ∈ orl0 from first ∨ lst ∈ qrl0, vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦ vtail0 ∈ orl0 + qrl0 from vtail0 ∧ (ps0[first].next ∈ orl0 from first ∨ ps0[first].next ∈ qrl0) ∧ nextnottidRely(tid0, first, vs0, ps0[first].next, vs0)

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 11 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, vtail0 ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ vtail0 ∈ orl0 + qrl0 from vtail0, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

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] ⊦ y ≠ [] → (x + y).last = y.last; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ rl.last ∈ rl from r ↔ r ∈ rl; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s)

Proof step 12 from proof rely-D24-D6 (previous step) (back to tree)

vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + qrl0.butlast).last ≠ qrl0.last, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], qrl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, (orl0 + qrl0.butlast).last ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ (orl0 + qrl0.butlast).last ∈ orl0 + qrl0 from (orl0 + qrl0.butlast).last, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), orl0.last = first ∧ unmarkedp(qrl0.tail, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0), lst ∈ orl0 from first ∨ lst ∈ qrl0 ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-data[reflist], name:elim-add, seq: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail), subst:[x, head, tail] → [qrl0, phead, orl]

Additional information

Used simplifier rules: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: qrl0, head, tail

Proof step 13 from proof rely-D24-D6 (previous step) (back to tree)

vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), qrl0 = phead + orl, rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + qrl0.butlast).last ≠ qrl0.last, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], qrl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, (orl0 + qrl0.butlast).last ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ (orl0 + qrl0.butlast).last ∈ orl0 + qrl0 from (orl0 + qrl0.butlast).last, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = first ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

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] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a + x = a ' + x; (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ' + x ≠ []; (s)

Proof step 14 from proof rely-D24-D6 (previous step) (back to tree)

vs0[(phead ' + orl).last].deqID = None, ps0[phead].deqID = None, vs0[(phead ' + orl).last].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + (phead ' + orl).butlast).last ≠ (phead ' + orl).last, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(orl, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(orl0 + orl), ¬ dups(orl0), ¬ dups(orl), ¬ phead ∈ orl, ¬ phead ∈ orl0, ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from (orl0 + (phead ' + orl).butlast).last, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), orl0.last = first ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0), lst ∈ orl0 from first ∨ lst = phead ∨ lst ∈ orl ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:from-in2, seq: ⊦ r ∈ rl → r ∈ rl from r, subst:[r, rl] → [(orl0 + (phead ' + orl).butlast).last, orl0 + phead ' + orl], <all paths>

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: (orl0 + (phead ' + orl).butlast).last, orl0 + phead ' + orl

Proof step 15 from proof rely-D24-D6 (previous step) (back to tree)

⊦ r ∈ rl → r ∈ rl from r

A spec-lemma

Proof step 16 from proof rely-D24-D6 (previous step) (back to tree)

ps0[phead].deqID = None, vs0[(phead ' + orl).last].deqID = None, vs0[(phead ' + orl).last].next = null, Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + (phead ' + orl).butlast).last ≠ (phead ' + orl).last, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(orl, ps0), first ∈ orl0, phead0 ∈ orl0, (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(orl0 + orl), ¬ dups(orl0), ¬ dups(orl), ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl, ¬ phead ∈ orl, ¬ phead ∈ orl0, ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from (orl0 + (phead ' + orl).butlast).last, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), lst ∈ orl0 from first ∨ lst = phead ∨ lst ∈ orl, orl0.last = first ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0) ⊦

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-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 ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ r ∈ rl → rl from r = []; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s)

Proof step 17 from proof rely-D24-D6 (previous step) (back to tree)

ps0[phead].deqID = None, vs0[(phead ' + orl).last].deqID = None, vs0[(phead ' + orl).last].next = null, Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + (phead ' + orl).butlast).last ≠ phead, (orl0 + (phead ' + orl).butlast).last ≠ (phead ' + orl).last, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(orl, ps0), first ∈ orl0, phead0 ∈ orl0, (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(orl), ¬ dups(orl0), ¬ dups(orl0 + orl), ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl, ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl0, ¬ phead ∈ orl0, ¬ phead ∈ orl, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), orl0.last = first ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0), lst ∈ orl ∨ lst ∈ orl0 from first ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:bapp, seq: ⊦ y ≠ [] → (x + y).butlast = x + y.butlast, subst:[x, y] → [phead ', orl], <all paths>

Additional information

Used simplifier rules: ⊦ a '.last = a; (s) ⊦ unmarkedp([], vs); (s) ⊦ ¬ dups([]); (s) ⊦ ¬ a ∈ []; (s) ⊦ a '.butlast = []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x.last ∈ x ↔ x ≠ []; (s) Used terms: phead ', orl

Proof step 18 from proof rely-D24-D6 (previous step) (back to tree)

⊦ y ≠ [] → (x + y).butlast = x + y.butlast

A spec-lemma

Proof step 19 from proof rely-D24-D6 (previous step) (back to tree)

vs0[(phead ' + orl).last].deqID = None, ps0[phead].deqID = None, vs0[(phead ' + orl).last].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + phead ' + orl.butlast).last ≠ phead, (orl0 + phead ' + orl.butlast).last ≠ (phead ' + orl).last, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, orl ≠ [], orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(orl, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, (orl0 + phead ' + orl.butlast).last ∈ orl0 + phead ' + orl from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(orl), ¬ dups(orl0), ¬ dups(orl0 + orl), ¬ (orl0 + phead ' + orl.butlast).last ∈ orl, ¬ (orl0 + phead ' + orl.butlast).last ∈ orl0, ¬ phead ∈ orl0, ¬ phead ∈ orl, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), lst ∈ orl ∨ lst ∈ orl0 from first, orl0.last = first ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0) ⊦

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] ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s)

Proof step 20 from proof rely-D24-D6 (previous step) (back to tree)

ps0[phead].deqID = None, vs0[orl.last].deqID = None, vs0[orl.last].next = null, Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (phead ' + orl.butlast).last ≠ phead, (phead ' + orl.butlast).last ≠ orl.last, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, orl ≠ [], orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(orl, ps0), vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, first ∈ orl0, phead0 ∈ orl0, (phead ' + orl.butlast).last ∈ orl0 + phead ' + orl from lst, ¬ dups(orl), ¬ dups(orl0), ¬ dups(orl0 + orl), ¬ phead ∈ orl0, ¬ phead ∈ orl, ¬ (phead ' + orl.butlast).last ∈ orl, ¬ (phead ' + orl.butlast).last ∈ orl0, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), orl0.last = first ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0), lst ∈ orl ∨ lst ∈ orl0 from first ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:last-elim, seq:x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a ', subst:[x, a, y] → [orl, lst0, orl1]

Additional information

Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: orl, lst0, y

Proof step 21 from proof rely-D24-D6 (previous step) (back to tree)

vs0[lst0].deqID = None, ps0[phead].deqID = None, vs0[lst0].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, orl = orl1 + lst0 ', pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (phead ' + orl1).last ≠ phead, (phead ' + orl1).last ≠ lst0, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, orl ≠ [], orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(orl, ps0), (phead ' + orl1).last ∈ orl0 + phead ' + orl from lst, phead0 ∈ orl0, first ∈ orl0, phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, ¬ dups(orl), ¬ dups(orl0), ¬ dups(orl0 + orl), ¬ phead ∈ orl0, ¬ phead ∈ orl, ¬ (phead ' + orl1).last ∈ orl, ¬ (phead ' + orl1).last ∈ orl0, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), lst ∈ orl ∨ lst ∈ orl0 from first, orl0.last = first ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 22 from proof rely-D24-D6 (previous step) (back to tree)

ps0[lst0].deqID = None, vs0[lst0].deqID = None, ps0[phead].deqID = None, vs0[lst0].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (phead ' + orl1).last ≠ lst0, (phead ' + orl1).last ≠ phead, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, lst ≠ lst0, orl0 ≠ [], phead ≠ lst0, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + phead ' + orl1 + lst0 ', vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), noid(tid, orl0 + phead ' + orl1 + lst0 ', ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl1 + lst0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(orl1, ps0), (phead ' + orl1).last ∈ orl0 + phead ' + orl1 + lst0 ' from lst, phead0 ∈ orl0, first ∈ orl0, phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, ¬ dups(orl1), ¬ dups(orl0), ¬ dups(orl0 + orl1), ¬ (phead ' + orl1).last ∈ orl1, ¬ phead ∈ orl1, ¬ phead ∈ orl0, ¬ lst0 ∈ orl0, ¬ lst0 ∈ orl1, ¬ (phead ' + orl1).last ∈ orl0, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), orl0.last = first ∧ unmarkedp(orl1, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl1, vs0), lst ∈ orl0 from first ∨ lst ∈ orl1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:lapp, seq: ⊦ y ≠ [] → (x + y).last = y.last, subst:[x, y] → [phead ', orl1], <all paths>

Additional information

Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a '.last = a; (s) Used terms: phead ', orl1

Proof step 23 from proof rely-D24-D6 (previous step) (back to tree)

⊦ y ≠ [] → (x + y).last = y.last

A spec-lemma

Proof step 24 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, vtail0 ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ ps0[first].next ∈ orl0 from first, ¬ ps0[first].next ∈ qrl0, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

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] → [ps0, orl0, owns0, first, qrl0, vs0]

Additional information

Used terms: ps0, orl0, owns0, first, qrl0, vs0

Proof step 25 from proof rely-D24-D6 (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 26 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ ps0[first].next ∈ orl0 from first, ¬ ps0[first].next ∈ qrl0, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), listp(orl0 + qrl0, vs0, ps0, owns0) ∧ first ∈ orl0 → (∃ rl1, rl2. orl0 = rl1 + first ' + rl2 ∧ listp(first ' + rl2 + qrl0, vs0, ps0, owns0)), orl0.last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0), lst ∈ orl0 from first ∨ lst ∈ qrl0, vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

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 ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (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 27 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ first, ps0[first].next ≠ null, first ≠ lst, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp((rl1 + first ' + rl2) + qrl0, vs0, ps0, owns0), listp(first ' + rl2 + qrl0, vs0, ps0, owns0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl2, vs0), markedp(rl1, vs0), noid(tid, (rl1 + first ' + rl2) + qrl0, ps0[first].next, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[first].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), vtail0 ∈ (rl1 + first ' + rl2) + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl0), ¬ dups(rl2), ¬ dups(qrl0), ¬ ps0[first].next ∈ rl2, ¬ ps0[first].next ∈ qrl0, ¬ first ∈ qrl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), vtail0 = (first ' + rl2 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl0, (first ' + rl2).last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead0 ≠ (first ' + rl2).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ⊦

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 + x = a ' + x; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist]

Proof step 28 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rl2 = [], rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ first, ps0[first].next ≠ null, first ≠ lst, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(first ' + rl2 + qrl0, vs0, ps0, owns0), listp((rl1 + first ' + rl2) + qrl0, vs0, ps0, owns0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps0), markedp(rl2, ps0), noid(tid, (rl1 + first ' + rl2) + qrl0, ps0[first].next, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ (rl1 + first ' + rl2) + qrl0 from lst, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl0), ¬ dups(rl2), ¬ dups(qrl0), ¬ ps0[first].next ∈ rl2, ¬ ps0[first].next ∈ qrl0, ¬ first ∈ qrl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2, (first ' + rl2).last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead0 ≠ (first ' + rl2).last ∧ unmarkedp(qrl0, vs0), lst ∈ rl2 ∨ lst ∈ qrl0, vtail0 = (first ' + rl2 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

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 29 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ first, ps0[first].next ≠ null, first ≠ lst, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(rl1 + first ' + qrl0, vs0, ps0, owns0), listp(first ' + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl1, vs0), noid(tid, rl1 + first ' + qrl0, ps0[first].next, vs0), nonullRetRefs(rl1 + first ' + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[first].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), vtail0 ∈ rl1 + first ' + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, lst ∈ qrl0, lst ∈ vs0, lst ∈ ps0, ¬ dups(rl1 + qrl0), ¬ dups(rl1), ¬ dups(qrl0), ¬ ps0[first].next ∈ qrl0, ¬ first ∈ qrl0, ¬ first ∈ rl1, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 ≠ [] ∧ rl1.last = first ∧ phead0 ≠ rl1.last ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first, vtail0 = qrl0.last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

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] → [qrl0, phead, qrl]

Additional information

Used simplifier rules: ⊦ a ' + x ≠ []; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ a + x = 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) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl0, phead, y

Proof step 30 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, vtail0 ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ nextnottidRely(tid0, first, vs0, ps0[first].next, vs0), vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:nextnottidRely-def, seq:⊦ nextnottidRely(tid, vhead, vs, vhead0, vs0) ↔ nextnottid(tid, vhead, vs) → nextnottid(tid, vhead0, vs0), subst:[vhead, vhead0, tid, vs0, vs] → [first, ps0[first].next, tid0, vs0, vs0], <all paths>

Additional information

Used terms: first, ps0[first].next, tid0, vs0, vs0

Proof step 31 from proof rely-D24-D6 (previous step) (back to tree)

⊦ nextnottidRely(tid, vhead, vs, vhead0, vs0) ↔ nextnottid(tid, vhead, vs) → nextnottid(tid, vhead0, vs0)

A spec-lemma

Proof step 32 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid0, first, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ nextnottid(tid0, ps0[first].next, vs0), vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), orl0.last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0), lst ∈ orl0 from first ∨ lst ∈ qrl0, vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:nextnottid-def, seq:⊦ nextnottid(tid, vhead, vs) ↔ vs[vhead].next ≠ null → vs[vs[vhead].next].deqID ≠ Some(tid), subst:[tid, vhead, vs] → [tid0, first, vs0], <all paths>

Additional information

Used terms: tid0, first, vs0

Proof step 33 from proof rely-D24-D6 (previous step) (back to tree)

⊦ nextnottid(tid, vhead, vs) ↔ vs[vhead].next ≠ null → vs[vs[vhead].next].deqID ≠ Some(tid)

A spec-lemma

Proof step 34 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, vtail0 ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ nextnottid(tid0, ps0[first].next, vs0), vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), vs0[first].next ≠ null → vs0[vs0[first].next].deqID ≠ Some(tid0), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:nextnottid-def, seq:⊦ nextnottid(tid, vhead, vs) ↔ vs[vhead].next ≠ null → vs[vs[vhead].next].deqID ≠ Some(tid), subst:[tid, vhead, vs] → [tid0, ps0[first].next, vs0], <all paths>

Additional information

Used terms: tid0, ps0[first].next, vs0

Proof step 35 from proof rely-D24-D6 (previous step) (back to tree)

⊦ nextnottid(tid, vhead, vs) ↔ vs[vhead].next ≠ null → vs[vs[vhead].next].deqID ≠ Some(tid)

A spec-lemma

Proof step 36 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[ps0[first].next].next].deqID = Some(tid0), Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, vs0[ps0[first].next].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), vs0[first].next ≠ null → vs0[vs0[first].next].deqID ≠ Some(tid0), vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), orl0.last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0), lst ∈ orl0 from first ∨ lst ∈ qrl0, vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

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] → [ps0, orl0, owns0, first, qrl0, vs0]

Additional information

Used terms: ps0, orl0, owns0, first, qrl0, vs0

Proof step 37 from proof rely-D24-D6 (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 38 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[ps0[first].next].next].deqID = Some(tid0), Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, vs0[ps0[first].next].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, vtail0 ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), vs0[first].next ≠ null → vs0[vs0[first].next].deqID ≠ Some(tid0), listp(orl0 + qrl0, vs0, ps0, owns0) ∧ first ∈ orl0 → (∃ rl1, rl2. orl0 = rl1 + first ' + rl2 ∧ listp(first ' + rl2 + qrl0, vs0, ps0, owns0)), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = first ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

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) ⊦ (x + a ' + y).butlast = x + (a ' + y).butlast; (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) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (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 39 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[ps0[first].next].next].deqID = Some(tid0), Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, vs0[ps0[first].next].next ≠ null, first ≠ lst, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp((rl1 + first ' + rl2) + qrl0, vs0, ps0, owns0), listp(first ' + rl2 + qrl0, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, (rl1 + first ' + rl2) + qrl0, ps0[first].next, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ (rl1 + first ' + rl2) + qrl0 from lst, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl0), ¬ dups(rl2), ¬ dups(qrl0), ¬ first ∈ qrl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vs0[first].next ≠ null → vs0[vs0[first].next].deqID ≠ Some(tid0), vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), (first ' + rl2).last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead0 ≠ (first ' + rl2).last ∧ unmarkedp(qrl0, vs0), lst ∈ rl2 ∨ lst ∈ qrl0, vtail0 = (first ' + rl2 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ⊦

User applied rule constructor cut

And obtained the following new goals

Rule argument

var: rl2

Additional information

Used simplifier rules: reflist freely generated by [], +;;

Proof step 40 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[ps0[first].next].next].deqID = Some(tid0), Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rl2 = [], rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, vs0[ps0[first].next].next ≠ null, first ≠ lst, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(first ' + rl2 + qrl0, vs0, ps0, owns0), listp((rl1 + first ' + rl2) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, (rl1 + first ' + rl2) + qrl0, ps0[first].next, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[first].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), vtail0 ∈ (rl1 + first ' + rl2) + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl0), ¬ dups(rl2), ¬ dups(qrl0), ¬ first ∈ qrl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), vs0[first].next ≠ null → vs0[vs0[first].next].deqID ≠ Some(tid0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2, vtail0 = (first ' + rl2 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl0, (first ' + rl2).last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead0 ≠ (first ' + rl2).last ∧ unmarkedp(qrl0, vs0) ⊦

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 ∈ []; (s) ⊦ [] + x = x; (s) ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) ⊦ a '.butlast = []; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s)

Proof step 41 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[ps0[first].next].next].deqID = Some(tid0), Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, vs0[ps0[first].next].next ≠ null, first ≠ lst, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(rl1 + first ' + qrl0, vs0, ps0, owns0), listp(first ' + qrl0, vs0, ps0, owns0), markedp(rl1, vs0), markedp(rl1, ps0), noid(tid, rl1 + first ' + qrl0, ps0[first].next, vs0), nonullRetRefs(rl1 + first ' + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ rl1 + first ' + qrl0 from lst, lst ∈ qrl0, lst ∈ vs0, lst ∈ ps0, ¬ dups(rl1 + qrl0), ¬ dups(rl1), ¬ dups(qrl0), ¬ first ∈ qrl0, ¬ first ∈ rl1, vs0[first].next ≠ null → vs0[vs0[first].next].deqID ≠ Some(tid0), vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 ≠ [] ∧ rl1.last = first ∧ phead0 ≠ rl1.last ∧ unmarkedp(qrl0, vs0), vtail0 = qrl0.last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ⊦

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] → [qrl0, vtail, qrl]

Additional information

Used simplifier rules: ⊦ a ' + x ≠ []; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ a + x = 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) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl0, vtail, y

Proof step 42 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[ps0[first].next].next].deqID = Some(tid0), Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rl2 = first0 + rl, rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, vs0[ps0[first].next].next ≠ null, first ≠ lst, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(first ' + rl2 + qrl0, vs0, ps0, owns0), listp((rl1 + first ' + rl2) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, (rl1 + first ' + rl2) + qrl0, ps0[first].next, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[first].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), vtail0 ∈ (rl1 + first ' + rl2) + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl0), ¬ dups(rl2), ¬ dups(qrl0), ¬ first ∈ qrl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vs0[first].next ≠ null ∧ vs0[vs0[first].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), vs0[first].next ≠ null → vs0[vs0[first].next].deqID ≠ Some(tid0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2, vtail0 = (first ' + rl2 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl0, (first ' + rl2).last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead0 ≠ (first ' + rl2).last ∧ unmarkedp(qrl0, vs0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ some?(opttid) → opttid ≠ None; (as) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] 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] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a + x = a ' + x; (s) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ (a ' + b ' + x).butlast = a ' + (b ' + x).butlast; (s) ⊦ x + a ' + y ≠ []; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ 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) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s)

Proof step 43 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[vs0[first].next].next].deqID = Some(tid0), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), rvowns0(vretRefs0(vs0[vs0[first].next].deqID.tid)) = Claimed(vs0[vs0[first].next].deqID.tid, vs0[vs0[first].next].val), vs0[vs0[first].next].deqID ≠ Some(tid0), ps0[vs0[first].next].deqID ≠ None, vs0[first].next ≠ null, vs0[vs0[first].next].next ≠ null, first ≠ lst, first ≠ null, first ≠ vs0[first].next, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, ps0, owns0), listp(vs0[first].next ' + rl + qrl0, vs0, ps0, owns0), markedp(rl, vs0), markedp(rl1, vs0), markedp(rl, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[first].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ rl1 + first ' + (vs0[first].next ' + rl) + qrl0 from lst, ¬ dups(rl1 + rl + qrl0), ¬ dups(rl1), ¬ dups(rl + qrl0), ¬ dups(rl1 + rl), ¬ dups(qrl0), ¬ dups(rl), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl1, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl, ¬ vs0[first].next ∈ qrl0, ¬ first ∈ qrl0, ¬ first ∈ rl, (vs0[first].next ' + rl).last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + (vs0[first].next ' + rl).butlast).last = first ∧ phead0 ≠ (vs0[first].next ' + rl).last ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ rl ∨ lst ∈ qrl0, vtail0 = (vs0[first].next ' + rl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: opttid, name:elim-Some, seq: ⊦ some?(opttid) → (tid = opttid.tid ↔ opttid = Some(tid)), subst:[opttid, tid] → [vs0[vs0[first].next].deqID, tid1]

Additional information

Used simplifier rules: ⊦ some?(opttid) → (tid = opttid.tid ↔ opttid = Some(tid)); (elim) Used terms: vs0[vs0[first].next].deqID, tid1

Proof step 44 from proof rely-D24-D6 (previous step) (back to tree)

ps0[first].deqID = vs0[first].deqID, vs0[vs0[vs0[first].next].next].deqID = Some(tid0), vs0[vs0[first].next].deqID = Some(tid1), ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), vs0[vs0[first].next].deqID ≠ Some(tid0), ps0[vs0[first].next].deqID ≠ None, vs0[first].next ≠ null, vs0[vs0[first].next].next ≠ null, first ≠ lst, first ≠ null, first ≠ vs0[first].next, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(vs0[first].next ' + rl + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl, ps0), markedp(rl1, vs0), markedp(rl, vs0), noid(tid, rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), vtail0 ∈ rl1 + first ' + (vs0[first].next ' + rl) + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(rl1 + rl + qrl0), ¬ dups(rl1), ¬ dups(rl + qrl0), ¬ dups(rl1 + rl), ¬ dups(qrl0), ¬ dups(rl), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl1, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl, ¬ vs0[first].next ∈ qrl0, ¬ first ∈ qrl0, ¬ first ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl, vtail0 = (vs0[first].next ' + rl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst = vs0[first].next ∨ lst ∈ rl ∨ lst ∈ qrl0, (vs0[first].next ' + rl).last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + (vs0[first].next ' + rl).butlast).last = first ∧ phead0 ≠ (vs0[first].next ' + rl).last ∧ unmarkedp(qrl0, vs0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ some?(Some(tid)); (s) ⊦ Some(tid) = Some(tid0) ↔ tid = tid0; (s)

Proof step 45 from proof rely-D24-D6 (previous step) (back to tree)

ps0[first].deqID = vs0[first].deqID, vs0[vs0[vs0[first].next].next].deqID = Some(tid0), vs0[vs0[first].next].deqID = Some(tid1), ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), ps0[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, first ≠ vs0[first].next, first ≠ null, first ≠ lst, tid ≠ tid0, tid1 ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(vs0[first].next ' + rl + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl, ps0), markedp(rl1, vs0), markedp(rl, vs0), noid(tid, rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[vs0[first].next].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), vtail0 ∈ rl1 + first ' + (vs0[first].next ' + rl) + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(rl), ¬ dups(qrl0), ¬ dups(rl1 + rl), ¬ dups(rl + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl + qrl0), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl, ¬ first ∈ qrl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl, ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl, vtail0 = (vs0[first].next ' + rl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst = vs0[first].next ∨ lst ∈ rl ∨ lst ∈ qrl0, (vs0[first].next ' + rl).last = first ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + (vs0[first].next ' + rl).butlast).last = first ∧ phead0 ≠ (vs0[first].next ' + rl).last ∧ unmarkedp(qrl0, vs0) ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 60

Additional information

Proof step 46 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[first].next].deqID = Some(tid1), vs0[vs0[vs0[first].next].next].deqID = Some(tid0), ps0[first].deqID = vs0[first].deqID, (vs0[first].next ' + rl).last = first, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), ps0[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, first ≠ vs0[first].next, first ≠ null, first ≠ lst, tid ≠ tid0, tid1 ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, ps0, owns0), listp(vs0[first].next ' + rl + qrl0, vs0, ps0, owns0), markedp(rl, vs0), markedp(rl1, vs0), markedp(rl, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[first].deqID), some?(ps0[vs0[first].next].deqID), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ rl1 + first ' + (vs0[first].next ' + rl) + qrl0 from lst, ¬ dups(rl), ¬ dups(qrl0), ¬ dups(rl1 + rl), ¬ dups(rl + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl + qrl0), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl, ¬ first ∈ qrl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl, ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl1, qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0), lst = vs0[first].next ∨ lst ∈ rl ∨ lst ∈ qrl0, vtail0 = (vs0[first].next ' + rl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:lapp, seq: ⊦ y ≠ [] → (x + y).last = y.last, subst:[x, y] → [vs0[first].next ', rl], <all paths>

Additional information

Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a '.last = a; (s) Used terms: vs0[first].next ', rl

Proof step 47 from proof rely-D24-D6 (previous step) (back to tree)

⊦ y ≠ [] → (x + y).last = y.last

A spec-lemma

Proof step 48 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[first].next].deqID = Some(tid1), vs0[vs0[vs0[first].next].next].deqID = Some(tid0), ps0[first].deqID = vs0[first].deqID, (first ' + (vs0[first].next ' + rl).butlast).last = first, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), ps0[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, first ≠ vs0[first].next, first ≠ null, first ≠ lst, phead0 ≠ (vs0[first].next ' + rl).last, tid ≠ tid0, tid1 ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, ps0, owns0), listp(vs0[first].next ' + rl + qrl0, vs0, ps0, owns0), markedp(rl, vs0), markedp(rl1, vs0), markedp(rl, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[first].deqID), some?(ps0[vs0[first].next].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl0, vs0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ rl1 + first ' + (vs0[first].next ' + rl) + qrl0 from lst, ¬ dups(rl), ¬ dups(qrl0), ¬ dups(rl1 + rl), ¬ dups(rl + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl + qrl0), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl, ¬ first ∈ qrl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl, ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl1, lst = vs0[first].next ∨ lst ∈ rl ∨ lst ∈ qrl0, vtail0 = (vs0[first].next ' + rl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:bapp, seq: ⊦ y ≠ [] → (x + y).butlast = x + y.butlast, subst:[x, y] → [vs0[first].next ', rl], <all paths>

Additional information

Used terms: vs0[first].next ', rl

Proof step 49 from proof rely-D24-D6 (previous step) (back to tree)

⊦ y ≠ [] → (x + y).butlast = x + y.butlast

A spec-lemma

Proof step 50 from proof rely-D24-D6 (previous step) (back to tree)

ps0[first].deqID = vs0[first].deqID, vs0[vs0[vs0[first].next].next].deqID = Some(tid0), vs0[vs0[first].next].deqID = Some(tid1), (first ' + (vs0[first].next ' + rl).butlast).last = first, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rl = [], rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), ps0[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, first ≠ vs0[first].next, first ≠ null, first ≠ lst, phead0 ≠ (vs0[first].next ' + rl).last, tid ≠ tid0, tid1 ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(vs0[first].next ' + rl + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl, ps0), markedp(rl1, vs0), markedp(rl, vs0), noid(tid, rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[vs0[first].next].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, vs0), unmarkedp(qrl0, ps0), vtail0 ∈ rl1 + first ' + (vs0[first].next ' + rl) + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(rl), ¬ dups(qrl0), ¬ dups(rl1 + rl), ¬ dups(rl + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl + qrl0), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl, ¬ first ∈ qrl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl, ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl, vtail0 = (vs0[first].next ' + rl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst = vs0[first].next ∨ lst ∈ rl ∨ lst ∈ qrl0 ⊦

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] ⊦ ¬ a ∈ []; (s) ⊦ [] + x = x; (s) ⊦ x + [] = x; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s) ⊦ a '.last = a; (s) ⊦ a '.butlast = []; (s)

Proof step 51 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[first].next].deqID = Some(tid1), vs0[vs0[vs0[first].next].next].deqID = Some(tid0), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), ps0[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, first ≠ vs0[first].next, first ≠ null, first ≠ lst, phead0 ≠ vs0[first].next, tid ≠ tid0, tid1 ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(rl1 + first ' + vs0[first].next ' + qrl0, vs0, ps0, owns0), listp(vs0[first].next ' + qrl0, vs0, ps0, owns0), markedp(rl1, vs0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[first].deqID), some?(ps0[vs0[first].next].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl0, vs0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl0 from lst, ¬ dups(rl1 + qrl0), ¬ dups(rl1), ¬ dups(qrl0), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl1, lst = vs0[first].next ∨ lst ∈ qrl0, vtail0 = (vs0[first].next ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ⊦

User applied rule constructor cut

And closed the goal!

Rule argument

var: qrl0

Additional information

Used simplifier rules: reflist freely generated by [], +;; ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (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) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ a ' + x ≠ []; (s) ⊦ a + x = a ' + x; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ some?(Some(tid)); (s) ⊦ ¬ weak?(Some(tid)); (s) listp-twoin: ⊦ listp(rl + r ' + r0 ' + rl0, vs, ps, owns) → ps[r].next = r0; (forward) from specification DMSQ a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ None ≠ Some(tid); (s) ⊦ unmarkedp([], vs); (s) ⊦ listp(r ', 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 = null ∧ ( vs[r].next ≠ null → vs[r].next ∈ vs ∧ vs[r].next ∈ ps ∧ ps[vs[r].next] = vs[vs[r].next] ∧ ps[vs[r].next].deqID = None ∧ ps[vs[r].next].next = null ∧ weak?(owns(vs[r].next))); (s) ⊦ ¬ dups([]); (s) ⊦ ¬ a ∈ []; (s) ⊦ x + [] = x; (s) ⊦ a '.last = a; (s)

Proof step 52 from proof rely-D24-D6 (previous step) (back to tree)

ps0[first].deqID = vs0[first].deqID, vs0[vs0[vs0[first].next].next].deqID = Some(tid0), vs0[vs0[first].next].deqID = Some(tid1), (first ' + vs0[first].next ' + rl.butlast).last = first, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), ps0[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, first ≠ vs0[first].next, first ≠ null, first ≠ lst, phead0 ≠ (vs0[first].next ' + rl).last, rl ≠ [], tid ≠ tid0, tid1 ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(vs0[first].next ' + rl + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl, ps0), markedp(rl1, vs0), markedp(rl, vs0), noid(tid, rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[vs0[first].next].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, vs0), unmarkedp(qrl0, ps0), vtail0 ∈ rl1 + first ' + (vs0[first].next ' + rl) + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(rl), ¬ dups(qrl0), ¬ dups(rl1 + rl), ¬ dups(rl + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl + qrl0), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl, ¬ first ∈ qrl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl, ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl, vtail0 = (vs0[first].next ' + rl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst = vs0[first].next ∨ lst ∈ rl ∨ lst ∈ qrl0 ⊦

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] ⊦ y ≠ [] → (x + y + z).last = (y + z).last; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s)

Proof step 53 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[first].next].deqID = Some(tid1), vs0[vs0[vs0[first].next].next].deqID = Some(tid0), ps0[first].deqID = vs0[first].deqID, (vs0[first].next ' + rl.butlast).last = first, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), ps0[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, first ≠ vs0[first].next, first ≠ null, first ≠ lst, phead0 ≠ rl.last, rl ≠ [], tid ≠ tid0, tid1 ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, ps0, owns0), listp(vs0[first].next ' + rl + qrl0, vs0, ps0, owns0), markedp(rl, vs0), markedp(rl1, vs0), markedp(rl, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[first].deqID), some?(ps0[vs0[first].next].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl0, vs0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ rl1 + first ' + (vs0[first].next ' + rl) + qrl0 from lst, ¬ dups(rl), ¬ dups(qrl0), ¬ dups(rl1 + rl), ¬ dups(rl + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl + qrl0), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl, ¬ first ∈ qrl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl, ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl1, lst = vs0[first].next ∨ lst ∈ rl ∨ lst ∈ qrl0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl, vtail0 = (rl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:last-elim, seq:x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a ', subst:[x, a, y] → [rl, vtail, qrl]

Additional information

Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl, vtail, y

Proof step 54 from proof rely-D24-D6 (previous step) (back to tree)

ps0[first].deqID = vs0[first].deqID, vs0[vs0[vs0[first].next].next].deqID = Some(tid0), vs0[vs0[first].next].deqID = Some(tid1), (vs0[first].next ' + qrl).last = first, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rl = qrl + vtail ', rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), ps0[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, first ≠ vs0[first].next, first ≠ null, first ≠ lst, phead0 ≠ vtail, rl ≠ [], tid ≠ tid0, tid1 ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(vs0[first].next ' + rl + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl, ps0), markedp(rl1, vs0), markedp(rl, vs0), noid(tid, rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + rl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[vs0[first].next].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, vs0), unmarkedp(qrl0, ps0), vtail0 ∈ rl1 + first ' + (vs0[first].next ' + rl) + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(rl), ¬ dups(qrl0), ¬ dups(rl1 + rl), ¬ dups(rl + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl + qrl0), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl, ¬ first ∈ qrl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl, ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl1, vtail0 = (rl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl, lst = vs0[first].next ∨ lst ∈ rl ∨ lst ∈ qrl0 ⊦

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; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ x + a ' ≠ []; (s)

Proof step 55 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vs0[first].next].deqID = Some(tid1), vs0[vs0[vs0[first].next].next].deqID = Some(tid0), ps0[first].deqID = vs0[first].deqID, (vs0[first].next ' + qrl).last = first, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs0[vs0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[vs0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), rvowns0(vretRefs0(tid1)) = Claimed(tid1, vs0[vs0[first].next].val), ps0[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ vtail, first ≠ vs0[first].next, first ≠ null, first ≠ lst, first ≠ vtail, phead0 ≠ vtail, tid ≠ tid0, tid1 ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(rl1 + first ' + (vs0[first].next ' + qrl + vtail ') + qrl0, vs0, ps0, owns0), listp(vs0[first].next ' + (qrl + vtail ') + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(qrl, vs0), markedp(rl1, vs0), markedp(qrl, ps0), noid(tid, rl1 + first ' + (vs0[first].next ' + qrl + vtail ') + qrl0, vs0[first].next, vs0), nonullRetRefs(rl1 + first ' + (vs0[first].next ' + qrl + vtail ') + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vtail].deqID), some?(ps0[vtail].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl0, vs0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ rl1 + first ' + (vs0[first].next ' + qrl + vtail ') + qrl0 from lst, ¬ dups((rl1 + qrl) + qrl0), ¬ dups(rl1), ¬ dups(qrl + qrl0), ¬ dups(rl1 + qrl), ¬ dups(qrl0), ¬ dups(qrl), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl1, ¬ vtail ∈ qrl, ¬ vtail ∈ rl1, ¬ vtail ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ qrl, vtail0 = (vtail ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst = vs0[first].next ∨ lst ∈ qrl ∨ lst = vtail ∨ lst ∈ qrl0 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:lapp, seq: ⊦ y ≠ [] → (x + y).last = y.last, subst:[x, y] → [vs0[first].next ', qrl], <all paths>

Additional information

Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a '.last = a; (s) Used terms: vs0[first].next ', qrl

Proof step 56 from proof rely-D24-D6 (previous step) (back to tree)

⊦ y ≠ [] → (x + y).last = y.last

A spec-lemma

Proof step 57 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs[ps[first].next].val) = vrvHp[vretRefs(tid)], Val(vs[ps[first].next].val) = prvHp[vretRefs(tid)], dom vrvHp = dom prvHp, mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns) = mkgs(ps0, vs0, phead0, vhead0, vtail0, vretRefs0, pretRefs0, vrvHp0, prvHp0, qrl0, orl0, owns0, rvowns0), pretRefs(tid) = vretRefs(tid), rvowns(vretRefs(tid)) = Claimed(tid, vs[ps[first].next].val), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], tid ≠ tid0, vhead ≠ first, vretRefs(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), noid(tid, orl + qrl, ps[first].next, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), first ∈ orl, phead ∈ orl, vtail ∈ orl + qrl from lst, 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), vhead ≠ first → nextnottid(tid, vhead, vs), 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) ⊦ (∃ rl. orl + qrl + rl = orl0 + qrl0) ∧ (∃ rl0. orl + rl0 = orl0) ∧ vtail0 ∈ orl0 + qrl0 from vtail ∧ phead0 ∈ orl0 + qrl0 from phead ∧ vhead0 ∈ orl0 + qrl0 from vhead ∧ equalrl(orl + qrl, vs, ps, vs0, ps0) ∧ equalowns(vs, ps, owns, tid0, vs0, ps0, owns0) ∧ vretRefs(tid0) = vretRefs0(tid0) ∧ (pretRefs(tid0) = pretRefs0(tid0) ∨ vretRefs(tid0) = pretRefs0(tid0)) ∧ rvownsrely(tid0, rvowns, rvowns0, vrvHp) ∧ rvrely(tid0, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0) ∧ dom prvHp ⊆ dom vrvHp0 ∧ prvHpRely(vrvHp, prvHp, prvHp0) ∧ noidRely(tid0, orl + qrl, vs, orl0 + qrl0, vs0) ∧ nextnottidRely(tid0, vhead, vs, vhead0, vs0) ∧ ownsRely(tid0, owns, owns0)

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ # s = # s0 → (s ⊆ s0 ↔ s = s0); (s) 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 ⊦ ownsRely(tid, owns, owns); (s) ⊦ nextnottidRely(tid, vhead, vs, vhead, vs); (s) ⊦ noidRely(tid, rl, vs, rl, vs); (s) ⊦ prvHpRely(vrvHp, prvHp, prvHp); (s) ⊦ rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs, vrvHp); (s) ⊦ rvownsrely(tid, rvowns, rvowns, vrvHp); (s) ⊦ equalowns(vs, ps, owns, tid, vs, ps, owns); (s) ⊦ equalrl(rl, vs, ps, vs, ps); (s) ⊦ r ∈ rl → r ∈ rl from r; (ss) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ x = x + y ↔ y = []; (s) ⊦ # x = # z → (x + y = z + y0 ↔ x = z ∧ y = y0); (ws) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) = mkgs (ps1, ps2, phead2, phead3, phead4, vretRefs1, vretRefs2, vrvHp1, vrvHp2, qrl1, qrl2, owns0, rvowns0) ↔ ps = ps1 ∧ ps0 = ps2 ∧ phead = phead2 ∧ phead0 = phead3 ∧ phead1 = phead4 ∧ vretRefs = vretRefs1 ∧ vretRefs0 = vretRefs2 ∧ vrvHp = vrvHp1 ∧ vrvHp0 = vrvHp2 ∧ qrl = qrl1 ∧ qrl0 = qrl2 ∧ owns = owns0 ∧ rvowns = rvowns0; (ws)

Proof step 58 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0), lst ∈ orl0 from first ∨ lst ∈ qrl0, vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦ vtail0 ∈ orl0 + qrl0 from vtail0 ∧ vhead0 ∈ orl0 + qrl0 from vhead0

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Proof step 59 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, vtail0 ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ vtail0 ∈ orl0 + qrl0 from vtail0, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

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] ⊦ y ≠ [] → (x + y).last = y.last; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ rl.last ∈ rl from r ↔ r ∈ rl; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s)

Proof step 60 from proof rely-D24-D6 (previous step) (back to tree)

vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + qrl0.butlast).last ≠ qrl0.last, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], qrl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, (orl0 + qrl0.butlast).last ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ (orl0 + qrl0.butlast).last ∈ orl0 + qrl0 from (orl0 + qrl0.butlast).last, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), orl0.last = vhead0 ∧ unmarkedp(qrl0.tail, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0), lst ∈ orl0 from first ∨ lst ∈ qrl0 ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-data[reflist], name:elim-add, seq: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail), subst:[x, head, tail] → [qrl0, phead, orl]

Additional information

Used simplifier rules: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: qrl0, head, tail

Proof step 61 from proof rely-D24-D6 (previous step) (back to tree)

vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), qrl0 = phead + orl, rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + qrl0.butlast).last ≠ qrl0.last, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], qrl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, (orl0 + qrl0.butlast).last ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ (orl0 + qrl0.butlast).last ∈ orl0 + qrl0 from (orl0 + qrl0.butlast).last, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = vhead0 ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

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] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a + x = a ' + x; (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ' + x ≠ []; (s)

Proof step 62 from proof rely-D24-D6 (previous step) (back to tree)

vs0[(phead ' + orl).last].deqID = None, ps0[phead].deqID = None, vs0[(phead ' + orl).last].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + (phead ' + orl).butlast).last ≠ (phead ' + orl).last, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(orl, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(orl0 + orl), ¬ dups(orl0), ¬ dups(orl), ¬ phead ∈ orl, ¬ phead ∈ orl0, ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from (orl0 + (phead ' + orl).butlast).last, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), orl0.last = vhead0 ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0), lst ∈ orl0 from first ∨ lst = phead ∨ lst ∈ orl ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:from-in2, seq: ⊦ r ∈ rl → r ∈ rl from r, subst:[r, rl] → [(orl0 + (phead ' + orl).butlast).last, orl0 + phead ' + orl], <all paths>

Additional information

Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: (orl0 + (phead ' + orl).butlast).last, orl0 + phead ' + orl

Proof step 63 from proof rely-D24-D6 (previous step) (back to tree)

⊦ r ∈ rl → r ∈ rl from r

A spec-lemma

Proof step 64 from proof rely-D24-D6 (previous step) (back to tree)

ps0[phead].deqID = None, vs0[(phead ' + orl).last].deqID = None, vs0[(phead ' + orl).last].next = null, Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + (phead ' + orl).butlast).last ≠ (phead ' + orl).last, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(orl, ps0), first ∈ orl0, phead0 ∈ orl0, (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(orl0 + orl), ¬ dups(orl0), ¬ dups(orl), ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl, ¬ phead ∈ orl, ¬ phead ∈ orl0, ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from (orl0 + (phead ' + orl).butlast).last, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), lst ∈ orl0 from first ∨ lst = phead ∨ lst ∈ orl, orl0.last = vhead0 ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0) ⊦

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-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 ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ r ∈ rl → rl from r = []; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s)

Proof step 65 from proof rely-D24-D6 (previous step) (back to tree)

ps0[phead].deqID = None, vs0[(phead ' + orl).last].deqID = None, vs0[(phead ' + orl).last].next = null, Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + (phead ' + orl).butlast).last ≠ phead, (orl0 + (phead ' + orl).butlast).last ≠ (phead ' + orl).last, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(orl, ps0), first ∈ orl0, phead0 ∈ orl0, (orl0 + (phead ' + orl).butlast).last ∈ orl0 + phead ' + orl from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(orl), ¬ dups(orl0), ¬ dups(orl0 + orl), ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl, ¬ (orl0 + (phead ' + orl).butlast).last ∈ orl0, ¬ phead ∈ orl0, ¬ phead ∈ orl, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), orl0.last = vhead0 ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0), lst ∈ orl ∨ lst ∈ orl0 from first ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:bapp, seq: ⊦ y ≠ [] → (x + y).butlast = x + y.butlast, subst:[x, y] → [phead ', orl], <all paths>

Additional information

Used simplifier rules: ⊦ a '.last = a; (s) ⊦ unmarkedp([], vs); (s) ⊦ ¬ dups([]); (s) ⊦ ¬ a ∈ []; (s) ⊦ a '.butlast = []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x.last ∈ x ↔ x ≠ []; (s) Used terms: phead ', orl

Proof step 66 from proof rely-D24-D6 (previous step) (back to tree)

⊦ y ≠ [] → (x + y).butlast = x + y.butlast

A spec-lemma

Proof step 67 from proof rely-D24-D6 (previous step) (back to tree)

vs0[(phead ' + orl).last].deqID = None, ps0[phead].deqID = None, vs0[(phead ' + orl).last].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (orl0 + phead ' + orl.butlast).last ≠ phead, (orl0 + phead ' + orl.butlast).last ≠ (phead ' + orl).last, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, orl ≠ [], orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(orl, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, (orl0 + phead ' + orl.butlast).last ∈ orl0 + phead ' + orl from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(orl), ¬ dups(orl0), ¬ dups(orl0 + orl), ¬ (orl0 + phead ' + orl.butlast).last ∈ orl, ¬ (orl0 + phead ' + orl.butlast).last ∈ orl0, ¬ phead ∈ orl0, ¬ phead ∈ orl, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), lst ∈ orl ∨ lst ∈ orl0 from first, orl0.last = vhead0 ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0) ⊦

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] ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s)

Proof step 68 from proof rely-D24-D6 (previous step) (back to tree)

ps0[phead].deqID = None, vs0[orl.last].deqID = None, vs0[orl.last].next = null, Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (phead ' + orl.butlast).last ≠ phead, (phead ' + orl.butlast).last ≠ orl.last, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, orl ≠ [], orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(orl, ps0), vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, first ∈ orl0, phead0 ∈ orl0, (phead ' + orl.butlast).last ∈ orl0 + phead ' + orl from lst, ¬ dups(orl), ¬ dups(orl0), ¬ dups(orl0 + orl), ¬ phead ∈ orl0, ¬ phead ∈ orl, ¬ (phead ' + orl.butlast).last ∈ orl, ¬ (phead ' + orl.butlast).last ∈ orl0, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), orl0.last = vhead0 ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0), lst ∈ orl ∨ lst ∈ orl0 from first ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:last-elim, seq:x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a ', subst:[x, a, y] → [orl, vhead, orl1]

Additional information

Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: orl, vhead, y

Proof step 69 from proof rely-D24-D6 (previous step) (back to tree)

vs0[vhead].deqID = None, ps0[phead].deqID = None, vs0[vhead].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, orl = orl1 + vhead ', pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (phead ' + orl1).last ≠ phead, (phead ' + orl1).last ≠ vhead, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, orl ≠ [], orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + phead ' + orl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + phead ' + orl, ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(orl, ps0), (phead ' + orl1).last ∈ orl0 + phead ' + orl from lst, phead0 ∈ orl0, first ∈ orl0, phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, ¬ dups(orl), ¬ dups(orl0), ¬ dups(orl0 + orl), ¬ phead ∈ orl0, ¬ phead ∈ orl, ¬ (phead ' + orl1).last ∈ orl, ¬ (phead ' + orl1).last ∈ orl0, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), lst ∈ orl ∨ lst ∈ orl0 from first, orl0.last = vhead0 ∧ unmarkedp(orl, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl, vs0) ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

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

Proof step 70 from proof rely-D24-D6 (previous step) (back to tree)

ps0[vhead].deqID = None, vs0[vhead].deqID = None, ps0[phead].deqID = None, vs0[vhead].next = null, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (phead ' + orl1).last ≠ vhead, (phead ' + orl1).last ≠ phead, ps0[first].next ≠ null, first ≠ lst, lst ≠ phead, lst ≠ vhead, orl0 ≠ [], phead ≠ vhead, tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + phead ' + orl1 + vhead ', vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + phead ' + orl1 + vhead ', ps0[first].next, vs0), nonullRetRefs(orl0 + phead ' + orl1 + vhead ', vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(orl1, ps0), (phead ' + orl1).last ∈ orl0 + phead ' + orl1 + vhead ' from lst, phead0 ∈ orl0, first ∈ orl0, phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, ¬ dups(orl1), ¬ dups(orl0), ¬ dups(orl0 + orl1), ¬ (phead ' + orl1).last ∈ orl1, ¬ phead ∈ orl1, ¬ phead ∈ orl0, ¬ vhead ∈ orl0, ¬ vhead ∈ orl1, ¬ (phead ' + orl1).last ∈ orl0, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), orl0.last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ vs0[phead].deqID = None ∧ unmarkedp(orl1, vs0), lst ∈ orl0 from first ∨ lst ∈ orl1 ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:lapp, seq: ⊦ y ≠ [] → (x + y).last = y.last, subst:[x, y] → [phead ', orl1], <all paths>

Additional information

Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a '.last = a; (s) Used terms: phead ', orl1

Proof step 71 from proof rely-D24-D6 (previous step) (back to tree)

⊦ y ≠ [] → (x + y).last = y.last

A spec-lemma

Proof step 72 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, vtail0 ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ vhead0 ∈ orl0 + qrl0 from vhead0, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: DMSQ, name:from-in2, seq: ⊦ r ∈ rl → r ∈ rl from r, subst:[r, rl] → [vhead0, orl0 + qrl0], <all paths>

Additional information

Used terms: vhead0, orl0 + qrl0

Proof step 73 from proof rely-D24-D6 (previous step) (back to tree)

⊦ r ∈ rl → r ∈ rl from r

A spec-lemma

Proof step 74 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ vhead0 ∈ orl0 + qrl0, ¬ vhead0 ∈ orl0 + qrl0 from vhead0, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0), lst ∈ orl0 from first ∨ lst ∈ qrl0, vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ ¬ a ∈ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ ¬ r ∈ rl → rl from r = []; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s)

Proof step 75 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, vtail0 ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ vhead0 ∈ orl0, ¬ vhead0 ∈ qrl0, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl0 from first ∨ lst ∈ qrl0, orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦

User applied rule case distinction

And obtained the following new goals

Rule argument

pos: left 41

Additional information

Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s)

Proof step 76 from proof rely-D24-D6 (previous step) (back to tree)

orl0.butlast.last = vhead0, Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), orl0.butlast ≠ [], ps0[ps0[first].next].deqID ≠ None, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], phead0 ≠ orl0.last, tid ≠ tid0, vhead0 ≠ first, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), unmarkedp(qrl0, vs0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ vhead0 ∈ orl0, ¬ vhead0 ∈ qrl0, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), lst ∈ orl0 from first ∨ lst ∈ qrl0, vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ x ≠ [] → (x.butlast = [] ↔ x = x.head '); (ss)

Proof step 77 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, orl0.butlast.last ≠ first, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], orl0 ≠ orl0.head ', phead0 ≠ orl0.last, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, orl0.butlast.last, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), unmarkedp(qrl0, vs0), unmarkedp(qrl0, ps0), first ∈ orl0, phead0 ∈ orl0, vtail0 ∈ orl0 + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ orl0.butlast.last ∈ orl0, ¬ orl0.butlast.last ∈ qrl0, vs0[orl0.butlast.last].next ≠ null ∧ vs0[vs0[orl0.butlast.last].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[orl0.butlast.last].next].deqID.tid)) = Claimed(vs0[vs0[orl0.butlast.last].next].deqID.tid, vs0[vs0[orl0.butlast.last].next].val), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl0 from first ∨ lst ∈ qrl0 ⊦

Heuristic elimination applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-data[reflist], name:elim-add, seq: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail), subst:[x, head, tail] → [orl0, vtail, qrl]

Additional information

Used simplifier rules: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: orl0, head, tail

Proof step 78 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, orl0 = vtail + qrl, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, orl0.butlast.last ≠ first, ps0[first].next ≠ null, first ≠ lst, orl0 ≠ [], orl0 ≠ vtail ', phead0 ≠ orl0.last, tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl0, ps0), nextnottid(tid, orl0.butlast.last, vs0), noid(tid, orl0 + qrl0, ps0[first].next, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), unmarkedp(qrl0, ps0), unmarkedp(qrl0, vs0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ orl0 + qrl0 from lst, phead0 ∈ orl0, first ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ orl0.butlast.last ∈ orl0, ¬ orl0.butlast.last ∈ qrl0, vs0[orl0.butlast.last].next ≠ null ∧ vs0[vs0[orl0.butlast.last].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[orl0.butlast.last].next].deqID.tid)) = Claimed(vs0[vs0[orl0.butlast.last].next].deqID.tid, vs0[vs0[orl0.butlast.last].next].val), lst ∈ orl0 from first ∨ lst ∈ qrl0, vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

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 ' + x).butlast = a ' + x.butlast; (s) ⊦ a + x = a ' + x; (s) ⊦ y ≠ [] → (x + y + z).last = (y + z).last; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s) ⊦ a ' = b ' + x ↔ a = b ∧ x = []; (ws) ⊦ a ' + x ≠ []; (s)

Proof step 79 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (vtail ' + qrl.butlast).last ≠ first, (vtail ' + qrl.butlast).last ≠ vtail, ps0[first].next ≠ null, first ≠ lst, phead0 ≠ qrl.last, qrl ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp((vtail ' + qrl) + qrl0, vs0, ps0, owns0), markedp(qrl, ps0), markedp(qrl, vs0), nextnottid(tid, (vtail ' + qrl.butlast).last, vs0), noid(tid, (vtail ' + qrl) + qrl0, ps0[first].next, vs0), nonullRetRefs((vtail ' + qrl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[vtail].deqID), some?(vs0[vtail].deqID), unmarkedp(qrl0, vs0), unmarkedp(qrl0, ps0), vtail0 ∈ (vtail ' + qrl) + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl + qrl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ vtail ∈ qrl, ¬ vtail ∈ qrl0, ¬ (vtail ' + qrl.butlast).last ∈ qrl, ¬ (vtail ' + qrl.butlast).last ∈ qrl0, vs0[(vtail ' + qrl.butlast).last].next ≠ null ∧ vs0[vs0[(vtail ' + qrl.butlast).last].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[(vtail ' + qrl.butlast).last].next].deqID.tid)) = Claimed(vs0[vs0[(vtail ' + qrl.butlast).last].next].deqID.tid, vs0[vs0[(vtail ' + qrl.butlast).last].next].val), first = vtail ∨ first ∈ qrl, phead0 = vtail ∨ phead0 ∈ qrl, vtail0 = (qrl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (qrl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ vtail ' + qrl from first ∨ lst ∈ qrl0 ⊦

User applied rule apply elim lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:last-elim, seq:x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a ', subst:[x, a, y] → [qrl, phead, qrl1]

Additional information

Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: qrl, phead, y

Proof step 80 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), qrl = qrl1 + phead ', rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (vtail ' + qrl1).last ≠ first, (vtail ' + qrl1).last ≠ vtail, ps0[first].next ≠ null, first ≠ lst, phead0 ≠ phead, qrl ≠ [], tid ≠ tid0, vretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), listp((vtail ' + qrl) + qrl0, vs0, ps0, owns0), markedp(qrl, vs0), markedp(qrl, ps0), nextnottid(tid, (vtail ' + qrl1).last, vs0), noid(tid, (vtail ' + qrl) + qrl0, ps0[first].next, vs0), nonullRetRefs((vtail ' + qrl) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), some?(vs0[vtail].deqID), some?(ps0[vtail].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl0, vs0), phead0 ∈ ps0, first ∈ ps0, phead0 ∈ vs0, first ∈ vs0, vretRefs0(tid) ∈ vrvHp0, vtail0 ∈ (vtail ' + qrl) + qrl0 from lst, ¬ dups(qrl + qrl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ vtail ∈ qrl, ¬ vtail ∈ qrl0, ¬ (vtail ' + qrl1).last ∈ qrl, ¬ (vtail ' + qrl1).last ∈ qrl0, vs0[(vtail ' + qrl1).last].next ≠ null ∧ vs0[vs0[(vtail ' + qrl1).last].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[(vtail ' + qrl1).last].next].deqID.tid)) = Claimed(vs0[vs0[(vtail ' + qrl1).last].next].deqID.tid, vs0[vs0[(vtail ' + qrl1).last].next].val), lst ∈ vtail ' + qrl from first ∨ lst ∈ qrl0, vtail0 = (qrl + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (qrl + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 = vtail ∨ phead0 ∈ qrl, first = vtail ∨ first ∈ qrl ⊦

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; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ x + a ' ≠ []; (s)

Proof step 81 from proof rely-D24-D6 (previous step) (back to tree)

Val(vs0[ps0[first].next].val) = vrvHp0[vretRefs0(tid)], Val(vs0[ps0[first].next].val) = prvHp0[vretRefs0(tid)], dom vrvHp0 = dom prvHp0, pretRefs0(tid) = vretRefs0(tid), rvowns0(vretRefs0(tid)) = Claimed(tid, vs0[ps0[first].next].val), ps0[ps0[first].next].deqID ≠ None, (vtail ' + qrl1).last ≠ first, (vtail ' + qrl1).last ≠ vtail, (vtail ' + qrl1).last ≠ phead, ps0[first].next ≠ null, first ≠ lst, phead0 ≠ phead, tid ≠ tid0, vretRefs0(tid) ≠ null, vtail ≠ phead, allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), listp((vtail ' + qrl1 + phead ') + qrl0, vs0, ps0, owns0), markedp(qrl1, ps0), markedp(qrl1, vs0), nextnottid(tid, (vtail ' + qrl1).last, vs0), noid(tid, (vtail ' + qrl1 + phead ') + qrl0, ps0[first].next, vs0), nonullRetRefs((vtail ' + qrl1 + phead ') + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), some?(ps0[vtail].deqID), some?(vs0[vtail].deqID), some?(ps0[phead].deqID), some?(vs0[phead].deqID), unmarkedp(qrl0, vs0), unmarkedp(qrl0, ps0), vtail0 ∈ (vtail ' + qrl1 + phead ') + qrl0 from lst, vretRefs0(tid) ∈ vrvHp0, first ∈ vs0, phead0 ∈ vs0, first ∈ ps0, phead0 ∈ ps0, ¬ dups(qrl1 + qrl0), ¬ dups(qrl1), ¬ dups(qrl0), ¬ (vtail ' + qrl1).last ∈ qrl0, ¬ phead ∈ qrl1, ¬ phead ∈ qrl0, ¬ vtail ∈ qrl1, ¬ vtail ∈ qrl0, ¬ (vtail ' + qrl1).last ∈ qrl1, vs0[(vtail ' + qrl1).last].next ≠ null ∧ vs0[vs0[(vtail ' + qrl1).last].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[(vtail ' + qrl1).last].next].deqID.tid)) = Claimed(vs0[vs0[(vtail ' + qrl1).last].next].deqID.tid, vs0[vs0[(vtail ' + qrl1).last].next].val), lst ∈ vtail ' + qrl1 + phead ' from first ∨ lst ∈ qrl0, first = vtail ∨ first ∈ qrl1 ∨ first = phead, phead0 = vtail ∨ phead0 ∈ qrl1, vtail0 = (phead ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦

User applied rule apply rewrite lemma

And obtained the following new goals

Rule argument

spec: list-last[reflist], name:lapp, seq: ⊦ y ≠ [] → (x + y).last = y.last, subst:[x, y] → [vtail ', qrl1], <all paths>

Additional information

Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a '.last = a; (s) Used terms: vtail ', qrl1

Proof step 82 from proof rely-D24-D6 (previous step) (back to tree)

⊦ y ≠ [] → (x + y).last = y.last

A spec-lemma

Proof Tree for rely-D24-D6 (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