| ⊦ ( ( ( 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)) ∧ (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.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)) ∧ listp(gs0.orl + gs0.qrl, gs0.vs, gs0.ps, gs0.owns) ∧ ¬ dups(gs0.orl + gs0.qrl) ∧ markedp(gs0.orl, gs0.ps) ∧ markedp(gs0.orl, gs0.vs) ∧ unmarkedp(gs0.qrl, gs0.ps) ∧ gs0.orl ≠ [] ∧ gs0.phead ∈ gs0.orl ∧ rvownerok(gs0.vretRefs, gs0.vrvHp, gs0.rvowns) ∧ allocrv(gs0.vretRefs, gs0.vrvHp) ∧ nonullRetRefs(gs0.orl + gs0.qrl, gs0.vs, gs0.vretRefs, gs0.pretRefs) ∧ rvownerok(gs0.pretRefs, gs0.prvHp, gs0.rvowns) ∧ allocrv(gs0.pretRefs, gs0.prvHp) ∧ dom gs0.vrvHp = dom gs0.prvHp ∧ ( gs0.vs[gs0.vhead].next ≠ null ∧ gs0.vs[gs0.vs[gs0.vhead].next].deqID ≠ None → gs0.rvowns(gs0.vretRefs(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid)) = Claimed(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid, gs0.vs[gs0.vs[gs0.vhead].next].val)) ∧ ( gs0.orl.last = gs0.vhead ∧ (gs0.qrl ≠ [] → unmarkedp(gs0.qrl.tail, gs0.vs)) ∨ gs0.orl.butlast ≠ [] ∧ gs0.orl.butlast.last = gs0.vhead ∧ gs0.phead ≠ gs0.orl.last ∧ unmarkedp(gs0.qrl, gs0.vs)) ∧ ( gs0.vtail = (gs0.orl + gs0.qrl).last ∨ gs0.qrl ≠ [] ∧ gs0.vtail = (gs0.orl + gs0.qrl.butlast).last ∧ gs0.vs[gs0.qrl.last].deqID = None ∧ gs0.vs[(gs0.orl + gs0.qrl).last].next = null)) ∧ (∃ rl. gs.orl + gs.qrl + rl = gs0.orl + gs0.qrl) ∧ (∃ rl0. gs.orl + rl0 = gs0.orl) ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from gs.vtail ∧ gs0.phead ∈ gs0.orl + gs0.qrl from gs.phead ∧ gs0.vhead ∈ gs0.orl + gs0.qrl from gs.vhead ∧ equalrl(gs.orl + gs.qrl, gs.vs, gs.ps, gs0.vs, gs0.ps) ∧ equalowns(gs.vs, gs.ps, gs.owns, ls.tid, gs0.vs, gs0.ps, gs0.owns) ∧ gs.vretRefs(ls.tid) = gs0.vretRefs(ls.tid) ∧ (gs.pretRefs(ls.tid) = gs0.pretRefs(ls.tid) ∨ gs.vretRefs(ls.tid) = gs0.pretRefs(ls.tid)) ∧ rvownsrely(ls.tid, gs.rvowns, gs0.rvowns, gs.vrvHp) ∧ rvrely(ls.tid, gs.rvowns, gs.vretRefs, gs.vrvHp, gs0.vretRefs, gs0.vrvHp) ∧ dom gs.vrvHp ⊆ dom gs0.vrvHp ∧ prvHpRely(gs.vrvHp, gs.prvHp, gs0.prvHp) ∧ noidRely(ls.tid, gs.orl + gs.qrl, gs.vs, gs0.orl + gs0.qrl, gs0.vs) ∧ nextnottidRely(ls.tid, gs.vhead, gs.vs, gs0.vhead, gs0.vs) ∧ ownsRely(ls.tid, gs.owns, gs0.owns) → (gs0.ps[ls.nxt].deqID ≠ None ∧ ls.first ∈ gs0.orl ∧ ls.nxt ≠ null ∧ ls.nxt = gs0.ps[ls.first].next ∧ ls.optval = gs0.vrvHp[ls.rvref]) ∧ (ls.first ≠ ls.lst ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst) ∧ ls.lst ∈ gs0.orl + gs0.qrl from ls.first ∧ (gs0.vretRefs(ls.tid) = ls.rvref ∧ gs0.pretRefs(ls.tid) = ls.rvref ∧ ls.rvref ∈ gs0.vrvHp ∧ ls.rvref ≠ null) ∧ ( ls.success ∧ gs0.vretRefs(ls.tid) ∈ gs0.vrvHp ∧ gs0.vretRefs(ls.tid) ≠ null ∧ gs0.rvowns(gs0.vretRefs(ls.tid)) = Claimed(ls.tid, ls.optval.val) ∧ ls.optval = Val(gs0.vs[ls.nxt].val)) ∧ (gs0.vhead ≠ ls.first → nextnottid(ls.tid, gs0.vhead, gs0.vs)) ∧ noid(ls.tid, gs0.orl + gs0.qrl, ls.nxt, gs0.vs) ∧ noowns(ls.tid, gs0.owns) |
ls.nxt = gs.ps[ls.first].next, ls.optval = gs.vrvHp[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, gs.vretRefs(ls.tid) = gs0.vretRefs(ls.tid), dom gs.vrvHp = dom gs.prvHp, dom gs0.vrvHp = dom gs0.prvHp, gs.ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, gs0.orl ≠ [], gs.orl ≠ [], ls.rvref ≠ null, gs.vretRefs(ls.tid) ≠ null, ls.success, allocrv(gs.vretRefs, gs.vrvHp), allocrv(gs.pretRefs, gs.prvHp), allocrv(gs0.vretRefs, gs0.vrvHp), allocrv(gs0.pretRefs, gs0.prvHp), equalowns(gs.vs, gs.ps, gs.owns, ls.tid, gs0.vs, gs0.ps, gs0.owns), equalrl(gs.orl + gs.qrl, gs.vs, gs.ps, gs0.vs, gs0.ps), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), listp(gs0.orl + gs0.qrl, gs0.vs, gs0.ps, gs0.owns), markedp(gs.orl, gs.ps), markedp(gs.orl, gs.vs), markedp(gs0.orl, gs0.ps), markedp(gs0.orl, gs0.vs), nextnottidRely(ls.tid, gs.vhead, gs.vs, gs0.vhead, gs0.vs), noid(ls.tid, gs.orl + gs.qrl, ls.nxt, gs.vs), noidRely(ls.tid, gs.orl + gs.qrl, gs.vs, gs0.orl + gs0.qrl, gs0.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), nonullRetRefs(gs0.orl + gs0.qrl, gs0.vs, gs0.vretRefs, gs0.pretRefs), noowns(ls.tid, gs.owns), ownsRely(ls.tid, gs.owns, gs0.owns), prvHpRely(gs.vrvHp, gs.prvHp, gs0.prvHp), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), rvownerok(gs0.vretRefs, gs0.vrvHp, gs0.rvowns), rvownerok(gs0.pretRefs, gs0.prvHp, gs0.rvowns), rvownsrely(ls.tid, gs.rvowns, gs0.rvowns, gs.vrvHp), rvrely(ls.tid, gs.rvowns, gs.vretRefs, gs.vrvHp, gs0.vretRefs, gs0.vrvHp), unmarkedp(gs.qrl, gs.ps), unmarkedp(gs0.qrl, gs0.ps), gs.phead ∈ gs.orl, ls.first ∈ 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, gs0.phead ∈ gs0.orl, gs0.vtail ∈ gs0.orl + gs0.qrl from gs.vtail, gs0.phead ∈ gs0.orl + gs0.qrl from gs.phead, gs0.vhead ∈ gs0.orl + gs0.qrl from gs.vhead, dom gs.vrvHp ⊆ dom gs0.vrvHp, ¬ dups(gs0.orl + gs0.qrl), ¬ 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), gs0.vs[gs0.vhead].next ≠ null ∧ gs0.vs[gs0.vs[gs0.vhead].next].deqID ≠ None → gs0.rvowns(gs0.vretRefs(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid)) = Claimed(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid, gs0.vs[gs0.vs[gs0.vhead].next].val), ∃ rl. gs.orl + gs.qrl + rl = gs0.orl + gs0.qrl, ∃ rl0. gs.orl + rl0 = gs0.orl, 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, gs0.orl.last = gs0.vhead ∧ (gs0.qrl ≠ [] → unmarkedp(gs0.qrl.tail, gs0.vs)) ∨ gs0.orl.butlast ≠ [] ∧ gs0.orl.butlast.last = gs0.vhead ∧ gs0.phead ≠ gs0.orl.last ∧ unmarkedp(gs0.qrl, gs0.vs), gs0.vtail = (gs0.orl + gs0.qrl).last ∨ gs0.qrl ≠ [] ∧ gs0.vtail = (gs0.orl + gs0.qrl.butlast).last ∧ gs0.vs[gs0.qrl.last].deqID = None ∧ gs0.vs[(gs0.orl + gs0.qrl).last].next = null, gs.pretRefs(ls.tid) = gs0.pretRefs(ls.tid) ∨ gs.vretRefs(ls.tid) = gs0.pretRefs(ls.tid) ⊦ (gs0.ps[ls.nxt].deqID ≠ None ∧ ls.first ∈ gs0.orl ∧ ls.nxt ≠ null ∧ ls.nxt = gs0.ps[ls.first].next ∧ ls.optval = gs0.vrvHp[ls.rvref]) ∧ (ls.first ≠ ls.lst ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst) ∧ ls.lst ∈ gs0.orl + gs0.qrl from ls.first ∧ (gs0.vretRefs(ls.tid) = ls.rvref ∧ gs0.pretRefs(ls.tid) = ls.rvref ∧ ls.rvref ∈ gs0.vrvHp ∧ ls.rvref ≠ null) ∧ ( ls.success ∧ gs0.vretRefs(ls.tid) ∈ gs0.vrvHp ∧ gs0.vretRefs(ls.tid) ≠ null ∧ gs0.rvowns(gs0.vretRefs(ls.tid)) = Claimed(ls.tid, ls.optval.val) ∧ ls.optval = Val(gs0.vs[ls.nxt].val)) ∧ (gs0.vhead ≠ ls.first → nextnottid(ls.tid, gs0.vhead, gs0.vs)) ∧ noid(ls.tid, gs0.orl + gs0.qrl, ls.nxt, gs0.vs) ∧ noowns(ls.tid, gs0.owns)
| ls.nxt = gs.ps[ls.first].next, ls.optval = gs.vrvHp[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, gs.vretRefs(ls.tid) = gs0.vretRefs(ls.tid), dom gs.vrvHp = dom gs.prvHp, dom gs0.vrvHp = dom gs0.prvHp, gs.ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, gs0.orl ≠ [], gs.orl ≠ [], ls.rvref ≠ null, gs.vretRefs(ls.tid) ≠ null, ls.success, allocrv(gs.vretRefs, gs.vrvHp), allocrv(gs.pretRefs, gs.prvHp), allocrv(gs0.vretRefs, gs0.vrvHp), allocrv(gs0.pretRefs, gs0.prvHp), equalowns(gs.vs, gs.ps, gs.owns, ls.tid, gs0.vs, gs0.ps, gs0.owns), equalrl(gs.orl + gs.qrl, gs.vs, gs.ps, gs0.vs, gs0.ps), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), listp(gs0.orl + gs0.qrl, gs0.vs, gs0.ps, gs0.owns), markedp(gs.orl, gs.ps), markedp(gs.orl, gs.vs), markedp(gs0.orl, gs0.ps), markedp(gs0.orl, gs0.vs), nextnottidRely(ls.tid, gs.vhead, gs.vs, gs0.vhead, gs0.vs), noid(ls.tid, gs.orl + gs.qrl, ls.nxt, gs.vs), noidRely(ls.tid, gs.orl + gs.qrl, gs.vs, gs0.orl + gs0.qrl, gs0.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), nonullRetRefs(gs0.orl + gs0.qrl, gs0.vs, gs0.vretRefs, gs0.pretRefs), noowns(ls.tid, gs.owns), ownsRely(ls.tid, gs.owns, gs0.owns), prvHpRely(gs.vrvHp, gs.prvHp, gs0.prvHp), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), rvownerok(gs0.vretRefs, gs0.vrvHp, gs0.rvowns), rvownerok(gs0.pretRefs, gs0.prvHp, gs0.rvowns), rvownsrely(ls.tid, gs.rvowns, gs0.rvowns, gs.vrvHp), rvrely(ls.tid, gs.rvowns, gs.vretRefs, gs.vrvHp, gs0.vretRefs, gs0.vrvHp), unmarkedp(gs.qrl, gs.ps), unmarkedp(gs0.qrl, gs0.ps), gs.phead ∈ gs.orl, ls.first ∈ 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, gs0.phead ∈ gs0.orl, gs0.vtail ∈ gs0.orl + gs0.qrl from gs.vtail, gs0.phead ∈ gs0.orl + gs0.qrl from gs.phead, gs0.vhead ∈ gs0.orl + gs0.qrl from gs.vhead, dom gs.vrvHp ⊆ dom gs0.vrvHp, ¬ dups(gs0.orl + gs0.qrl), ¬ 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), gs0.vs[gs0.vhead].next ≠ null ∧ gs0.vs[gs0.vs[gs0.vhead].next].deqID ≠ None → gs0.rvowns(gs0.vretRefs(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid)) = Claimed(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid, gs0.vs[gs0.vs[gs0.vhead].next].val), ∃ rl. gs.orl + gs.qrl + rl = gs0.orl + gs0.qrl, ∃ rl0. gs.orl + rl0 = gs0.orl, 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, gs0.orl.last = gs0.vhead ∧ (gs0.qrl ≠ [] → unmarkedp(gs0.qrl.tail, gs0.vs)) ∨ gs0.orl.butlast ≠ [] ∧ gs0.orl.butlast.last = gs0.vhead ∧ gs0.phead ≠ gs0.orl.last ∧ unmarkedp(gs0.qrl, gs0.vs), gs0.vtail = (gs0.orl + gs0.qrl).last ∨ gs0.qrl ≠ [] ∧ gs0.vtail = (gs0.orl + gs0.qrl.butlast).last ∧ gs0.vs[gs0.qrl.last].deqID = None ∧ gs0.vs[(gs0.orl + gs0.qrl).last].next = null, gs.pretRefs(ls.tid) = gs0.pretRefs(ls.tid) ∨ gs.vretRefs(ls.tid) = gs0.pretRefs(ls.tid) ⊦ (gs0.ps[ls.nxt].deqID ≠ None ∧ ls.first ∈ gs0.orl ∧ ls.nxt ≠ null ∧ ls.nxt = gs0.ps[ls.first].next ∧ ls.optval = gs0.vrvHp[ls.rvref]) ∧ (ls.first ≠ ls.lst ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst) ∧ ls.lst ∈ gs0.orl + gs0.qrl from ls.first ∧ (gs0.vretRefs(ls.tid) = ls.rvref ∧ gs0.pretRefs(ls.tid) = ls.rvref ∧ ls.rvref ∈ gs0.vrvHp ∧ ls.rvref ≠ null) ∧ ( ls.success ∧ gs0.vretRefs(ls.tid) ∈ gs0.vrvHp ∧ gs0.vretRefs(ls.tid) ≠ null ∧ gs0.rvowns(gs0.vretRefs(ls.tid)) = Claimed(ls.tid, ls.optval.val) ∧ ls.optval = Val(gs0.vs[ls.nxt].val)) ∧ (gs0.vhead ≠ ls.first → nextnottid(ls.tid, gs0.vhead, gs0.vs)) ∧ noid(ls.tid, gs0.orl + gs0.qrl, ls.nxt, gs0.vs) ∧ noowns(ls.tid, gs0.owns) |
gs.orl + gs.qrl + rl = gs0.orl + gs0.qrl, gs.orl + rl0 = gs0.orl, 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), ls.rvref = gs0.vretRefs(ls.tid), ls.rvref = gs0.pretRefs(ls.tid), gs.vretRefs(ls.tid) = ls.rvref, Val(gs.vs[ls.nxt].val) = gs.vrvHp[ls.rvref], dom gs.vrvHp = dom gs.prvHp, dom gs0.vrvHp = dom gs0.prvHp, gs.ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, gs.orl ≠ [], gs0.orl ≠ [], ls.rvref ≠ null, ls.success, allocrv(gs.vretRefs, gs.vrvHp), allocrv(gs.pretRefs, gs.prvHp), allocrv(gs0.vretRefs, gs0.vrvHp), allocrv(gs0.pretRefs, gs0.prvHp), equalowns(gs.vs, gs.ps, gs.owns, ls.tid, gs0.vs, gs0.ps, gs0.owns), equalrl(gs.orl + gs.qrl, gs.vs, gs.ps, gs0.vs, gs0.ps), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), listp(gs0.orl + gs0.qrl, gs0.vs, gs0.ps, gs0.owns), markedp(gs.orl, gs.ps), markedp(gs.orl, gs.vs), markedp(gs0.orl, gs0.ps), markedp(gs0.orl, gs0.vs), nextnottidRely(ls.tid, gs.vhead, gs.vs, gs0.vhead, gs0.vs), noid(ls.tid, gs.orl + gs.qrl, ls.nxt, gs.vs), noidRely(ls.tid, gs.orl + gs.qrl, gs.vs, gs0.orl + gs0.qrl, gs0.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), nonullRetRefs(gs0.orl + gs0.qrl, gs0.vs, gs0.vretRefs, gs0.pretRefs), noowns(ls.tid, gs.owns), ownsRely(ls.tid, gs.owns, gs0.owns), prvHpRely(gs.vrvHp, gs.prvHp, gs0.prvHp), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), rvownerok(gs0.vretRefs, gs0.vrvHp, gs0.rvowns), rvownerok(gs0.pretRefs, gs0.prvHp, gs0.rvowns), rvownsrely(ls.tid, gs.rvowns, gs0.rvowns, gs.vrvHp), rvrely(ls.tid, gs.rvowns, gs.vretRefs, gs.vrvHp, gs0.vretRefs, gs0.vrvHp), unmarkedp(gs.qrl, gs.ps), unmarkedp(gs0.qrl, gs0.ps), gs.phead ∈ gs.ps, ls.first ∈ gs.ps, gs.phead ∈ gs.vs, ls.first ∈ gs.vs, gs0.phead ∈ gs0.ps, gs0.phead ∈ gs0.vs, gs.phead ∈ gs.orl, ls.first ∈ gs.orl, gs.vtail ∈ gs.orl + gs.qrl from ls.lst, ls.rvref ∈ gs.vrvHp, gs0.phead ∈ gs0.orl, gs0.vtail ∈ gs0.orl + gs0.qrl from gs.vtail, gs0.phead ∈ gs0.orl + gs0.qrl from gs.phead, gs0.vhead ∈ gs0.orl + gs0.qrl from gs.vhead, dom gs.prvHp ⊆ dom gs0.prvHp, ¬ dups(gs0.qrl), ¬ dups(gs0.orl), ¬ dups(gs.qrl), ¬ dups(gs.orl), ¬ dups(gs.orl + gs.qrl), ¬ dups(gs0.orl + gs0.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), gs0.vs[gs0.vhead].next ≠ null ∧ gs0.vs[gs0.vs[gs0.vhead].next].deqID ≠ None → gs0.rvowns(gs0.vretRefs(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid)) = Claimed(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid, gs0.vs[gs0.vs[gs0.vhead].next].val), gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[gs.qrl.last].next = null, gs0.vtail = (gs0.orl + gs0.qrl).last ∨ gs0.qrl ≠ [] ∧ gs0.vtail = (gs0.orl + gs0.qrl.butlast).last ∧ gs0.vs[gs0.qrl.last].deqID = None ∧ gs0.vs[gs0.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), gs0.orl.last = gs0.vhead ∧ (gs0.qrl ≠ [] → unmarkedp(gs0.qrl.tail, gs0.vs)) ∨ gs0.orl.butlast ≠ [] ∧ gs0.orl.butlast.last = gs0.vhead ∧ gs0.phead ≠ gs0.orl.last ∧ unmarkedp(gs0.qrl, gs0.vs) ⊦ gs0.ps[ls.nxt].deqID ≠ None ∧ ls.first ∈ gs0.orl ∧ ls.nxt = gs0.ps[ls.first].next ∧ Val(gs.vs[ls.nxt].val) = gs0.vrvHp[ls.rvref] ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst ∧ (ls.lst ∈ gs0.orl from ls.first ∨ ls.lst ∈ gs0.qrl) ∧ gs.vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead ≠ ls.first → nextnottid(ls.tid, gs0.vhead, gs0.vs)) ∧ noid(ls.tid, gs0.orl + gs0.qrl, ls.nxt, gs0.vs)
Used simplifier rules: ⊦ Val(val) = Val(val0) ↔ val = val0; (s) ⊦ rvownsrely(tid, rvowns, rvowns0, vrvHp) ∧ rvowns(addr) = Claimed(othertid, v) ∧ addr ∈ vrvHp ∧ addr ≠ null → (rvowns0(addr) = Claimed(othertid, v) ↔ true); (ss) ⊦ Val(val).val = val; (s) ⊦ dom prvHp = dom vrvHp ∧ dom vrvHp ⊆ dom vrvHp0 ∧ dom prvHp0 = dom vrvHp0 ∧ rvref ∈ prvHp → rvref ∈ prvHp0; (ss) 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 ⊦ noowns(tid, owns) ∧ ownsRely(tid, owns, owns0) → noowns(tid, owns0); (ss) ⊦ dom vrvHp ⊆ dom vrvHp0 ∧ rvref ∈ vrvHp → rvref ∈ vrvHp0; (ss) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ y ≠ [] → (x + y).last = y.last; (s)
| gs.orl + gs.qrl + rl = gs0.orl + gs0.qrl, gs.orl + rl0 = gs0.orl, 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), ls.rvref = gs0.vretRefs(ls.tid), ls.rvref = gs0.pretRefs(ls.tid), gs.vretRefs(ls.tid) = ls.rvref, Val(gs.vs[ls.nxt].val) = gs.vrvHp[ls.rvref], dom gs.vrvHp = dom gs.prvHp, dom gs0.vrvHp = dom gs0.prvHp, gs.ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, gs.orl ≠ [], gs0.orl ≠ [], ls.rvref ≠ null, ls.success, allocrv(gs.vretRefs, gs.vrvHp), allocrv(gs.pretRefs, gs.prvHp), allocrv(gs0.vretRefs, gs0.vrvHp), allocrv(gs0.pretRefs, gs0.prvHp), equalowns(gs.vs, gs.ps, gs.owns, ls.tid, gs0.vs, gs0.ps, gs0.owns), equalrl(gs.orl + gs.qrl, gs.vs, gs.ps, gs0.vs, gs0.ps), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), listp(gs0.orl + gs0.qrl, gs0.vs, gs0.ps, gs0.owns), markedp(gs.orl, gs.ps), markedp(gs.orl, gs.vs), markedp(gs0.orl, gs0.ps), markedp(gs0.orl, gs0.vs), nextnottidRely(ls.tid, gs.vhead, gs.vs, gs0.vhead, gs0.vs), noid(ls.tid, gs.orl + gs.qrl, ls.nxt, gs.vs), noidRely(ls.tid, gs.orl + gs.qrl, gs.vs, gs0.orl + gs0.qrl, gs0.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), nonullRetRefs(gs0.orl + gs0.qrl, gs0.vs, gs0.vretRefs, gs0.pretRefs), noowns(ls.tid, gs.owns), ownsRely(ls.tid, gs.owns, gs0.owns), prvHpRely(gs.vrvHp, gs.prvHp, gs0.prvHp), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), rvownerok(gs0.vretRefs, gs0.vrvHp, gs0.rvowns), rvownerok(gs0.pretRefs, gs0.prvHp, gs0.rvowns), rvownsrely(ls.tid, gs.rvowns, gs0.rvowns, gs.vrvHp), rvrely(ls.tid, gs.rvowns, gs.vretRefs, gs.vrvHp, gs0.vretRefs, gs0.vrvHp), unmarkedp(gs.qrl, gs.ps), unmarkedp(gs0.qrl, gs0.ps), gs.phead ∈ gs.ps, ls.first ∈ gs.ps, gs.phead ∈ gs.vs, ls.first ∈ gs.vs, gs0.phead ∈ gs0.ps, gs0.phead ∈ gs0.vs, gs.phead ∈ gs.orl, ls.first ∈ gs.orl, gs.vtail ∈ gs.orl + gs.qrl from ls.lst, ls.rvref ∈ gs.vrvHp, gs0.phead ∈ gs0.orl, gs0.vtail ∈ gs0.orl + gs0.qrl from gs.vtail, gs0.phead ∈ gs0.orl + gs0.qrl from gs.phead, gs0.vhead ∈ gs0.orl + gs0.qrl from gs.vhead, dom gs.prvHp ⊆ dom gs0.prvHp, ¬ dups(gs0.qrl), ¬ dups(gs0.orl), ¬ dups(gs.qrl), ¬ dups(gs.orl), ¬ dups(gs.orl + gs.qrl), ¬ dups(gs0.orl + gs0.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), gs0.vs[gs0.vhead].next ≠ null ∧ gs0.vs[gs0.vs[gs0.vhead].next].deqID ≠ None → gs0.rvowns(gs0.vretRefs(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid)) = Claimed(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid, gs0.vs[gs0.vs[gs0.vhead].next].val), gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[gs.qrl.last].next = null, gs0.vtail = (gs0.orl + gs0.qrl).last ∨ gs0.qrl ≠ [] ∧ gs0.vtail = (gs0.orl + gs0.qrl.butlast).last ∧ gs0.vs[gs0.qrl.last].deqID = None ∧ gs0.vs[gs0.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), gs0.orl.last = gs0.vhead ∧ (gs0.qrl ≠ [] → unmarkedp(gs0.qrl.tail, gs0.vs)) ∨ gs0.orl.butlast ≠ [] ∧ gs0.orl.butlast.last = gs0.vhead ∧ gs0.phead ≠ gs0.orl.last ∧ unmarkedp(gs0.qrl, gs0.vs) ⊦ gs0.ps[ls.nxt].deqID ≠ None ∧ ls.first ∈ gs0.orl ∧ ls.nxt = gs0.ps[ls.first].next ∧ Val(gs.vs[ls.nxt].val) = gs0.vrvHp[ls.rvref] ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst ∧ (ls.lst ∈ gs0.orl from ls.first ∨ ls.lst ∈ gs0.qrl) ∧ gs.vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead ≠ ls.first → nextnottid(ls.tid, gs0.vhead, gs0.vs)) ∧ noid(ls.tid, gs0.orl + gs0.qrl, ls.nxt, gs0.vs) |
orl + rl0 = gs0.orl, orl + qrl + rl = gs0.orl + gs0.qrl, ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = gs0.pretRefs(ls.tid), ls.rvref = gs0.vretRefs(ls.tid), Val(vs[ls.nxt].val) = vrvHp[ls.rvref], dom gs0.vrvHp = dom gs0.prvHp, 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, gs0.orl ≠ [], ls.rvref ≠ null, orl ≠ [], ls.success, allocrv(gs0.pretRefs, gs0.prvHp), allocrv(gs0.vretRefs, gs0.vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, ls.tid, gs0.vs, gs0.ps, gs0.owns), equalrl(orl + qrl, vs, ps, gs0.vs, gs0.ps), listp(gs0.orl + gs0.qrl, gs0.vs, gs0.ps, gs0.owns), listp(orl + qrl, vs, ps, owns), markedp(gs0.orl, gs0.vs), markedp(gs0.orl, gs0.ps), markedp(orl, vs), markedp(orl, ps), nextnottidRely(ls.tid, vhead, vs, gs0.vhead, gs0.vs), noid(ls.tid, orl + qrl, ls.nxt, vs), noidRely(ls.tid, orl + qrl, vs, gs0.orl + gs0.qrl, gs0.vs), nonullRetRefs(gs0.orl + gs0.qrl, gs0.vs, gs0.vretRefs, gs0.pretRefs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), ownsRely(ls.tid, owns, gs0.owns), prvHpRely(vrvHp, prvHp, gs0.prvHp), rvownerok(gs0.pretRefs, gs0.prvHp, gs0.rvowns), rvownerok(gs0.vretRefs, gs0.vrvHp, gs0.rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(ls.tid, rvowns, gs0.rvowns, vrvHp), rvrely(ls.tid, rvowns, vretRefs, vrvHp, gs0.vretRefs, gs0.vrvHp), unmarkedp(gs0.qrl, gs0.ps), unmarkedp(qrl, ps), gs0.vhead ∈ gs0.orl + gs0.qrl from vhead, gs0.phead ∈ gs0.orl + gs0.qrl from phead, gs0.vtail ∈ gs0.orl + gs0.qrl from vtail, gs0.phead ∈ gs0.orl, ls.rvref ∈ vrvHp, vtail ∈ orl + qrl from ls.lst, ls.first ∈ orl, phead ∈ orl, gs0.phead ∈ gs0.vs, gs0.phead ∈ gs0.ps, ls.first ∈ vs, phead ∈ vs, ls.first ∈ ps, phead ∈ ps, dom prvHp ⊆ dom gs0.prvHp, ¬ dups(gs0.qrl), ¬ dups(gs0.orl), ¬ dups(qrl), ¬ dups(orl), ¬ dups(orl + qrl), ¬ dups(gs0.orl + gs0.qrl), gs0.vs[gs0.vhead].next ≠ null ∧ gs0.vs[gs0.vs[gs0.vhead].next].deqID ≠ None → gs0.rvowns(gs0.vretRefs(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid)) = Claimed(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid, gs0.vs[gs0.vs[gs0.vhead].next].val), 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), gs0.orl.last = gs0.vhead ∧ (gs0.qrl ≠ [] → unmarkedp(gs0.qrl.tail, gs0.vs)) ∨ gs0.orl.butlast ≠ [] ∧ gs0.orl.butlast.last = gs0.vhead ∧ gs0.phead ≠ gs0.orl.last ∧ unmarkedp(gs0.qrl, gs0.vs), 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, gs0.vtail = (gs0.orl + gs0.qrl).last ∨ gs0.qrl ≠ [] ∧ gs0.vtail = (gs0.orl + gs0.qrl.butlast).last ∧ gs0.vs[gs0.qrl.last].deqID = None ∧ gs0.vs[gs0.qrl.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ gs0.ps[ls.nxt].deqID ≠ None ∧ ls.first ∈ gs0.orl ∧ ls.nxt = gs0.ps[ls.first].next ∧ Val(vs[ls.nxt].val) = gs0.vrvHp[ls.rvref] ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst ∧ (ls.lst ∈ gs0.orl from ls.first ∨ ls.lst ∈ gs0.qrl) ∧ vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead ≠ ls.first → nextnottid(ls.tid, gs0.vhead, gs0.vs)) ∧ noid(ls.tid, gs0.orl + gs0.qrl, ls.nxt, gs0.vs)
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
| orl + rl0 = gs0.orl, orl + qrl + rl = gs0.orl + gs0.qrl, ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = gs0.pretRefs(ls.tid), ls.rvref = gs0.vretRefs(ls.tid), Val(vs[ls.nxt].val) = vrvHp[ls.rvref], dom gs0.vrvHp = dom gs0.prvHp, 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, gs0.orl ≠ [], ls.rvref ≠ null, orl ≠ [], ls.success, allocrv(gs0.pretRefs, gs0.prvHp), allocrv(gs0.vretRefs, gs0.vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, ls.tid, gs0.vs, gs0.ps, gs0.owns), equalrl(orl + qrl, vs, ps, gs0.vs, gs0.ps), listp(gs0.orl + gs0.qrl, gs0.vs, gs0.ps, gs0.owns), listp(orl + qrl, vs, ps, owns), markedp(gs0.orl, gs0.vs), markedp(gs0.orl, gs0.ps), markedp(orl, vs), markedp(orl, ps), nextnottidRely(ls.tid, vhead, vs, gs0.vhead, gs0.vs), noid(ls.tid, orl + qrl, ls.nxt, vs), noidRely(ls.tid, orl + qrl, vs, gs0.orl + gs0.qrl, gs0.vs), nonullRetRefs(gs0.orl + gs0.qrl, gs0.vs, gs0.vretRefs, gs0.pretRefs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), ownsRely(ls.tid, owns, gs0.owns), prvHpRely(vrvHp, prvHp, gs0.prvHp), rvownerok(gs0.pretRefs, gs0.prvHp, gs0.rvowns), rvownerok(gs0.vretRefs, gs0.vrvHp, gs0.rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(ls.tid, rvowns, gs0.rvowns, vrvHp), rvrely(ls.tid, rvowns, vretRefs, vrvHp, gs0.vretRefs, gs0.vrvHp), unmarkedp(gs0.qrl, gs0.ps), unmarkedp(qrl, ps), gs0.vhead ∈ gs0.orl + gs0.qrl from vhead, gs0.phead ∈ gs0.orl + gs0.qrl from phead, gs0.vtail ∈ gs0.orl + gs0.qrl from vtail, gs0.phead ∈ gs0.orl, ls.rvref ∈ vrvHp, vtail ∈ orl + qrl from ls.lst, ls.first ∈ orl, phead ∈ orl, gs0.phead ∈ gs0.vs, gs0.phead ∈ gs0.ps, ls.first ∈ vs, phead ∈ vs, ls.first ∈ ps, phead ∈ ps, dom prvHp ⊆ dom gs0.prvHp, ¬ dups(gs0.qrl), ¬ dups(gs0.orl), ¬ dups(qrl), ¬ dups(orl), ¬ dups(orl + qrl), ¬ dups(gs0.orl + gs0.qrl), gs0.vs[gs0.vhead].next ≠ null ∧ gs0.vs[gs0.vs[gs0.vhead].next].deqID ≠ None → gs0.rvowns(gs0.vretRefs(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid)) = Claimed(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid, gs0.vs[gs0.vs[gs0.vhead].next].val), 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), gs0.orl.last = gs0.vhead ∧ (gs0.qrl ≠ [] → unmarkedp(gs0.qrl.tail, gs0.vs)) ∨ gs0.orl.butlast ≠ [] ∧ gs0.orl.butlast.last = gs0.vhead ∧ gs0.phead ≠ gs0.orl.last ∧ unmarkedp(gs0.qrl, gs0.vs), 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, gs0.vtail = (gs0.orl + gs0.qrl).last ∨ gs0.qrl ≠ [] ∧ gs0.vtail = (gs0.orl + gs0.qrl.butlast).last ∧ gs0.vs[gs0.qrl.last].deqID = None ∧ gs0.vs[gs0.qrl.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ gs0.ps[ls.nxt].deqID ≠ None ∧ ls.first ∈ gs0.orl ∧ ls.nxt = gs0.ps[ls.first].next ∧ Val(vs[ls.nxt].val) = gs0.vrvHp[ls.rvref] ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst ∧ (ls.lst ∈ gs0.orl from ls.first ∨ ls.lst ∈ gs0.qrl) ∧ vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead ≠ ls.first → nextnottid(ls.tid, gs0.vhead, gs0.vs)) ∧ noid(ls.tid, gs0.orl + gs0.qrl, ls.nxt, gs0.vs) |
orl + rl0 = gs0.orl, qrl + rl = rl0 + gs0.qrl, ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = gs0.pretRefs(ls.tid), ls.rvref = gs0.vretRefs(ls.tid), Val(vs[ls.nxt].val) = vrvHp[ls.rvref], dom gs0.vrvHp = dom gs0.prvHp, dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Claimed(ls.tid, vs[ls.nxt].val), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], ls.success, allocrv(gs0.pretRefs, gs0.prvHp), allocrv(gs0.vretRefs, gs0.vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, ls.tid, gs0.vs, gs0.ps, gs0.owns), equalrl(orl + qrl, vs, ps, gs0.vs, gs0.ps), listp((orl + rl0) + gs0.qrl, gs0.vs, gs0.ps, gs0.owns), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, gs0.vs), markedp(rl0, gs0.vs), markedp(orl, gs0.ps), markedp(rl0, gs0.ps), nextnottidRely(ls.tid, vhead, vs, gs0.vhead, gs0.vs), noid(ls.tid, orl + qrl, ls.nxt, vs), noidRely(ls.tid, orl + qrl, vs, (orl + rl0) + gs0.qrl, gs0.vs), nonullRetRefs((orl + rl0) + gs0.qrl, gs0.vs, gs0.vretRefs, gs0.pretRefs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), ownsRely(ls.tid, owns, gs0.owns), prvHpRely(vrvHp, prvHp, gs0.prvHp), rvownerok(gs0.pretRefs, gs0.prvHp, gs0.rvowns), rvownerok(gs0.vretRefs, gs0.vrvHp, gs0.rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(ls.tid, rvowns, gs0.rvowns, vrvHp), rvrely(ls.tid, rvowns, vretRefs, vrvHp, gs0.vretRefs, gs0.vrvHp), unmarkedp(gs0.qrl, gs0.ps), unmarkedp(qrl, ps), gs0.vhead ∈ (orl + rl0) + gs0.qrl from vhead, gs0.vtail ∈ (orl + rl0) + gs0.qrl from vtail, ls.rvref ∈ vrvHp, vtail ∈ orl + qrl from ls.lst, ls.first ∈ orl, phead ∈ orl, gs0.phead ∈ gs0.vs, gs0.phead ∈ gs0.ps, ls.first ∈ gs0.ps, phead ∈ gs0.ps, ls.first ∈ gs0.vs, phead ∈ gs0.vs, ls.first ∈ ps, phead ∈ ps, ls.first ∈ vs, phead ∈ vs, dom prvHp ⊆ dom gs0.prvHp, ¬ dups(rl0), ¬ dups(gs0.qrl), ¬ dups(orl + rl0), ¬ dups(qrl + rl), ¬ dups(orl), ¬ dups((orl + rl0) + gs0.qrl), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), gs0.vs[gs0.vhead].next ≠ null ∧ gs0.vs[gs0.vs[gs0.vhead].next].deqID ≠ None → gs0.rvowns(gs0.vretRefs(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid)) = Claimed(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid, gs0.vs[gs0.vs[gs0.vhead].next].val), 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 + rl0).last = gs0.vhead ∧ (gs0.qrl ≠ [] → unmarkedp(gs0.qrl.tail, gs0.vs)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = gs0.vhead ∧ gs0.phead ≠ (orl + rl0).last ∧ unmarkedp(gs0.qrl, gs0.vs), 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, gs0.vtail = ((orl + rl0) + gs0.qrl).last ∨ gs0.qrl ≠ [] ∧ gs0.vtail = ((orl + rl0) + gs0.qrl.butlast).last ∧ gs0.vs[gs0.qrl.last].deqID = None ∧ gs0.vs[gs0.qrl.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, gs0.phead ∈ orl from phead ∨ gs0.phead ∈ rl0 ∨ gs0.phead ∈ gs0.qrl, gs0.phead ∈ orl ∨ gs0.phead ∈ rl0 ⊦ gs0.ps[ls.nxt].deqID ≠ None ∧ ls.nxt = gs0.ps[ls.first].next ∧ Val(vs[ls.nxt].val) = gs0.vrvHp[ls.rvref] ∧ gs0.vtail ∈ (orl + rl0) + gs0.qrl from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ gs0.qrl) ∧ vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead ≠ ls.first → nextnottid(ls.tid, gs0.vhead, gs0.vs))
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] ⊦ noidRely(tid, orl + qrl, vs, orl + rl0 + qrl0, vs0) ∧ noid(tid, orl + qrl, first, vs) → noid(tid, orl + rl0 + qrl0, first, vs0); (ss) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ a ∈ x → a ∈ x + y; (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ # x = # z → (x + y = z + y0 ↔ x = z ∧ y = y0); (ws) 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
| orl + rl0 = gs0.orl, qrl + rl = rl0 + gs0.qrl, ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = gs0.pretRefs(ls.tid), ls.rvref = gs0.vretRefs(ls.tid), Val(vs[ls.nxt].val) = vrvHp[ls.rvref], dom gs0.vrvHp = dom gs0.prvHp, dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Claimed(ls.tid, vs[ls.nxt].val), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], ls.success, allocrv(gs0.pretRefs, gs0.prvHp), allocrv(gs0.vretRefs, gs0.vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, ls.tid, gs0.vs, gs0.ps, gs0.owns), equalrl(orl + qrl, vs, ps, gs0.vs, gs0.ps), listp((orl + rl0) + gs0.qrl, gs0.vs, gs0.ps, gs0.owns), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, gs0.vs), markedp(rl0, gs0.vs), markedp(orl, gs0.ps), markedp(rl0, gs0.ps), nextnottidRely(ls.tid, vhead, vs, gs0.vhead, gs0.vs), noid(ls.tid, orl + qrl, ls.nxt, vs), noidRely(ls.tid, orl + qrl, vs, (orl + rl0) + gs0.qrl, gs0.vs), nonullRetRefs((orl + rl0) + gs0.qrl, gs0.vs, gs0.vretRefs, gs0.pretRefs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), ownsRely(ls.tid, owns, gs0.owns), prvHpRely(vrvHp, prvHp, gs0.prvHp), rvownerok(gs0.pretRefs, gs0.prvHp, gs0.rvowns), rvownerok(gs0.vretRefs, gs0.vrvHp, gs0.rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(ls.tid, rvowns, gs0.rvowns, vrvHp), rvrely(ls.tid, rvowns, vretRefs, vrvHp, gs0.vretRefs, gs0.vrvHp), unmarkedp(gs0.qrl, gs0.ps), unmarkedp(qrl, ps), gs0.vhead ∈ (orl + rl0) + gs0.qrl from vhead, gs0.vtail ∈ (orl + rl0) + gs0.qrl from vtail, ls.rvref ∈ vrvHp, vtail ∈ orl + qrl from ls.lst, ls.first ∈ orl, phead ∈ orl, gs0.phead ∈ gs0.vs, gs0.phead ∈ gs0.ps, ls.first ∈ gs0.ps, phead ∈ gs0.ps, ls.first ∈ gs0.vs, phead ∈ gs0.vs, ls.first ∈ ps, phead ∈ ps, ls.first ∈ vs, phead ∈ vs, dom prvHp ⊆ dom gs0.prvHp, ¬ dups(rl0), ¬ dups(gs0.qrl), ¬ dups(orl + rl0), ¬ dups(qrl + rl), ¬ dups(orl), ¬ dups((orl + rl0) + gs0.qrl), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), gs0.vs[gs0.vhead].next ≠ null ∧ gs0.vs[gs0.vs[gs0.vhead].next].deqID ≠ None → gs0.rvowns(gs0.vretRefs(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid)) = Claimed(gs0.vs[gs0.vs[gs0.vhead].next].deqID.tid, gs0.vs[gs0.vs[gs0.vhead].next].val), 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 + rl0).last = gs0.vhead ∧ (gs0.qrl ≠ [] → unmarkedp(gs0.qrl.tail, gs0.vs)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = gs0.vhead ∧ gs0.phead ≠ (orl + rl0).last ∧ unmarkedp(gs0.qrl, gs0.vs), 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, gs0.vtail = ((orl + rl0) + gs0.qrl).last ∨ gs0.qrl ≠ [] ∧ gs0.vtail = ((orl + rl0) + gs0.qrl.butlast).last ∧ gs0.vs[gs0.qrl.last].deqID = None ∧ gs0.vs[gs0.qrl.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, gs0.phead ∈ orl from phead ∨ gs0.phead ∈ rl0 ∨ gs0.phead ∈ gs0.qrl, gs0.phead ∈ orl ∨ gs0.phead ∈ rl0 ⊦ gs0.ps[ls.nxt].deqID ≠ None ∧ ls.nxt = gs0.ps[ls.first].next ∧ Val(vs[ls.nxt].val) = gs0.vrvHp[ls.rvref] ∧ gs0.vtail ∈ (orl + rl0) + gs0.qrl from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ gs0.qrl) ∧ vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead ≠ ls.first → nextnottid(ls.tid, gs0.vhead, gs0.vs)) |
qrl + rl = rl0 + qrl0, orl + rl0 = orl0, ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = vretRefs0(ls.tid), ls.rvref = pretRefs0(ls.tid), Val(vs[ls.nxt].val) = vrvHp[ls.rvref], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, gs0 = mkgs(ps0, vs0, phead0, vhead0, vtail0, vretRefs0, pretRefs0, vrvHp0, prvHp0, qrl0, orl0, owns0, rvowns0), pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Claimed(ls.tid, vs[ls.nxt].val), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], ls.success, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, ls.tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(ls.tid, vhead, vs, vhead0, vs0), noid(ls.tid, orl + qrl, ls.nxt, vs), noidRely(ls.tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(ls.tid, owns), ownsRely(ls.tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(ls.tid, rvowns, rvowns0, vrvHp), rvrely(ls.tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), phead ∈ vs, ls.first ∈ vs, phead ∈ ps, ls.first ∈ ps, phead ∈ vs0, ls.first ∈ vs0, phead ∈ ps0, ls.first ∈ ps0, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, ls.first ∈ orl, vtail ∈ orl + qrl from ls.lst, ls.rvref ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(qrl + rl), ¬ dups(orl), ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ ps0[ls.nxt].deqID ≠ None ∧ ls.nxt = ps0[ls.first].next ∧ Val(vs[ls.nxt].val) = vrvHp0[ls.rvref] ∧ vtail0 ∈ (orl + rl0) + qrl0 from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ qrl0) ∧ vs[ls.nxt].val = vs0[ls.nxt].val ∧ (vhead0 ≠ ls.first → nextnottid(ls.tid, vhead0, vs0))
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, gs0, owns0, rvowns0, orl0, prvHp0, pretRefs0, vs0
| qrl + rl = rl0 + qrl0, orl + rl0 = orl0, ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = vretRefs0(ls.tid), ls.rvref = pretRefs0(ls.tid), Val(vs[ls.nxt].val) = vrvHp[ls.rvref], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, gs0 = mkgs(ps0, vs0, phead0, vhead0, vtail0, vretRefs0, pretRefs0, vrvHp0, prvHp0, qrl0, orl0, owns0, rvowns0), pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Claimed(ls.tid, vs[ls.nxt].val), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], ls.success, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, ls.tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(ls.tid, vhead, vs, vhead0, vs0), noid(ls.tid, orl + qrl, ls.nxt, vs), noidRely(ls.tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(ls.tid, owns), ownsRely(ls.tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(ls.tid, rvowns, rvowns0, vrvHp), rvrely(ls.tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), phead ∈ vs, ls.first ∈ vs, phead ∈ ps, ls.first ∈ ps, phead ∈ vs0, ls.first ∈ vs0, phead ∈ ps0, ls.first ∈ ps0, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, ls.first ∈ orl, vtail ∈ orl + qrl from ls.lst, ls.rvref ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(qrl + rl), ¬ dups(orl), ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ ps0[ls.nxt].deqID ≠ None ∧ ls.nxt = ps0[ls.first].next ∧ Val(vs[ls.nxt].val) = vrvHp0[ls.rvref] ∧ vtail0 ∈ (orl + rl0) + qrl0 from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ qrl0) ∧ vs[ls.nxt].val = vs0[ls.nxt].val ∧ (vhead0 ≠ ls.first → nextnottid(ls.tid, vhead0, vs0)) |
qrl + rl = rl0 + qrl0, ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = pretRefs0(ls.tid), ls.rvref = vretRefs0(ls.tid), Val(vs[ls.nxt].val) = vrvHp[ls.rvref], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Claimed(ls.tid, vs[ls.nxt].val), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], ls.success, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, ls.tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(ls.tid, vhead, vs, vhead0, vs0), noid(ls.tid, orl + qrl, ls.nxt, vs), noidRely(ls.tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), ownsRely(ls.tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(ls.tid, rvowns, rvowns0, vrvHp), rvrely(ls.tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, ls.rvref ∈ vrvHp, vtail ∈ orl + qrl from ls.lst, ls.first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, ls.first ∈ ps, phead ∈ ps, ls.first ∈ vs, phead ∈ vs, ls.first ∈ vs0, phead ∈ vs0, ls.first ∈ ps0, phead ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ ps0[ls.nxt].deqID ≠ None ∧ ls.nxt = ps0[ls.first].next ∧ Val(vs[ls.nxt].val) = vrvHp0[ls.rvref] ∧ vtail0 ∈ (orl + rl0) + qrl0 from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ qrl0) ∧ vs[ls.nxt].val = vs0[ls.nxt].val ∧ (vhead0 ≠ ls.first → nextnottid(ls.tid, vhead0, vs0))
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
| qrl + rl = rl0 + qrl0, ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = pretRefs0(ls.tid), ls.rvref = vretRefs0(ls.tid), Val(vs[ls.nxt].val) = vrvHp[ls.rvref], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Claimed(ls.tid, vs[ls.nxt].val), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ps[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], ls.success, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, ls.tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(ls.tid, vhead, vs, vhead0, vs0), noid(ls.tid, orl + qrl, ls.nxt, vs), noidRely(ls.tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), ownsRely(ls.tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(ls.tid, rvowns, rvowns0, vrvHp), rvrely(ls.tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, ls.rvref ∈ vrvHp, vtail ∈ orl + qrl from ls.lst, ls.first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, ls.first ∈ ps, phead ∈ ps, ls.first ∈ vs, phead ∈ vs, ls.first ∈ vs0, phead ∈ vs0, ls.first ∈ ps0, phead ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ ps0[ls.nxt].deqID ≠ None ∧ ls.nxt = ps0[ls.first].next ∧ Val(vs[ls.nxt].val) = vrvHp0[ls.rvref] ∧ vtail0 ∈ (orl + rl0) + qrl0 from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ qrl0) ∧ vs[ls.nxt].val = vs0[ls.nxt].val ∧ (vhead0 ≠ ls.first → nextnottid(ls.tid, vhead0, vs0)) |
qrl + rl = rl0 + qrl0, Val(vs[nxt].val) = vrvHp[rvref], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, 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), rvref = vretRefs0(tid), rvref = pretRefs0(tid), success, vretRefs(tid) = rvref, orl + rl0 ≠ [], ps[nxt].deqID ≠ None, first ≠ lst, nxt ≠ null, orl ≠ [], rvref ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, nxt, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), phead ∈ ps0, first ∈ ps0, phead ∈ vs0, first ∈ vs0, phead ∈ vs, first ∈ vs, phead ∈ ps, first ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, rvref ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ ps0[nxt].deqID ≠ None ∧ nxt = ps0[first].next ∧ Val(vs[nxt].val) = vrvHp0[rvref] ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ vs[nxt].val = vs0[nxt].val ∧ (vhead0 ≠ first → nextnottid(tid, vhead0, vs0))
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
| qrl + rl = rl0 + qrl0, Val(vs[nxt].val) = vrvHp[rvref], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, 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), rvref = vretRefs0(tid), rvref = pretRefs0(tid), success, vretRefs(tid) = rvref, orl + rl0 ≠ [], ps[nxt].deqID ≠ None, first ≠ lst, nxt ≠ null, orl ≠ [], rvref ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, nxt, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), phead ∈ ps0, first ∈ ps0, phead ∈ vs0, first ∈ vs0, phead ∈ vs, first ∈ vs, phead ∈ ps, first ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, rvref ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ ps0[nxt].deqID ≠ None ∧ nxt = ps0[first].next ∧ Val(vs[nxt].val) = vrvHp0[rvref] ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ vs[nxt].val = vs0[nxt].val ∧ (vhead0 ≠ first → nextnottid(tid, vhead0, vs0)) |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ ps0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ (vhead0 ≠ first → nextnottid(tid, vhead0, vs0))
Used simplifier rules: ⊦ rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0) ∧ rvowns(pretRefs0(tid)) = Claimed(tid, v) ∧ vrvHp[pretRefs0(tid)] = Val(v) ∧ vretRefs(tid) = pretRefs0(tid) ∧ vretRefs0(tid) = pretRefs0(tid) → (Val(v) = vrvHp0[pretRefs0(tid)] ↔ true); (ss) 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
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ ps0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ (vhead0 ≠ first → nextnottid(tid, vhead0, vs0)) |
qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ ps0[first].next, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ vtail0 ∈ (orl + rl0) + qrl0 from lst, 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ lst ∈ orl from first, ¬ lst ∈ rl0, ¬ lst ∈ 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, vhead0, vs0), 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
| qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
⊦ listp(rl + rl0, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2 + rl0, vs, ps, owns))
qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), listp(orl + qrl, vs, ps, owns) ∧ first ∈ orl → (∃ rl1, rl2. orl = rl1 + first ' + rl2 ∧ listp(first ' + rl2 + qrl, vs, ps, owns)), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
Used terms: ps, orl, owns, first, qrl, vs
| ⊦ listp(rl + rl0, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2 + rl0, vs, ps, owns)) |
| qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), listp(orl + qrl, vs, ps, owns) ∧ first ∈ orl → (∃ rl1, rl2. orl = rl1 + first ' + rl2 ∧ listp(first ' + rl2 + qrl, vs, ps, owns)), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, ps0, owns0), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(first ' + rl2 + qrl, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, ps[first].next, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, ((rl1 + first ' + rl2) + rl0) + qrl0, vs0), nonullRetRefs(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (rl1 + first ' + rl2) + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, 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), 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), (first ' + rl2 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ unmarkedp(qrl0, vs0), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail0 = (first ' + rl2 + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦
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 ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (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)
| qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, ps0, owns0), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(first ' + rl2 + qrl, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, ps[first].next, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, ((rl1 + first ' + rl2) + rl0) + qrl0, vs0), nonullRetRefs(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (rl1 + first ' + rl2) + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, 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), 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), (first ' + rl2 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ unmarkedp(qrl0, vs0), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail0 = (first ' + rl2 + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦ |
qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl2 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, ps[first].next, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, ((rl1 + first ' + rl2) + rl0) + qrl0, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (rl1 + first ' + rl2) + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vhead ≠ first → nextnottid(tid, vhead, vs), 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (first ' + rl2 + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), (first ' + rl2 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
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) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ x + a ' + y ≠ []; (s) ⊦ (a ' + b ' + x).butlast = a ' + (b ' + x).butlast; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a + x = a ' + x; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] 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] ⊦ some?(opttid) → opttid ≠ None; (as)
| qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl2 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, ps[first].next, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, ((rl1 + first ' + rl2) + rl0) + qrl0, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (rl1 + first ' + rl2) + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vhead ≠ first → nextnottid(tid, vhead, vs), 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (first ' + rl2 + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), (first ' + rl2 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + qrl, vs, ps, owns), listp(first ' + qrl, vs, ps, owns), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl1, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + qrl, ps[first].next, vs), noidRely(tid, rl1 + first ' + qrl, vs, rl1 + first ' + rl0 + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl0 + qrl0 from vhead, vtail0 ∈ rl1 + first ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl1, 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), 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), (first ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl0).last ∧ unmarkedp(qrl0, vs0), first = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 ≠ [] ∧ rl1.last = vhead ∧ phead ≠ first ∧ unmarkedp(qrl, vs), vtail0 = (first ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = qrl.last ∨ qrl ≠ [] ∧ vtail = (first ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦
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 ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ [] + x = x; (s) ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ a '.last = a; (s) ⊦ a '.butlast = []; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s)
| qrl + rl = rl0 + qrl0, ps0[ps[first].next].deqID = None, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + qrl, vs, ps, owns), listp(first ' + qrl, vs, ps, owns), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl1, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + qrl, ps[first].next, vs), noidRely(tid, rl1 + first ' + qrl, vs, rl1 + first ' + rl0 + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl0 + qrl0 from vhead, vtail0 ∈ rl1 + first ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl1, 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), 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), (first ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl0).last ∧ unmarkedp(qrl0, vs0), first = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 ≠ [] ∧ rl1.last = vhead ∧ phead ≠ first ∧ unmarkedp(qrl, vs), vtail0 = (first ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = qrl.last ∨ qrl ≠ [] ∧ vtail = (first ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦ |
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) ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, phead1, y
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ ps0[first].next, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
⊦ equalrl(rl, vs, ps, vs0, ps0) ↔ (∀ r. r ∈ rl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ (vs[rl.last].next ≠ null → vs0[rl.last].next = vs[rl.last].next ∧ vs0[vs0[rl.last].next].val = vs[vs0[rl.last].next].val))
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ ps0[first].next, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), ∀ r. r ∈ orl + qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
Used terms: ps, orl + qrl, ps0, vs0, vs
| ⊦ equalrl(rl, vs, ps, vs0, ps0) ↔ (∀ r. r ∈ rl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ (vs[rl.last].next ≠ null → vs0[rl.last].next = vs[rl.last].next ∧ vs0[vs0[rl.last].next].val = vs[vs0[rl.last].next].val)) |
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ ps0[first].next, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), ∀ r. r ∈ orl + qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ ps0[first].next, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s)
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ ps0[first].next, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
Used terms: first
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ vtail0 ∈ (orl + rl0) + qrl0 from lst, 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = ((orl + rl0) + qrl0).last, orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ vtail0 ∈ (orl + rl0) + qrl0 from lst, 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, 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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
qrl + rl = rl0 + qrl0, vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = ((orl + rl0) + qrl0.butlast).last, orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ vtail0 ∈ (orl + rl0) + qrl0 from lst, 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, 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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = ((orl + rl0) + qrl0).last, orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ vtail0 ∈ (orl + rl0) + qrl0 from lst, 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, 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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vtail ∈ qrl from lst, pretRefs0(tid) ∈ vrvHp, vhead0 ∈ (orl + rl0) + qrl0 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), ¬ lst ∈ qrl0, ¬ lst ∈ rl0, ¬ lst ∈ orl, ¬ lst ∈ orl from first, 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), 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), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), vtail ∈ orl ∨ vtail ∈ rl0 ∨ vtail ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦
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 ∈ []; (s) ⊦ ¬ r ∈ rl → rl from r = []; (s) ⊦ r ∈ rl from r0 → r ∈ rl; (ss) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ rl.last ∈ rl from r ↔ r ∈ rl; (s)
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vtail ∈ qrl from lst, pretRefs0(tid) ∈ vrvHp, vhead0 ∈ (orl + rl0) + qrl0 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), ¬ lst ∈ qrl0, ¬ lst ∈ rl0, ¬ lst ∈ orl, ¬ lst ∈ orl from first, 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), 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), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), vtail ∈ orl ∨ vtail ∈ rl0 ∨ vtail ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ |
Used simplifier rules: ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ a ' + x ≠ []; (s) ⊦ a + x = a ' + x; (s) notin-forward: ⊦ rl + rl0 = rl1 + rl2 + rl3 ∧ ¬ r ∈ rl ∧ ¬ r ∈ rl0 → ¬ r ∈ rl1 ∧ ¬ r ∈ rl2 ∧ ¬ r ∈ rl3; (forward) from specification DMSQ in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ ¬ r ∈ rl → rl from r = []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ ¬ a ∈ []; (s) ⊦ [] + x = x; (s) ⊦ [] from r = []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, phead1, y
| qrl + rl = rl0 + qrl0, vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = ((orl + rl0) + qrl0.butlast).last, orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ vtail0 ∈ (orl + rl0) + qrl0 from lst, 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), 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), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, 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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, ((orl + rl0) + qrl0.butlast).last ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ ((orl + rl0) + qrl0.butlast).last ∈ (orl + rl0) + qrl0 from lst, 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), 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, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∧ unmarkedp(qrl0.tail, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
| qrl + rl = rl0 + qrl0, vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, ((orl + rl0) + qrl0.butlast).last ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ ((orl + rl0) + qrl0.butlast).last ∈ (orl + rl0) + qrl0 from lst, 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), 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, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∧ unmarkedp(qrl0.tail, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl0 = phead1 + orl0, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, ((orl + rl0) + qrl0.butlast).last ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ ((orl + rl0) + qrl0.butlast).last ∈ (orl + rl0) + qrl0 from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, 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) ⊦
Used simplifier rules: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: qrl0, head, tail
| qrl + rl = rl0 + qrl0, vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl0 = phead1 + orl0, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, ((orl + rl0) + qrl0.butlast).last ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ ((orl + rl0) + qrl0.butlast).last ∈ (orl + rl0) + qrl0 from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, 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) ⊦ |
qrl + rl = rl0 + phead1 ' + orl0, vs0[(phead1 ' + orl0).last].deqID = None, ps0[phead1].deqID = None, vs0[(phead1 ' + orl0).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ orl + qrl + rl from vhead, (orl + rl0 + (phead1 ' + orl0).butlast).last ∈ orl + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (orl + rl0 + (phead1 ' + orl0).butlast).last ∈ orl + qrl + rl from lst, 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0) ⊦
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] ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a + x = a ' + x; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ' + x ≠ []; (s)
| qrl + rl = rl0 + phead1 ' + orl0, vs0[(phead1 ' + orl0).last].deqID = None, ps0[phead1].deqID = None, vs0[(phead1 ' + orl0).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ orl + qrl + rl from vhead, (orl + rl0 + (phead1 ' + orl0).butlast).last ∈ orl + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (orl + rl0 + (phead1 ' + orl0).butlast).last ∈ orl + qrl + rl from lst, 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0) ⊦ |
⊦ y ≠ [] → (x + y).butlast = x + y.butlast
qrl + rl = rl0 + phead1 ' + orl0, ps0[phead1].deqID = None, vs0[(phead1 ' + orl0).last].deqID = None, vs0[(phead1 ' + orl0).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, orl0 = [], pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, (orl + rl0 + (phead1 ' + orl0).butlast).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (orl + rl0 + (phead1 ' + orl0).butlast).last ∈ orl + qrl + rl from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦
qrl + rl = rl0 + phead1 ' + orl0, ps0[phead1].deqID = None, vs0[(phead1 ' + orl0).last].deqID = None, vs0[(phead1 ' + orl0).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl0 ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, (orl + rl0 + phead1 ' + orl0.butlast).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (orl + rl0 + phead1 ' + orl0.butlast).last ∈ orl + qrl + rl from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦
Used terms: phead1 ', orl0
| ⊦ y ≠ [] → (x + y).butlast = x + y.butlast |
| qrl + rl = rl0 + phead1 ' + orl0, ps0[phead1].deqID = None, vs0[(phead1 ' + orl0).last].deqID = None, vs0[(phead1 ' + orl0).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, orl0 = [], pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, (orl + rl0 + (phead1 ' + orl0).butlast).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (orl + rl0 + (phead1 ' + orl0).butlast).last ∈ orl + qrl + rl from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦ |
qrl + rl = rl0 + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), (orl + rl0).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ (orl + rl0).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (orl + rl0).last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ rl0, 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), phead1 ∈ qrl ∨ phead1 ∈ rl ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] ⊦ unmarkedp([], vs); (s) ⊦ ¬ a ∈ []; (s) ⊦ x + [] = x; (s) ⊦ a '.butlast = []; (s) ⊦ ¬ dups([]); (s) ⊦ a '.last = a; (s)
| qrl + rl = rl0 + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), (orl + rl0).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ (orl + rl0).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (orl + rl0).last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ rl0, 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), phead1 ∈ qrl ∨ phead1 ∈ rl ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl0 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (orl + rl0).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ (orl + rl0).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1, (orl + rl0).last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ⊦
qrl + rl = rl0 + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, rl0.last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ rl0.last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1, rl0.last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ rl0.last ⊦
Used terms: orl, rl0
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl0 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (orl + rl0).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ (orl + rl0).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1, (orl + rl0).last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ⊦ |
qrl + rl = phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, ps0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, orl.last ∈ orl + qrl + rl from vtail, phead0 ∈ orl, phead0 ∈ orl from phead, phead0 ∈ vs0, phead0 ∈ ps0, phead0 ∈ vs, phead0 ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl, ¬ orl.last ∈ orl + qrl + rl from lst, 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), 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, orl.last = vhead0 ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead0 ∧ phead0 ≠ orl.last ⊦
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 ⊦ ¬ a ∈ []; (s) ⊦ x + [] = x; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s) ⊦ [] + x = x; (s)
| qrl + rl = phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, ps0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, orl.last ∈ orl + qrl + rl from vtail, phead0 ∈ orl, phead0 ∈ orl from phead, phead0 ∈ vs0, phead0 ∈ ps0, phead0 ∈ vs, phead0 ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl, ¬ orl.last ∈ orl + qrl + rl from lst, 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), 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, orl.last = vhead0 ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead0 ∧ phead0 ≠ orl.last ⊦ |
qrl + rl = phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, orl = orl0 + vtail0 ', pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(orl, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), phead0 ∈ ps, phead0 ∈ vs, phead0 ∈ ps0, phead0 ∈ vs0, phead0 ∈ orl from phead, phead0 ∈ orl, vtail0 ∈ orl + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(orl), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl, ¬ vtail0 ∈ orl + qrl + rl from lst, 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), 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), vtail0 = vhead0 ∨ orl0 ≠ [] ∧ orl0.last = vhead0 ∧ phead0 ≠ vtail0, phead1 ∈ qrl ∨ phead1 ∈ rl, vtail0 = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = vhead ∧ phead ≠ vtail0 ∧ 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 ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: orl, vtail0, y
| qrl + rl = phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, orl = orl0 + vtail0 ', pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(orl, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), phead0 ∈ ps, phead0 ∈ vs, phead0 ∈ ps0, phead0 ∈ vs0, phead0 ∈ orl from phead, phead0 ∈ orl, vtail0 ∈ orl + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(orl), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl, ¬ vtail0 ∈ orl + qrl + rl from lst, 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), 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), vtail0 = vhead0 ∨ orl0 ≠ [] ∧ orl0.last = vhead0 ∧ phead0 ≠ vtail0, phead1 ∈ qrl ∨ phead1 ∈ rl, vtail0 = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = vhead ∧ phead ≠ vtail0 ∧ 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 ⊦ |
qrl + rl = phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + vtail0 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + vtail0 ') + qrl + rl, vs0, ps0, owns0), listp((orl0 + vtail0 ') + qrl, vs, ps, owns), markedp(orl0, ps0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (orl0 + vtail0 ') + qrl, ps[first].next, vs), noidRely(tid, (orl0 + vtail0 ') + qrl, vs, (orl0 + vtail0 ') + qrl + rl, vs0), nonullRetRefs((orl0 + vtail0 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl0 + vtail0 ') + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), some?(ps[vtail0].deqID), some?(vs[vtail0].deqID), unmarkedp(qrl, ps), vhead0 ∈ (orl0 + vtail0 ') + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, vtail ∈ (orl0 + vtail0 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl0 + vtail0 ') + qrl + rl from vtail, phead0 ∈ orl0 + vtail0 ' from phead, phead0 ∈ vs0, phead0 ∈ ps0, phead0 ∈ vs, phead0 ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(qrl), ¬ vtail0 ∈ (orl0 + vtail0 ') + qrl + rl from lst, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ qrl, ¬ phead1 ∈ orl0, 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), 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 + vtail0 ' from first ∨ lst ∈ qrl, vtail0 = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = vhead ∧ phead ≠ vtail0 ∧ unmarkedp(qrl, vs), phead1 ∈ qrl ∨ phead1 ∈ rl, vtail0 = vhead0 ∨ orl0 ≠ [] ∧ orl0.last = vhead0 ∧ phead0 ≠ vtail0, phead ∈ orl0 ∨ phead = vtail0, first ∈ orl0 ∨ first = vtail0, phead0 ∈ orl0 ∨ phead0 = vtail0, vtail = (vtail0 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vtail0 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦
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)
| qrl + rl = phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + vtail0 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + vtail0 ') + qrl + rl, vs0, ps0, owns0), listp((orl0 + vtail0 ') + qrl, vs, ps, owns), markedp(orl0, ps0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (orl0 + vtail0 ') + qrl, ps[first].next, vs), noidRely(tid, (orl0 + vtail0 ') + qrl, vs, (orl0 + vtail0 ') + qrl + rl, vs0), nonullRetRefs((orl0 + vtail0 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl0 + vtail0 ') + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), some?(ps[vtail0].deqID), some?(vs[vtail0].deqID), unmarkedp(qrl, ps), vhead0 ∈ (orl0 + vtail0 ') + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, vtail ∈ (orl0 + vtail0 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl0 + vtail0 ') + qrl + rl from vtail, phead0 ∈ orl0 + vtail0 ' from phead, phead0 ∈ vs0, phead0 ∈ ps0, phead0 ∈ vs, phead0 ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(qrl), ¬ vtail0 ∈ (orl0 + vtail0 ') + qrl + rl from lst, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ qrl, ¬ phead1 ∈ orl0, 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), 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 + vtail0 ' from first ∨ lst ∈ qrl, vtail0 = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = vhead ∧ phead ≠ vtail0 ∧ unmarkedp(qrl, vs), phead1 ∈ qrl ∨ phead1 ∈ rl, vtail0 = vhead0 ∨ orl0 ≠ [] ∧ orl0.last = vhead0 ∧ phead0 ≠ vtail0, phead ∈ orl0 ∨ phead = vtail0, first ∈ orl0 ∨ first = vtail0, phead0 ∈ orl0 ∨ phead0 = vtail0, vtail = (vtail0 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vtail0 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ |
⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl
Used simplifier rules: ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r ' from r0 = (r = r0 ⊃ r ';[]); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) ⊦ ¬ r ∈ rl → rl from r = []; (s) ⊦ a ∈ x → (b ' + x).last = x.last; (s) one: ⊦ x + y = a ' ∧ b ∈ x → a = b ∧ x = a ' ∧ y = []; (forward) from specification list[reflist] list-elem-in-app22: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ ps; (forward) from specification DMSQ list-elem-in-app21: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ vs; (forward) from specification DMSQ ⊦ a ' = b ' ↔ a = b; (s) ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ ¬ dups([]); (s) ⊦ ¬ dups(a '); (s) ⊦ a '.last = a; (s) ⊦ a ' ≠ []; (s) ⊦ a '.tail = []; (s) ⊦ unmarkedp([], vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) Used terms: orl0 + vtail0 ', qrl + rl, lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| qrl + rl = rl0 + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, rl0.last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ rl0.last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1, rl0.last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ rl0.last ⊦ |
qrl + rl = rl0 + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl0 ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), rl0.last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ rl0.last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ rl0, 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), phead1 ∈ qrl ∨ phead1 ∈ rl, rl0.last = vhead0 ∨ orl + rl0.butlast ≠ [] ∧ (orl + rl0.butlast).last = vhead0 ∧ phead0 ≠ rl0.last ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ y ≠ [] → (x + y).butlast = x + y.butlast; (s)
| qrl + rl = rl0 + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl0 ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), rl0.last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ rl0.last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ rl0, 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), phead1 ∈ qrl ∨ phead1 ∈ rl, rl0.last = vhead0 ∨ orl + rl0.butlast ≠ [] ∧ (orl + rl0.butlast).last = vhead0 ∧ phead0 ≠ rl0.last ⊦ |
qrl + rl = rl0 + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl0 = orl0 + vtail0 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, vtail0 ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ vtail0 ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead1 ∈ qrl ∨ phead1 ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl0, vtail0, y
| qrl + rl = rl0 + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl0 = orl0 + vtail0 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, vtail0 ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ vtail0 ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead1 ∈ qrl ∨ phead1 ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ⊦ |
qrl + rl = (orl0 + vtail0 ') + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(qrl, ps), vtail0 ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + orl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(orl0), ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ orl0, 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), 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1 ⊦
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 ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ 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)
| qrl + rl = (orl0 + vtail0 ') + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(qrl, ps), vtail0 ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + orl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(orl0), ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ orl0, 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), 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1 ⊦ |
⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl
qrl + rl = (orl0 + vtail0 ') + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, vtail0 ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + orl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(orl0), ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ 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), 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), phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead1 ∈ qrl ∨ phead1 ∈ rl, 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 ⊦
Used simplifier rules: ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) notin-forward: ⊦ rl + rl0 = rl1 + rl2 + rl3 ∧ ¬ r ∈ rl ∧ ¬ r ∈ rl0 → ¬ r ∈ rl1 ∧ ¬ r ∈ rl2 ∧ ¬ r ∈ rl3; (forward) from specification DMSQ list-elem-in-app12: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ ps; (forward) from specification DMSQ list-elem-in-app11: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ vs; (forward) from specification DMSQ a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) Used terms: orl, qrl + rl, lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| qrl + rl = (orl0 + vtail0 ') + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, vtail0 ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + orl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(orl0), ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ 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), 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), phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead1 ∈ qrl ∨ phead1 ∈ rl, 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 ⊦ |
qrl + rl = (orl0 + vtail0 ') + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(qrl, ps), vtail ∈ qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, vtail0 ∈ orl + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + orl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ vtail0 ∈ qrl from lst, ¬ vtail0 ∈ rl, 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), 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), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead1 ∈ qrl ∨ phead1 ∈ rl, orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦
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 + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ r ∈ rl → rl from r = []; (s) ⊦ r ∈ rl from r0 → r ∈ rl; (ss) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s)
| qrl + rl = (orl0 + vtail0 ') + phead1 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(qrl, ps), vtail ∈ qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, vtail0 ∈ orl + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + orl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ vtail0 ∈ qrl from lst, ¬ vtail0 ∈ rl, 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), 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), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead1 ∈ qrl ∨ phead1 ∈ rl, orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ |
qrl + rl = (orl0 + vtail0 ') + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = vhead1 + orl1, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, qrl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(qrl, ps), lst ∈ ps, lst ∈ vs, lst ∈ qrl, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + orl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ vtail0 ∈ qrl from lst, ¬ vtail0 ∈ rl, 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), 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), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(orl1, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), phead1 ∈ qrl ∨ phead1 ∈ rl, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦
Used simplifier rules: ⊦ [] + x = x; (s) ⊦ ¬ a ∈ x → x ≠ y + a ' + z; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, vhead1, y
| qrl + rl = (orl0 + vtail0 ') + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = vhead1 + orl1, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, qrl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(qrl, ps), lst ∈ ps, lst ∈ vs, lst ∈ qrl, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + orl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ vtail0 ∈ qrl from lst, ¬ vtail0 ∈ rl, 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), 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), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(orl1, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), phead1 ∈ qrl ∨ phead1 ∈ rl, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ |
(vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + (orl1 + rl).last ', ps[vhead1].deqID = None, ps0[(orl1 + rl).last].deqID = None, vs0[(orl1 + rl).last].deqID = None, vs0[(orl1 + rl).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, (orl1 + rl).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead1 ≠ (orl1 + rl).last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + orl1) + rl, vs0, ps0, owns0), listp(orl + vhead1 ' + orl1, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (vhead1 ' + orl1) + rl, vs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + orl1) + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(orl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ orl + (vhead1 ' + orl1) + rl from vtail, vhead0 ∈ orl + (vhead1 ' + orl1) + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + orl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(orl1), ¬ dups(orl), ¬ dups(orl + orl0), ¬ dups(orl + orl1), ¬ dups(rl), ¬ dups(orl0), ¬ vtail0 ∈ vhead1 ' + orl1 from lst, ¬ lst ∈ orl from first, ¬ (orl1 + rl).last ∈ orl, ¬ (orl1 + rl).last ∈ orl0, ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ orl1, ¬ vtail0 ∈ rl, 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), 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), orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs), vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, lst = vhead1 ∨ lst ∈ orl1, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = (orl1 + rl).last, vhead1 = vtail0 ∨ vhead1 ∈ orl0, (orl1 + rl).last ∈ orl1 ∨ (orl1 + rl).last ∈ rl, vhead1 ∈ orl0 ∨ vhead1 = vtail0 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] inapp-10: ⊦ a ' + x = y + b ' ∧ a ≠ b → a ∈ y ∧ b ∈ x; (forward) from specification list[reflist] lapp-04: ⊦ a ' + x = y + b ' ∧ a ≠ b → x.last = b; (forward) from specification list-last[reflist] ⊦ ¬ a ∈ y → (y + c ' + z = a ' + z0 ↔ y = [] ∧ c = a ∧ z = z0); (ws) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a + x = a ' + x; (s) ⊦ a ' + x ≠ []; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s)
| (vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + (orl1 + rl).last ', ps[vhead1].deqID = None, ps0[(orl1 + rl).last].deqID = None, vs0[(orl1 + rl).last].deqID = None, vs0[(orl1 + rl).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, (orl1 + rl).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead1 ≠ (orl1 + rl).last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + orl1) + rl, vs0, ps0, owns0), listp(orl + vhead1 ' + orl1, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (vhead1 ' + orl1) + rl, vs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + orl1) + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(orl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ orl + (vhead1 ' + orl1) + rl from vtail, vhead0 ∈ orl + (vhead1 ' + orl1) + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + orl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(orl1), ¬ dups(orl), ¬ dups(orl + orl0), ¬ dups(orl + orl1), ¬ dups(rl), ¬ dups(orl0), ¬ vtail0 ∈ vhead1 ' + orl1 from lst, ¬ lst ∈ orl from first, ¬ (orl1 + rl).last ∈ orl, ¬ (orl1 + rl).last ∈ orl0, ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ orl1, ¬ vtail0 ∈ rl, 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), 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), orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs), vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, lst = vhead1 ∨ lst ∈ orl1, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = (orl1 + rl).last, vhead1 = vtail0 ∨ vhead1 ∈ orl0, (orl1 + rl).last ∈ orl1 ∨ (orl1 + rl).last ∈ rl, vhead1 ∈ orl0 ∨ vhead1 = vtail0 ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
(vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + (orl1 + rl).last ', vs0[(orl1 + rl).last].deqID = None, ps0[(orl1 + rl).last].deqID = None, ps[vhead1].deqID = None, vs0[(orl1 + rl).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, (orl1 + rl).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead1 ≠ (orl1 + rl).last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + orl1, vs, ps, owns), listp(orl + (vhead1 ' + orl1) + rl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (vhead1 ' + orl1) + rl, vs0), nonullRetRefs(orl + (vhead1 ' + orl1) + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(orl1, ps), vtail ∈ vhead1 ' + orl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (vhead1 ' + orl1) + rl from vhead, vtail0 ∈ orl + (vhead1 ' + orl1) + rl from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl1), ¬ dups(orl), ¬ dups(orl + orl0), ¬ dups(orl + orl1), ¬ dups(rl), ¬ dups(orl0), ¬ vtail0 ∈ vhead1 ' + orl1 from lst, ¬ lst ∈ orl from first, ¬ (orl1 + rl).last ∈ orl, ¬ (orl1 + rl).last ∈ orl0, ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ orl1, ¬ vtail0 ∈ rl, 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), 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), vhead1 ∈ orl0 ∨ vhead1 = vtail0, (orl1 + rl).last ∈ orl1 ∨ (orl1 + rl).last ∈ rl, vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = (orl1 + rl).last, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, lst = vhead1 ∨ lst ∈ orl1, vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs) ⊦
(vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + rl.last ', vs0[rl.last].deqID = None, ps0[rl.last].deqID = None, ps[vhead1].deqID = None, vs0[rl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, rl.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ rl.last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + orl1, vs, ps, owns), listp(orl + (vhead1 ' + orl1) + rl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (vhead1 ' + orl1) + rl, vs0), nonullRetRefs(orl + (vhead1 ' + orl1) + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(orl1, ps), vtail ∈ vhead1 ' + orl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (vhead1 ' + orl1) + rl from vhead, vtail0 ∈ orl + (vhead1 ' + orl1) + rl from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl1), ¬ dups(orl), ¬ dups(orl + orl0), ¬ dups(orl + orl1), ¬ dups(rl), ¬ dups(orl0), ¬ vtail0 ∈ vhead1 ' + orl1 from lst, ¬ lst ∈ orl from first, ¬ rl.last ∈ orl, ¬ rl.last ∈ orl0, ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ orl1, ¬ vtail0 ∈ rl, 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), 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), vhead1 ∈ orl0 ∨ vhead1 = vtail0, rl.last ∈ orl1 ∨ rl.last ∈ rl, vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = rl.last, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, lst = vhead1 ∨ lst ∈ orl1, vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs) ⊦
Used terms: orl1, rl
| ⊦ y ≠ [] → (x + y).last = y.last |
| (vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + (orl1 + rl).last ', vs0[(orl1 + rl).last].deqID = None, ps0[(orl1 + rl).last].deqID = None, ps[vhead1].deqID = None, vs0[(orl1 + rl).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, (orl1 + rl).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead1 ≠ (orl1 + rl).last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + orl1, vs, ps, owns), listp(orl + (vhead1 ' + orl1) + rl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (vhead1 ' + orl1) + rl, vs0), nonullRetRefs(orl + (vhead1 ' + orl1) + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(orl1, ps), vtail ∈ vhead1 ' + orl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (vhead1 ' + orl1) + rl from vhead, vtail0 ∈ orl + (vhead1 ' + orl1) + rl from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl1), ¬ dups(orl), ¬ dups(orl + orl0), ¬ dups(orl + orl1), ¬ dups(rl), ¬ dups(orl0), ¬ vtail0 ∈ vhead1 ' + orl1 from lst, ¬ lst ∈ orl from first, ¬ (orl1 + rl).last ∈ orl, ¬ (orl1 + rl).last ∈ orl0, ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ orl1, ¬ vtail0 ∈ rl, 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), 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), vhead1 ∈ orl0 ∨ vhead1 = vtail0, (orl1 + rl).last ∈ orl1 ∨ (orl1 + rl).last ∈ rl, vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = (orl1 + rl).last, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, lst = vhead1 ∨ lst ∈ orl1, vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs) ⊦ |
vhead1 ' + orl1 = orl0 + vtail0 ' + orl1.last ', vs[orl1.last].deqID = None, ps[vhead1].deqID = None, ps0[orl1.last].deqID = None, vs0[orl1.last].deqID = None, vs[orl1.last].next = null, vs0[orl1.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, (vhead1 ' + orl1.butlast).last ≠ orl1.last, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, lst ≠ vhead1, orl ≠ [], orl1 ≠ [], pretRefs0(tid) ≠ null, vhead1 ≠ orl1.last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + orl1, vs0, ps0, owns0), listp(orl + vhead1 ' + orl1, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + vhead1 ' + orl1, vs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + vhead1 ' + orl1, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(orl1, ps), lst ∈ ps0, lst ∈ vs0, (vhead1 ' + orl1.butlast).last ∈ orl1 from lst, lst ∈ orl1, lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ orl + vhead1 ' + orl1 from (vhead1 ' + orl1.butlast).last, vhead0 ∈ orl + vhead1 ' + orl1 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, dom prvHp ⊆ dom prvHp0, ¬ dups(orl1), ¬ dups(orl), ¬ dups(orl + orl0), ¬ dups(orl + orl1), ¬ dups(orl0), ¬ vtail0 ∈ orl1 from lst, ¬ lst ∈ orl from first, ¬ orl1.last ∈ orl, ¬ orl1.last ∈ orl0, ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ orl1, 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), 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 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = orl1.last, vhead1 ∈ orl0 ∨ vhead1 = vtail0, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs) ⊦
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 ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ ¬ a ∈ z ∧ a ≠ c → c ' + z ≠ y1 + a ' + x; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ b ' ↔ a = b; (s) rl ≠ [] ⊦ ¬ dups(rl) → rl from rl.last = rl.last '; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] inapp-10: ⊦ a ' + x = y + b ' ∧ a ≠ b → a ∈ y ∧ b ∈ x; (forward) from specification list[reflist] ⊦ x + [] = x; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ dups([]); (s)
| vhead1 ' + orl1 = orl0 + vtail0 ' + orl1.last ', vs[orl1.last].deqID = None, ps[vhead1].deqID = None, ps0[orl1.last].deqID = None, vs0[orl1.last].deqID = None, vs[orl1.last].next = null, vs0[orl1.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, (vhead1 ' + orl1.butlast).last ≠ orl1.last, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, lst ≠ vhead1, orl ≠ [], orl1 ≠ [], pretRefs0(tid) ≠ null, vhead1 ≠ orl1.last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + orl1, vs0, ps0, owns0), listp(orl + vhead1 ' + orl1, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + vhead1 ' + orl1, vs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + vhead1 ' + orl1, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(orl1, ps), lst ∈ ps0, lst ∈ vs0, (vhead1 ' + orl1.butlast).last ∈ orl1 from lst, lst ∈ orl1, lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ orl + vhead1 ' + orl1 from (vhead1 ' + orl1.butlast).last, vhead0 ∈ orl + vhead1 ' + orl1 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, dom prvHp ⊆ dom prvHp0, ¬ dups(orl1), ¬ dups(orl), ¬ dups(orl + orl0), ¬ dups(orl + orl1), ¬ dups(orl0), ¬ vtail0 ∈ orl1 from lst, ¬ lst ∈ orl from first, ¬ orl1.last ∈ orl, ¬ orl1.last ∈ orl0, ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ orl1, 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), 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 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = orl1.last, vhead1 ∈ orl0 ∨ vhead1 = vtail0, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs) ⊦ |
Used simplifier rules: ⊦ # y = # y0 → (x + y = z + y0 ↔ x = z ∧ y = y0); (ws) ⊦ x + a ' ≠ []; (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ r ' + rl from r = r ' + rl; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ' + x = x0 + x1 → (a ∈ x0 ↔ x0 ≠ []); (ss) ni: ⊦ x + a ' = y + z ∧ ¬ a ∈ z → z = []; (forward) from specification list[reflist] in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] ⊦ ¬ a ∈ x → (a ∈ b ' + x ↔ a = b); (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ (x + a ').last = a; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: orl1, phead1, y
| (vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + rl.last ', vs0[rl.last].deqID = None, ps0[rl.last].deqID = None, ps[vhead1].deqID = None, vs0[rl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, rl.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ rl.last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + orl1, vs, ps, owns), listp(orl + (vhead1 ' + orl1) + rl, vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (vhead1 ' + orl1) + rl, vs0), nonullRetRefs(orl + (vhead1 ' + orl1) + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(orl1, ps), vtail ∈ vhead1 ' + orl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (vhead1 ' + orl1) + rl from vhead, vtail0 ∈ orl + (vhead1 ' + orl1) + rl from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl1), ¬ dups(orl), ¬ dups(orl + orl0), ¬ dups(orl + orl1), ¬ dups(rl), ¬ dups(orl0), ¬ vtail0 ∈ vhead1 ' + orl1 from lst, ¬ lst ∈ orl from first, ¬ rl.last ∈ orl, ¬ rl.last ∈ orl0, ¬ lst ∈ orl, ¬ vtail0 ∈ orl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ orl1, ¬ vtail0 ∈ rl, 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), 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), vhead1 ∈ orl0 ∨ vhead1 = vtail0, rl.last ∈ orl1 ∨ rl.last ∈ rl, vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = rl.last, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, lst = vhead1 ∨ lst ∈ orl1, vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs) ⊦ |
(vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + rl.last ', vs0[rl.last].deqID = None, ps0[rl.last].deqID = None, ps[vhead1].deqID = None, vs0[rl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, rl.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ rl.last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + orl1, vs, ps, owns), listp(orl + (orl0 + vtail0 ') + rl.last ', vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (orl0 + vtail0 ') + rl.last ', vs0), nonullRetRefs(orl + (orl0 + vtail0 ') + rl.last ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(orl1, ps), vtail ∈ vhead1 ' + orl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (orl0 + vtail0 ') + rl.last ' from vhead, vtail0 ∈ orl + (orl0 + vtail0 ') + rl.last ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(rl), ¬ dups(orl + orl1), ¬ dups(orl + orl0), ¬ dups(orl), ¬ dups(orl1), ¬ vtail0 ∈ rl, ¬ vhead1 ∈ orl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ rl.last ∈ orl0, ¬ rl.last ∈ orl, ¬ lst ∈ orl from first, ¬ vtail0 ∈ vhead1 ' + orl1 from lst, 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), 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), vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = rl.last, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, lst = vhead1 ∨ lst ∈ orl1, vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs), vhead1 ∈ orl0 ∨ vhead1 = vtail0 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ y ≠ [] → (x + y).last = y.last; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] inapp-10: ⊦ a ' + x = y + b ' ∧ a ≠ b → a ∈ y ∧ b ∈ x; (forward) from specification list[reflist] lapp-04: ⊦ a ' + x = y + b ' ∧ a ≠ b → x.last = b; (forward) from specification list-last[reflist]
| (vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + rl.last ', vs0[rl.last].deqID = None, ps0[rl.last].deqID = None, ps[vhead1].deqID = None, vs0[rl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, rl.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ rl.last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + orl1, vs, ps, owns), listp(orl + (orl0 + vtail0 ') + rl.last ', vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (orl0 + vtail0 ') + rl.last ', vs0), nonullRetRefs(orl + (orl0 + vtail0 ') + rl.last ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(orl1, ps), vtail ∈ vhead1 ' + orl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (orl0 + vtail0 ') + rl.last ' from vhead, vtail0 ∈ orl + (orl0 + vtail0 ') + rl.last ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(rl), ¬ dups(orl + orl1), ¬ dups(orl + orl0), ¬ dups(orl), ¬ dups(orl1), ¬ vtail0 ∈ rl, ¬ vhead1 ∈ orl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ rl.last ∈ orl0, ¬ rl.last ∈ orl, ¬ lst ∈ orl from first, ¬ vtail0 ∈ vhead1 ' + orl1 from lst, 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), 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), vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = rl.last, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, lst = vhead1 ∨ lst ∈ orl1, vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs), vhead1 ∈ orl0 ∨ vhead1 = vtail0 ⊦ |
(vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + phead1 ', ps[vhead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = rl0 + phead1 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ phead1, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + (orl0 + vtail0 ') + phead1 ', vs0, ps0, owns0), listp(orl + vhead1 ' + orl1, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (orl0 + vtail0 ') + phead1 ', vs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (orl0 + vtail0 ') + phead1 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(orl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ orl + (orl0 + vtail0 ') + phead1 ' from vtail, vhead0 ∈ orl + (orl0 + vtail0 ') + phead1 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + orl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(rl), ¬ dups(orl + orl1), ¬ dups(orl + orl0), ¬ dups(orl), ¬ dups(orl1), ¬ vtail0 ∈ rl, ¬ vhead1 ∈ orl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ vtail0 ∈ vhead1 ' + orl1 from lst, 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), 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), vhead1 ∈ orl0 ∨ vhead1 = vtail0, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs), vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, lst = vhead1 ∨ lst ∈ orl1, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, vhead1 = vtail0 ∨ vhead1 ∈ orl0 ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl, phead1, y
| (vhead1 ' + orl1) + rl = (orl0 + vtail0 ') + phead1 ', ps[vhead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = rl0 + phead1 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl1 + rl ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ phead1, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + orl1, vs, ps, vs0, ps0), listp(orl + (orl0 + vtail0 ') + phead1 ', vs0, ps0, owns0), listp(orl + vhead1 ' + orl1, vs, ps, owns), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), markedp(orl0, ps0), markedp(orl, ps0), markedp(orl0, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + orl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + orl1, vs, orl + (orl0 + vtail0 ') + phead1 ', vs0), nonullRetRefs(orl + vhead1 ' + orl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (orl0 + vtail0 ') + phead1 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vtail0].deqID), some?(vs0[vtail0].deqID), unmarkedp(orl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ orl + (orl0 + vtail0 ') + phead1 ' from vtail, vhead0 ∈ orl + (orl0 + vtail0 ') + phead1 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + orl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(rl), ¬ dups(orl + orl1), ¬ dups(orl + orl0), ¬ dups(orl), ¬ dups(orl1), ¬ vtail0 ∈ rl, ¬ vhead1 ∈ orl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ vtail0 ∈ vhead1 ' + orl1 from lst, 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), 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), vhead1 ∈ orl0 ∨ vhead1 = vtail0, orl.last = vhead ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs), vtail = (vhead1 ' + orl1).last ∨ vtail = (orl + (vhead1 ' + orl1).butlast).last ∧ vs[(vhead1 ' + orl1).last].deqID = None ∧ vs[(vhead1 ' + orl1).last].next = null, lst = vhead1 ∨ lst ∈ orl1, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, vhead1 = vtail0 ∨ vhead1 ∈ orl0 ⊦ |
vhead1 ' + orl1 = orl0 + vtail0 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, ps[vhead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, lst ≠ vhead1, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, vhead1 ≠ phead1, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + orl0 + vtail0 ', vs, ps, vs0, ps0), listp(orl + orl0 + vtail0 ', vs, ps, owns), listp(orl + (orl0 + vtail0 ') + phead1 ', vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + orl0 + vtail0 ', ps[first].next, vs), noidRely(tid, orl + orl0 + vtail0 ', vs, orl + (orl0 + vtail0 ') + phead1 ', vs0), nonullRetRefs(orl + (orl0 + vtail0 ') + phead1 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + orl0 + vtail0 ', vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(orl1, ps), vtail ∈ orl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (orl0 + vtail0 ') + phead1 ' from vhead, vtail0 ∈ orl + (orl0 + vtail0 ') + phead1 ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, lst ∈ orl1, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(orl + orl1), ¬ dups(orl + orl0), ¬ dups(orl), ¬ dups(orl1), ¬ vtail0 ∈ orl1 from lst, ¬ vhead1 ∈ orl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, 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), 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 ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs), vtail0 = vhead1 ∨ vtail0 ∈ orl1, vhead1 ∈ orl0 ∨ vhead1 = vtail0, vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, vtail = orl1.last ∨ vtail = (orl + orl0).last ∧ vs[orl1.last].deqID = None ∧ vs[orl1.last].next = null ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ (x + a ').butlast = x; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ dups([]); (s) ⊦ x + [] = x; (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] ni: ⊦ x + a ' = y + z ∧ ¬ a ∈ z → z = []; (forward) from specification list[reflist] ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ x + a ' ≠ []; (s) ⊦ # y = # y0 → (x + y = z + y0 ↔ x = z ∧ y = y0); (ws)
| vhead1 ' + orl1 = orl0 + vtail0 ', vs0[phead1].deqID = None, ps0[phead1].deqID = None, ps[vhead1].deqID = None, vs0[phead1].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, lst ≠ vhead1, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, vhead1 ≠ phead1, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + orl0 + vtail0 ', vs, ps, vs0, ps0), listp(orl + orl0 + vtail0 ', vs, ps, owns), listp(orl + (orl0 + vtail0 ') + phead1 ', vs0, ps0, owns0), markedp(orl0, vs0), markedp(orl, ps0), markedp(orl0, ps0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + orl0 + vtail0 ', ps[first].next, vs), noidRely(tid, orl + orl0 + vtail0 ', vs, orl + (orl0 + vtail0 ') + phead1 ', vs0), nonullRetRefs(orl + (orl0 + vtail0 ') + phead1 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + orl0 + vtail0 ', vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail0].deqID), some?(ps0[vtail0].deqID), unmarkedp(orl1, ps), vtail ∈ orl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (orl0 + vtail0 ') + phead1 ' from vhead, vtail0 ∈ orl + (orl0 + vtail0 ') + phead1 ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, lst ∈ orl1, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0), ¬ dups(orl + orl1), ¬ dups(orl + orl0), ¬ dups(orl), ¬ dups(orl1), ¬ vtail0 ∈ orl1 from lst, ¬ vhead1 ∈ orl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ orl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, 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), 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 ∧ unmarkedp(orl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(orl1, vs), vtail0 = vhead1 ∨ vtail0 ∈ orl1, vhead1 ∈ orl0 ∨ vhead1 = vtail0, vhead1 = vtail0 ∨ vhead1 ∈ orl0, phead0 ∈ orl from phead ∨ phead0 ∈ orl0 ∨ phead0 = vtail0 ∨ phead0 = phead1, phead0 ∈ orl ∨ phead0 ∈ orl0 ∨ phead0 = vtail0, vtail0 = vhead0 ∨ orl + orl0 ≠ [] ∧ (orl + orl0).last = vhead0 ∧ phead0 ≠ vtail0, vtail = orl1.last ∨ vtail = (orl + orl0).last ∧ vs[orl1.last].deqID = None ∧ vs[orl1.last].next = null ⊦ |
y ≠ [] ⊦ y = x + a ' ↔ x = y.butlast ∧ a = y.last
Used simplifier rules: ⊦ a ' + x ≠ []; (s) ⊦ a ∈ x → (b ' + x).last = x.last; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ rl.last ∈ rl from r ↔ r ∈ rl; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ a ' ≠ []; (s) Used terms: vhead1 ' + orl1, orl0, vtail0
| y ≠ [] ⊦ y = x + a ' ↔ x = y.butlast ∧ a = y.last |
| qrl + rl = rl0 + phead1 ' + orl0, ps0[phead1].deqID = None, vs0[(phead1 ' + orl0).last].deqID = None, vs0[(phead1 ' + orl0).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl0 ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, (orl + rl0 + phead1 ' + orl0.butlast).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (orl + rl0 + phead1 ' + orl0.butlast).last ∈ orl + qrl + rl from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦ |
qrl + rl = rl0 + phead1 ' + orl0, ps0[phead1].deqID = None, vs0[orl0.last].deqID = None, vs0[orl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl0 ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl0, ps0), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl0.butlast).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (phead1 ' + orl0.butlast).last ∈ orl + qrl + rl from lst, 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0) ⊦
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)
| qrl + rl = rl0 + phead1 ' + orl0, ps0[phead1].deqID = None, vs0[orl0.last].deqID = None, vs0[orl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl0 ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl0, ps0), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl0.butlast).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (phead1 ' + orl0.butlast).last ∈ orl + qrl + rl from lst, 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0) ⊦ |
qrl + rl = rl0 + phead1 ' + orl0, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, orl0 = orl1 + vtail0 ', pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl0 ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl0, ps0), (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: orl0, vtail0, y
| qrl + rl = rl0 + phead1 ' + orl0, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, orl0 = orl1 + vtail0 ', pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl0 ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl0, ps0), (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + orl0), ¬ dups(orl), ¬ dups(rl0 + orl0), ¬ dups(orl + rl0), ¬ dups(orl0), ¬ dups(rl0), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl0, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl0, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦ |
qrl + rl = rl0 + phead1 ' + orl1 + vtail0 ', ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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), vtail0 ∈ qrl ∨ vtail0 ∈ rl ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ x + a ' ≠ []; (s)
| qrl + rl = rl0 + phead1 ' + orl1 + vtail0 ', ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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), vtail0 ∈ qrl ∨ vtail0 ∈ rl ⊦ |
y ≠ [] ⊦ y = x + a ' ↔ x = y.butlast ∧ a = y.last
rl0 + phead1 ' + orl1 = (qrl + rl).butlast, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = (qrl + rl).last, qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), vtail0 ∈ qrl ∨ vtail0 ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦
Used simplifier rules: ⊦ [] + x = x; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ a ' + x ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: qrl + rl, rl0 + phead1 ' + orl1, vtail0
| y ≠ [] ⊦ y = x + a ' ↔ x = y.butlast ∧ a = y.last |
| rl0 + phead1 ' + orl1 = (qrl + rl).butlast, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = (qrl + rl).last, qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), vtail0 ∈ qrl ∨ vtail0 ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦ |
rl0 + phead1 ' + orl1 = (qrl + rl).butlast, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[phead1].deqID = None, vs0[(qrl + rl).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ (qrl + rl).last, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ (qrl + rl).last ∈ orl1, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = (qrl + rl).last, phead0 ∈ orl ∨ phead0 ∈ rl0, 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), (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl ⊦
| rl0 + phead1 ' + orl1 = (qrl + rl).butlast, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[phead1].deqID = None, vs0[(qrl + rl).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ (qrl + rl).last, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ (qrl + rl).last ∈ orl1, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = (qrl + rl).last, phead0 ∈ orl ∨ phead0 ∈ rl0, 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), (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
rl0 + phead1 ' + orl1 = (qrl + rl).butlast, ps0[phead1].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ (qrl + rl).last, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ (qrl + rl).last ∈ orl1, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = (qrl + rl).last, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦
rl0 + phead1 ' + orl1 = (qrl + rl).butlast, ps0[phead1].deqID = None, vs0[rl.last].deqID = None, ps0[rl.last].deqID = None, vs0[rl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ rl.last, pretRefs0(tid) ≠ null, rl ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ rl.last ∈ orl1, ¬ rl.last ∈ rl0, ¬ rl.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), rl.last ∈ qrl ∨ rl.last ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = rl.last, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦
Used terms: qrl, rl
| ⊦ y ≠ [] → (x + y).last = y.last |
| rl0 + phead1 ' + orl1 = (qrl + rl).butlast, ps0[phead1].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ (qrl + rl).last, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ (qrl + rl).last ∈ orl1, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = (qrl + rl).last, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦ |
rl0 + phead1 ' + orl1 = qrl.butlast, ps0[qrl.last].deqID = None, vs0[qrl.last].deqID = None, ps0[phead1].deqID = None, vs0[qrl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ qrl.last, pretRefs0(tid) ≠ null, qrl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl from vtail, vhead0 ∈ orl + qrl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl1, ¬ qrl.last ∈ orl1, ¬ qrl.last ∈ rl0, ¬ qrl.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl ∨ phead0 ∈ rl0, lst ∈ orl from first ∨ lst ∈ qrl, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = qrl.last, vtail = qrl.last ∨ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, orl.last = vhead ∧ unmarkedp(qrl.tail, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦
Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x + [] = x; (s) ⊦ y ≠ [] → (x + y).last = y.last; (s) ⊦ ¬ dups([]); (s)
| rl0 + phead1 ' + orl1 = qrl.butlast, ps0[qrl.last].deqID = None, vs0[qrl.last].deqID = None, ps0[phead1].deqID = None, vs0[qrl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ qrl.last, pretRefs0(tid) ≠ null, qrl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl from vtail, vhead0 ∈ orl + qrl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl1, ¬ qrl.last ∈ orl1, ¬ qrl.last ∈ rl0, ¬ qrl.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl from lst, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl ∨ phead0 ∈ rl0, lst ∈ orl from first ∨ lst ∈ qrl, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = qrl.last, vtail = qrl.last ∨ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, orl.last = vhead ∧ unmarkedp(qrl.tail, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ |
rl0 + phead1 ' + orl1 = qrl.butlast, ps0[phead1].deqID = None, vs0[qrl.last].deqID = None, ps0[qrl.last].deqID = None, vs0[qrl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl = vtail0 + qrl0, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ qrl.last, pretRefs0(tid) ≠ null, qrl ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl, vs0), nonullRetRefs(orl + qrl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl from vhead, (phead1 ' + orl1).last ∈ orl + qrl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl1, ¬ qrl.last ∈ orl1, ¬ qrl.last ∈ rl0, ¬ qrl.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl from lst, 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), 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 ∧ unmarkedp(qrl0, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), vtail = qrl.last ∨ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = qrl.last, lst ∈ orl from first ∨ lst ∈ qrl, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦
Used simplifier rules: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: qrl, head, tail
| rl0 + phead1 ' + orl1 = qrl.butlast, ps0[phead1].deqID = None, vs0[qrl.last].deqID = None, ps0[qrl.last].deqID = None, vs0[qrl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl = vtail0 + qrl0, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ qrl.last, pretRefs0(tid) ≠ null, qrl ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl, vs0), nonullRetRefs(orl + qrl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl from vhead, (phead1 ' + orl1).last ∈ orl + qrl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl1, ¬ qrl.last ∈ orl1, ¬ qrl.last ∈ rl0, ¬ qrl.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl from lst, 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), 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 ∧ unmarkedp(qrl0, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), vtail = qrl.last ∨ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = qrl.last, lst ∈ orl from first ∨ lst ∈ qrl, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦ |
rl0 + phead1 ' + orl1 = (vtail0 ' + qrl0).butlast, ps0[(vtail0 ' + qrl0).last].deqID = None, vs0[(vtail0 ' + qrl0).last].deqID = None, ps0[phead1].deqID = None, ps[vtail0].deqID = None, vs0[(vtail0 ' + qrl0).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ (vtail0 ' + qrl0).last, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vtail0 ' + qrl0, vs, ps, vs0, ps0), listp(orl + vtail0 ' + qrl0, vs, ps, owns), listp(orl + vtail0 ' + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vtail0 ' + qrl0, ps[first].next, vs), noidRely(tid, orl + vtail0 ' + qrl0, vs, orl + vtail0 ' + qrl0, vs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs, vretRefs, pretRefs), nonullRetRefs(orl + vtail0 ' + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl0, ps), vhead0 ∈ orl + vtail0 ' + qrl0 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, (vtail0 ' + qrl0).last ∈ orl + vtail0 ' + qrl0 from lst, pretRefs0(tid) ∈ vrvHp, (phead1 ' + orl1).last ∈ vtail0 ' + qrl0 from (vtail0 ' + qrl0).last, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl0), ¬ dups(orl), ¬ dups(qrl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl1, ¬ (vtail0 ' + qrl0).last ∈ orl1, ¬ (vtail0 ' + qrl0).last ∈ rl0, ¬ (vtail0 ' + qrl0).last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + vtail0 ' + qrl0 from lst, 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), 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), orl.last = vhead ∧ unmarkedp(qrl0, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vtail0].deqID = None ∧ unmarkedp(qrl0, vs), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl ∨ phead0 ∈ rl0, lst ∈ orl from first ∨ lst = vtail0 ∨ lst ∈ qrl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = (vtail0 ' + qrl0).last ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a + x = a ' + x; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ a ' + x ≠ []; (s)
| rl0 + phead1 ' + orl1 = (vtail0 ' + qrl0).butlast, ps0[(vtail0 ' + qrl0).last].deqID = None, vs0[(vtail0 ' + qrl0).last].deqID = None, ps0[phead1].deqID = None, ps[vtail0].deqID = None, vs0[(vtail0 ' + qrl0).last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ (vtail0 ' + qrl0).last, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vtail0 ' + qrl0, vs, ps, vs0, ps0), listp(orl + vtail0 ' + qrl0, vs, ps, owns), listp(orl + vtail0 ' + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vtail0 ' + qrl0, ps[first].next, vs), noidRely(tid, orl + vtail0 ' + qrl0, vs, orl + vtail0 ' + qrl0, vs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs, vretRefs, pretRefs), nonullRetRefs(orl + vtail0 ' + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl0, ps), vhead0 ∈ orl + vtail0 ' + qrl0 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, (vtail0 ' + qrl0).last ∈ orl + vtail0 ' + qrl0 from lst, pretRefs0(tid) ∈ vrvHp, (phead1 ' + orl1).last ∈ vtail0 ' + qrl0 from (vtail0 ' + qrl0).last, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl0), ¬ dups(orl), ¬ dups(qrl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl1, ¬ (vtail0 ' + qrl0).last ∈ orl1, ¬ (vtail0 ' + qrl0).last ∈ rl0, ¬ (vtail0 ' + qrl0).last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + vtail0 ' + qrl0 from lst, 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), 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), orl.last = vhead ∧ unmarkedp(qrl0, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vtail0].deqID = None ∧ unmarkedp(qrl0, vs), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl ∨ phead0 ∈ rl0, lst ∈ orl from first ∨ lst = vtail0 ∨ lst ∈ qrl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = (vtail0 ' + qrl0).last ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
rl0 + phead1 ' + orl1 = (vtail0 ' + qrl0).butlast, ps[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[qrl0.last].deqID = None, ps0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ qrl0.last, pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vtail0 ' + qrl0, vs, ps, vs0, ps0), listp(orl + vtail0 ' + qrl0, vs0, ps0, owns0), listp(orl + vtail0 ' + qrl0, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vtail0 ' + qrl0, ps[first].next, vs), noidRely(tid, orl + vtail0 ' + qrl0, vs, orl + vtail0 ' + qrl0, vs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps), unmarkedp(orl1, ps0), (phead1 ' + orl1).last ∈ vtail0 ' + qrl0 from qrl0.last, pretRefs0(tid) ∈ vrvHp, qrl0.last ∈ orl + vtail0 ' + qrl0 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + vtail0 ' + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl0), ¬ dups(orl), ¬ dups(qrl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl1, ¬ qrl0.last ∈ orl1, ¬ qrl0.last ∈ rl0, ¬ qrl0.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + vtail0 ' + qrl0 from lst, 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), 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), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = qrl0.last, lst ∈ orl from first ∨ lst = vtail0 ∨ lst ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), orl.last = vhead ∧ unmarkedp(qrl0, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vtail0].deqID = None ∧ unmarkedp(qrl0, vs) ⊦
Used simplifier rules: ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) ⊦ a '.butlast = []; (s) ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ a ' + x ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: vtail0 ', qrl0
| ⊦ y ≠ [] → (x + y).last = y.last |
| rl0 + phead1 ' + orl1 = (vtail0 ' + qrl0).butlast, ps[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[qrl0.last].deqID = None, ps0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ qrl0.last, pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vtail0 ' + qrl0, vs, ps, vs0, ps0), listp(orl + vtail0 ' + qrl0, vs0, ps0, owns0), listp(orl + vtail0 ' + qrl0, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vtail0 ' + qrl0, ps[first].next, vs), noidRely(tid, orl + vtail0 ' + qrl0, vs, orl + vtail0 ' + qrl0, vs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps), unmarkedp(orl1, ps0), (phead1 ' + orl1).last ∈ vtail0 ' + qrl0 from qrl0.last, pretRefs0(tid) ∈ vrvHp, qrl0.last ∈ orl + vtail0 ' + qrl0 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + vtail0 ' + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl0), ¬ dups(orl), ¬ dups(qrl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl1, ¬ qrl0.last ∈ orl1, ¬ qrl0.last ∈ rl0, ¬ qrl0.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + vtail0 ' + qrl0 from lst, 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), 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), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = qrl0.last, lst ∈ orl from first ∨ lst = vtail0 ∨ lst ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), orl.last = vhead ∧ unmarkedp(qrl0, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vtail0].deqID = None ∧ unmarkedp(qrl0, vs) ⊦ |
rl0 + phead1 ' + orl1 = vtail0 ' + qrl0.butlast, ps[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[qrl0.last].deqID = None, ps0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ qrl0.last, pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vtail0 ' + qrl0, vs, ps, vs0, ps0), listp(orl + vtail0 ' + qrl0, vs0, ps0, owns0), listp(orl + vtail0 ' + qrl0, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vtail0 ' + qrl0, ps[first].next, vs), noidRely(tid, orl + vtail0 ' + qrl0, vs, orl + vtail0 ' + qrl0, vs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps), unmarkedp(orl1, ps0), (phead1 ' + orl1).last ∈ vtail0 ' + qrl0 from qrl0.last, pretRefs0(tid) ∈ vrvHp, qrl0.last ∈ orl + vtail0 ' + qrl0 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + vtail0 ' + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(orl), ¬ dups(orl + qrl0), ¬ dups(orl + rl0 + orl1), ¬ dups(rl0), ¬ dups(orl1), ¬ dups(rl0 + orl1), ¬ dups(orl + rl0), ¬ (phead1 ' + orl1).last ∈ orl + vtail0 ' + qrl0 from lst, ¬ qrl0.last ∈ orl, ¬ qrl0.last ∈ rl0, ¬ qrl0.last ∈ orl1, ¬ phead1 ∈ orl1, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ vtail0 ∈ qrl0, ¬ vtail0 ∈ 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), 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), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = qrl0.last, lst ∈ orl from first ∨ lst = vtail0 ∨ lst ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), orl.last = vhead ∧ unmarkedp(qrl0, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vtail0].deqID = None ∧ unmarkedp(qrl0, vs), vtail0 ∈ rl0 ∨ vtail0 = phead1 ∨ vtail0 ∈ orl1 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s)
| rl0 + phead1 ' + orl1 = vtail0 ' + qrl0.butlast, ps[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[qrl0.last].deqID = None, ps0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ qrl0.last, pretRefs0(tid) ≠ null, qrl0 ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vtail0 ' + qrl0, vs, ps, vs0, ps0), listp(orl + vtail0 ' + qrl0, vs0, ps0, owns0), listp(orl + vtail0 ' + qrl0, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vtail0 ' + qrl0, ps[first].next, vs), noidRely(tid, orl + vtail0 ' + qrl0, vs, orl + vtail0 ' + qrl0, vs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vtail0 ' + qrl0, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps), unmarkedp(orl1, ps0), (phead1 ' + orl1).last ∈ vtail0 ' + qrl0 from qrl0.last, pretRefs0(tid) ∈ vrvHp, qrl0.last ∈ orl + vtail0 ' + qrl0 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + vtail0 ' + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(orl), ¬ dups(orl + qrl0), ¬ dups(orl + rl0 + orl1), ¬ dups(rl0), ¬ dups(orl1), ¬ dups(rl0 + orl1), ¬ dups(orl + rl0), ¬ (phead1 ' + orl1).last ∈ orl + vtail0 ' + qrl0 from lst, ¬ qrl0.last ∈ orl, ¬ qrl0.last ∈ rl0, ¬ qrl0.last ∈ orl1, ¬ phead1 ∈ orl1, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ vtail0 ∈ qrl0, ¬ vtail0 ∈ 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), 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), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = qrl0.last, lst ∈ orl from first ∨ lst = vtail0 ∨ lst ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), orl.last = vhead ∧ unmarkedp(qrl0, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vtail0].deqID = None ∧ unmarkedp(qrl0, vs), vtail0 ∈ rl0 ∨ vtail0 = phead1 ∨ vtail0 ∈ orl1 ⊦ |
Used simplifier rules: ⊦ x + a ' ≠ []; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r ' from r0 = (r = r0 ⊃ r ';[]); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: qrl0, vhead1, y
| rl0 + phead1 ' + orl1 = (qrl + rl).butlast, ps0[phead1].deqID = None, vs0[rl.last].deqID = None, ps0[rl.last].deqID = None, vs0[rl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ rl.last, pretRefs0(tid) ≠ null, rl ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ rl.last ∈ orl1, ¬ rl.last ∈ rl0, ¬ rl.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), rl.last ∈ qrl ∨ rl.last ∈ rl, 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = rl.last, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦ |
rl0 + phead1 ' + orl1 = qrl + rl.butlast, ps0[rl.last].deqID = None, vs0[rl.last].deqID = None, ps0[phead1].deqID = None, vs0[rl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ rl.last, pretRefs0(tid) ≠ null, rl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ rl.last ∈ orl1, ¬ rl.last ∈ rl0, ¬ rl.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = rl.last, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦
Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ y ≠ [] → (x + y).butlast = x + y.butlast; (s)
| rl0 + phead1 ' + orl1 = qrl + rl.butlast, ps0[rl.last].deqID = None, vs0[rl.last].deqID = None, ps0[phead1].deqID = None, vs0[rl.last].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ rl.last, pretRefs0(tid) ≠ null, rl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + rl, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, vhead0 ∈ orl + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ rl.last ∈ orl1, ¬ rl.last ∈ rl0, ¬ rl.last ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = rl.last, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦ |
rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl = qrl0 + vtail0 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, rl ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl, vtail0, y
| rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl = qrl0 + vtail0 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, rl ≠ [], allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + rl, vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + rl, vs0), nonullRetRefs(orl + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + rl from vhead, (phead1 ' + orl1).last ∈ orl + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + rl from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦ |
rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(qrl0), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ x + a ' ≠ []; (s)
| rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(qrl0), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, 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), 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), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, 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) ⊦ |
⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl
rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(qrl0), ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦
rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, lst ∈ orl, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(qrl0), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ (orl from lst) + qrl + qrl0 + vtail0 ', ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: orl, qrl + qrl0 + vtail0 ', lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(qrl0), ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from lst, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦ |
rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), vtail ∈ qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + rl0 + orl1), ¬ dups(rl0), ¬ dups(orl1), ¬ dups(orl), ¬ dups(rl0 + orl1), ¬ dups(orl + rl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl1, ¬ phead1 ∈ orl1, ¬ lst ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ (phead1 ' + orl1).last ∈ qrl from lst, ¬ (phead1 ' + orl1).last ∈ 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), 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), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦
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 ∈ b ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ r ∈ rl → rl from r = []; (s) ⊦ r ∈ rl from r0 → r ∈ rl; (ss) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s)
| rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), vtail ∈ qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + rl0 + orl1), ¬ dups(rl0), ¬ dups(orl1), ¬ dups(orl), ¬ dups(rl0 + orl1), ¬ dups(orl + rl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl1, ¬ phead1 ∈ orl1, ¬ lst ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ (phead1 ' + orl1).last ∈ qrl from lst, ¬ (phead1 ' + orl1).last ∈ 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), 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), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ |
rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = vhead1 + qrl1, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, qrl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), lst ∈ ps, lst ∈ vs, lst ∈ qrl, pretRefs0(tid) ∈ vrvHp, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + rl0 + orl1), ¬ dups(rl0), ¬ dups(orl1), ¬ dups(orl), ¬ dups(rl0 + orl1), ¬ dups(orl + rl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl1, ¬ phead1 ∈ orl1, ¬ lst ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ (phead1 ' + orl1).last ∈ qrl from lst, ¬ (phead1 ' + orl1).last ∈ qrl0, 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), 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), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl1, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦
Used simplifier rules: ⊦ [] + x = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ [] from r = []; (s) ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, vhead1, y
| rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = vhead1 + qrl1, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, qrl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl, ps), lst ∈ ps, lst ∈ vs, lst ∈ qrl, pretRefs0(tid) ∈ vrvHp, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + rl0 + orl1), ¬ dups(rl0), ¬ dups(orl1), ¬ dups(orl), ¬ dups(rl0 + orl1), ¬ dups(orl + rl0), ¬ vtail0 ∈ orl, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl1, ¬ phead1 ∈ orl1, ¬ lst ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ (phead1 ' + orl1).last ∈ qrl from lst, ¬ (phead1 ' + orl1).last ∈ qrl0, 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), 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), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl1, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ |
rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, (phead1 ' + orl1).last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + qrl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ (phead1 ' + orl1).last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ (phead1 ' + orl1).last ∈ qrl0, 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), 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), orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, lst = vhead1 ∨ lst ∈ qrl1, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a + x = a ' + x; (s) ⊦ a ' + x ≠ []; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s)
| rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, (phead1 ' + orl1).last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + qrl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ (phead1 ' + orl1).last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ (phead1 ' + orl1).last ∈ qrl0, 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), 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), orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, lst = vhead1 ∨ lst ∈ qrl1, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1 ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, ps[vhead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, orl1 = [], pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl1, ps), unmarkedp(orl1, ps0), vtail ∈ vhead1 ' + qrl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ (phead1 ' + orl1).last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ (phead1 ' + orl1).last ∈ 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), 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), vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), lst = vhead1 ∨ lst ∈ qrl1, vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs) ⊦
rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, ps[vhead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl1 ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl1, ps), unmarkedp(orl1, ps0), vtail ∈ vhead1 ' + qrl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, orl1.last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ orl1.last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ orl1.last ∈ 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), 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), vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), lst = vhead1 ∨ lst ∈ qrl1, vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs) ⊦
Used terms: phead1 ', orl1
| ⊦ y ≠ [] → (x + y).last = y.last |
| rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, ps[vhead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, orl1 = [], pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl1, ps), unmarkedp(orl1, ps0), vtail ∈ vhead1 ' + qrl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ (phead1 ' + orl1).last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ (phead1 ' + orl1).last ∈ 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), 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), vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), lst = vhead1 ∨ lst ∈ qrl1, vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs) ⊦ |
rl0 + phead1 ' = vhead1 ' + qrl1, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, lst ≠ vhead1, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + qrl1 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + vhead1 ' + qrl1 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + vhead1 ' + qrl1 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl1, ps), vtail ∈ qrl1 from lst, lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, phead1 ∈ orl + vhead1 ' + qrl1 + vtail0 ' from vtail, lst ∈ qrl1, vhead0 ∈ orl + vhead1 ' + qrl1 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(rl0), ¬ dups(orl + rl0), ¬ dups(orl + qrl1), ¬ phead1 ∈ qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ lst ∈ orl, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, 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), 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), vtail = qrl1.last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[qrl1.last].deqID = None ∧ vs[qrl1.last].next = null, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 = vtail0, vhead1 ∈ rl0 ∨ vhead1 = phead1, phead1 = vhead1 ∨ phead1 ∈ qrl1, orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs) ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ ¬ dups([]); (s) ⊦ ¬ a ∈ []; (s) ⊦ [] + x = x; (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ x + [] = x; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] ni: ⊦ x + a ' = y + z ∧ ¬ a ∈ z → z = []; (forward) from specification list[reflist] ⊦ unmarkedp([], vs); (s) ⊦ a '.last = a; (s)
| rl0 + phead1 ' = vhead1 ' + qrl1, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, lst ≠ vhead1, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + qrl1 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + vhead1 ' + qrl1 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + vhead1 ' + qrl1 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl1, ps), vtail ∈ qrl1 from lst, lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, phead1 ∈ orl + vhead1 ' + qrl1 + vtail0 ' from vtail, lst ∈ qrl1, vhead0 ∈ orl + vhead1 ' + qrl1 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(rl0), ¬ dups(orl + rl0), ¬ dups(orl + qrl1), ¬ phead1 ∈ qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ lst ∈ orl, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, 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), 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), vtail = qrl1.last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[qrl1.last].deqID = None ∧ vs[qrl1.last].next = null, phead0 ∈ orl ∨ phead0 ∈ rl0, (orl + rl0).last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 = vtail0, vhead1 ∈ rl0 ∨ vhead1 = phead1, phead1 = vhead1 ∨ phead1 ∈ qrl1, orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs) ⊦ |
Used simplifier rules: reflist freely generated by [], +;; ⊦ a ' + x = b ' + y ↔ a = b ∧ x = y; (ws) ⊦ x + a ' + y ≠ []; (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ (x + a ' + y).butlast = x + (a ' + y).butlast; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ a + x = a ' + x; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] list-elem-in-app22: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ ps; (forward) from specification DMSQ list-elem-in-app21: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ vs; (forward) from specification DMSQ a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r ' from r0 = (r = r0 ⊃ r ';[]); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ' = b ' + x ↔ a = b ∧ x = []; (ws) ⊦ markedp([], vs); (s) ⊦ ¬ dups([]); (s) list-elem-in-app12: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ ps; (forward) from specification DMSQ list-elem-in-app11: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ vs; (forward) from specification DMSQ ⊦ x + [] = x; (s) ⊦ unmarkedp([], vs); (s) ⊦ [] + x = x; (s) ⊦ ¬ a ∈ []; (s)
| rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, ps[vhead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl1 ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl1, ps), unmarkedp(orl1, ps0), vtail ∈ vhead1 ' + qrl1 from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, orl1.last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ orl1.last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ orl1.last ∈ 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), 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), vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), lst = vhead1 ∨ lst ∈ qrl1, vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs) ⊦ |
rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl0 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl1 ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, orl1.last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + qrl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ orl1.last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ orl1.last ∈ qrl0, 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), 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), orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, lst = vhead1 ∨ lst ∈ qrl1, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1 ⊦
rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl0 = phead2 + rl, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl1 ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, orl1.last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + qrl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ orl1.last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ orl1.last ∈ qrl0, 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), 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), orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, lst = vhead1 ∨ lst ∈ qrl1, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1 ⊦
Used simplifier rules: reflist freely generated by [], +;;
| rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl0 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl1 ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, orl1.last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + qrl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ orl1.last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ orl1.last ∈ qrl0, 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), 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), orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, lst = vhead1 ∨ lst ∈ qrl1, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1 ⊦ |
ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[vhead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl1 + qrl0 ≠ [], ps[ps[first].next].deqID ≠ None, (qrl1 + qrl0).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead1 ≠ vtail0, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(orl, ps0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl1, ps), unmarkedp(qrl1, ps0), unmarkedp(qrl0, ps0), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, (qrl1 + qrl0).last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + qrl1 from lst, phead0 ∈ ps0, phead0 ∈ vs0, phead0 ∈ ps, phead0 ∈ vs, phead0 ∈ orl, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + qrl1 + qrl0), ¬ dups(orl), ¬ dups(qrl1 + qrl0), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ dups(qrl1), ¬ lst ∈ orl, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl from first, ¬ (qrl1 + qrl0).last ∈ vhead1 ' + qrl1 from lst, ¬ (qrl1 + qrl0).last ∈ qrl0, ¬ vhead1 ∈ qrl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ qrl1, ¬ vhead1 ∈ qrl0, ¬ phead0 ∈ qrl1, 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), 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), orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, lst = vhead1 ∨ lst ∈ qrl1, orl.last = vhead0 ∧ unmarkedp(qrl1, vs0) ∧ unmarkedp(qrl0, vs0) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead0 ∧ phead0 ≠ orl.last ∧ vs0[vhead1].deqID = None ∧ unmarkedp(qrl1, vs0) ∧ unmarkedp(qrl0, vs0), phead0 ∈ qrl0 ∨ phead0 ∈ orl from phead ⊦
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 ∈ x ∧ a ∈ y → dups(x + y); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) 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 ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ [] + x = x; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s) ⊦ a ' + x = b ' + y ↔ a = b ∧ x = y; (ws)
| ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[vhead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl1 + qrl0 ≠ [], ps[ps[first].next].deqID ≠ None, (qrl1 + qrl0).last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead1 ≠ vtail0, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(orl, ps0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl1, ps), unmarkedp(qrl1, ps0), unmarkedp(qrl0, ps0), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, (qrl1 + qrl0).last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + qrl1 from lst, phead0 ∈ ps0, phead0 ∈ vs0, phead0 ∈ ps, phead0 ∈ vs, phead0 ∈ orl, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + qrl1 + qrl0), ¬ dups(orl), ¬ dups(qrl1 + qrl0), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ dups(qrl1), ¬ lst ∈ orl, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl from first, ¬ (qrl1 + qrl0).last ∈ vhead1 ' + qrl1 from lst, ¬ (qrl1 + qrl0).last ∈ qrl0, ¬ vhead1 ∈ qrl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ qrl1, ¬ vhead1 ∈ qrl0, ¬ phead0 ∈ qrl1, 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), 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), orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, lst = vhead1 ∨ lst ∈ qrl1, orl.last = vhead0 ∧ unmarkedp(qrl1, vs0) ∧ unmarkedp(qrl0, vs0) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead0 ∧ phead0 ≠ orl.last ∧ vs0[vhead1].deqID = None ∧ unmarkedp(qrl1, vs0) ∧ unmarkedp(qrl0, vs0), phead0 ∈ qrl0 ∨ phead0 ∈ orl from phead ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ [] + x = x; (s) ⊦ ¬ dups([]); (s) ⊦ x + [] = x; (s) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s) ⊦ unmarkedp([], vs); (s) ⊦ ¬ a ∈ []; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ rl.last ∈ rl from r ↔ r ∈ rl; (s) Used terms: qrl1, qrl0
| ⊦ y ≠ [] → (x + y).last = y.last |
| rl0 + phead1 ' + orl1 = (vhead1 ' + qrl1) + qrl0, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl0 = phead2 + rl, rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, orl ≠ [], orl1 ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(orl1, ps0), unmarkedp(qrl1, ps), lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, orl1.last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ vhead1 ' + qrl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl1), ¬ dups(orl), ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl1), ¬ dups(qrl0), ¬ orl1.last ∈ vhead1 ' + qrl1 from lst, ¬ lst ∈ orl from first, ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ qrl0, ¬ lst ∈ orl, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ vhead1 ∈ orl, ¬ vhead1 ∈ qrl1, ¬ orl1.last ∈ qrl0, 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), 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), orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = (vhead1 ' + qrl1).last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[(vhead1 ' + qrl1).last].deqID = None ∧ vs[(vhead1 ' + qrl1).last].next = null, lst = vhead1 ∨ lst ∈ qrl1, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, phead0 ∈ orl ∨ phead0 ∈ rl0, vhead1 ∈ rl0 ∨ vhead1 = phead1 ∨ vhead1 ∈ orl1 ⊦ |
rl + phead1 ' + orl1 = qrl1 + qrl0, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, lst ≠ vhead1, orl ≠ [], orl1 ≠ [], phead1 ≠ vhead1, phead1 ≠ vtail0, pretRefs0(tid) ≠ null, vtail0 ≠ vhead1, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl, ps0), markedp(orl, ps0), markedp(rl, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vhead1].deqID), some?(vs0[vhead1].deqID), unmarkedp(orl1, ps0), unmarkedp(qrl1, ps), lst ∈ qrl1, lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, orl1.last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ qrl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(orl + qrl1), ¬ dups(orl + rl + orl1), ¬ dups(qrl1), ¬ dups(rl), ¬ dups(orl1), ¬ dups(orl + rl), ¬ dups(rl + orl1), ¬ dups(orl), ¬ vhead1 ∈ orl1, ¬ vhead1 ∈ rl, ¬ orl1.last ∈ qrl0, ¬ vhead1 ∈ qrl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ rl, ¬ vtail0 ∈ orl1, ¬ phead1 ∈ orl1, ¬ lst ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ rl, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ orl1.last ∈ qrl1 from lst, 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), 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), phead0 ∈ orl from phead ∨ phead0 = vhead1 ∨ phead0 ∈ rl ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (vhead1 ' + rl).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ orl + (vhead1 ' + rl).butlast ≠ [] ∧ (orl + (vhead1 ' + rl).butlast).last = vhead0 ∧ phead0 ≠ (vhead1 ' + rl).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl ∨ phead0 = vhead1 ∨ phead0 ∈ rl, orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = qrl1.last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[qrl1.last].deqID = None ∧ vs[qrl1.last].next = null ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ x.last ∈ x ↔ x ≠ []; (s) notin-forward: ⊦ rl + rl0 = rl1 + rl2 + rl3 ∧ ¬ r ∈ rl ∧ ¬ r ∈ rl0 → ¬ r ∈ rl1 ∧ ¬ r ∈ rl2 ∧ ¬ r ∈ rl3; (forward) from specification DMSQ ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ a + x = a ' + x; (s) ⊦ (x + a ' + y).butlast = x + (a ' + y).butlast; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ 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) ⊦ x + a ' + y ≠ []; (s) ⊦ a ' + x = b ' + y ↔ a = b ∧ x = y; (ws)
| rl + phead1 ' + orl1 = qrl1 + qrl0, ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].deqID = None, ps0[phead1].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, orl1.last ≠ vtail0, ps[first].next ≠ null, first ≠ lst, lst ≠ vhead1, orl ≠ [], orl1 ≠ [], phead1 ≠ vhead1, phead1 ≠ vtail0, pretRefs0(tid) ≠ null, vtail0 ≠ vhead1, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + vhead1 ' + qrl1, vs, ps, vs0, ps0), listp(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, ps0, owns0), listp(orl + vhead1 ' + qrl1, vs, ps, owns), markedp(rl, ps0), markedp(orl, ps0), markedp(rl, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + vhead1 ' + qrl1, ps[first].next, vs), noidRely(tid, orl + vhead1 ' + qrl1, vs, orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + vhead1 ' + qrl1, vs, vretRefs, pretRefs), nonullRetRefs(orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[vhead1].deqID), some?(vs0[vhead1].deqID), unmarkedp(orl1, ps0), unmarkedp(qrl1, ps), lst ∈ qrl1, lst ∈ ps, lst ∈ vs, pretRefs0(tid) ∈ vrvHp, orl1.last ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vtail, vhead0 ∈ orl + (vhead1 ' + qrl1) + qrl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ qrl1 from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(orl + qrl1), ¬ dups(orl + rl + orl1), ¬ dups(qrl1), ¬ dups(rl), ¬ dups(orl1), ¬ dups(orl + rl), ¬ dups(rl + orl1), ¬ dups(orl), ¬ vhead1 ∈ orl1, ¬ vhead1 ∈ rl, ¬ orl1.last ∈ qrl0, ¬ vhead1 ∈ qrl1, ¬ vhead1 ∈ orl, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ rl, ¬ vtail0 ∈ orl1, ¬ phead1 ∈ orl1, ¬ lst ∈ orl, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ rl, ¬ phead1 ∈ orl, ¬ lst ∈ orl from first, ¬ orl1.last ∈ qrl1 from lst, 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), 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), phead0 ∈ orl from phead ∨ phead0 = vhead1 ∨ phead0 ∈ rl ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (vhead1 ' + rl).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ orl + (vhead1 ' + rl).butlast ≠ [] ∧ (orl + (vhead1 ' + rl).butlast).last = vhead0 ∧ phead0 ≠ (vhead1 ' + rl).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), phead0 ∈ orl ∨ phead0 = vhead1 ∨ phead0 ∈ rl, orl.last = vhead ∧ unmarkedp(qrl1, vs) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ vs[vhead1].deqID = None ∧ unmarkedp(qrl1, vs), vtail = qrl1.last ∨ vtail = (orl + (vhead1 ' + qrl1).butlast).last ∧ vs[qrl1.last].deqID = None ∧ vs[qrl1.last].next = null ⊦ |
Used simplifier rules: ⊦ x + a ' ≠ []; (s) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ni: ⊦ x + a ' = y + z ∧ ¬ a ∈ z → z = []; (forward) from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ x + [] = x; (s) ⊦ [] + x = x; (s) ⊦ ¬ dups([]); (s) ⊦ ¬ a ∈ []; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] list-elem-in-app22: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ ps; (forward) from specification DMSQ list-elem-in-app21: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ vs; (forward) from specification DMSQ ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ r ' from r0 = (r = r0 ⊃ r ';[]); (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' ↔ a = b; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: orl1, lst0, y
| rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, lst ∈ orl, dom prvHp ⊆ dom prvHp0, ¬ dups(orl + rl0), ¬ dups(rl0 + orl1), ¬ dups(orl), ¬ dups(orl1), ¬ dups(rl0), ¬ dups(orl + rl0 + orl1), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(qrl0), ¬ phead1 ∈ orl1, ¬ vtail0 ∈ orl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl, ¬ (phead1 ' + orl1).last ∈ (orl from lst) + qrl + qrl0 + vtail0 ', ¬ phead1 ∈ orl, ¬ phead1 ∈ rl0, ¬ vtail0 ∈ 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), 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, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0) ⊦ |
rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, (phead1 ' + orl1).last ≠ phead1, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, pretRefs0(tid) ∈ vrvHp, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, lst ∈ orl, lst ∈ orl from first, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + rl0 + orl1), ¬ dups(rl0), ¬ dups(orl1), ¬ dups(orl), ¬ dups(rl0 + orl1), ¬ dups(orl + rl0), ¬ (phead1 ' + orl1).last ∈ rl0, ¬ (phead1 ' + orl1).last ∈ qrl0, ¬ (phead1 ' + orl1).last ∈ qrl, ¬ (phead1 ' + orl1).last ∈ orl from lst, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl1, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl1, ¬ lst ∈ qrl, 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), 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), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), vtail ∈ orl from lst ∨ vtail ∈ qrl, orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x ∧ a ∈ y → dups(x + y); (s) ⊦ a ∈ b ' ↔ a = b; (s) 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 notin-forward: ⊦ rl + rl0 = rl1 + rl2 + rl3 ∧ ¬ r ∈ rl ∧ ¬ r ∈ rl0 → ¬ r ∈ rl1 ∧ ¬ r ∈ rl2 ∧ ¬ r ∈ rl3; (forward) from specification DMSQ ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s)
| rl0 + phead1 ' + orl1 = qrl + qrl0, ps0[phead1].deqID = None, vs0[vtail0].deqID = None, ps0[vtail0].deqID = None, vs0[vtail0].next = null, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, (phead1 ' + orl1).last ≠ vtail0, (phead1 ' + orl1).last ≠ phead1, ps[first].next ≠ null, first ≠ lst, orl ≠ [], phead1 ≠ vtail0, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp(orl + qrl + qrl0 + vtail0 ', vs0, ps0, owns0), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, orl + qrl + qrl0 + vtail0 ', vs0), nonullRetRefs(orl + qrl + qrl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(orl1, ps0), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, pretRefs0(tid) ∈ vrvHp, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ orl + qrl + qrl0 + vtail0 ' from vhead, (phead1 ' + orl1).last ∈ orl + qrl + qrl0 + vtail0 ' from vtail, lst ∈ orl, lst ∈ orl from first, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups(orl + rl0 + orl1), ¬ dups(rl0), ¬ dups(orl1), ¬ dups(orl), ¬ dups(rl0 + orl1), ¬ dups(orl + rl0), ¬ (phead1 ' + orl1).last ∈ rl0, ¬ (phead1 ' + orl1).last ∈ qrl0, ¬ (phead1 ' + orl1).last ∈ qrl, ¬ (phead1 ' + orl1).last ∈ orl from lst, ¬ vtail0 ∈ orl, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ orl1, ¬ phead1 ∈ orl1, ¬ vtail0 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl, ¬ (phead1 ' + orl1).last ∈ orl1, ¬ lst ∈ qrl, 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), 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), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 = phead1 ∨ phead0 ∈ orl1 ∨ phead0 = vtail0, (orl + rl0).last = vhead0 ∧ unmarkedp(orl1, vs0) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ vs0[phead1].deqID = None ∧ unmarkedp(orl1, vs0), vtail ∈ orl from lst ∨ vtail ∈ qrl, orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
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: phead1 ', orl1
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ lst ∈ orl from first, ¬ lst ∈ rl0, ¬ lst ∈ 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ lst ∈ orl from first, ¬ lst ∈ rl0, ¬ lst ∈ qrl0, 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), 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), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦
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
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ lst ∈ orl from first, ¬ lst ∈ rl0, ¬ lst ∈ qrl0, 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), 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), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦ |
Used simplifier rules: ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ a ' + x ≠ []; (s) ⊦ a + x = a ' + x; (s) notin-forward: ⊦ rl + rl0 = rl1 + rl2 + rl3 ∧ ¬ r ∈ rl ∧ ¬ r ∈ rl0 → ¬ r ∈ rl1 ∧ ¬ r ∈ rl2 ∧ ¬ r ∈ rl3; (forward) from specification DMSQ in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' ↔ a = b; (s) ⊦ [] + x = x; (s) ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, vtail1, y
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
⊦ equalrl(rl, vs, ps, vs0, ps0) ↔ (∀ r. r ∈ rl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ (vs[rl.last].next ≠ null → vs0[rl.last].next = vs[rl.last].next ∧ vs0[vs0[rl.last].next].val = vs[vs0[rl.last].next].val))
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), ∀ r. r ∈ orl + qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
Used terms: ps, orl + qrl, ps0, vs0, vs
| ⊦ equalrl(rl, vs, ps, vs0, ps0) ↔ (∀ r. r ∈ rl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ (vs[rl.last].next ≠ null → vs0[rl.last].next = vs[rl.last].next ∧ vs0[vs0[rl.last].next].val = vs[vs0[rl.last].next].val)) |
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), ∀ r. r ∈ orl + qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s)
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + 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), 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), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), ps[first].next ∈ orl ∨ ps[first].next ∈ qrl → vs[ps[first].next].val = vs0[ps[first].next].val ∧ ps[ps[first].next].val = ps0[ps[first].next].val ∧ (vs[ps[first].next].deqID ≠ None → vs0[ps[first].next].deqID = vs[ps[first].next].deqID) ∧ (ps[ps[first].next].deqID ≠ None → ps0[ps[first].next].deqID = ps[ps[first].next].deqID) ∧ (vs[ps[first].next].next ≠ null → vs0[ps[first].next].next = vs[ps[first].next].next) ∧ (ps[ps[first].next].next ≠ null → ps0[ps[first].next].next = ps[ps[first].next].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
Used terms: ps[first].next
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), 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), 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), ps[first].next ∈ orl ∨ ps[first].next ∈ qrl → vs[ps[first].next].val = vs0[ps[first].next].val ∧ ps[ps[first].next].val = ps0[ps[first].next].val ∧ (vs[ps[first].next].deqID ≠ None → vs0[ps[first].next].deqID = vs[ps[first].next].deqID) ∧ (ps[ps[first].next].deqID ≠ None → ps0[ps[first].next].deqID = ps[ps[first].next].deqID) ∧ (vs[ps[first].next].next ≠ null → vs0[ps[first].next].next = vs[ps[first].next].next) ∧ (ps[ps[first].next].next ≠ null → ps0[ps[first].next].next = ps[ps[first].next].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ ps[first].next ∈ orl, ¬ ps[first].next ∈ qrl, 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), 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), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ ps[first].next ∈ orl, ¬ ps[first].next ∈ qrl, 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), 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), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
⊦ listp(rl + rl0, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2 + rl0, vs, ps, owns))
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ ps[first].next ∈ orl, ¬ ps[first].next ∈ 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), 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), listp(orl + qrl, vs, ps, owns) ∧ first ∈ orl → (∃ rl1, rl2. orl = rl1 + first ' + rl2 ∧ listp(first ' + rl2 + qrl, vs, ps, owns)), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
Used terms: ps, orl, owns, first, qrl, vs
| ⊦ listp(rl + rl0, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2 + rl0, vs, ps, owns)) |
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, vhead0 ∈ (orl + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ ps[first].next ∈ orl, ¬ ps[first].next ∈ 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), 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), listp(orl + qrl, vs, ps, owns) ∧ first ∈ orl → (∃ rl1, rl2. orl = rl1 + first ' + rl2 ∧ listp(first ' + rl2 + qrl, vs, ps, owns)), ∀ r. r ∈ orl ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(orl + qrl).last].next ≠ null → vs0[(orl + qrl).last].next = vs[(orl + qrl).last].next ∧ vs0[vs0[(orl + qrl).last].next].val = vs[vs0[(orl + qrl).last].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.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), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ first, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, ps0, owns0), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(first ' + rl2 + qrl, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, ps[first].next, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, ((rl1 + first ' + rl2) + rl0) + qrl0, vs0), nonullRetRefs(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (rl1 + first ' + rl2) + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ ps[first].next ∈ rl2, ¬ ps[first].next ∈ rl1, ¬ ps[first].next ∈ qrl, 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), 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), ∀ r. r ∈ rl1 ∨ r = first ∨ r ∈ rl2 ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(first ' + rl2 + qrl).last].next ≠ null → vs0[(first ' + rl2 + qrl).last].next = vs[(first ' + rl2 + qrl).last].next ∧ vs0[vs0[(first ' + rl2 + qrl).last].next].val = vs[vs0[(first ' + rl2 + qrl).last].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ unmarkedp(qrl0, vs0), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail0 = (first ' + rl2 + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦
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 ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (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)
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ first, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, ps0, owns0), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(first ' + rl2 + qrl, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, ps[first].next, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, ((rl1 + first ' + rl2) + rl0) + qrl0, vs0), nonullRetRefs(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (rl1 + first ' + rl2) + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ ps[first].next ∈ rl2, ¬ ps[first].next ∈ rl1, ¬ ps[first].next ∈ qrl, 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), 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), ∀ r. r ∈ rl1 ∨ r = first ∨ r ∈ rl2 ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(first ' + rl2 + qrl).last].next ≠ null → vs0[(first ' + rl2 + qrl).last].next = vs[(first ' + rl2 + qrl).last].next ∧ vs0[vs0[(first ' + rl2 + qrl).last].next].val = vs[vs0[(first ' + rl2 + qrl).last].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ unmarkedp(qrl0, vs0), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail0 = (first ' + rl2 + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl2 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ first, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(first ' + rl2 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, ps[first].next, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, ((rl1 + first ' + rl2) + rl0) + qrl0, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (rl1 + first ' + rl2) + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ ps[first].next ∈ rl2, ¬ ps[first].next ∈ rl1, ¬ ps[first].next ∈ 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), 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), ∀ r. r ∈ rl1 ∨ r = first ∨ r ∈ rl2 ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(first ' + rl2 + qrl).last].next ≠ null → vs0[(first ' + rl2 + qrl).last].next = vs[(first ' + rl2 + qrl).last].next ∧ vs0[vs0[(first ' + rl2 + qrl).last].next].val = vs[vs0[(first ' + rl2 + qrl).last].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (first ' + rl2 + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), (first ' + rl2 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦
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) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (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]
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl2 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ first, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(first ' + rl2 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, ps[first].next, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, ((rl1 + first ' + rl2) + rl0) + qrl0, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((rl1 + first ' + rl2) + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (rl1 + first ' + rl2) + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ ps[first].next ∈ rl2, ¬ ps[first].next ∈ rl1, ¬ ps[first].next ∈ 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), 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), ∀ r. r ∈ rl1 ∨ r = first ∨ r ∈ rl2 ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ ( vs[(first ' + rl2 + qrl).last].next ≠ null → vs0[(first ' + rl2 + qrl).last].next = vs[(first ' + rl2 + qrl).last].next ∧ vs0[vs0[(first ' + rl2 + qrl).last].next].val = vs[vs0[(first ' + rl2 + qrl).last].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (first ' + rl2 + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), (first ' + rl2 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ unmarkedp(qrl0, vs0) ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ first, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(rl1 + first ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + qrl, vs, ps, owns), listp(first ' + qrl, vs, ps, owns), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl1, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + qrl, ps[first].next, vs), noidRely(tid, rl1 + first ' + qrl, vs, rl1 + first ' + rl0 + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl0 + qrl0 from vhead, vtail0 ∈ rl1 + first ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl1, ¬ ps[first].next ∈ rl1, ¬ ps[first].next ∈ qrl, 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), 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), ∀ r. r ∈ rl1 ∨ r = first ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ (vs[qrl.last].next ≠ null → vs0[qrl.last].next = vs[qrl.last].next ∧ vs0[vs0[qrl.last].next].val = vs[vs0[qrl.last].next].val), (first ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl0).last ∧ unmarkedp(qrl0, vs0), first = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 ≠ [] ∧ rl1.last = vhead ∧ phead ≠ first ∧ unmarkedp(qrl, vs), vtail0 = (first ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = qrl.last ∨ qrl ≠ [] ∧ vtail = (first ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦
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) ⊦ [] + x = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ x + [] = x; (s) ⊦ a '.last = a; (s) ⊦ a '.butlast = []; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s)
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ first, ps[first].next ≠ null, vs[ps[first].next].val ≠ vs0[ps[first].next].val, first ≠ lst, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), listp(rl1 + first ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + qrl, vs, ps, owns), listp(first ' + qrl, vs, ps, owns), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl1, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + qrl, ps[first].next, vs), noidRely(tid, rl1 + first ' + qrl, vs, rl1 + first ' + rl0 + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl0 + qrl0 from vhead, vtail0 ∈ rl1 + first ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl1, ¬ ps[first].next ∈ rl1, ¬ ps[first].next ∈ qrl, 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), 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), ∀ r. r ∈ rl1 ∨ r = first ∨ r ∈ qrl → vs[r].val = vs0[r].val ∧ ps[r].val = ps0[r].val ∧ (vs[r].deqID ≠ None → vs0[r].deqID = vs[r].deqID) ∧ (ps[r].deqID ≠ None → ps0[r].deqID = ps[r].deqID) ∧ (vs[r].next ≠ null → vs0[r].next = vs[r].next) ∧ (ps[r].next ≠ null → ps0[r].next = ps[r].next) ∧ (vs[qrl.last].next ≠ null → vs0[qrl.last].next = vs[qrl.last].next ∧ vs0[vs0[qrl.last].next].val = vs[vs0[qrl.last].next].val), (first ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl0).last ∧ unmarkedp(qrl0, vs0), first = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 ≠ [] ∧ rl1.last = vhead ∧ phead ≠ first ∧ unmarkedp(qrl, vs), vtail0 = (first ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = qrl.last ∨ qrl ≠ [] ∧ vtail = (first ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦ |
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) ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, phead1, y
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vhead0 ∈ (orl + rl0) + qrl0 from vhead, vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, vhead0, vs0), 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), 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 + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), 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, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, first, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, first, vs), ¬ nextnottid(tid, vhead0, vs0), 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), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl from first ∨ lst ∈ qrl, orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ nextnottidRely(tid, vhead, vs, vhead0, vs0) ∧ nextnottid(tid, vhead, vs) → nextnottid(tid, vhead0, vs0); (ss)
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), nextnottidRely(tid, first, vs, vhead0, vs0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, first, vs), ¬ nextnottid(tid, vhead0, vs0), 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), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl from first ∨ lst ∈ qrl, orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦ |
⊦ nextnottidRely(tid, vhead, vs, vhead0, vs0) ↔ nextnottid(tid, vhead, vs) → nextnottid(tid, vhead0, vs0)
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, first, vs), ¬ nextnottid(tid, vhead0, vs0), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), 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), nextnottid(tid, first, vs) → nextnottid(tid, vhead0, vs0), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), lst ∈ orl from first ∨ lst ∈ qrl, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
Used terms: first, vhead0, tid, vs0, vs
| ⊦ nextnottidRely(tid, vhead, vs, vhead0, vs0) ↔ nextnottid(tid, vhead, vs) → nextnottid(tid, vhead0, vs0) |
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, first, vs), ¬ nextnottid(tid, vhead0, vs0), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), 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), nextnottid(tid, first, vs) → nextnottid(tid, vhead0, vs0), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), lst ∈ orl from first ∨ lst ∈ qrl, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, first, vs), ¬ nextnottid(tid, vhead0, vs0), 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), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl from first ∨ lst ∈ qrl, orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦
| qrl + rl = rl0 + qrl0, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, first, vs), ¬ nextnottid(tid, vhead0, vs0), 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), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl from first ∨ lst ∈ qrl, orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦ |
⊦ nextnottid(tid, vhead, vs) ↔ vs[vhead].next ≠ null → vs[vs[vhead].next].deqID ≠ Some(tid)
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, first, vs), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), 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), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), lst ∈ orl from first ∨ lst ∈ qrl, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
Used terms: tid, vhead0, vs0
| ⊦ nextnottid(tid, vhead, vs) ↔ vs[vhead].next ≠ null → vs[vs[vhead].next].deqID ≠ Some(tid) |
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(rl0 + qrl0), ¬ dups(orl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(orl + qrl), ¬ dups((orl + rl0) + qrl0), ¬ nextnottid(tid, first, vs), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), 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), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), lst ∈ orl from first ∨ lst ∈ qrl, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), lst ∈ orl from first ∨ lst ∈ qrl, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦
Used simplifier rules: ⊦ Some(tid).tid = tid; (s) ⊦ None ≠ Some(tid); (s)
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp((orl + rl0) + qrl0, vs0, ps0, owns0), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), markedp(orl, vs0), markedp(rl0, vs0), markedp(orl, ps0), markedp(rl0, ps0), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ (orl + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ orl + qrl from lst, first ∈ orl, phead ∈ orl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), orl.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = first ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), lst ∈ orl from first ∨ lst ∈ qrl, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead0 ∈ orl ∨ phead0 ∈ rl0 ⊦ |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, orl = orl0 + phead1 ', pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: orl, phead1, y
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, orl = orl0 + phead1 ', pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, orl ≠ [], pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(orl + qrl, vs, ps, vs0, ps0), listp(orl + qrl, vs, ps, owns), listp((orl + rl0) + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl, ps0), markedp(rl0, vs0), markedp(orl, vs0), markedp(orl, ps), markedp(orl, vs), noid(tid, orl + qrl, ps[first].next, vs), noidRely(tid, orl + qrl, vs, (orl + rl0) + qrl0, vs0), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), nonullRetRefs((orl + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, phead ∈ orl, first ∈ orl, vtail ∈ orl + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ (orl + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl ∨ phead0 ∈ rl0, phead0 ∈ orl from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((orl + rl0) + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((orl + rl0) + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst ∈ orl from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), (orl + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ∧ phead0 ≠ (orl + rl0).last ∧ unmarkedp(qrl0, vs0), vhead0 ∈ orl from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦ |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), noidRely(tid, (orl0 + phead1 ') + qrl, vs, ((orl0 + phead1 ') + rl0) + qrl0, vs0), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦
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 ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ (x + a ' + y).butlast = x + (a ' + y).butlast; (s) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + 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) ⊦ x + a ' + y ≠ []; (s)
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), noidRely(tid, (orl0 + phead1 ') + qrl, vs, ((orl0 + phead1 ') + rl0) + qrl0, vs0), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦ |
⊦ noidRely(tid, rl, vs, rl0, vs0) ↔ (∀ r. noid(tid, rl, r, vs) → noid(tid, rl0, r, vs0))
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), ∀ r. noid(tid, (orl0 + phead1 ') + qrl, r, vs) → noid(tid, ((orl0 + phead1 ') + rl0) + qrl0, r, vs0), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦
Used terms: (orl0 + phead1 ') + qrl, tid, vs0, ((orl0 + phead1 ') + rl0) + qrl0, vs
| ⊦ noidRely(tid, rl, vs, rl0, vs0) ↔ (∀ r. noid(tid, rl, r, vs) → noid(tid, rl0, r, vs0)) |
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), ∀ r. noid(tid, (orl0 + phead1 ') + qrl, r, vs) → noid(tid, ((orl0 + phead1 ') + rl0) + qrl0, r, vs0), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦ |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs) → noid(tid, ((orl0 + phead1 ') + rl0) + qrl0, ps[first].next, vs0), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦
Used terms: ps[first].next
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs) → noid(tid, ((orl0 + phead1 ') + rl0) + qrl0, ps[first].next, vs0), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦ |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), noid(tid, ((orl0 + phead1 ') + rl0) + qrl0, ps[first].next, vs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist]
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), noid(tid, ((orl0 + phead1 ') + rl0) + qrl0, ps[first].next, vs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦ |
⊦ noid(tid, rl, r, vs) ↔ (∀ r0. r0 ≠ r ∧ r0 ∈ rl from r → vs[r0].deqID ≠ Some(tid))
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), ∀ r0. r0 ≠ ps[first].next ∧ r0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next → vs0[r0].deqID ≠ Some(tid), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦
Used terms: tid, ((orl0 + phead1 ') + rl0) + qrl0, ps[first].next, vs0
| ⊦ noid(tid, rl, r, vs) ↔ (∀ r0. r0 ≠ r ∧ r0 ∈ rl from r → vs[r0].deqID ≠ Some(tid)) |
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), ∀ r0. r0 ≠ ps[first].next ∧ r0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next → vs0[r0].deqID ≠ Some(tid), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦ |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next → vs0[vs0[vhead0].next].deqID ≠ Some(tid), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦
Used terms: vs0[vhead0].next
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next → vs0[vs0[vhead0].next].deqID ≠ Some(tid), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦ |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next |
⊦ listp(rl + rl0, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2 + rl0, vs, ps, owns))
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), listp((orl0 + phead1 ') + rl0 + qrl0, vs0, ps0, owns0) ∧ first ∈ orl0 + phead1 ' → (∃ rl1, rl2. orl0 + phead1 ' = rl1 + first ' + rl2 ∧ listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0)), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next
Used terms: ps0, orl0 + phead1 ', owns0, first, rl0 + qrl0, vs0
| ⊦ listp(rl + rl0, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2 + rl0, vs, ps, owns)) |
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(orl0 + rl0 + qrl0), ¬ dups(orl0 + qrl), ¬ dups(rl), ¬ dups(orl0), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(orl0 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ orl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), listp((orl0 + phead1 ') + rl0 + qrl0, vs0, ps0, owns0) ∧ first ∈ orl0 + phead1 ' → (∃ rl1, rl2. orl0 + phead1 ' = rl1 + first ' + rl2 ∧ listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0)), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next |
orl0 + phead1 ' = rl1 + first ' + rl2, qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(orl0 + rl0), ¬ dups(rl0 + qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(orl0), ¬ dups(rl), ¬ dups(orl0 + qrl), ¬ dups(orl0 + rl0 + qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ qrl, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 ∈ rl1 ∨ phead1 = first ∨ phead1 ∈ rl2 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] ⊦ a ∈ b ' ↔ a = b; (s)
| orl0 + phead1 ' = rl1 + first ' + rl2, qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(rl0, vs0), markedp(orl0, vs0), markedp(orl0, ps), markedp(orl0, vs), markedp(rl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), some?(ps[phead1].deqID), some?(vs[phead1].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ (orl0 + phead1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(orl0 + rl0), ¬ dups(rl0 + qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(orl0), ¬ dups(rl), ¬ dups(orl0 + qrl), ¬ dups(orl0 + rl0 + qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ qrl, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ orl0 ∨ phead = phead1, first ∈ orl0 ∨ first = phead1, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 ∈ rl1 ∨ phead1 = first ∨ phead1 ∈ rl2 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next |
y ≠ [] ⊦ x + a ' = y ↔ x = y.butlast ∧ a = y.last
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, orl0 = (rl1 + first ' + rl2).butlast, phead1 = (rl1 + first ' + rl2).last, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl1 + first ' + rl2 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(orl0 + rl0), ¬ dups(rl0 + qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(orl0), ¬ dups(rl), ¬ dups(orl0 + qrl), ¬ dups(orl0 + rl0 + qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ qrl, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead1 ∈ rl1 ∨ phead1 = first ∨ phead1 ∈ rl2, vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next
Used simplifier rules: ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ a ' + x ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: orl0, phead1, rl1 + first ' + rl2
| y ≠ [] ⊦ x + a ' = y ↔ x = y.butlast ∧ a = y.last |
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, orl0 = (rl1 + first ' + rl2).butlast, phead1 = (rl1 + first ' + rl2).last, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl1 + first ' + rl2 ≠ [], ps[ps[first].next].deqID ≠ None, ps[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl((orl0 + phead1 ') + qrl, vs, ps, vs0, ps0), listp(((orl0 + phead1 ') + rl0) + qrl0, vs0, ps0, owns0), listp((orl0 + phead1 ') + qrl, vs, ps, owns), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(orl0, vs), markedp(orl0, ps), markedp(orl0, vs0), markedp(rl0, vs0), markedp(orl0, ps0), noid(tid, (orl0 + phead1 ') + qrl, ps[first].next, vs), nonullRetRefs(((orl0 + phead1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs((orl0 + phead1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[phead1].deqID), some?(ps[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ ((orl0 + phead1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ (orl0 + phead1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(orl0 + rl0), ¬ dups(rl0 + qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(orl0), ¬ dups(rl), ¬ dups(orl0 + qrl), ¬ dups(orl0 + rl0 + qrl0), ¬ nextnottid(tid, first, vs), ¬ phead1 ∈ qrl, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl0, ¬ phead1 ∈ orl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead1 ∈ rl1 ∨ phead1 = first ∨ phead1 ∈ rl2, vhead0 ∈ orl0 + phead1 ' from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead1 = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl0 ≠ [] ∧ orl0.last = first ∧ phead ≠ phead1 ∧ unmarkedp(qrl, vs), lst ∈ orl0 + phead1 ' from first ∨ lst ∈ qrl, phead0 ∈ orl0 + phead1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ orl0 ∨ first = phead1, phead ∈ orl0 ∨ phead = phead1, (phead1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0 + (phead1 ' + rl0).butlast ≠ [] ∧ (orl0 + (phead1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (phead1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (phead1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (phead1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (phead1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ orl0 ∨ phead0 = phead1 ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ ((orl0 + phead1 ') + rl0) + qrl0 from ps[first].next |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp((first ' + rl2).butlast, vs), markedp(rl1, vs), markedp((first ' + rl2).butlast, ps), markedp(rl1, ps), markedp((first ' + rl2).butlast, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp((first ' + rl2).butlast, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[(first ' + rl2).last].deqID), some?(ps[(first ' + rl2).last].deqID), some?(vs0[(first ' + rl2).last].deqID), some?(ps0[(first ' + rl2).last].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + rl2 + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((first ' + rl2).butlast + qrl), ¬ dups(rl1 + (first ' + rl2).butlast + rl0), ¬ dups(rl1 + (first ' + rl2).butlast), ¬ dups((first ' + rl2).butlast + rl0 + qrl0), ¬ dups(rl1), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0 + qrl0), ¬ dups((rl1 + (first ' + rl2).butlast) + qrl), ¬ dups(rl), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0), ¬ dups((first ' + rl2).butlast), ¬ dups(rl0 + qrl0), ¬ dups((first ' + rl2).butlast + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), ¬ (first ' + rl2).last ∈ (first ' + rl2).butlast, ¬ (first ' + rl2).last ∈ rl1, ¬ (first ' + rl2).last ∈ rl0, ¬ (first ' + rl2).last ∈ qrl0, ¬ (first ' + rl2).last ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), (first ' + rl2).last = first ∨ (first ' + rl2).last ∈ rl2, vhead0 ∈ rl1 + first ' + rl2 from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (first ' + rl2).last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl1 + first ' + rl2 from first ∨ lst ∈ qrl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ rl1 ∨ first ∈ (first ' + rl2).butlast ∨ first = (first ' + rl2).last, phead ∈ rl1 ∨ phead ∈ (first ' + rl2).butlast ∨ phead = (first ' + rl2).last, ((first ' + rl2).last ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (rl1 + (first ' + rl2).butlast) + ((first ' + rl2).last ' + rl0).butlast ≠ [] ∧ ((rl1 + (first ' + rl2).butlast) + ((first ' + rl2).last ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ ((first ' + rl2).last ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = ((first ' + rl2).last ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((first ' + rl2).last ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = ((first ' + rl2).last ' + qrl).last ∨ qrl ≠ [] ∧ vtail = ((first ' + rl2).last ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 ∈ (first ' + rl2).butlast ∨ phead0 = (first ' + rl2).last ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next
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 ' + x).butlast + (a ' + x).last ' + y = a ' + x + y; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ (x + a ' + y).butlast = x + (a ' + y).butlast; (s) x ≠ [] ⊦ x.butlast + x.last ' = x; (s) ⊦ a ' + x ≠ []; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ x + a ' + y ≠ []; (s)
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp((first ' + rl2).butlast, vs), markedp(rl1, vs), markedp((first ' + rl2).butlast, ps), markedp(rl1, ps), markedp((first ' + rl2).butlast, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp((first ' + rl2).butlast, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[(first ' + rl2).last].deqID), some?(ps[(first ' + rl2).last].deqID), some?(vs0[(first ' + rl2).last].deqID), some?(ps0[(first ' + rl2).last].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + rl2 + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((first ' + rl2).butlast + qrl), ¬ dups(rl1 + (first ' + rl2).butlast + rl0), ¬ dups(rl1 + (first ' + rl2).butlast), ¬ dups((first ' + rl2).butlast + rl0 + qrl0), ¬ dups(rl1), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0 + qrl0), ¬ dups((rl1 + (first ' + rl2).butlast) + qrl), ¬ dups(rl), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0), ¬ dups((first ' + rl2).butlast), ¬ dups(rl0 + qrl0), ¬ dups((first ' + rl2).butlast + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), ¬ (first ' + rl2).last ∈ (first ' + rl2).butlast, ¬ (first ' + rl2).last ∈ rl1, ¬ (first ' + rl2).last ∈ rl0, ¬ (first ' + rl2).last ∈ qrl0, ¬ (first ' + rl2).last ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), (first ' + rl2).last = first ∨ (first ' + rl2).last ∈ rl2, vhead0 ∈ rl1 + first ' + rl2 from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (first ' + rl2).last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl1 + first ' + rl2 from first ∨ lst ∈ qrl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, first ∈ rl1 ∨ first ∈ (first ' + rl2).butlast ∨ first = (first ' + rl2).last, phead ∈ rl1 ∨ phead ∈ (first ' + rl2).butlast ∨ phead = (first ' + rl2).last, ((first ' + rl2).last ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (rl1 + (first ' + rl2).butlast) + ((first ' + rl2).last ' + rl0).butlast ≠ [] ∧ ((rl1 + (first ' + rl2).butlast) + ((first ' + rl2).last ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ ((first ' + rl2).last ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = ((first ' + rl2).last ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((first ' + rl2).last ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = ((first ' + rl2).last ' + qrl).last ∨ qrl ≠ [] ∧ vtail = ((first ' + rl2).last ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 ∈ (first ' + rl2).butlast ∨ phead0 = (first ' + rl2).last ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl2 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp((first ' + rl2).butlast, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp((first ' + rl2).butlast, vs0), markedp(rl1, ps), markedp((first ' + rl2).butlast, ps), markedp(rl1, vs), markedp((first ' + rl2).butlast, vs), markedp(rl0, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[(first ' + rl2).last].deqID), some?(vs0[(first ' + rl2).last].deqID), some?(ps[(first ' + rl2).last].deqID), some?(vs[(first ' + rl2).last].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((first ' + rl2).butlast + qrl), ¬ dups(rl1 + (first ' + rl2).butlast + rl0), ¬ dups(rl1 + (first ' + rl2).butlast), ¬ dups((first ' + rl2).butlast + rl0 + qrl0), ¬ dups(rl1), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0 + qrl0), ¬ dups((rl1 + (first ' + rl2).butlast) + qrl), ¬ dups(rl), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0), ¬ dups((first ' + rl2).butlast), ¬ dups(rl0 + qrl0), ¬ dups((first ' + rl2).butlast + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), ¬ (first ' + rl2).last ∈ (first ' + rl2).butlast, ¬ (first ' + rl2).last ∈ rl1, ¬ (first ' + rl2).last ∈ rl0, ¬ (first ' + rl2).last ∈ qrl0, ¬ (first ' + rl2).last ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 ∨ phead0 ∈ (first ' + rl2).butlast ∨ phead0 = (first ' + rl2).last ∨ phead0 ∈ rl0, vtail = ((first ' + rl2).last ' + qrl).last ∨ qrl ≠ [] ∧ vtail = ((first ' + rl2).last ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((first ' + rl2).last ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((first ' + rl2).last ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, ((first ' + rl2).last ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (rl1 + (first ' + rl2).butlast) + ((first ' + rl2).last ' + rl0).butlast ≠ [] ∧ ((rl1 + (first ' + rl2).butlast) + ((first ' + rl2).last ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ ((first ' + rl2).last ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead ∈ (first ' + rl2).butlast ∨ phead = (first ' + rl2).last, first ∈ rl1 ∨ first ∈ (first ' + rl2).butlast ∨ first = (first ' + rl2).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ rl1 + first ' + rl2 from first ∨ lst ∈ qrl, (first ' + rl2).last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), vhead0 ∈ rl1 + first ' + rl2 from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (first ' + rl2).last = first ∨ (first ' + rl2).last ∈ rl2 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, rl2 ≠ [], vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp((first ' + rl2).butlast, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp((first ' + rl2).butlast, vs0), markedp(rl1, ps), markedp((first ' + rl2).butlast, ps), markedp(rl1, vs), markedp((first ' + rl2).butlast, vs), markedp(rl0, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[rl2.last].deqID), some?(vs0[rl2.last].deqID), some?(ps[rl2.last].deqID), some?(vs[rl2.last].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((first ' + rl2).butlast + qrl), ¬ dups(rl1 + (first ' + rl2).butlast + rl0), ¬ dups(rl1 + (first ' + rl2).butlast), ¬ dups((first ' + rl2).butlast + rl0 + qrl0), ¬ dups(rl1), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0 + qrl0), ¬ dups((rl1 + (first ' + rl2).butlast) + qrl), ¬ dups(rl), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0), ¬ dups((first ' + rl2).butlast), ¬ dups(rl0 + qrl0), ¬ dups((first ' + rl2).butlast + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), ¬ rl2.last ∈ (first ' + rl2).butlast, ¬ rl2.last ∈ rl1, ¬ rl2.last ∈ rl0, ¬ rl2.last ∈ qrl0, ¬ rl2.last ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 ∨ phead0 ∈ (first ' + rl2).butlast ∨ phead0 = rl2.last ∨ phead0 ∈ rl0, vtail = (rl2.last ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (rl2.last ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (rl2.last ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl2.last ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (rl2.last ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (rl1 + (first ' + rl2).butlast) + (rl2.last ' + rl0).butlast ≠ [] ∧ ((rl1 + (first ' + rl2).butlast) + (rl2.last ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (rl2.last ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead ∈ (first ' + rl2).butlast ∨ phead = rl2.last, first ∈ rl1 ∨ first ∈ (first ' + rl2).butlast ∨ first = rl2.last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ rl1 + first ' + rl2 from first ∨ lst ∈ qrl, rl2.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead ≠ rl2.last ∧ unmarkedp(qrl, vs), vhead0 ∈ rl1 + first ' + rl2 from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, rl2.last = first ∨ rl2.last ∈ rl2 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next
Used terms: first ', rl2
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl2 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp((first ' + rl2).butlast, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp((first ' + rl2).butlast, vs0), markedp(rl1, ps), markedp((first ' + rl2).butlast, ps), markedp(rl1, vs), markedp((first ' + rl2).butlast, vs), markedp(rl0, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[(first ' + rl2).last].deqID), some?(vs0[(first ' + rl2).last].deqID), some?(ps[(first ' + rl2).last].deqID), some?(vs[(first ' + rl2).last].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((first ' + rl2).butlast + qrl), ¬ dups(rl1 + (first ' + rl2).butlast + rl0), ¬ dups(rl1 + (first ' + rl2).butlast), ¬ dups((first ' + rl2).butlast + rl0 + qrl0), ¬ dups(rl1), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0 + qrl0), ¬ dups((rl1 + (first ' + rl2).butlast) + qrl), ¬ dups(rl), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0), ¬ dups((first ' + rl2).butlast), ¬ dups(rl0 + qrl0), ¬ dups((first ' + rl2).butlast + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), ¬ (first ' + rl2).last ∈ (first ' + rl2).butlast, ¬ (first ' + rl2).last ∈ rl1, ¬ (first ' + rl2).last ∈ rl0, ¬ (first ' + rl2).last ∈ qrl0, ¬ (first ' + rl2).last ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 ∨ phead0 ∈ (first ' + rl2).butlast ∨ phead0 = (first ' + rl2).last ∨ phead0 ∈ rl0, vtail = ((first ' + rl2).last ' + qrl).last ∨ qrl ≠ [] ∧ vtail = ((first ' + rl2).last ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = ((first ' + rl2).last ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = ((first ' + rl2).last ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, ((first ' + rl2).last ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (rl1 + (first ' + rl2).butlast) + ((first ' + rl2).last ' + rl0).butlast ≠ [] ∧ ((rl1 + (first ' + rl2).butlast) + ((first ' + rl2).last ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ ((first ' + rl2).last ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead ∈ (first ' + rl2).butlast ∨ phead = (first ' + rl2).last, first ∈ rl1 ∨ first ∈ (first ' + rl2).butlast ∨ first = (first ' + rl2).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ rl1 + first ' + rl2 from first ∨ lst ∈ qrl, (first ' + rl2).last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), vhead0 ∈ rl1 + first ' + rl2 from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (first ' + rl2).last = first ∨ (first ' + rl2).last ∈ rl2 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + qrl, vs, ps, owns), listp(first ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl1, ps0), noid(tid, rl1 + first ' + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ rl1 + first ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ first ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 ≠ [] ∧ rl1.last = first ∧ phead ≠ rl1.last ∧ unmarkedp(qrl, vs), phead0 ∈ rl1 + first ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first, (first ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (first ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = qrl.last ∨ qrl ≠ [] ∧ vtail = (first ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + first ' + rl0 + qrl0 from ps[first].next
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 ⊦ [] + x = x; (s) ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ a '.butlast = []; (s) ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ r ' from r0 = (r = r0 ⊃ r ';[]); (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s)
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + qrl, vs, ps, owns), listp(first ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl1, ps0), noid(tid, rl1 + first ' + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), vtail0 ∈ rl1 + first ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ first ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 ≠ [] ∧ rl1.last = first ∧ phead ≠ rl1.last ∧ unmarkedp(qrl, vs), phead0 ∈ rl1 + first ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first, (first ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ rl1 + (first ' + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl0).last ∧ unmarkedp(qrl0, vs0), vtail0 = (first ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = qrl.last ∨ qrl ≠ [] ∧ vtail = (first ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + first ' + rl0 + qrl0 from ps[first].next |
Used simplifier rules: ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (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) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ a ' + x ≠ []; (s) ⊦ a + x = a ' + x; (s) notin-forward: ⊦ rl + rl0 = rl1 + rl2 + rl3 ∧ ¬ r ∈ rl ∧ ¬ r ∈ rl0 → ¬ r ∈ rl1 ∧ ¬ r ∈ rl2 ∧ ¬ r ∈ rl3; (forward) from specification DMSQ in-14: ⊦ a ' + x = y → a ∈ y; (forward) 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: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ [] + x = x; (s) ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, phead1, y
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, pretRefs0(tid) ≠ null, rl2 ≠ [], vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp((first ' + rl2).butlast, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp((first ' + rl2).butlast, vs0), markedp(rl1, ps), markedp((first ' + rl2).butlast, ps), markedp(rl1, vs), markedp((first ' + rl2).butlast, vs), markedp(rl0, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[rl2.last].deqID), some?(vs0[rl2.last].deqID), some?(ps[rl2.last].deqID), some?(vs[rl2.last].deqID), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((first ' + rl2).butlast + qrl), ¬ dups(rl1 + (first ' + rl2).butlast + rl0), ¬ dups(rl1 + (first ' + rl2).butlast), ¬ dups((first ' + rl2).butlast + rl0 + qrl0), ¬ dups(rl1), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0 + qrl0), ¬ dups((rl1 + (first ' + rl2).butlast) + qrl), ¬ dups(rl), ¬ dups((rl1 + (first ' + rl2).butlast) + rl0), ¬ dups((first ' + rl2).butlast), ¬ dups(rl0 + qrl0), ¬ dups((first ' + rl2).butlast + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ nextnottid(tid, first, vs), ¬ rl2.last ∈ (first ' + rl2).butlast, ¬ rl2.last ∈ rl1, ¬ rl2.last ∈ rl0, ¬ rl2.last ∈ qrl0, ¬ rl2.last ∈ qrl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 ∨ phead0 ∈ (first ' + rl2).butlast ∨ phead0 = rl2.last ∨ phead0 ∈ rl0, vtail = (rl2.last ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (rl2.last ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (rl2.last ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl2.last ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, (rl2.last ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (rl1 + (first ' + rl2).butlast) + (rl2.last ' + rl0).butlast ≠ [] ∧ ((rl1 + (first ' + rl2).butlast) + (rl2.last ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (rl2.last ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead ∈ (first ' + rl2).butlast ∨ phead = rl2.last, first ∈ rl1 ∨ first ∈ (first ' + rl2).butlast ∨ first = rl2.last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, lst ∈ rl1 + first ' + rl2 from first ∨ lst ∈ qrl, rl2.last = first ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = first ∧ phead ≠ rl2.last ∧ unmarkedp(qrl, vs), vhead0 ∈ rl1 + first ' + rl2 from first ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, rl2.last = first ∨ rl2.last ∈ rl2 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), (first ' + rl2.butlast).last = first, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, rl2.last ≠ first, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, phead ≠ rl2.last, pretRefs0(tid) ≠ null, rl2 ≠ [], vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl0, ps0), markedp(rl2.butlast, vs), markedp(rl1, vs), markedp(rl2.butlast, ps), markedp(rl1, ps), markedp(rl2.butlast, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl2.butlast, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[rl2.last].deqID), some?(ps[rl2.last].deqID), some?(vs0[rl2.last].deqID), some?(ps0[rl2.last].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + rl2 + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2.butlast + rl0 + qrl0), ¬ dups(rl1 + rl2.butlast + qrl), ¬ dups(rl), ¬ dups(rl2.butlast), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl2.butlast + qrl), ¬ dups(rl1 + rl2.butlast), ¬ dups(qrl), ¬ dups(rl2.butlast + rl0 + qrl0), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl2.butlast + rl0), ¬ dups(qrl0), ¬ dups(rl2.butlast + rl0), ¬ nextnottid(tid, first, vs), ¬ rl2.last ∈ rl1, ¬ rl2.last ∈ rl0, ¬ rl2.last ∈ qrl0, ¬ rl2.last ∈ qrl, ¬ first ∈ rl2.butlast, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ rl2.last ∈ rl2.butlast, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail0 = (rl2.last ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl2.last ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (rl2.last ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (rl2.last ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vhead0 ∈ rl2 ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, lst ∈ rl2 ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2.butlast, (rl2.last ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + rl2.butlast + (rl2.last ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (rl2.last ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2.butlast ∨ phead0 = rl2.last ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next
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) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ x + a ' + y ≠ []; (s) ⊦ ¬ a ∈ x → (a ∈ b ' + x ↔ a = b); (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.last ∈ x ↔ x ≠ []; (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) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (s) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s)
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), (first ' + rl2.butlast).last = first, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, rl2.last ≠ first, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, phead ≠ rl2.last, pretRefs0(tid) ≠ null, rl2 ≠ [], vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl0, ps0), markedp(rl2.butlast, vs), markedp(rl1, vs), markedp(rl2.butlast, ps), markedp(rl1, ps), markedp(rl2.butlast, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl2.butlast, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[rl2.last].deqID), some?(ps[rl2.last].deqID), some?(vs0[rl2.last].deqID), some?(ps0[rl2.last].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + rl2 + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2.butlast + rl0 + qrl0), ¬ dups(rl1 + rl2.butlast + qrl), ¬ dups(rl), ¬ dups(rl2.butlast), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl2.butlast + qrl), ¬ dups(rl1 + rl2.butlast), ¬ dups(qrl), ¬ dups(rl2.butlast + rl0 + qrl0), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl2.butlast + rl0), ¬ dups(qrl0), ¬ dups(rl2.butlast + rl0), ¬ nextnottid(tid, first, vs), ¬ rl2.last ∈ rl1, ¬ rl2.last ∈ rl0, ¬ rl2.last ∈ qrl0, ¬ rl2.last ∈ qrl, ¬ first ∈ rl2.butlast, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ rl2.last ∈ rl2.butlast, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail0 = (rl2.last ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl2.last ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (rl2.last ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (rl2.last ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vhead0 ∈ rl2 ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, lst ∈ rl2 ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2.butlast, (rl2.last ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + rl2.butlast + (rl2.last ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (rl2.last ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2.butlast ∨ phead0 = rl2.last ∨ phead0 ∈ rl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), (first ' + rl3).last = first, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl2 = rl3 + vtail1 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, phead ≠ vtail1, pretRefs0(tid) ≠ null, rl2 ≠ [], vhead0 ≠ first, vtail1 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl1, ps), markedp(rl3, ps), markedp(rl1, vs), markedp(rl3, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), some?(ps[vtail1].deqID), some?(vs[vtail1].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + qrl), ¬ dups(rl), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl3 + qrl), ¬ dups(rl1 + rl3), ¬ dups(qrl), ¬ dups(rl3 + rl0 + qrl0), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl3 + rl0), ¬ dups(qrl0), ¬ dups(rl3 + rl0), ¬ nextnottid(tid, first, vs), ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl0, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ qrl, ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ vtail1 ∈ rl3, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl3 ∨ phead0 = vtail1 ∨ phead0 ∈ rl0, (vtail1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + rl3 + (vtail1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vtail1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl3, lst ∈ rl2 ∨ lst ∈ qrl, vhead0 ∈ rl2 ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, vtail = (vtail1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vtail1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vtail1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl2, vtail1, y
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), (first ' + rl3).last = first, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl2 = rl3 + vtail1 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, phead ≠ vtail1, pretRefs0(tid) ≠ null, rl2 ≠ [], vhead0 ≠ first, vtail1 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + qrl, vs, ps, vs0, ps0), listp(first ' + rl2 + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl1, ps), markedp(rl3, ps), markedp(rl1, vs), markedp(rl3, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + rl2 + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + rl2 + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + (first ' + rl2 + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), some?(ps[vtail1].deqID), some?(vs[vtail1].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + qrl), ¬ dups(rl), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl3 + qrl), ¬ dups(rl1 + rl3), ¬ dups(qrl), ¬ dups(rl3 + rl0 + qrl0), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl3 + rl0), ¬ dups(qrl0), ¬ dups(rl3 + rl0), ¬ nextnottid(tid, first, vs), ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl0, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ qrl, ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ vtail1 ∈ rl3, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl3 ∨ phead0 = vtail1 ∨ phead0 ∈ rl0, (vtail1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + rl3 + (vtail1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vtail1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl3, lst ∈ rl2 ∨ lst ∈ qrl, vhead0 ∈ rl2 ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, vtail = (vtail1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vtail1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vtail1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + rl2 + rl0) + qrl0 from ps[first].next |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), (first ' + rl3).last = first, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, phead ≠ vtail1, pretRefs0(tid) ≠ null, vhead0 ≠ first, vtail1 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, ps, vs0, ps0), listp(rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, ps, owns), listp(first ' + (rl3 + vtail1 ') + rl0 + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl0, ps0), markedp(rl3, vs), markedp(rl1, vs), markedp(rl3, ps), markedp(rl1, ps), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl3, ps0), noid(tid, rl1 + first ' + (rl3 + vtail1 ') + qrl, ps[first].next, vs), nonullRetRefs(rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vtail1].deqID), some?(ps[vtail1].deqID), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + (rl3 + vtail1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + qrl), ¬ dups(rl), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl3 + rl0), ¬ dups(rl1 + rl3), ¬ dups(rl0 + qrl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl3 + qrl), ¬ dups(rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + rl0), ¬ nextnottid(tid, first, vs), ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl0, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ qrl, ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ vtail1 ∈ rl3, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 + first ' + rl3 + vtail1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (vtail1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vtail1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl3, (vtail1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + rl3 + (vtail1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vtail1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl3 ∨ phead0 = vtail1 ∨ phead0 ∈ rl0, vhead0 ∈ rl3 ∨ vhead0 = vtail1 ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, lst ∈ rl3 ∨ lst = vtail1 ∨ lst ∈ qrl ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0 from ps[first].next
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 ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ x + a ' ≠ []; (s)
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), (first ' + rl3).last = first, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, phead ≠ vtail1, pretRefs0(tid) ≠ null, vhead0 ≠ first, vtail1 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, ps, vs0, ps0), listp(rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, ps, owns), listp(first ' + (rl3 + vtail1 ') + rl0 + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl0, ps0), markedp(rl3, vs), markedp(rl1, vs), markedp(rl3, ps), markedp(rl1, ps), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl0, vs0), markedp(rl3, ps0), noid(tid, rl1 + first ' + (rl3 + vtail1 ') + qrl, ps[first].next, vs), nonullRetRefs(rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vtail1].deqID), some?(ps[vtail1].deqID), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + (rl3 + vtail1 ') + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + qrl), ¬ dups(rl), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl3 + rl0), ¬ dups(rl1 + rl3), ¬ dups(rl0 + qrl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl3 + qrl), ¬ dups(rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + rl0), ¬ nextnottid(tid, first, vs), ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl0, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ qrl, ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ vtail1 ∈ rl3, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 + first ' + rl3 + vtail1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (vtail1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vtail1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl3, (vtail1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + rl3 + (vtail1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vtail1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl3 ∨ phead0 = vtail1 ∨ phead0 ∈ rl0, vhead0 ∈ rl3 ∨ vhead0 = vtail1 ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, lst ∈ rl3 ∨ lst = vtail1 ∨ lst ∈ qrl ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0 from ps[first].next |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), (first ' + rl3).last = first, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl3 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, phead ≠ vtail1, pretRefs0(tid) ≠ null, vhead0 ≠ first, vtail1 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, ps, vs0, ps0), listp(first ' + (rl3 + vtail1 ') + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, ps, owns), listp(rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl1, ps), markedp(rl3, ps), markedp(rl1, vs), markedp(rl3, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + (rl3 + vtail1 ') + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), some?(ps[vtail1].deqID), some?(vs[vtail1].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + (rl3 + vtail1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + qrl), ¬ dups(rl), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl3 + rl0), ¬ dups(rl1 + rl3), ¬ dups(rl0 + qrl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl3 + qrl), ¬ dups(rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + rl0), ¬ nextnottid(tid, first, vs), ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl0, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ qrl, ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ vtail1 ∈ rl3, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), lst ∈ rl3 ∨ lst = vtail1 ∨ lst ∈ qrl, vhead0 ∈ rl3 ∨ vhead0 = vtail1 ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl3 ∨ phead0 = vtail1 ∨ phead0 ∈ rl0, (vtail1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + rl3 + (vtail1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vtail1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl3, vtail = (vtail1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vtail1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vtail1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + rl3 + vtail1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0 from ps[first].next
Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) Used terms: first ', rl3
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), (first ' + rl3).last = first, Val(vs[ps[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl3 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[ps[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[ps[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, ps[first].next ≠ null, first ≠ lst, phead ≠ vtail1, pretRefs0(tid) ≠ null, vhead0 ≠ first, vtail1 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, ps, vs0, ps0), listp(first ' + (rl3 + vtail1 ') + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, ps, owns), listp(rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl1, ps), markedp(rl3, ps), markedp(rl1, vs), markedp(rl3, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + (rl3 + vtail1 ') + qrl, ps[first].next, vs), nonullRetRefs(rl1 + first ' + (rl3 + vtail1 ') + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), some?(ps[vtail1].deqID), some?(vs[vtail1].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + (rl3 + vtail1 ') + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + qrl), ¬ dups(rl), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl3 + rl0), ¬ dups(rl1 + rl3), ¬ dups(rl0 + qrl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl3 + qrl), ¬ dups(rl3 + rl0 + qrl0), ¬ dups(rl1 + rl3 + rl0), ¬ nextnottid(tid, first, vs), ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl0, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ qrl, ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ vtail1 ∈ rl3, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), lst ∈ rl3 ∨ lst = vtail1 ∨ lst ∈ qrl, vhead0 ∈ rl3 ∨ vhead0 = vtail1 ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl3 ∨ phead0 = vtail1 ∨ phead0 ∈ rl0, (vtail1 ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + rl3 + (vtail1 ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vtail1 ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl3, vtail = (vtail1 ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vtail1 ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vtail1 ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + rl3 + vtail1 ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ ps[first].next ∧ vs0[vhead0].next ∈ rl1 + (first ' + (rl3 + vtail1 ') + rl0) + qrl0 from ps[first].next |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl0, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail0 = (vs0[first].next ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first, (vs0[first].next ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + (vs0[first].next ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vs0[first].next ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, lst = vs0[first].next ∨ lst ∈ qrl ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0)
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) listp-twoin: ⊦ listp(rl + r ' + r0 ' + rl0, vs, ps, owns) → ps[r].next = r0; (forward) from specification DMSQ a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ [] + x = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ x + [] = x; (s) ⊦ ¬ dups([]); (s) ⊦ some?(opttid) → opttid ≠ None; (as) ⊦ 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([], vs); (s) ⊦ a '.last = a; (s)
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl0, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail0 = (vs0[first].next ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first, (vs0[first].next ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + (vs0[first].next ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vs0[first].next ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, lst = vs0[first].next ∨ lst ∈ qrl ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0) |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl0 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), lst = vs0[first].next ∨ lst ∈ qrl, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, (vs0[first].next ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + (vs0[first].next ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vs0[first].next ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vs0[first].next ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0)
qrl + rl = rl0 + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, rl0 ≠ [], vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), lst = vs0[first].next ∨ lst ∈ qrl, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, rl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + (vs0[first].next ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ rl0.last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vs0[first].next ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0)
Used terms: vs0[first].next ', rl0
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl0 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), lst = vs0[first].next ∨ lst ∈ qrl, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, (vs0[first].next ' + rl0).last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + (vs0[first].next ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ (vs0[first].next ' + rl0).last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vs0[first].next ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0) |
ps0[first].deqID = vs0[first].deqID, vs0[vs0[vs0[first].next].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vs0[first].next].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vs0[first].next].next ≠ null, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl, ps0), unmarkedp(rl, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + qrl + rl), ¬ dups(rl1), ¬ dups(qrl + rl), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ rl, qrl + rl ≠ [] → unmarkedp((qrl + rl).tail, vs0), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vs0[first].next ' + qrl + rl).last ∨ qrl + rl ≠ [] ∧ vtail0 = (vs0[first].next ' + (qrl + rl).butlast).last ∧ vs0[(qrl + rl).last].deqID = None ∧ vs0[(qrl + rl).last].next = null, lst = vs0[first].next ∨ lst ∈ qrl, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl ⊦ vs0[vs0[first].next].next ≠ vs0[first].next ∧ (vs0[vs0[first].next].next ∈ qrl ∨ vs0[vs0[first].next].next ∈ rl)
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 ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ ¬ a ∈ []; (s) ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) ⊦ a '.butlast = []; (s) ⊦ [] + x = x; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s)
| ps0[first].deqID = vs0[first].deqID, vs0[vs0[vs0[first].next].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vs0[first].next].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vs0[first].next].next ≠ null, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl, ps0), unmarkedp(rl, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + qrl + rl), ¬ dups(rl1), ¬ dups(qrl + rl), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ rl, qrl + rl ≠ [] → unmarkedp((qrl + rl).tail, vs0), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vs0[first].next ' + qrl + rl).last ∨ qrl + rl ≠ [] ∧ vtail0 = (vs0[first].next ' + (qrl + rl).butlast).last ∧ vs0[(qrl + rl).last].deqID = None ∧ vs0[(qrl + rl).last].next = null, lst = vs0[first].next ∨ lst ∈ qrl, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl ⊦ vs0[vs0[first].next].next ≠ vs0[first].next ∧ (vs0[vs0[first].next].next ∈ qrl ∨ vs0[vs0[first].next].next ∈ rl) |
vs0[vs0[vs0[first].next].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), qrl = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vs0[first].next].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vs0[first].next].next ≠ null, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), unmarkedp(rl, ps0), unmarkedp(qrl, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + qrl + rl), ¬ dups(rl1), ¬ dups(qrl + rl), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ rl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), qrl + rl ≠ [] → unmarkedp((qrl + rl).tail, vs0), phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, lst = vs0[first].next ∨ lst ∈ qrl, vtail0 = (vs0[first].next ' + qrl + rl).last ∨ qrl + rl ≠ [] ∧ vtail0 = (vs0[first].next ' + (qrl + rl).butlast).last ∧ vs0[(qrl + rl).last].deqID = None ∧ vs0[(qrl + rl).last].next = null, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ⊦ vs0[vs0[first].next].next ≠ vs0[first].next ∧ (vs0[vs0[first].next].next ∈ qrl ∨ vs0[vs0[first].next].next ∈ rl)
Used simplifier rules: reflist freely generated by [], +;; ⊦ 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) ⊦ some?(opttid) → opttid ≠ None; (as) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ a ' + x ≠ []; (s) ⊦ (a ' + x).tail = x; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a + x = a ' + x; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] 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]
| vs0[vs0[vs0[first].next].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), qrl = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vs0[first].next].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vs0[first].next].next ≠ null, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), unmarkedp(rl, ps0), unmarkedp(qrl, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + qrl + rl), ¬ dups(rl1), ¬ dups(qrl + rl), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ first ∈ rl, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ rl, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), qrl + rl ≠ [] → unmarkedp((qrl + rl).tail, vs0), phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, lst = vs0[first].next ∨ lst ∈ qrl, vtail0 = (vs0[first].next ' + qrl + rl).last ∨ qrl + rl ≠ [] ∧ vtail0 = (vs0[first].next ' + (qrl + rl).butlast).last ∧ vs0[(qrl + rl).last].deqID = None ∧ vs0[(qrl + rl).last].next = null, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ⊦ vs0[vs0[first].next].next ≠ vs0[first].next ∧ (vs0[vs0[first].next].next ∈ qrl ∨ vs0[vs0[first].next].next ∈ rl) |
vs0[vs0[vs0[first].next].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vs0[first].next].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ', vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ', vs, ps, owns), listp(vs0[first].next ' + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), noid(tid, rl1 + first ' + vs0[first].next ', vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ', vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), unmarkedp(rl, ps0), pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl1 + rl), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl, ¬ first ∈ rl1, ¬ first ∈ rl, ¬ vs0[first].next ∈ rl1, rl ≠ [] → unmarkedp(rl.tail, vs0), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl, vtail0 = (vs0[first].next ' + rl).last ∨ rl ≠ [] ∧ vtail0 = (vs0[first].next ' + rl.butlast).last ∧ vs0[rl.last].deqID = None ∧ vs0[rl.last].next = null, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next, vtail0 = vs0[first].next ∨ vtail0 ∈ rl ⊦ vs0[vs0[first].next].next ≠ vs0[first].next ∧ vs0[vs0[first].next].next ∈ rl
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) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ r ' + rl from r = r ' + rl; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ ¬ a ∈ []; (s) ⊦ [] + x = x; (s) ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) ⊦ ¬ dups([]); (s) ⊦ unmarkedp([], vs); (s)
| vs0[vs0[vs0[first].next].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vs0[first].next].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ', vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ', vs, ps, owns), listp(vs0[first].next ' + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), noid(tid, rl1 + first ' + vs0[first].next ', vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ', vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), unmarkedp(rl, ps0), pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl1 + rl), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl, ¬ first ∈ rl1, ¬ first ∈ rl, ¬ vs0[first].next ∈ rl1, rl ≠ [] → unmarkedp(rl.tail, vs0), vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl, vtail0 = (vs0[first].next ' + rl).last ∨ rl ≠ [] ∧ vtail0 = (vs0[first].next ' + rl.butlast).last ∧ vs0[rl.last].deqID = None ∧ vs0[rl.last].next = null, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next, vtail0 = vs0[first].next ∨ vtail0 ∈ rl ⊦ vs0[vs0[first].next].next ≠ vs0[first].next ∧ vs0[vs0[first].next].next ∈ rl |
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) ⊦ some?(opttid) → opttid ≠ None; (as) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ a ' + x ≠ []; (s) ⊦ (a ' + x).tail = x; (s) ⊦ a + x = a ' + x; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] 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] ⊦ 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) ⊦ x + [] = x; (s) ⊦ a '.last = a; (s) ⊦ ¬ a ∈ []; (s) ⊦ None ≠ Some(tid); (s)
| qrl + rl = rl0 + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, rl0 ≠ [], vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), lst = vs0[first].next ∨ lst ∈ qrl, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, rl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (first ' + (vs0[first].next ' + rl0).butlast).last = vhead0 ∧ phead0 ≠ rl0.last ∧ unmarkedp(qrl0, vs0), phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, vtail0 = (vs0[first].next ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vs0[first].next ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0) |
qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, rl0 ≠ [], vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl0, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, lst = vs0[first].next ∨ lst ∈ qrl, vtail0 = (rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, rl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl0.butlast).last = vhead0 ∧ phead0 ≠ rl0.last ∧ unmarkedp(qrl0, vs0) ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0)
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ (b ' + a ' + x).last = (a ' + x).last; (s) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s) ⊦ y ≠ [] → (x + y + z).last = (y + z).last; (s)
| qrl + rl = rl0 + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, rl0 ≠ [], vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl0, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl0, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, lst = vs0[first].next ∨ lst ∈ qrl, vtail0 = (rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, rl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl0.butlast).last = vhead0 ∧ phead0 ≠ rl0.last ∧ unmarkedp(qrl0, vs0) ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0) |
qrl + rl = rl0 + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl0 = rl2 + vtail1 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, rl0 ≠ [], vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), vtail0 = (rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst = vs0[first].next ∨ lst ∈ qrl, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0)
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl0, vtail1, y
| qrl + rl = rl0 + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl0 = rl2 + vtail1 ', rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, first ≠ lst, first ≠ null, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, rl0 ≠ [], vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl0, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + rl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + rl0 + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl0, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), vtail0 = (rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, lst = vs0[first].next ∨ lst ∈ qrl, vhead0 = vs0[first].next ∨ vhead0 ∈ rl0 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl0 ∨ vs0[vhead0].next ∈ qrl0) |
qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0)
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 ' ↔ a = b; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + 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)
| qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0) |
qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0)
| qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0) |
⊦ listp(rl, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2, vs, ps, owns))
qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), listp(vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0) ∧ vhead0 ∈ vs0[first].next ' + (rl2 + vtail1 ') + qrl0 → (∃ rl1, rl0. vs0[first].next ' + (rl2 + vtail1 ') + qrl0 = rl1 + vhead0 ' + rl0 ∧ listp(vhead0 ' + rl0, vs0, ps0, owns0)), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0)
Used terms: ps0, vs0[first].next ' + (rl2 + vtail1 ') + qrl0, owns0, vhead0, vs0
| ⊦ listp(rl, vs, ps, owns) ∧ r ∈ rl → (∃ rl1, rl2. rl = rl1 + r ' + rl2 ∧ listp(r ' + rl2, vs, ps, owns)) |
| qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + (rl2 + vtail1 ') + qrl0 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), listp(vs0[first].next ' + (rl2 + vtail1 ') + qrl0, vs0, ps0, owns0) ∧ vhead0 ∈ vs0[first].next ' + (rl2 + vtail1 ') + qrl0 → (∃ rl1, rl0. vs0[first].next ' + (rl2 + vtail1 ') + qrl0 = rl1 + vhead0 ' + rl0 ∧ listp(vhead0 ' + rl0, vs0, ps0, owns0)), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0 ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0) |
vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + rl3, qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vhead0 ' + rl3, vs0, ps0, owns0), listp(rl1 + first ' + rl0 + vhead0 ' + rl3, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl0 + vhead0 ' + rl3, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + rl0 + vhead0 ' + rl3, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + rl0 + vhead0 ' + rl3 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next ∈ rl3 ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0)
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist]
| vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + rl3, qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vhead0 ' + rl3, vs0, ps0, owns0), listp(rl1 + first ' + rl0 + vhead0 ' + rl3, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl0 + vhead0 ' + rl3, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + rl0 + vhead0 ' + rl3, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + rl0 + vhead0 ' + rl3 from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next ∈ rl3 ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0) |
qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + rl3, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl3 = first0 + rl4, rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl0 + vhead0 ' + rl3, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + rl0 + vhead0 ' + rl3, vs0, ps0, owns0), listp(vhead0 ' + rl3, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl0 + vhead0 ' + rl3, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + rl0 + vhead0 ' + rl3 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next ∈ rl3, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0)
Used simplifier rules: reflist freely generated by [], +;; ⊦ 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) ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ None ≠ Some(tid); (s)
| qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + rl3, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl3 = first0 + rl4, rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(rl0 + vhead0 ' + rl3, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + rl0 + vhead0 ' + rl3, vs0, ps0, owns0), listp(vhead0 ' + rl3, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl0 + vhead0 ' + rl3, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + rl0 + vhead0 ' + rl3 from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next ∈ rl3, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0) |
qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + vs0[vhead0].next ' + rl4, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[vhead0].next = vs0[vhead0].next, ps0[first].val = vs0[first].val, ps0[vhead0].val = vs0[vhead0].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, owns0(vhead0) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, vhead0 ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ vs0, vhead0 ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ weak?(vs0[vhead0].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next = vs0[vhead0].next ∨ vs0[first].next ∈ rl4 ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0)
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] listp-twoin: ⊦ listp(rl + r ' + r0 ' + rl0, vs, ps, owns) → ps[r].next = r0; (forward) from specification DMSQ ⊦ 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)
| qrl + rl = (rl2 + vtail1 ') + qrl0, vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + vs0[vhead0].next ' + rl4, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[vhead0].next = vs0[vhead0].next, ps0[first].val = vs0[first].val, ps0[vhead0].val = vs0[vhead0].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, owns0(vhead0) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, vhead0 ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ vs0, vhead0 ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ weak?(vs0[vhead0].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next = vs0[vhead0].next ∨ vs0[first].next ∈ rl4 ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0) |
vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + vs0[vhead0].next ' + rl4, qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[vhead0].next = vs0[vhead0].next, ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[vhead0].val = vs0[vhead0].val, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(vhead0) = None, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl0 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, vhead0 ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vhead0 ∈ ps0, vhead0 ∈ vs0, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ weak?(vs0[vhead0].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next = vs0[vhead0].next ∨ vs0[first].next ∈ rl4, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0)
vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + vs0[vhead0].next ' + rl4, qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[vhead0].next = vs0[vhead0].next, ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[vhead0].val = vs0[vhead0].val, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(vhead0) = None, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl0 = vtail2 + rl3, rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, vhead0 ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vhead0 ∈ ps0, vhead0 ∈ vs0, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ weak?(vs0[vhead0].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next = vs0[vhead0].next ∨ vs0[first].next ∈ rl4, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0)
Used simplifier rules: reflist freely generated by [], +;;
| vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + vs0[vhead0].next ' + rl4, qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[vhead0].next = vs0[vhead0].next, ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[vhead0].val = vs0[vhead0].val, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(vhead0) = None, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl0 = [], rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, vhead0 ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vhead0 ∈ ps0, vhead0 ∈ vs0, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ weak?(vs0[vhead0].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next = vs0[vhead0].next ∨ vs0[first].next ∈ rl4, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0) |
qrl + rl = (rl2 + vtail1 ') + qrl0, qrl + rl = vs0[vs0[first].next].next ' + rl4, vs0[vs0[vs0[first].next].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[vs0[first].next].deqID = vs0[vs0[first].next].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[vs0[first].next].next = vs0[vs0[first].next].next, vs0[first].next = (vs0[first].next ' + rl2).last, ps0[first].val = vs0[first].val, ps0[vs0[first].next].val = vs0[vs0[first].next].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, owns0(vs0[first].next) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vs0[first].next].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, phead0 ≠ vtail1, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), unmarkedp(qrl0, vs0), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vs0[first].next ∈ vs0, vs0[first].next ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ weak?(vs0[vs0[first].next].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl0, vs0[vs0[first].next].next ∈ qrl ∨ vs0[vs0[first].next].next ∈ rl, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦ vs0[vs0[first].next].next ≠ vs0[first].next ∧ (vs0[vs0[first].next].next ∈ rl2 ∨ vs0[vs0[first].next].next = vtail1 ∨ vs0[vs0[first].next].next ∈ qrl0)
Used simplifier rules: ⊦ some?(opttid) → opttid ≠ None; (as) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] ⊦ ¬ a ∈ []; (s) ⊦ a ' + x = b ' + y ↔ a = b ∧ x = y; (ws) ⊦ [] + x = x; (s)
| qrl + rl = (rl2 + vtail1 ') + qrl0, qrl + rl = vs0[vs0[first].next].next ' + rl4, vs0[vs0[vs0[first].next].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[vs0[first].next].deqID = vs0[vs0[first].next].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[vs0[first].next].next = vs0[vs0[first].next].next, vs0[first].next = (vs0[first].next ' + rl2).last, ps0[first].val = vs0[first].val, ps0[vs0[first].next].val = vs0[vs0[first].next].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, owns0(vs0[first].next) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vs0[first].next].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[vs0[first].next].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, phead0 ≠ vtail1, pretRefs0(tid) ≠ null, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), unmarkedp(qrl0, vs0), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vs0[first].next ∈ vs0, vs0[first].next ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ weak?(vs0[vs0[first].next].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl0, vs0[vs0[first].next].next ∈ qrl ∨ vs0[vs0[first].next].next ∈ rl, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null ⊦ vs0[vs0[first].next].next ≠ vs0[first].next ∧ (vs0[vs0[first].next].next ∈ rl2 ∨ vs0[vs0[first].next].next = vtail1 ∨ vs0[vs0[first].next].next ∈ qrl0) |
Used simplifier rules: reflist freely generated by [], +;; ⊦ a ' + x = b ' + y ↔ a = b ∧ x = y; (ws) ⊦ 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(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ (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] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] 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] ⊦ unmarkedp([], vs); (s) ⊦ [] + x = x; (s) ⊦ ¬ dups([]); (s) ⊦ x + [] = x; (s) ⊦ a '.last = a; (s) ⊦ ¬ a ∈ []; (s) list-elem-in-app22: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ ps; (forward) from specification DMSQ list-elem-in-app21: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ vs; (forward) from specification DMSQ ⊦ r ' from r0 = (r = r0 ⊃ r ';[]); (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ ¬ a ∈ y → (y + c ' + z = a ' + z0 ↔ y = [] ∧ c = a ∧ z = z0); (ws)
| vs0[first].next ' + qrl + rl = rl0 + vhead0 ' + vs0[vhead0].next ' + rl4, qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[vhead0].next = vs0[vhead0].next, ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[vhead0].val = vs0[vhead0].val, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(vhead0) = None, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rl0 = vtail2 + rl3, rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ vtail1, vs0[first].next ≠ first, vs0[first].next ≠ null, vs0[vhead0].next ≠ null, first ≠ vtail1, first ≠ null, first ≠ lst, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ first, vhead0 ≠ null, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vhead0 ∈ ps0, vhead0 ∈ vs0, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups((rl1 + rl2) + qrl0), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[first].deqID), ¬ weak?(vs0[vhead0].deqID), ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ qrl, ¬ vs0[first].next ∈ qrl, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ rl1, ¬ vtail1 ∈ qrl0, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ rl1, ¬ first ∈ qrl0, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vs0[first].next ∈ rl0 ∨ vs0[first].next = vhead0 ∨ vs0[first].next = vs0[vhead0].next ∨ vs0[first].next ∈ rl4, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0) |
qrl + rl = rl3 + vhead0 ' + vs0[vhead0].next ' + rl4, qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[vhead0].next = vs0[vhead0].next, ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[vhead0].val = vs0[vhead0].val, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(vhead0) = None, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vhead0 ∈ ps0, vhead0 ∈ vs0, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[vhead0].deqID), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0)
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a + x = a ' + x; (s) ⊦ a ' + x = b ' + y ↔ a = b ∧ x = y; (ws)
| qrl + rl = rl3 + vhead0 ' + vs0[vhead0].next ' + rl4, qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[vhead0].next = vs0[vhead0].next, ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, ps0[vhead0].val = vs0[vhead0].val, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(vhead0) = None, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vhead0 ∈ ps0, vhead0 ∈ vs0, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[vhead0].deqID), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ vs0[vhead0].next ≠ vs0[first].next ∧ (vs0[vhead0].next ∈ rl2 ∨ vs0[vhead0].next = vtail1 ∨ vs0[vhead0].next ∈ qrl0) |
qrl + rl = (rl2 + vtail1 ') + qrl0, qrl + rl = rl3 + vhead0 ' + vs0[vhead0].next ' + rl4, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, vs0[vhead0].next = vs0[first].next, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[vhead0].next = vs0[vhead0].next, ps0[first].val = vs0[first].val, ps0[vhead0].val = vs0[vhead0].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, owns0(vhead0) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ vs0, vhead0 ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[vhead0].deqID), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None ⊦
qrl + rl = (rl2 + vtail1 ') + qrl0, qrl + rl = rl3 + vhead0 ' + vs0[vhead0].next ' + rl4, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[vhead0].next = vs0[vhead0].next, ps0[first].val = vs0[first].val, ps0[vhead0].val = vs0[vhead0].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, owns0(vhead0) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ vtail1, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ vs0, vhead0 ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[vhead0].deqID), ¬ weak?(vs0[first].deqID), ¬ vs0[vhead0].next ∈ rl2, ¬ vs0[vhead0].next ∈ qrl0, ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None ⊦
| qrl + rl = (rl2 + vtail1 ') + qrl0, qrl + rl = rl3 + vhead0 ' + vs0[vhead0].next ' + rl4, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, vs0[vhead0].next = vs0[first].next, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[vhead0].next = vs0[vhead0].next, ps0[first].val = vs0[first].val, ps0[vhead0].val = vs0[vhead0].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, owns0(vhead0) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ vs0, vhead0 ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[vhead0].deqID), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None ⊦ |
qrl + rl = rl3 + vhead0 ' + vs0[first].next ' + rl4, qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[first].next].deqID = Some(tid), ps0[vhead0].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, vs0[vhead0].next = vs0[first].next, ps0[vhead0].val = vs0[vhead0].val, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(vhead0) = None, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(vs0[first].next ' + rl4, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vhead0 ∈ ps0, vhead0 ∈ vs0, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[vhead0].deqID), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦
Used simplifier rules: ⊦ some?(Some(tid)); (s)
| qrl + rl = rl3 + vhead0 ' + vs0[first].next ' + rl4, qrl + rl = (rl2 + vtail1 ') + qrl0, ps0[first].deqID = vs0[first].deqID, vs0[vs0[first].next].deqID = Some(tid), ps0[vhead0].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[first].next = vs0[first].next, vs0[vhead0].next = vs0[first].next, ps0[vhead0].val = vs0[vhead0].val, ps0[first].val = vs0[first].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, owns0(vhead0) = None, owns0(first) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[first].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ null, vhead0 ≠ first, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(vs0[first].next ' + rl4, vs0, ps0, owns0), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), markedp(rl2, ps0), markedp(rl1, ps0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs0[vtail1].deqID), some?(ps0[vtail1].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs[vs0[first].next].deqID), unmarkedp(qrl, vs), unmarkedp(qrl, ps), unmarkedp(qrl0, ps0), vhead0 ∈ ps0, vhead0 ∈ vs0, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[vhead0].deqID), ¬ weak?(vs0[first].deqID), ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), lst = vs0[first].next ∨ lst ∈ qrl, phead ∈ rl1 ∨ phead = first, vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ |
Used simplifier rules: ⊦ ¬ a ∈ y ∧ ¬ a ∈ z ∧ a ≠ c → y + c ' + z ≠ y1 + a ' + x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist]
| qrl + rl = (rl2 + vtail1 ') + qrl0, qrl + rl = rl3 + vhead0 ' + vs0[vhead0].next ' + rl4, vs0[vs0[vhead0].next].deqID = Some(tid), ps0[first].deqID = vs0[first].deqID, ps0[first].next = vs0[first].next, ps[first].next = vs0[first].next, ps0[vhead0].next = vs0[vhead0].next, ps0[first].val = vs0[first].val, ps0[vhead0].val = vs0[vhead0].val, Val(vs[vs0[first].next].val) = vrvHp[pretRefs0(tid)], dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, owns0(first) = None, owns0(vhead0) = None, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Claimed(tid, vs[vs0[first].next].val), rvowns0(pretRefs0(tid)) = Claimed(tid, vs0[vs0[vhead0].next].val), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[vs0[first].next].deqID ≠ None, vs0[vhead0].next ≠ vtail1, vs0[vhead0].next ≠ null, vs0[first].next ≠ null, vs0[first].next ≠ first, vs0[first].next ≠ vtail1, first ≠ lst, first ≠ null, first ≠ vtail1, phead ≠ vs0[first].next, pretRefs0(tid) ≠ null, vhead0 ≠ null, vhead0 ≠ first, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, vs0, ps0), listp(vs0[vhead0].next ' + rl4, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, ps0, owns0), listp(rl1 + first ' + vs0[first].next ' + qrl, vs, ps, owns), listp(vs0[first].next ' + qrl + rl, vs0, ps0, owns0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl1, vs), markedp(rl1, ps), markedp(rl1, vs0), markedp(rl2, vs0), noid(tid, rl1 + first ' + vs0[first].next ' + qrl, vs0[first].next, vs), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + vs0[first].next ' + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), ownsRely(tid, owns, owns0), prvHpRely(vrvHp, prvHp, prvHp0), rvownerok(pretRefs0, prvHp0, rvowns0), rvownerok(vretRefs0, vrvHp0, rvowns0), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), rvownsrely(tid, rvowns, rvowns0, vrvHp), rvrely(tid, rvowns, vretRefs, vrvHp, vretRefs0, vrvHp0), some?(vs[vs0[first].next].deqID), some?(ps[vs0[first].next].deqID), some?(vs0[vs0[first].next].deqID), some?(ps0[vs0[first].next].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[vtail1].deqID), some?(vs0[vtail1].deqID), unmarkedp(qrl0, ps0), unmarkedp(qrl, ps), unmarkedp(qrl, vs), vtail0 ∈ rl1 + first ' + vs0[first].next ' + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl1 + first ' + vs0[first].next ' + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ vs0, vhead0 ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ nextnottid(tid, first, vs), ¬ weak?(vs0[vhead0].deqID), ¬ weak?(vs0[first].deqID), ¬ vs0[vhead0].next ∈ rl2, ¬ vs0[vhead0].next ∈ qrl0, ¬ first ∈ qrl0, ¬ vtail1 ∈ rl1, ¬ vtail1 ∈ rl2, ¬ vtail1 ∈ qrl0, ¬ vs0[first].next ∈ rl1, ¬ vs0[first].next ∈ rl2, ¬ vs0[first].next ∈ qrl0, ¬ vs0[first].next ∈ qrl, ¬ first ∈ qrl, ¬ first ∈ rl1, ¬ first ∈ rl2, vs[first].next ≠ null ∧ vs[vs[first].next].deqID ≠ None → rvowns(vretRefs(vs[vs[first].next].deqID.tid)) = Claimed(vs[vs[first].next].deqID.tid, vs[vs[first].next].val), vtail = (vs0[first].next ' + qrl).last ∨ qrl ≠ [] ∧ vtail = (vs0[first].next ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first, lst = vs0[first].next ∨ lst ∈ qrl, vtail1 = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ (vs0[first].next ' + rl2).last = vhead0 ∧ phead0 ≠ vtail1 ∧ unmarkedp(qrl0, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 = vs0[first].next ∨ phead0 ∈ rl2 ∨ phead0 = vtail1, vtail0 = (vtail1 ' + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (vtail1 ' + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, phead0 ∈ rl1 + first ' + vs0[first].next ' from phead ∨ phead0 ∈ rl2 ∨ phead0 = vtail1 ∨ phead0 ∈ qrl0, vhead0 = vs0[first].next ∨ vhead0 ∈ rl2 ∨ vhead0 = vtail1 ∨ vhead0 ∈ qrl0, ps0[vhead0].deqID = vs0[vhead0].deqID ∨ ps0[vhead0].deqID = None ⊦ |
Used simplifier rules: ⊦ ¬ a ∈ y ∧ ¬ a ∈ z ∧ a ≠ c → y + c ' + z ≠ y1 + a ' + x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist]
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.