| ⊦ ( ( ( listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns) ∧ ¬ dups(gs.orl + gs.qrl) ∧ markedp(gs.orl, gs.ps) ∧ markedp(gs.orl, gs.vs) ∧ unmarkedp(gs.qrl, gs.ps) ∧ gs.orl ≠ [] ∧ gs.phead ∈ gs.orl ∧ rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns) ∧ allocrv(gs.vretRefs, gs.vrvHp) ∧ nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs) ∧ rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns) ∧ allocrv(gs.pretRefs, gs.prvHp) ∧ dom gs.vrvHp = dom gs.prvHp ∧ ( gs.vs[gs.vhead].next ≠ null ∧ gs.vs[gs.vs[gs.vhead].next].deqID ≠ None → gs.rvowns(gs.vretRefs(gs.vs[gs.vs[gs.vhead].next].deqID.tid)) = Claimed(gs.vs[gs.vs[gs.vhead].next].deqID.tid, gs.vs[gs.vs[gs.vhead].next].val)) ∧ ( gs.orl.last = gs.vhead ∧ (gs.qrl ≠ [] → unmarkedp(gs.qrl.tail, gs.vs)) ∨ gs.orl.butlast ≠ [] ∧ gs.orl.butlast.last = gs.vhead ∧ gs.phead ≠ gs.orl.last ∧ unmarkedp(gs.qrl, gs.vs)) ∧ ( gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[(gs.orl + gs.qrl).last].next = null)) ∧ ( ls.first ∈ gs.orl ∧ ls.nxt ≠ null ∧ ls.nxt = gs.ps[ls.first].next ∧ gs.vs[ls.nxt].deqID ≠ None ∧ gs.vs[ls.nxt].deqID = Some(ls.othertid) ∧ ls.optval = Val(gs.vs[ls.nxt].val) ∧ (gs.vhead = ls.first → gs.rvowns(gs.vretRefs(ls.othertid)) = Claimed(ls.othertid, ls.optval.val))) ∧ (¬ ls.success ∧ gs.rvowns(gs.vretRefs(ls.tid)) = Pending(ls.tid)) ∧ (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) ∧ nextnottid(ls.tid, gs.vhead, gs.vs) ∧ noid(ls.tid, gs.orl + gs.qrl, gs.vhead, 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) → ( ls.first ∈ gs0.orl ∧ ls.nxt ≠ null ∧ ls.nxt = gs0.ps[ls.first].next ∧ gs0.vs[ls.nxt].deqID ≠ None ∧ gs0.vs[ls.nxt].deqID = Some(ls.othertid) ∧ ls.optval = Val(gs0.vs[ls.nxt].val) ∧ (gs0.vhead = ls.first → gs0.rvowns(gs0.vretRefs(ls.othertid)) = Claimed(ls.othertid, ls.optval.val))) ∧ (¬ ls.success ∧ gs0.rvowns(gs0.vretRefs(ls.tid)) = Pending(ls.tid)) ∧ (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) ∧ nextnottid(ls.tid, gs0.vhead, gs0.vs) ∧ noid(ls.tid, gs0.orl + gs0.qrl, gs0.vhead, gs0.vs) ∧ noowns(ls.tid, gs0.owns) |
gs.vs[ls.nxt].deqID = Some(ls.othertid), ls.nxt = gs.ps[ls.first].next, ls.optval = Val(gs.vs[ls.nxt].val), gs.pretRefs(ls.tid) = ls.rvref, gs.rvowns(gs.vretRefs(ls.tid)) = Pending(ls.tid), 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.vs[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, gs0.orl ≠ [], gs.orl ≠ [], ls.rvref ≠ null, 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), nextnottid(ls.tid, gs.vhead, gs.vs), nextnottidRely(ls.tid, gs.vhead, gs.vs, gs0.vhead, gs0.vs), noid(ls.tid, gs.orl + gs.qrl, gs.vhead, 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, 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, ¬ ls.success, ¬ 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 → gs.rvowns(gs.vretRefs(ls.othertid)) = Claimed(ls.othertid, ls.optval.val), 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) ⊦ ( ls.first ∈ gs0.orl ∧ ls.nxt ≠ null ∧ ls.nxt = gs0.ps[ls.first].next ∧ gs0.vs[ls.nxt].deqID ≠ None ∧ gs0.vs[ls.nxt].deqID = Some(ls.othertid) ∧ ls.optval = Val(gs0.vs[ls.nxt].val) ∧ (gs0.vhead = ls.first → gs0.rvowns(gs0.vretRefs(ls.othertid)) = Claimed(ls.othertid, ls.optval.val))) ∧ (¬ ls.success ∧ gs0.rvowns(gs0.vretRefs(ls.tid)) = Pending(ls.tid)) ∧ (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) ∧ nextnottid(ls.tid, gs0.vhead, gs0.vs) ∧ noid(ls.tid, gs0.orl + gs0.qrl, gs0.vhead, gs0.vs) ∧ noowns(ls.tid, gs0.owns)
| gs.vs[ls.nxt].deqID = Some(ls.othertid), ls.nxt = gs.ps[ls.first].next, ls.optval = Val(gs.vs[ls.nxt].val), gs.pretRefs(ls.tid) = ls.rvref, gs.rvowns(gs.vretRefs(ls.tid)) = Pending(ls.tid), 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.vs[ls.nxt].deqID ≠ None, ls.first ≠ ls.lst, ls.nxt ≠ null, gs0.orl ≠ [], gs.orl ≠ [], ls.rvref ≠ null, 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), nextnottid(ls.tid, gs.vhead, gs.vs), nextnottidRely(ls.tid, gs.vhead, gs.vs, gs0.vhead, gs0.vs), noid(ls.tid, gs.orl + gs.qrl, gs.vhead, 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, 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, ¬ ls.success, ¬ 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 → gs.rvowns(gs.vretRefs(ls.othertid)) = Claimed(ls.othertid, ls.optval.val), 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) ⊦ ( ls.first ∈ gs0.orl ∧ ls.nxt ≠ null ∧ ls.nxt = gs0.ps[ls.first].next ∧ gs0.vs[ls.nxt].deqID ≠ None ∧ gs0.vs[ls.nxt].deqID = Some(ls.othertid) ∧ ls.optval = Val(gs0.vs[ls.nxt].val) ∧ (gs0.vhead = ls.first → gs0.rvowns(gs0.vretRefs(ls.othertid)) = Claimed(ls.othertid, ls.optval.val))) ∧ (¬ ls.success ∧ gs0.rvowns(gs0.vretRefs(ls.tid)) = Pending(ls.tid)) ∧ (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) ∧ nextnottid(ls.tid, gs0.vhead, gs0.vs) ∧ noid(ls.tid, gs0.orl + gs0.qrl, gs0.vhead, gs0.vs) ∧ noowns(ls.tid, gs0.owns) |
gs.orl + gs.qrl + rl = gs0.orl + gs0.qrl, gs.orl + rl0 = gs0.orl, gs.vs[ls.nxt].deqID = Some(ls.othertid), 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) = Pending(ls.tid), ls.rvref = gs0.vretRefs(ls.tid), ls.rvref = gs0.pretRefs(ls.tid), gs.vretRefs(ls.tid) = ls.rvref, dom gs.vrvHp = dom gs.prvHp, dom gs0.vrvHp = dom gs0.prvHp, ls.first ≠ ls.lst, ls.nxt ≠ null, gs.orl ≠ [], gs0.orl ≠ [], ls.rvref ≠ null, 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), nextnottid(ls.tid, gs.vhead, gs.vs), nextnottidRely(ls.tid, gs.vhead, gs.vs, gs0.vhead, gs0.vs), noid(ls.tid, gs.orl + gs.qrl, gs.vhead, 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, ¬ ls.success, ¬ dups(gs0.qrl), ¬ dups(gs0.orl), ¬ dups(gs.qrl), ¬ dups(gs.orl), ¬ dups(gs.orl + gs.qrl), ¬ dups(gs0.orl + gs0.qrl), gs.vhead = ls.first → gs.rvowns(gs.vretRefs(ls.othertid)) = Claimed(ls.othertid, gs.vs[ls.nxt].val), 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), 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) ⊦ ls.first ∈ gs0.orl ∧ ls.nxt = gs0.ps[ls.first].next ∧ gs0.vs[ls.nxt].deqID ≠ None ∧ gs0.vs[ls.nxt].deqID = Some(ls.othertid) ∧ gs.vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead = ls.first → gs0.rvowns(gs0.vretRefs(ls.othertid)) = Claimed(ls.othertid, gs.vs[ls.nxt].val)) ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst ∧ (ls.lst ∈ gs0.orl from ls.first ∨ ls.lst ∈ gs0.qrl) ∧ noid(ls.tid, gs0.orl + gs0.qrl, gs0.vhead, gs0.vs)
Used simplifier rules: ⊦ rvownsrely(tid, rvowns, rvowns0, vrvHp) ∧ rvowns(addr) = Pending(tid) ∧ addr ∈ vrvHp ∧ addr ≠ null → (rvowns0(addr) = Pending(tid) ↔ true); (ss) ⊦ Val(val).val = val; (s) ⊦ Val(val) = Val(val0) ↔ val = val0; (s) ⊦ None ≠ Some(tid); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] list-elem-in-app11: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ vs; (forward) from specification DMSQ list-elem-in-app12: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ ps; (forward) from specification DMSQ ⊦ noowns(tid, owns) ∧ ownsRely(tid, owns, owns0) → noowns(tid, owns0); (ss) ⊦ nextnottidRely(tid, vhead, vs, vhead0, vs0) ∧ nextnottid(tid, vhead, vs) → nextnottid(tid, vhead0, vs0); (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, gs.vs[ls.nxt].deqID = Some(ls.othertid), 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) = Pending(ls.tid), ls.rvref = gs0.vretRefs(ls.tid), ls.rvref = gs0.pretRefs(ls.tid), gs.vretRefs(ls.tid) = ls.rvref, dom gs.vrvHp = dom gs.prvHp, dom gs0.vrvHp = dom gs0.prvHp, ls.first ≠ ls.lst, ls.nxt ≠ null, gs.orl ≠ [], gs0.orl ≠ [], ls.rvref ≠ null, 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), nextnottid(ls.tid, gs.vhead, gs.vs), nextnottidRely(ls.tid, gs.vhead, gs.vs, gs0.vhead, gs0.vs), noid(ls.tid, gs.orl + gs.qrl, gs.vhead, 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, ¬ ls.success, ¬ dups(gs0.qrl), ¬ dups(gs0.orl), ¬ dups(gs.qrl), ¬ dups(gs.orl), ¬ dups(gs.orl + gs.qrl), ¬ dups(gs0.orl + gs0.qrl), gs.vhead = ls.first → gs.rvowns(gs.vretRefs(ls.othertid)) = Claimed(ls.othertid, gs.vs[ls.nxt].val), 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), 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) ⊦ ls.first ∈ gs0.orl ∧ ls.nxt = gs0.ps[ls.first].next ∧ gs0.vs[ls.nxt].deqID ≠ None ∧ gs0.vs[ls.nxt].deqID = Some(ls.othertid) ∧ gs.vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead = ls.first → gs0.rvowns(gs0.vretRefs(ls.othertid)) = Claimed(ls.othertid, gs.vs[ls.nxt].val)) ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst ∧ (ls.lst ∈ gs0.orl from ls.first ∨ ls.lst ∈ gs0.qrl) ∧ noid(ls.tid, gs0.orl + gs0.qrl, gs0.vhead, gs0.vs) |
orl + rl0 = gs0.orl, orl + qrl + rl = gs0.orl + gs0.qrl, vs[ls.nxt].deqID = Some(ls.othertid), 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), 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) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, ls.first ≠ ls.lst, ls.nxt ≠ null, gs0.orl ≠ [], ls.rvref ≠ null, orl ≠ [], 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), nextnottid(ls.tid, vhead, vs), nextnottidRely(ls.tid, vhead, vs, gs0.vhead, gs0.vs), noid(ls.tid, orl + qrl, vhead, 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, ¬ ls.success, ¬ 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), 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 → rvowns(vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].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 ⊦ ls.first ∈ gs0.orl ∧ ls.nxt = gs0.ps[ls.first].next ∧ gs0.vs[ls.nxt].deqID ≠ None ∧ gs0.vs[ls.nxt].deqID = Some(ls.othertid) ∧ vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead = ls.first → gs0.rvowns(gs0.vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val)) ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst ∧ (ls.lst ∈ gs0.orl from ls.first ∨ ls.lst ∈ gs0.qrl) ∧ noid(ls.tid, gs0.orl + gs0.qrl, gs0.vhead, 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, vs[ls.nxt].deqID = Some(ls.othertid), 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), 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) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, ls.first ≠ ls.lst, ls.nxt ≠ null, gs0.orl ≠ [], ls.rvref ≠ null, orl ≠ [], 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), nextnottid(ls.tid, vhead, vs), nextnottidRely(ls.tid, vhead, vs, gs0.vhead, gs0.vs), noid(ls.tid, orl + qrl, vhead, 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, ¬ ls.success, ¬ 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), 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 → rvowns(vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].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 ⊦ ls.first ∈ gs0.orl ∧ ls.nxt = gs0.ps[ls.first].next ∧ gs0.vs[ls.nxt].deqID ≠ None ∧ gs0.vs[ls.nxt].deqID = Some(ls.othertid) ∧ vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead = ls.first → gs0.rvowns(gs0.vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val)) ∧ gs0.vtail ∈ gs0.orl + gs0.qrl from ls.lst ∧ (ls.lst ∈ gs0.orl from ls.first ∨ ls.lst ∈ gs0.qrl) ∧ noid(ls.tid, gs0.orl + gs0.qrl, gs0.vhead, gs0.vs) |
orl + rl0 = gs0.orl, qrl + rl = rl0 + gs0.qrl, vs[ls.nxt].deqID = Some(ls.othertid), 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), dom gs0.vrvHp = dom gs0.prvHp, dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], 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), nextnottid(ls.tid, vhead, vs), nextnottidRely(ls.tid, vhead, vs, gs0.vhead, gs0.vs), noid(ls.tid, orl + qrl, vhead, 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, ¬ ls.success, ¬ 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), 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 → rvowns(vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].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 ⊦ ls.nxt = gs0.ps[ls.first].next ∧ gs0.vs[ls.nxt].deqID ≠ None ∧ gs0.vs[ls.nxt].deqID = Some(ls.othertid) ∧ vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead = ls.first → gs0.rvowns(gs0.vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val)) ∧ gs0.vtail ∈ (orl + rl0) + gs0.qrl from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ gs0.qrl) ∧ noid(ls.tid, (orl + rl0) + gs0.qrl, 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] ⊦ 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, vs[ls.nxt].deqID = Some(ls.othertid), 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), dom gs0.vrvHp = dom gs0.prvHp, dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], 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), nextnottid(ls.tid, vhead, vs), nextnottidRely(ls.tid, vhead, vs, gs0.vhead, gs0.vs), noid(ls.tid, orl + qrl, vhead, 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, ¬ ls.success, ¬ 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), 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 → rvowns(vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].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 ⊦ ls.nxt = gs0.ps[ls.first].next ∧ gs0.vs[ls.nxt].deqID ≠ None ∧ gs0.vs[ls.nxt].deqID = Some(ls.othertid) ∧ vs[ls.nxt].val = gs0.vs[ls.nxt].val ∧ (gs0.vhead = ls.first → gs0.rvowns(gs0.vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val)) ∧ gs0.vtail ∈ (orl + rl0) + gs0.qrl from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ gs0.qrl) ∧ noid(ls.tid, (orl + rl0) + gs0.qrl, gs0.vhead, gs0.vs) |
qrl + rl = rl0 + qrl0, orl + rl0 = orl0, vs[ls.nxt].deqID = Some(ls.othertid), ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = vretRefs0(ls.tid), ls.rvref = pretRefs0(ls.tid), 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) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], 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), nextnottid(ls.tid, vhead, vs), nextnottidRely(ls.tid, vhead, vs, vhead0, vs0), noid(ls.tid, orl + qrl, vhead, 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, ¬ ls.success, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(qrl + rl), ¬ dups(orl), ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), vhead = ls.first → rvowns(vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val), 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), 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) ⊦ ls.nxt = ps0[ls.first].next ∧ vs0[ls.nxt].deqID ≠ None ∧ vs0[ls.nxt].deqID = Some(ls.othertid) ∧ vs[ls.nxt].val = vs0[ls.nxt].val ∧ (vhead0 = ls.first → rvowns0(vretRefs0(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ qrl0) ∧ noid(ls.tid, (orl + rl0) + qrl0, 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, vs[ls.nxt].deqID = Some(ls.othertid), ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = vretRefs0(ls.tid), ls.rvref = pretRefs0(ls.tid), 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) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], 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), nextnottid(ls.tid, vhead, vs), nextnottidRely(ls.tid, vhead, vs, vhead0, vs0), noid(ls.tid, orl + qrl, vhead, 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, ¬ ls.success, ¬ dups(rl0), ¬ dups(qrl0), ¬ dups(orl + rl0), ¬ dups(qrl + rl), ¬ dups(orl), ¬ dups((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), vhead = ls.first → rvowns(vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val), 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), 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) ⊦ ls.nxt = ps0[ls.first].next ∧ vs0[ls.nxt].deqID ≠ None ∧ vs0[ls.nxt].deqID = Some(ls.othertid) ∧ vs[ls.nxt].val = vs0[ls.nxt].val ∧ (vhead0 = ls.first → rvowns0(vretRefs0(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ qrl0) ∧ noid(ls.tid, (orl + rl0) + qrl0, vhead0, vs0) |
qrl + rl = rl0 + qrl0, vs[ls.nxt].deqID = Some(ls.othertid), ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = pretRefs0(ls.tid), ls.rvref = vretRefs0(ls.tid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], 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), nextnottid(ls.tid, vhead, vs), nextnottidRely(ls.tid, vhead, vs, vhead0, vs0), noid(ls.tid, orl + qrl, vhead, 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, ¬ ls.success, ¬ 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), 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 → rvowns(vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].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 ⊦ ls.nxt = ps0[ls.first].next ∧ vs0[ls.nxt].deqID ≠ None ∧ vs0[ls.nxt].deqID = Some(ls.othertid) ∧ vs[ls.nxt].val = vs0[ls.nxt].val ∧ (vhead0 = ls.first → rvowns0(vretRefs0(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ qrl0) ∧ noid(ls.tid, (orl + rl0) + qrl0, 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, vs[ls.nxt].deqID = Some(ls.othertid), ls.nxt = ps[ls.first].next, ls.optval = Val(vs[ls.nxt].val), ls.rvref = pretRefs0(ls.tid), ls.rvref = vretRefs0(ls.tid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(ls.tid) = ls.rvref, rvowns(ls.rvref) = Pending(ls.tid), vretRefs(ls.tid) = ls.rvref, orl + rl0 ≠ [], ls.first ≠ ls.lst, ls.nxt ≠ null, ls.rvref ≠ null, orl ≠ [], 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), nextnottid(ls.tid, vhead, vs), nextnottidRely(ls.tid, vhead, vs, vhead0, vs0), noid(ls.tid, orl + qrl, vhead, 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, ¬ ls.success, ¬ 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), 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 → rvowns(vretRefs(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].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 ⊦ ls.nxt = ps0[ls.first].next ∧ vs0[ls.nxt].deqID ≠ None ∧ vs0[ls.nxt].deqID = Some(ls.othertid) ∧ vs[ls.nxt].val = vs0[ls.nxt].val ∧ (vhead0 = ls.first → rvowns0(vretRefs0(ls.othertid)) = Claimed(ls.othertid, vs[ls.nxt].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from ls.lst ∧ (ls.lst ∈ orl from ls.first ∨ ls.lst ∈ rl0 ∨ ls.lst ∈ qrl0) ∧ noid(ls.tid, (orl + rl0) + qrl0, vhead0, vs0) |
qrl + rl = rl0 + qrl0, vs[nxt].deqID = Some(othertid), 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) = Pending(tid), rvref = vretRefs0(tid), rvref = pretRefs0(tid), ¬ success, vretRefs(tid) = rvref, orl + rl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, vhead, 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), vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[nxt].val), 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), 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) ⊦ nxt = ps0[first].next ∧ vs0[nxt].deqID ≠ None ∧ vs0[nxt].deqID = Some(othertid) ∧ vs[nxt].val = vs0[nxt].val ∧ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[nxt].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ noid(tid, (orl + rl0) + qrl0, 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, vs[nxt].deqID = Some(othertid), 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) = Pending(tid), rvref = vretRefs0(tid), rvref = pretRefs0(tid), ¬ success, vretRefs(tid) = rvref, orl + rl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, vhead, 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), vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[nxt].val), 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), 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) ⊦ nxt = ps0[first].next ∧ vs0[nxt].deqID ≠ None ∧ vs0[nxt].deqID = Some(othertid) ∧ vs[nxt].val = vs0[nxt].val ∧ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[nxt].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ noid(tid, (orl + rl0) + qrl0, vhead0, vs0) |
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, vhead, 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((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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ ps[first].next = ps0[first].next ∧ vs0[ps[first].next].deqID ≠ None ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ noid(tid, (orl + rl0) + qrl0, vhead0, vs0)
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
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, vhead, 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((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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ ps[first].next = ps0[first].next ∧ vs0[ps[first].next].deqID ≠ None ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ noid(tid, (orl + rl0) + qrl0, vhead0, 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, vhead, 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((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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) ⊦ ps[first].next = ps0[first].next ∧ vs0[ps[first].next].deqID ≠ None ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ noid(tid, (orl + rl0) + qrl0, vhead0, 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), orl + rl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, orl + qrl, vhead, 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((orl + rl0) + qrl0), ¬ dups(orl + qrl), ¬ dups(qrl), ¬ dups(rl), ¬ dups(orl), ¬ dups(rl0 + qrl0), ¬ dups(orl + rl0), ¬ dups(qrl0), ¬ dups(rl0), vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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) ⊦ ps[first].next = ps0[first].next ∧ vs0[ps[first].next].deqID ≠ None ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vtail0 ∈ (orl + rl0) + qrl0 from lst ∧ (lst ∈ orl from first ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ noid(tid, (orl + rl0) + qrl0, vhead0, vs0) |
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ ps[first].next = ps0[first].next ∧ vs0[ps[first].next].deqID ≠ None ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst ∧ (lst ∈ rl2 ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ noid(tid, ((rl1 + first ' + rl2) + rl0) + qrl0, 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] ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ (x + a ' + y).butlast = x + (a ' + y).butlast; (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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ ps[first].next = ps0[first].next ∧ vs0[ps[first].next].deqID ≠ None ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst ∧ (lst ∈ rl2 ∨ lst ∈ rl0 ∨ lst ∈ qrl0) ∧ noid(tid, ((rl1 + first ' + rl2) + rl0) + qrl0, vhead0, vs0) |
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ lst ∈ rl2, ¬ lst ∈ rl0, ¬ lst ∈ qrl0, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ noid(tid, ((rl1 + first ' + rl2) + rl0) + qrl0, vhead0, vs0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = (first ' + rl2 + rl0 + qrl0).last, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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, vs[ps[first].next].deqID = Some(othertid), vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last, ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = (first ' + rl2 + rl0 + qrl0).last, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (first ' + rl2 + rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (first ' + rl2 + rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (first ' + rl2 + rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (first ' + rl2 + rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, 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) ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 + qrl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (rl2 + rl0 + qrl0).last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (rl2 + rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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: ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ markedp([], vs); (s) ⊦ ¬ dups([]); (s) ⊦ unmarkedp([], vs); (s) ⊦ a '.butlast = []; (s) ⊦ a '.last = a; (s) ⊦ [] + x = x; (s) ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ x + [] = x; (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 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] ⊦ ¬ a ∈ []; (s) Used terms: first ', rl2 + rl0 + qrl0
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 + qrl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (rl2 + rl0 + qrl0).last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (rl2 + rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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 ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, 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: ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ markedp([], vs); (s) ⊦ ¬ dups([]); (s) ⊦ [] + x = x; (s) ⊦ unmarkedp([], vs); (s) ⊦ ¬ a ∈ []; (s) ⊦ y ≠ [] → (x + y + z).last = (y + z).last; (s) ⊦ x + a ' + y ≠ []; (s) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: rl2, rl0 + qrl0
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, 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) ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl0 = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (rl0 + qrl0).last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, qrl0.last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ qrl0.last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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 terms: rl0, qrl0
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl0 = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (rl0 + qrl0).last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (rl0 + qrl0).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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 ⊦ |
vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], 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 + qrl + rl, 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(qrl, vs0), markedp(rl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(qrl, ps0), markedp(rl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (qrl + rl).last ∈ rl1 + first ' + rl2 + qrl + rl 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(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ (qrl + rl).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (qrl + rl).last = vhead0 ∨ (first ' + rl2 + (qrl + rl).butlast).last = vhead0 ∧ phead0 ≠ (qrl + rl).last, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ 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) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ unmarkedp([], vs); (s) ⊦ y ≠ [] → (x + y).last = y.last; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ y ≠ [] → (x + y).butlast = x + y.butlast; (s) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s) ⊦ x + a ' + y ≠ []; (s) ⊦ ¬ a ∈ []; (s) ⊦ x + [] = x; (s) ⊦ ¬ dups([]); (s)
| vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], 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 + qrl + rl, 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(qrl, vs0), markedp(rl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(qrl, ps0), markedp(rl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (qrl + rl).last ∈ rl1 + first ' + rl2 + qrl + rl 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(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ (qrl + rl).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (qrl + rl).last = vhead0 ∨ (first ' + rl2 + (qrl + rl).butlast).last = vhead0 ∧ phead0 ≠ (qrl + rl).last, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ rl ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], 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 + qrl + rl, vs0, ps0, owns0), markedp(rl, ps0), markedp(qrl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(qrl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), 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, (qrl + rl).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ (qrl + rl).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), (qrl + rl).last = vhead0 ∨ (first ' + rl2 + (qrl + rl).butlast).last = vhead0 ∧ phead0 ≠ (qrl + rl).last ⊦
vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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 + qrl + rl, vs0, ps0, owns0), markedp(rl, ps0), markedp(qrl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(qrl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), 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, rl.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ rl.last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), rl.last = vhead0 ∨ (first ' + rl2 + (qrl + rl).butlast).last = vhead0 ∧ phead0 ≠ rl.last ⊦
Used terms: qrl, rl
| ⊦ y ≠ [] → (x + y).last = y.last |
| vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], 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 + qrl + rl, vs0, ps0, owns0), markedp(rl, ps0), markedp(qrl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(qrl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), 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, (qrl + rl).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ (qrl + rl).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), (qrl + rl).last = vhead0 ∨ (first ' + rl2 + (qrl + rl).butlast).last = vhead0 ∧ phead0 ≠ (qrl + rl).last ⊦ |
vs[qrl.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs[qrl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl, vs0, ps0, owns0), listp(first ' + rl2 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), markedp(qrl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(qrl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, (first ' + rl2 + qrl.butlast).last ∈ (rl1 + first ' + rl2) + qrl from lst, pretRefs0(tid) ∈ vrvHp, qrl.last ∈ rl1 + first ' + rl2 + qrl from (first ' + rl2 + qrl.butlast).last, vhead0 ∈ rl1 + first ' + rl2 + qrl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl), ¬ dups(qrl), ¬ qrl.last ∈ rl1 + first ' + rl2 + qrl from lst, ¬ first ∈ qrl, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ unmarkedp(qrl.tail, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), qrl.last = vhead0 ∨ (first ' + rl2 + qrl.butlast).last = vhead0 ∧ phead0 ≠ qrl.last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦
Used simplifier rules: ⊦ ¬ a ∈ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ y ≠ [] → (x + y).last = y.last; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s) ⊦ x + [] = x; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s)
| vs[qrl.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs[qrl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl, vs0, ps0, owns0), listp(first ' + rl2 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), markedp(qrl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(qrl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, (first ' + rl2 + qrl.butlast).last ∈ (rl1 + first ' + rl2) + qrl from lst, pretRefs0(tid) ∈ vrvHp, qrl.last ∈ rl1 + first ' + rl2 + qrl from (first ' + rl2 + qrl.butlast).last, vhead0 ∈ rl1 + first ' + rl2 + qrl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl), ¬ dups(qrl), ¬ qrl.last ∈ rl1 + first ' + rl2 + qrl from lst, ¬ first ∈ qrl, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ unmarkedp(qrl.tail, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), qrl.last = vhead0 ∨ (first ' + rl2 + qrl.butlast).last = vhead0 ∧ phead0 ≠ qrl.last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦ |
vs[ps[first].next].deqID = Some(othertid), vs[qrl.last].deqID = None, vs[qrl.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + rl, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + first ' + rl2 + qrl, vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(qrl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(qrl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl, 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(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl from vhead, qrl.last ∈ rl1 + first ' + rl2 + qrl from (first ' + rl2 + qrl.butlast).last, pretRefs0(tid) ∈ vrvHp, (first ' + rl2 + qrl.butlast).last ∈ (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(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl), ¬ dups(qrl), ¬ qrl.last ∈ rl1 + first ' + rl2 + qrl from lst, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, qrl.last = vhead0 ∨ (first ' + rl2 + qrl.butlast).last = vhead0 ∧ phead0 ≠ qrl.last, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ⊦
Used simplifier rules: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: qrl, head, tail
| vs[ps[first].next].deqID = Some(othertid), vs[qrl.last].deqID = None, vs[qrl.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + rl, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + first ' + rl2 + qrl, vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(qrl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(qrl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl, 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(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl from vhead, qrl.last ∈ rl1 + first ' + rl2 + qrl from (first ' + rl2 + qrl.butlast).last, pretRefs0(tid) ∈ vrvHp, (first ' + rl2 + qrl.butlast).last ∈ (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(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1), ¬ dups(rl1 + rl2 + qrl), ¬ dups(qrl), ¬ qrl.last ∈ rl1 + first ' + rl2 + qrl from lst, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, qrl.last = vhead0 ∨ (first ' + rl2 + qrl.butlast).last = vhead0 ∧ phead0 ≠ qrl.last, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ⊦ |
ps[phead1].deqID = None, vs[(phead1 ' + rl).last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs[(phead1 ' + rl).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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 + phead1 ' + rl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl, vs, rl1 + first ' + rl2 + phead1 ' + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, 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[phead1].deqID), some?(ps0[phead1].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(rl, ps), vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + rl from vhead, (phead1 ' + rl).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from (first ' + rl2 + (phead1 ' + rl).butlast).last, pretRefs0(tid) ∈ vrvHp, (first ' + rl2 + (phead1 ' + rl).butlast).last ∈ rl1 + first ' + rl2 + phead1 ' + rl 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(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl), ¬ first ∈ rl, ¬ (phead1 ' + rl).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, (phead1 ' + rl).last = vhead0 ∨ (first ' + rl2 + (phead1 ' + rl).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl).last, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl, vs), lst ∈ rl ∨ lst ∈ rl2 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ' + x ≠ []; (s) ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ a + x = a ' + x; (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ x + a ' + y ≠ []; (s)
| ps[phead1].deqID = None, vs[(phead1 ' + rl).last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs[(phead1 ' + rl).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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 + phead1 ' + rl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl, vs, rl1 + first ' + rl2 + phead1 ' + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, 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[phead1].deqID), some?(ps0[phead1].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(rl, ps), vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + rl from vhead, (phead1 ' + rl).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from (first ' + rl2 + (phead1 ' + rl).butlast).last, pretRefs0(tid) ∈ vrvHp, (first ' + rl2 + (phead1 ' + rl).butlast).last ∈ rl1 + first ' + rl2 + phead1 ' + rl 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(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl), ¬ first ∈ rl, ¬ (phead1 ' + rl).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, (phead1 ' + rl).last = vhead0 ∨ (first ' + rl2 + (phead1 ' + rl).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl).last, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl, vs), lst ∈ rl ∨ lst ∈ rl2 ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
vs[ps[first].next].deqID = Some(othertid), vs[(phead1 ' + rl).last].deqID = None, ps[phead1].deqID = None, vs[(phead1 ' + rl).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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 + phead1 ' + rl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs0, ps0, owns0), listp(first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, owns), markedp(rl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl, vs, rl1 + first ' + rl2 + phead1 ' + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), unmarkedp(rl, ps), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, (first ' + rl2 + (phead1 ' + rl).butlast).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, pretRefs0(tid) ∈ vrvHp, (phead1 ' + rl).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from (first ' + rl2 + (phead1 ' + rl).butlast).last, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl), ¬ first ∈ rl, ¬ (phead1 ' + rl).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl ∨ lst ∈ rl2, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl, vs), (phead1 ' + rl).last = vhead0 ∨ (first ' + rl2 + (phead1 ' + rl).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl).last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1 ∨ phead0 ∈ rl ⊦
vs[ps[first].next].deqID = Some(othertid), vs[rl.last].deqID = None, ps[phead1].deqID = None, vs[rl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs0, ps0, owns0), listp(first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, owns), markedp(rl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl, vs, rl1 + first ' + rl2 + phead1 ' + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), unmarkedp(rl, ps), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, (first ' + rl2 + (phead1 ' + rl).butlast).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, pretRefs0(tid) ∈ vrvHp, rl.last ∈ rl1 + first ' + rl2 + phead1 ' + rl from (first ' + rl2 + (phead1 ' + rl).butlast).last, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl), ¬ first ∈ rl, ¬ rl.last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl ∨ lst ∈ rl2, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl, vs), rl.last = vhead0 ∨ (first ' + rl2 + (phead1 ' + rl).butlast).last = vhead0 ∧ phead0 ≠ rl.last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1 ∨ phead0 ∈ rl ⊦
Used terms: phead1 ', rl
| ⊦ y ≠ [] → (x + y).last = y.last |
| vs[ps[first].next].deqID = Some(othertid), vs[(phead1 ' + rl).last].deqID = None, ps[phead1].deqID = None, vs[(phead1 ' + rl).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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 + phead1 ' + rl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs0, ps0, owns0), listp(first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, owns), markedp(rl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl, vs, rl1 + first ' + rl2 + phead1 ' + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), unmarkedp(rl, ps), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, (first ' + rl2 + (phead1 ' + rl).butlast).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, pretRefs0(tid) ∈ vrvHp, (phead1 ' + rl).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from (first ' + rl2 + (phead1 ' + rl).butlast).last, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl), ¬ first ∈ rl, ¬ (phead1 ' + rl).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl ∨ lst ∈ rl2, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl, vs), (phead1 ' + rl).last = vhead0 ∨ (first ' + rl2 + (phead1 ' + rl).butlast).last = vhead0 ∧ phead0 ≠ (phead1 ' + rl).last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1 ∨ phead0 ∈ rl ⊦ |
vs[ps[first].next].deqID = Some(othertid), ps[phead1].deqID = None, vs[phead1].deqID = None, vs[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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 + phead1 ', vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ', vs, ps, owns), listp(first ' + rl2 + phead1 ', vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ', vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl2, ps0), markedp(rl1, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ', vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ', vs, rl1 + first ' + rl2 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ', 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[phead1].deqID), some?(ps0[phead1].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ rl2, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' from vhead, phead1 ∈ rl1 + first ' + rl2 + phead1 ' from rl2.last, pretRefs0(tid) ∈ vrvHp, rl2.last ∈ rl1 + first ' + rl2 + phead1 ' from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1), ¬ dups(rl1 + rl2), ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ phead1 ∈ rl1 + first ' + rl2 + phead1 ' 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ rl2.last = vhead0 ∧ phead0 ≠ phead1, rl2.last = vhead ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ rl2.last ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ ¬ a ∈ []; (s) ⊦ unmarkedp([], vs); (s) ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) ⊦ a '.butlast = []; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s)
| vs[ps[first].next].deqID = Some(othertid), ps[phead1].deqID = None, vs[phead1].deqID = None, vs[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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 + phead1 ', vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ', vs, ps, owns), listp(first ' + rl2 + phead1 ', vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ', vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl2, ps0), markedp(rl1, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ', vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ', vs, rl1 + first ' + rl2 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ', 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[phead1].deqID), some?(ps0[phead1].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ rl2, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' from vhead, phead1 ∈ rl1 + first ' + rl2 + phead1 ' from rl2.last, pretRefs0(tid) ∈ vrvHp, rl2.last ∈ rl1 + first ' + rl2 + phead1 ' from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1), ¬ dups(rl1 + rl2), ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ phead1 ∈ rl1 + first ' + rl2 + phead1 ' 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ rl2.last = vhead0 ∧ phead0 ≠ phead1, rl2.last = vhead ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ rl2.last ⊦ |
⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl
Used simplifier rules: ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ x.last ∈ x ↔ x ≠ []; (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ a ∈ x ∧ a ∈ y → dups(x + y); (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ rl.last ∈ rl from r ↔ r ∈ rl; (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) Used terms: rl1, first ' + rl2 + phead1 ', lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| vs[ps[first].next].deqID = Some(othertid), vs[rl.last].deqID = None, ps[phead1].deqID = None, vs[rl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs0, ps0, owns0), listp(first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, owns), markedp(rl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl, vs, rl1 + first ' + rl2 + phead1 ' + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), some?(ps0[phead1].deqID), some?(vs0[phead1].deqID), unmarkedp(rl, ps), first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, (first ' + rl2 + (phead1 ' + rl).butlast).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, pretRefs0(tid) ∈ vrvHp, rl.last ∈ rl1 + first ' + rl2 + phead1 ' + rl from (first ' + rl2 + (phead1 ' + rl).butlast).last, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl), ¬ first ∈ rl, ¬ rl.last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl ∨ lst ∈ rl2, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl, vs), rl.last = vhead0 ∨ (first ' + rl2 + (phead1 ' + rl).butlast).last = vhead0 ∧ phead0 ≠ rl.last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1 ∨ phead0 ∈ rl ⊦ |
ps[phead1].deqID = None, vs[rl.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs[rl.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl, vs, rl1 + first ' + rl2 + phead1 ' + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, 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[phead1].deqID), some?(ps0[phead1].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(rl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + rl from vhead, rl.last ∈ rl1 + first ' + rl2 + phead1 ' + rl from (phead1 ' + rl.butlast).last, pretRefs0(tid) ∈ vrvHp, (phead1 ' + rl.butlast).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl), ¬ first ∈ rl, ¬ rl.last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl, vs), lst ∈ rl ∨ lst ∈ rl2, rl.last = vhead0 ∨ (phead1 ' + rl.butlast).last = vhead0 ∧ phead0 ≠ rl.last ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s)
| ps[phead1].deqID = None, vs[rl.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs[rl.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, lst ≠ phead1, 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(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(first ' + rl2 + phead1 ' + rl, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl, vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl, vs, rl1 + first ' + rl2 + phead1 ' + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl, 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[phead1].deqID), some?(ps0[phead1].deqID), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(rl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + rl from vhead, rl.last ∈ rl1 + first ' + rl2 + phead1 ' + rl from (phead1 ' + rl.butlast).last, pretRefs0(tid) ∈ vrvHp, (phead1 ' + rl.butlast).last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl), ¬ first ∈ rl, ¬ rl.last ∈ rl1 + first ' + rl2 + phead1 ' + rl from lst, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl, ¬ phead1 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead1 ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, (first ' + rl2).last = vhead ∧ unmarkedp(rl, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl, vs), lst ∈ rl ∨ lst ∈ rl2, rl.last = vhead0 ∨ (phead1 ' + rl.butlast).last = vhead0 ∧ phead0 ≠ rl.last ⊦ |
⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl
Used simplifier rules: ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ x.last ∈ x ↔ x ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ rl.last ∈ rl from r ↔ r ∈ rl; (s) Used terms: rl1, first ' + rl2 + phead1 ' + rl, lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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 + qrl + rl, vs0, ps0, owns0), markedp(rl, ps0), markedp(qrl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(qrl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), 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, rl.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ rl.last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), rl.last = vhead0 ∨ (first ' + rl2 + (qrl + rl).butlast).last = vhead0 ∧ phead0 ≠ rl.last ⊦ |
vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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(qrl, vs0), markedp(rl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(qrl, ps0), markedp(rl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, rl.last ∈ rl1 + first ' + rl2 + qrl + rl 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(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ rl.last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, rl.last = vhead0 ∨ (first ' + rl2 + qrl + rl.butlast).last = vhead0 ∧ phead0 ≠ rl.last ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ y ≠ [] → (x + y).butlast = x + y.butlast; (s)
| vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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(qrl, vs0), markedp(rl, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(qrl, ps0), markedp(rl, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, rl.last ∈ rl1 + first ' + rl2 + qrl + rl 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(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ rl.last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, rl.last = vhead0 ∨ (first ' + rl2 + qrl + rl.butlast).last = vhead0 ∧ phead0 ≠ rl.last ⊦ |
vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = qrl0 + phead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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 + qrl + rl, vs0, ps0, owns0), markedp(rl, ps0), markedp(qrl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(qrl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), 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, phead1 ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ phead1 ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), phead1 = vhead0 ∨ (first ' + rl2 + qrl + qrl0).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs) ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl, phead1, y
| vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = qrl0 + phead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + qrl + rl ≠ [], qrl + rl ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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 + qrl + rl, vs0, ps0, owns0), markedp(rl, ps0), markedp(qrl, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl, vs0), markedp(qrl, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), 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, phead1 ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl + rl), ¬ dups(rl1), ¬ dups(rl2 + qrl + rl), ¬ dups(rl1 + rl2), ¬ dups(qrl + rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ first ∈ qrl, ¬ phead1 ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), phead1 = vhead0 ∨ (first ' + rl2 + qrl + qrl0).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs) ⊦ |
vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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(qrl, vs0), markedp(qrl0, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(qrl, ps0), markedp(qrl0, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, phead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' 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 + qrl + qrl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(qrl + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1), ¬ dups(rl2 + qrl + qrl0), ¬ dups(rl1 + rl2), ¬ dups(rl1 + rl2 + qrl), ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ qrl, ¬ phead1 ∈ qrl0, ¬ first ∈ qrl, ¬ phead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ (first ' + rl2 + qrl + qrl0).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ qrl0 ∨ phead0 = phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ qrl0 ∨ 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) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (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)
| vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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(qrl, vs0), markedp(qrl0, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(qrl, ps0), markedp(qrl0, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, phead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' 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 + qrl + qrl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(qrl + qrl0), ¬ dups(rl2 + qrl), ¬ dups(rl1), ¬ dups(rl2 + qrl + qrl0), ¬ dups(rl1 + rl2), ¬ dups(rl1 + rl2 + qrl), ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ qrl, ¬ phead1 ∈ qrl0, ¬ first ∈ qrl, ¬ phead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ (first ' + rl2 + qrl + qrl0).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ qrl ∨ phead0 ∈ qrl0 ∨ phead0 = phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ qrl ∨ phead0 ∈ qrl0 ∨ phead0 = phead1 ⊦ |
⊦ 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 ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (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] ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) Used terms: rl1, first ' + rl2 + qrl + qrl0 + phead1 ', lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, qrl0.last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ qrl0.last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, qrl0.last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ qrl0.last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, 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 ∧ 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, qrl0.last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ qrl0.last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, 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 ∧ 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl0 = vtail0 + rl3, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, qrl0.last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ qrl0.last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, 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, 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: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: qrl0, head, tail
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl0 = vtail0 + rl3, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + qrl0 ≠ [], rl2 + rl0 + qrl0 ≠ [], ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, qrl0.last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ qrl0.last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, 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, 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 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, 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 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, 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 ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ a ' + x ≠ []; (s) ⊦ x + a ' + y ≠ []; (s)
| qrl + rl = rl0 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, 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 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0) ⊦ |
⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl
qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl 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(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦
qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl 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, lst ∈ rl1, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ (rl1 from lst) + first ' + rl2 + qrl + rl, ¬ first ∈ rl3, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: rl1, first ' + rl2 + qrl + rl, lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl 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(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦ |
qrl + rl = rl0 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, ps0), pretRefs0(tid) ∈ vrvHp, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl2 + qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0) ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s)
| qrl + rl = rl0 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, ps0), pretRefs0(tid) ∈ vrvHp, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ rl2 + qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0) ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vtail ∈ rl2 + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, rl3.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ rl3.last ∈ rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦
Used simplifier rules: ⊦ a '.last = a; (s) ⊦ unmarkedp([], vs); (s) ni: ⊦ x + a ' = y + z ∧ ¬ a ∈ z → z = []; (forward) from specification list[reflist] ⊦ x + [] = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ dups([]); (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 ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ 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) Used terms: vtail0 ', rl3
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vtail ∈ rl2 + qrl from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, rl3.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ rl3.last ∈ rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦ |
qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, rl3.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ qrl, vtail ∈ qrl from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl2 + rl0) + rl3), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ rl3.last ∈ qrl from lst, ¬ rl3.last ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (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) ⊦
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) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl 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
| qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, rl3.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, lst ∈ qrl, vtail ∈ qrl from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl2 + rl0) + rl3), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ rl3.last ∈ qrl from lst, ¬ rl3.last ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (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) ⊦ |
qrl + rl = rl0 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + rl4, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, qrl ≠ [], rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, ps0), lst ∈ ps, lst ∈ vs, vtail ∈ qrl from lst, lst ∈ qrl, pretRefs0(tid) ∈ vrvHp, rl3.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl2 + rl0) + rl3), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ rl3.last ∈ qrl from lst, ¬ rl3.last ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(rl4, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), 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 ⊦
Used simplifier rules: ⊦ [] + x = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, phead1, y
| qrl + rl = rl0 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + rl4, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, qrl ≠ [], rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, ps0), lst ∈ ps, lst ∈ vs, vtail ∈ qrl from lst, lst ∈ qrl, pretRefs0(tid) ∈ vrvHp, rl3.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl2 + rl0) + rl3), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ rl3.last ∈ qrl from lst, ¬ rl3.last ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(rl4, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), 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 ⊦ |
(phead1 ' + rl4) + rl = rl0 + vtail0 ' + rl3, ps[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead1 ' + rl4, vs, ps, vs0, ps0), listp(first ' + rl2 + phead1 ' + rl4, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl4, vs, ps, owns), listp(rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl4, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl4, vs, rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl4, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + rl0 + vtail0 ' + 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?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl4, ps), unmarkedp(rl3, ps0), lst ∈ ps, lst ∈ vs, vtail ∈ phead1 ' + rl4 from lst, pretRefs0(tid) ∈ vrvHp, rl3.last ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3 from vtail, vhead0 ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl1 + rl2) + rl4), ¬ dups(rl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ rl3.last ∈ phead1 ' + rl4 from lst, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl1, ¬ first ∈ rl4, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ rl3.last ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ unmarkedp(rl4, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl4, vs), vtail = (phead1 ' + rl4).last ∨ vtail = (first ' + rl2 + (phead1 ' + rl4).butlast).last ∧ vs[(phead1 ' + rl4).last].deqID = None ∧ vs[(phead1 ' + rl4).last].next = null, lst = phead1 ∨ lst ∈ rl4, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead1 ∈ rl0 ∨ phead1 = vtail0 ∨ phead1 ∈ rl3 ⊦
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) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ ¬ 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)
| (phead1 ' + rl4) + rl = rl0 + vtail0 ' + rl3, ps[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead1 ' + rl4, vs, ps, vs0, ps0), listp(first ' + rl2 + phead1 ' + rl4, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl4, vs, ps, owns), listp(rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl4, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl4, vs, rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl4, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + rl0 + vtail0 ' + 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?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl4, ps), unmarkedp(rl3, ps0), lst ∈ ps, lst ∈ vs, vtail ∈ phead1 ' + rl4 from lst, pretRefs0(tid) ∈ vrvHp, rl3.last ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3 from vtail, vhead0 ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl1 + rl2) + rl4), ¬ dups(rl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ rl3.last ∈ phead1 ' + rl4 from lst, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl1, ¬ first ∈ rl4, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ rl3.last ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ unmarkedp(rl4, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl4, vs), vtail = (phead1 ' + rl4).last ∨ vtail = (first ' + rl2 + (phead1 ' + rl4).butlast).last ∧ vs[(phead1 ' + rl4).last].deqID = None ∧ vs[(phead1 ' + rl4).last].next = null, lst = phead1 ∨ lst ∈ rl4, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead1 ∈ rl0 ∨ phead1 = vtail0 ∨ phead1 ∈ rl3 ⊦ |
Used simplifier rules: ⊦ x + a ' ≠ []; (s) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (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) 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 ∈ b ' ↔ a = b; (s) ⊦ ¬ a ∈ y → (y + c ' + z = a ' + z0 ↔ y = [] ∧ c = a ∧ z = z0); (ws) ⊦ x + [] = x; (s) ⊦ ¬ dups([]); (s) ⊦ r ' + rl from r = r ' + rl; (s) ni: ⊦ x + a ' = y + z ∧ ¬ a ∈ z → z = []; (forward) from specification list[reflist] ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ a ∈ x → (b ' + x).last = x.last; (s) lapp-04: ⊦ a ' + x = y + b ' ∧ a ≠ b → x.last = b; (forward) from specification list-last[reflist] inapp-10: ⊦ a ' + x = y + b ' ∧ a ≠ b → a ∈ y ∧ b ∈ x; (forward) from specification list[reflist] 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 ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ ¬ a ∈ x → (a ' + x = y + a ' + z ↔ y = [] ∧ z = x); (ws) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (s) ⊦ x.last ∈ x ↔ x ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ rl.last ∈ rl from r ↔ r ∈ rl; (s) ⊦ ¬ r ∈ rl → rl from r = []; (s) ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl3, vhead1, y
| qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl 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, lst ∈ rl1, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ (rl1 from lst) + first ' + rl2 + qrl + rl, ¬ first ∈ rl3, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦ |
qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (vtail0 ' + rl3).last ≠ first, (vtail0 ' + rl3).last ≠ vtail0, ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail ≠ 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), lst ∈ ps0, lst ∈ vs0, lst ∈ ps, lst ∈ vs, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ rl1, lst ∈ qrl, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl2 + rl0) + rl3), ¬ dups(rl2 + qrl), ¬ (vtail0 ' + rl3).last ∈ rl0, ¬ (vtail0 ' + rl3).last ∈ rl, ¬ (vtail0 ' + rl3).last ∈ qrl, ¬ (vtail0 ' + rl3).last ∈ rl2, ¬ (vtail0 ' + rl3).last ∈ rl1 from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl3, ¬ (vtail0 ' + rl3).last ∈ rl3, ¬ lst ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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, vtail ∈ qrl ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (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) ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x ∧ a ∈ y → dups(x + y); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (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 ' ↔ 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 ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s)
| qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (vtail0 ' + rl3).last ≠ first, (vtail0 ' + rl3).last ≠ vtail0, ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail ≠ 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), lst ∈ ps0, lst ∈ vs0, lst ∈ ps, lst ∈ vs, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, lst ∈ rl1, lst ∈ qrl, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl2 + rl0) + rl3), ¬ dups(rl2 + qrl), ¬ (vtail0 ' + rl3).last ∈ rl0, ¬ (vtail0 ' + rl3).last ∈ rl, ¬ (vtail0 ' + rl3).last ∈ qrl, ¬ (vtail0 ' + rl3).last ∈ rl2, ¬ (vtail0 ' + rl3).last ∈ rl1 from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl3, ¬ (vtail0 ' + rl3).last ∈ rl3, ¬ lst ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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, vtail ∈ qrl ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (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) ⊦ |
qrl + rl = rl0 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + rl4, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (vtail0 ' + rl3).last ≠ first, (vtail0 ' + rl3).last ≠ vtail0, ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, qrl ≠ [], vtail ≠ 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 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, ps0), lst ∈ qrl, lst ∈ rl1, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, lst ∈ vs, lst ∈ ps, lst ∈ vs0, lst ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl2 + rl0) + rl3), ¬ dups(rl2 + qrl), ¬ (vtail0 ' + rl3).last ∈ rl0, ¬ (vtail0 ' + rl3).last ∈ rl, ¬ (vtail0 ' + rl3).last ∈ qrl, ¬ (vtail0 ' + rl3).last ∈ rl2, ¬ (vtail0 ' + rl3).last ∈ rl1 from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl3, ¬ (vtail0 ' + rl3).last ∈ rl3, ¬ lst ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(rl4, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), vtail ∈ qrl ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, 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 ⊦
Used simplifier rules: ⊦ [] + x = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, phead1, y
| qrl + rl = rl0 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + rl4, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (vtail0 ' + rl3).last ≠ first, (vtail0 ' + rl3).last ≠ vtail0, ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, qrl ≠ [], vtail ≠ 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 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, ps0), lst ∈ qrl, lst ∈ rl1, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, lst ∈ vs, lst ∈ ps, lst ∈ vs0, lst ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl2 + rl0) + rl3), ¬ dups(rl2 + qrl), ¬ (vtail0 ' + rl3).last ∈ rl0, ¬ (vtail0 ' + rl3).last ∈ rl, ¬ (vtail0 ' + rl3).last ∈ qrl, ¬ (vtail0 ' + rl3).last ∈ rl2, ¬ (vtail0 ' + rl3).last ∈ rl1 from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl3, ¬ (vtail0 ' + rl3).last ∈ rl3, ¬ lst ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(rl4, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), vtail ∈ qrl ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, 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 ⊦ |
(phead1 ' + rl4) + rl = rl0 + vtail0 ' + rl3, ps[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (vtail0 ' + rl3).last ≠ phead1, (vtail0 ' + rl3).last ≠ vtail0, (vtail0 ' + rl3).last ≠ first, ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, vtail ≠ 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 + phead1 ' + rl4, vs, ps, vs0, ps0), listp(first ' + rl2 + phead1 ' + rl4, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl4, vs, ps, owns), listp(rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl4, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl4, vs, rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl4, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + rl0 + vtail0 ' + 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?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl4, ps), unmarkedp(rl3, ps0), lst ∈ rl4, lst ∈ rl1, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3 from vtail, vhead0 ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3 from vhead, lst ∈ vs, lst ∈ ps, lst ∈ vs0, lst ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl1 + rl2) + rl4), ¬ dups(rl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ first ∈ rl4, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ rl1 from lst, ¬ (vtail0 ' + rl3).last ∈ rl2, ¬ (vtail0 ' + rl3).last ∈ rl4, ¬ (vtail0 ' + rl3).last ∈ rl, ¬ (vtail0 ' + rl3).last ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ lst ∈ rl2, ¬ (vtail0 ' + rl3).last ∈ rl3, ¬ first ∈ rl3, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = rl4.last ∨ vtail = (first ' + rl2 + (phead1 ' + rl4).butlast).last ∧ vs[rl4.last].deqID = None ∧ vs[rl4.last].next = null, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, (first ' + rl2).last = vhead ∧ unmarkedp(rl4, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl4, vs), vtail = phead1 ∨ vtail ∈ rl4 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, phead1 ∈ rl0 ∨ phead1 = vtail0 ∨ phead1 ∈ rl3 ⊦
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] ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ 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) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ ¬ 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)
| (phead1 ' + rl4) + rl = rl0 + vtail0 ' + rl3, ps[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (vtail0 ' + rl3).last ≠ phead1, (vtail0 ' + rl3).last ≠ vtail0, (vtail0 ' + rl3).last ≠ first, ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, vtail ≠ 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 + phead1 ' + rl4, vs, ps, vs0, ps0), listp(first ' + rl2 + phead1 ' + rl4, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl4, vs, ps, owns), listp(rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl4, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl4, vs, rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl4, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + rl0 + vtail0 ' + 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?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl4, ps), unmarkedp(rl3, ps0), lst ∈ rl4, lst ∈ rl1, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (vtail0 ' + rl3).last ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3 from vtail, vhead0 ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' + rl3 from vhead, lst ∈ vs, lst ∈ ps, lst ∈ vs0, lst ∈ ps0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups((rl1 + rl2) + rl4), ¬ dups(rl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ first ∈ rl4, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3).last ∈ rl1 from lst, ¬ (vtail0 ' + rl3).last ∈ rl2, ¬ (vtail0 ' + rl3).last ∈ rl4, ¬ (vtail0 ' + rl3).last ∈ rl, ¬ (vtail0 ' + rl3).last ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ lst ∈ rl2, ¬ (vtail0 ' + rl3).last ∈ rl3, ¬ first ∈ rl3, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = rl4.last ∨ vtail = (first ' + rl2 + (phead1 ' + rl4).butlast).last ∧ vs[rl4.last].deqID = None ∧ vs[rl4.last].next = null, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, (first ' + rl2).last = vhead ∧ unmarkedp(rl4, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl4, vs), vtail = phead1 ∨ vtail ∈ rl4 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, phead1 ∈ rl0 ∨ phead1 = vtail0 ∨ phead1 ∈ rl3 ⊦ |
⊦ 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: vtail0 ', rl3
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), vtail0 = (first ' + rl2 + rl0 + qrl0.butlast).last, ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ vtail0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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, 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, vs0[qrl0.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[qrl0.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (first ' + rl2 + rl0 + qrl0.butlast).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (first ' + rl2 + rl0 + qrl0.butlast).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, 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 ∧ 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, vs0[qrl0.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[qrl0.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (first ' + rl2 + rl0 + qrl0.butlast).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vtail, vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (first ' + rl2 + rl0 + qrl0.butlast).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, 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 ∧ 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, vs[ps[first].next].deqID = Some(othertid), vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl0 = vtail0 + rl3, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (first ' + rl2 + rl0 + qrl0.butlast).last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (first ' + rl2 + rl0 + qrl0.butlast).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, 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, 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: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: qrl0, head, tail
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), vs0[qrl0.last].deqID = None, vs0[qrl0.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl0 = vtail0 + rl3, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, 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((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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, (first ' + rl2 + rl0 + qrl0.butlast).last ∈ ((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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ (first ' + rl2 + rl0 + qrl0.butlast).last ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from lst, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, 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, 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 + vtail0 ' + rl3, vs0[(vtail0 ' + rl3).last].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[(vtail0 ' + rl3).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, 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, (first ' + rl2 + rl0 + (vtail0 ' + rl3).butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (first ' + rl2 + rl0 + (vtail0 ' + rl3).butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, 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 ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ a ' + x ≠ []; (s)
| qrl + rl = rl0 + vtail0 ' + rl3, vs0[(vtail0 ' + rl3).last].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[(vtail0 ' + rl3).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, 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, (first ' + rl2 + rl0 + (vtail0 ' + rl3).butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (first ' + rl2 + rl0 + (vtail0 ' + rl3).butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0) ⊦ |
⊦ y ≠ [] → (x + y).butlast = x + y.butlast
qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[(vtail0 ' + rl3).last].deqID = None, vs0[(vtail0 ' + rl3).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl3 = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (first ' + rl2 + rl0 + (vtail0 ' + rl3).butlast).last ∈ rl1 + first ' + rl2 + qrl + rl 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(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (first ' + rl2 + rl0 + (vtail0 ' + rl3).butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦
qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[(vtail0 ' + rl3).last].deqID = None, vs0[(vtail0 ' + rl3).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (first ' + rl2 + rl0 + vtail0 ' + rl3.butlast).last ∈ rl1 + first ' + rl2 + qrl + rl 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(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (first ' + rl2 + rl0 + vtail0 ' + rl3.butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦
Used terms: vtail0 ', rl3
| ⊦ y ≠ [] → (x + y).butlast = x + y.butlast |
| qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[(vtail0 ' + rl3).last].deqID = None, vs0[(vtail0 ' + rl3).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl3 = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (first ' + rl2 + rl0 + (vtail0 ' + rl3).butlast).last ∈ rl1 + first ' + rl2 + qrl + rl 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(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (first ' + rl2 + rl0 + (vtail0 ' + rl3).butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦ |
qrl + rl = rl0 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, 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) 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 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail0 ∈ qrl ∨ vtail0 ∈ rl ⊦ |
⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl
qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ lst ∈ rl1, ¬ (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ⊦
qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, lst ∈ rl1, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ (first ' + rl2 + rl0).last ∈ (rl1 from lst) + first ' + rl2 + qrl + rl, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: rl1, first ' + rl2 + qrl + rl, lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ lst ∈ rl1, ¬ (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ⊦ |
qrl + rl = rl0 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl2 + qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ (first ' + rl2 + rl0).last ∈ rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail0 ∈ qrl ∨ vtail0 ∈ rl ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s)
| qrl + rl = rl0 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl2 + qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ (first ' + rl2 + rl0).last ∈ rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail0 ∈ qrl ∨ vtail0 ∈ rl ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vtail ∈ rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, (rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ (rl2 + rl0).last ∈ rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (rl2 + rl0).last ⊦
Used simplifier rules: ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ markedp([], vs); (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a '.butlast = []; (s) ⊦ [] + x = x; (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: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ a ' = b ' ↔ a = b; (s) ⊦ x + [] = x; (s) ⊦ listp(r ' + r0 ', 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 ∧ r0 ≠ null ∧ owns(r0) = None ∧ r0 ∈ vs ∧ r0 ∈ ps ∧ ¬ weak?(vs[r0].deqID) ∧ (ps[r0].deqID = vs[r0].deqID ∨ ps[r0].deqID = None) ∧ ps[r0].val = vs[r0].val ∧ ps[r0].next = null ∧ ( vs[r0].next ≠ null → vs[r0].next ∈ vs ∧ vs[r0].next ∈ ps ∧ ps[vs[r0].next] = vs[vs[r0].next] ∧ ps[vs[r0].next].deqID = None ∧ ps[vs[r0].next].next = null ∧ weak?(owns(vs[r0].next))); (s) ⊦ some?(opttid) → opttid ≠ None; (as) ⊦ ¬ dups(a '); (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ dups([]); (s) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ a '.last = a; (s) ⊦ a ' ≠ []; (s) ⊦ a '.tail = []; (s) ⊦ unmarkedp([], vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl 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) Used terms: first ', rl2 + rl0
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vtail ∈ rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, (rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ (rl2 + rl0).last ∈ rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (rl2 + rl0).last ⊦ |
qrl + rl = rl0 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl2 + qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ (rl2 + rl0).last ∈ rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail0 ∈ qrl ∨ vtail0 ∈ rl, (rl2 + rl0).last = vhead0 ∨ (first ' + (rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (rl2 + rl0).last ⊦
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).butlast = a ' + x.butlast; (s) ⊦ x + a ' + y ≠ []; (s)
| qrl + rl = rl0 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl2 + qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ (rl2 + rl0).last ∈ rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail0 ∈ qrl ∨ vtail0 ∈ rl, (rl2 + rl0).last = vhead0 ∨ (first ' + (rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (rl2 + rl0).last ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vtail ∈ rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, rl0.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ rl0.last ∈ rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), rl0.last = vhead0 ∨ (first ' + (rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ rl0.last, vtail0 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ⊦
Used simplifier rules: ⊦ [] + x = x; (s) ⊦ markedp([], vs); (s) ⊦ x + a ' + y ≠ []; (s) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s) ⊦ y ≠ [] → (x + y + z).last = (y + z).last; (s) ⊦ rl.last ∈ rl from r ↔ r ∈ rl; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (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) ⊦ ¬ dups(a '); (s) ⊦ ¬ dups([]); (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ a ' ≠ []; (s) ⊦ a '.tail = []; (s) ⊦ unmarkedp([], vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ (x + a ').last = a; (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) Used terms: rl2, rl0
| ⊦ y ≠ [] → (x + y).last = y.last |
| qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vtail ∈ rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, rl0.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ rl0.last ∈ rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), rl0.last = vhead0 ∨ (first ' + (rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ rl0.last, vtail0 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ⊦ |
qrl + rl = rl0 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, rl0.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl2 + qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ rl0.last ∈ rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail0 ∈ qrl ∨ vtail0 ∈ rl, rl0.last = vhead0 ∨ (first ' + rl2 + 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 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, 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((rl1 + first ' + rl2) + qrl, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, rl0.last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, vtail ∈ rl2 + qrl from lst, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ rl0.last ∈ rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail0 ∈ qrl ∨ vtail0 ∈ rl, rl0.last = vhead0 ∨ (first ' + rl2 + rl0.butlast).last = vhead0 ∧ phead0 ≠ rl0.last ⊦ |
qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl0 = rl3 + phead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vtail ∈ rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ phead1 ∈ rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, vtail0 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl0, phead1, y
| qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl0 = rl3 + phead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl2 + rl0 ≠ [], ps[first].next ≠ null, first ≠ vtail0, first ≠ lst, 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((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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vtail ∈ rl2 + qrl from lst, pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ lst ∈ rl1, ¬ phead1 ∈ rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, vtail0 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ⊦ |
qrl + rl = (rl3 + phead1 ') + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + rl, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, lst ∈ qrl, vtail ∈ qrl from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ qrl from lst, ¬ phead1 ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = vtail0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, vtail0 ∈ qrl ∨ vtail0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + 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 ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ a ∈ b ' ↔ a = b; (s) notin-forward: ⊦ rl + rl0 = rl1 + rl2 + rl3 ∧ ¬ r ∈ rl ∧ ¬ r ∈ rl0 → ¬ r ∈ rl1 ∧ ¬ r ∈ rl2 ∧ ¬ r ∈ rl3; (forward) from specification DMSQ a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ 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 = (rl3 + phead1 ') + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + rl, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + qrl + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, lst ∈ qrl, vtail ∈ qrl from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ qrl from lst, ¬ phead1 ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = vtail0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, vtail0 ∈ qrl ∨ vtail0 ∈ rl, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ |
qrl + rl = (rl3 + phead1 ') + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl = vhead1 + rl0, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, qrl ≠ [], vtail0 ≠ phead1, 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 + qrl + rl, 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(rl3, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl3, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl, ps), lst ∈ ps, lst ∈ vs, vtail ∈ qrl from lst, lst ∈ qrl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, phead1 ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ qrl from lst, ¬ phead1 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail0 ∈ qrl ∨ vtail0 ∈ rl, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(rl0, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs) ⊦
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 = (rl3 + phead1 ') + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl = vhead1 + rl0, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, qrl ≠ [], vtail0 ≠ phead1, 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 + qrl + rl, 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(rl3, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl3, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(qrl, ps), lst ∈ ps, lst ∈ vs, vtail ∈ qrl from lst, lst ∈ qrl, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, phead1 ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl3), ¬ dups(rl1), ¬ dups(rl3), ¬ dups(rl2), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ lst ∈ rl1, ¬ first ∈ qrl, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ qrl from lst, ¬ phead1 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail0 ∈ qrl ∨ vtail0 ∈ rl, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(rl0, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs) ⊦ |
(vhead1 ' + rl0) + rl = (rl3 + phead1 ') + (rl0 + rl).last ', ps[vhead1].deqID = None, ps0[(rl0 + rl).last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[(rl0 + rl).last].deqID = None, vs0[(rl0 + rl).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], (rl0 + rl).last ≠ phead1, ps[first].next ≠ null, first ≠ vhead1, first ≠ (rl0 + rl).last, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, vhead1 ≠ (rl0 + rl).last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl3, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(rl0, ps), lst ∈ ps, lst ∈ vs, vtail ∈ vhead1 ' + rl0 from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vhead, phead1 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vtail, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0), ¬ dups(rl1), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl3), ¬ dups(rl2 + rl3), ¬ phead1 ∈ vhead1 ' + rl0 from lst, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ (rl0 + rl).last ∈ rl1, ¬ (rl0 + rl).last ∈ rl3, ¬ (rl0 + rl).last ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ first ∈ rl0, ¬ lst ∈ rl1, ¬ vhead1 ∈ rl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, ¬ phead1 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), lst = vhead1 ∨ lst ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = (rl0 + rl).last, vhead1 = phead1 ∨ vhead1 ∈ rl3, (rl0 + rl).last ∈ rl0 ∨ (rl0 + rl).last ∈ rl, vhead1 ∈ rl3 ∨ vhead1 = phead1 ⊦
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] ⊦ a + x = a ' + x; (s) ⊦ a ' + x ≠ []; (s) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws)
| (vhead1 ' + rl0) + rl = (rl3 + phead1 ') + (rl0 + rl).last ', ps[vhead1].deqID = None, ps0[(rl0 + rl).last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[(rl0 + rl).last].deqID = None, vs0[(rl0 + rl).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], (rl0 + rl).last ≠ phead1, ps[first].next ≠ null, first ≠ vhead1, first ≠ (rl0 + rl).last, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, vhead1 ≠ (rl0 + rl).last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl3, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(rl0, ps), lst ∈ ps, lst ∈ vs, vtail ∈ vhead1 ' + rl0 from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vhead, phead1 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vtail, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0), ¬ dups(rl1), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl3), ¬ dups(rl2 + rl3), ¬ phead1 ∈ vhead1 ' + rl0 from lst, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ (rl0 + rl).last ∈ rl1, ¬ (rl0 + rl).last ∈ rl3, ¬ (rl0 + rl).last ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ first ∈ rl0, ¬ lst ∈ rl1, ¬ vhead1 ∈ rl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, ¬ phead1 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), lst = vhead1 ∨ lst ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = (rl0 + rl).last, vhead1 = phead1 ∨ vhead1 ∈ rl3, (rl0 + rl).last ∈ rl0 ∨ (rl0 + rl).last ∈ rl, vhead1 ∈ rl3 ∨ vhead1 = phead1 ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
(vhead1 ' + rl0) + rl = (rl3 + phead1 ') + (rl0 + rl).last ', vs0[(rl0 + rl).last].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[(rl0 + rl).last].deqID = None, ps[vhead1].deqID = None, vs0[(rl0 + rl).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], (rl0 + rl).last ≠ phead1, ps[first].next ≠ null, first ≠ vhead1, first ≠ (rl0 + rl).last, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, vhead1 ≠ (rl0 + rl).last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (vhead1 ' + rl0) + 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[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl0, ps), pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ vhead1 ' + rl0 from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0), ¬ dups(rl1), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl3), ¬ dups(rl2 + rl3), ¬ phead1 ∈ vhead1 ' + rl0 from lst, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ (rl0 + rl).last ∈ rl1, ¬ (rl0 + rl).last ∈ rl3, ¬ (rl0 + rl).last ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ first ∈ rl0, ¬ lst ∈ rl1, ¬ vhead1 ∈ rl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, ¬ phead1 ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl3 ∨ vhead1 = phead1, (rl0 + rl).last ∈ rl0 ∨ (rl0 + rl).last ∈ rl, vhead1 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = (rl0 + rl).last, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, lst = vhead1 ∨ lst ∈ rl0, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null ⊦
(vhead1 ' + rl0) + rl = (rl3 + phead1 ') + rl.last ', vs0[rl.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[rl.last].deqID = None, ps[vhead1].deqID = None, vs0[rl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], rl.last ≠ phead1, ps[first].next ≠ null, first ≠ vhead1, first ≠ rl.last, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ rl.last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (vhead1 ' + rl0) + 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[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl0, ps), pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ vhead1 ' + rl0 from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0), ¬ dups(rl1), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl3), ¬ dups(rl2 + rl3), ¬ phead1 ∈ vhead1 ' + rl0 from lst, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ rl.last ∈ rl1, ¬ rl.last ∈ rl3, ¬ rl.last ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ first ∈ rl0, ¬ lst ∈ rl1, ¬ vhead1 ∈ rl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, ¬ phead1 ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl3 ∨ vhead1 = phead1, rl.last ∈ rl0 ∨ rl.last ∈ rl, vhead1 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = rl.last, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, lst = vhead1 ∨ lst ∈ rl0, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null ⊦
Used terms: rl0, rl
| ⊦ y ≠ [] → (x + y).last = y.last |
| (vhead1 ' + rl0) + rl = (rl3 + phead1 ') + (rl0 + rl).last ', vs0[(rl0 + rl).last].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[(rl0 + rl).last].deqID = None, ps[vhead1].deqID = None, vs0[(rl0 + rl).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], (rl0 + rl).last ≠ phead1, ps[first].next ≠ null, first ≠ vhead1, first ≠ (rl0 + rl).last, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, vhead1 ≠ (rl0 + rl).last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (vhead1 ' + rl0) + 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[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl0, ps), pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ vhead1 ' + rl0 from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0), ¬ dups(rl1), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl3), ¬ dups(rl2 + rl3), ¬ phead1 ∈ vhead1 ' + rl0 from lst, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ (rl0 + rl).last ∈ rl1, ¬ (rl0 + rl).last ∈ rl3, ¬ (rl0 + rl).last ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ first ∈ rl0, ¬ lst ∈ rl1, ¬ vhead1 ∈ rl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, ¬ phead1 ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl3 ∨ vhead1 = phead1, (rl0 + rl).last ∈ rl0 ∨ (rl0 + rl).last ∈ rl, vhead1 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = (rl0 + rl).last, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, lst = vhead1 ∨ lst ∈ rl0, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null ⊦ |
vhead1 ' + rl0 = rl3 + phead1 ' + rl0.last ', vs[rl0.last].deqID = None, ps[vhead1].deqID = None, ps0[rl0.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[rl0.last].deqID = None, vs[rl0.last].next = null, vs0[rl0.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (vhead1 ' + rl0.butlast).last ≠ rl0.last, rl0.last ≠ phead1, ps[first].next ≠ null, first ≠ vhead1, first ≠ rl0.last, first ≠ lst, first ≠ phead1, lst ≠ vhead1, pretRefs0(tid) ≠ null, rl0 ≠ [], vhead1 ≠ rl0.last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl3, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + vhead1 ' + rl0, vs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(rl0, ps), lst ∈ ps0, lst ∈ vs0, (vhead1 ' + rl0.butlast).last ∈ rl0 from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + vhead1 ' + rl0 from vhead, phead1 ∈ rl1 + first ' + rl2 + vhead1 ' + rl0 from (vhead1 ' + rl0.butlast).last, pretRefs0(tid) ∈ vrvHp, lst ∈ rl0, lst ∈ ps, lst ∈ vs, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl3), ¬ dups(rl2 + rl3), ¬ phead1 ∈ rl0 from lst, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ rl0.last ∈ rl1, ¬ rl0.last ∈ rl3, ¬ rl0.last ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ first ∈ rl0, ¬ lst ∈ rl1, ¬ vhead1 ∈ rl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, vhead1 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = rl0.last, vhead1 ∈ rl3 ∨ vhead1 = phead1, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, 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) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ dups([]); (s)
| vhead1 ' + rl0 = rl3 + phead1 ' + rl0.last ', vs[rl0.last].deqID = None, ps[vhead1].deqID = None, ps0[rl0.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[rl0.last].deqID = None, vs[rl0.last].next = null, vs0[rl0.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (vhead1 ' + rl0.butlast).last ≠ rl0.last, rl0.last ≠ phead1, ps[first].next ≠ null, first ≠ vhead1, first ≠ rl0.last, first ≠ lst, first ≠ phead1, lst ≠ vhead1, pretRefs0(tid) ≠ null, rl0 ≠ [], vhead1 ≠ rl0.last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs0, ps0, owns0), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl3, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + vhead1 ' + rl0, vs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(rl0, ps), lst ∈ ps0, lst ∈ vs0, (vhead1 ' + rl0.butlast).last ∈ rl0 from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + vhead1 ' + rl0 from vhead, phead1 ∈ rl1 + first ' + rl2 + vhead1 ' + rl0 from (vhead1 ' + rl0.butlast).last, pretRefs0(tid) ∈ vrvHp, lst ∈ rl0, lst ∈ ps, lst ∈ vs, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0), ¬ dups(rl1), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl3), ¬ dups(rl2 + rl3), ¬ phead1 ∈ rl0 from lst, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ rl0.last ∈ rl1, ¬ rl0.last ∈ rl3, ¬ rl0.last ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ first ∈ rl0, ¬ lst ∈ rl1, ¬ vhead1 ∈ rl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, vhead1 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = rl0.last, vhead1 ∈ rl3 ∨ vhead1 = phead1, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, 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: rl0, lst0, y
| (vhead1 ' + rl0) + rl = (rl3 + phead1 ') + rl.last ', vs0[rl.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[rl.last].deqID = None, ps[vhead1].deqID = None, vs0[rl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], rl.last ≠ phead1, ps[first].next ≠ null, first ≠ vhead1, first ≠ rl.last, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ rl.last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (vhead1 ' + rl0) + 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[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl0, ps), pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vtail, vhead0 ∈ rl1 + first ' + rl2 + (vhead1 ' + rl0) + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ vhead1 ' + rl0 from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0), ¬ dups(rl1), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1 + rl2 + rl3), ¬ dups(rl3), ¬ dups(rl2 + rl3), ¬ phead1 ∈ vhead1 ' + rl0 from lst, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ rl.last ∈ rl1, ¬ rl.last ∈ rl3, ¬ rl.last ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl3, ¬ lst ∈ rl2, ¬ first ∈ rl0, ¬ lst ∈ rl1, ¬ vhead1 ∈ rl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, ¬ phead1 ∈ rl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl3 ∨ vhead1 = phead1, rl.last ∈ rl0 ∨ rl.last ∈ rl, vhead1 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = rl.last, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, lst = vhead1 ∨ lst ∈ rl0, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null ⊦ |
(vhead1 ' + rl0) + rl = (rl3 + phead1 ') + rl.last ', vs0[rl.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[rl.last].deqID = None, ps[vhead1].deqID = None, vs0[rl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], rl.last ≠ phead1, ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ rl.last, first ≠ vhead1, pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ rl.last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ', vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ', vs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ', 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?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl0, ps), pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ' from vtail, vhead0 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ vhead1 ' + rl0 from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ dups(rl1 + rl2 + rl3), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl0), ¬ dups(rl2), ¬ phead1 ∈ rl, ¬ vhead1 ∈ rl2, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl1, ¬ lst ∈ rl1, ¬ first ∈ rl0, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ rl.last ∈ rl2, ¬ rl.last ∈ rl3, ¬ rl.last ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ vhead1 ' + rl0 from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = rl.last, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, lst = vhead1 ∨ lst ∈ rl0, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null, vhead1 ∈ rl3 ∨ vhead1 = phead1 ⊦
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 ' + rl0) + rl = (rl3 + phead1 ') + rl.last ', vs0[rl.last].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[rl.last].deqID = None, ps[vhead1].deqID = None, vs0[rl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], rl.last ≠ phead1, ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ rl.last, first ≠ vhead1, pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ rl.last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ', vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ', vs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ', 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?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl0, ps), pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ' from vtail, vhead0 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + rl.last ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, vtail ∈ vhead1 ' + rl0 from lst, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ dups(rl1 + rl2 + rl3), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl0), ¬ dups(rl2), ¬ phead1 ∈ rl, ¬ vhead1 ∈ rl2, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl1, ¬ lst ∈ rl1, ¬ first ∈ rl0, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ rl.last ∈ rl2, ¬ rl.last ∈ rl3, ¬ rl.last ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ vhead1 ' + rl0 from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = rl.last, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, lst = vhead1 ∨ lst ∈ rl0, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null, vhead1 ∈ rl3 ∨ vhead1 = phead1 ⊦ |
(vhead1 ' + rl0) + rl = (rl3 + phead1 ') + vtail0 ', ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl = rl4 + vtail0 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, first ≠ vhead1, pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ vtail0, vtail0 ≠ phead1, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0, ps0, owns0), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl3, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(rl0, ps), lst ∈ ps, lst ∈ vs, vtail ∈ vhead1 ' + rl0 from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ' from vhead, phead1 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ dups(rl1 + rl2 + rl3), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl0), ¬ dups(rl2), ¬ phead1 ∈ rl, ¬ vhead1 ∈ rl2, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl1, ¬ lst ∈ rl1, ¬ first ∈ rl0, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ vhead1 ' + rl0 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vhead1 ∈ rl3 ∨ vhead1 = phead1, vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), lst = vhead1 ∨ lst ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = vtail0, vhead1 = phead1 ∨ vhead1 ∈ rl3 ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl, vtail0, y
| (vhead1 ' + rl0) + rl = (rl3 + phead1 ') + vtail0 ', ps[vhead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl = rl4 + vtail0 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl0 + rl ≠ [], ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, first ≠ vhead1, pretRefs0(tid) ≠ null, rl ≠ [], vhead1 ≠ vtail0, vtail0 ≠ phead1, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0, ps0, owns0), listp(rl1 + first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), listp(first ' + rl2 + vhead1 ' + rl0, vs, ps, owns), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl3, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl3, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + vhead1 ' + rl0, vs, rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + vhead1 ' + rl0, 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), some?(vs0[phead1].deqID), some?(ps0[phead1].deqID), unmarkedp(rl0, ps), lst ∈ ps, lst ∈ vs, vtail ∈ vhead1 ' + rl0 from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ' from vhead, phead1 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ dups(rl1 + rl2 + rl3), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl), ¬ dups(rl1), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl0), ¬ dups(rl2), ¬ phead1 ∈ rl, ¬ vhead1 ∈ rl2, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl1, ¬ lst ∈ rl1, ¬ first ∈ rl0, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ vhead1 ' + rl0 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vhead1 ∈ rl3 ∨ vhead1 = phead1, vtail = (vhead1 ' + rl0).last ∨ vtail = (first ' + rl2 + (vhead1 ' + rl0).butlast).last ∧ vs[(vhead1 ' + rl0).last].deqID = None ∧ vs[(vhead1 ' + rl0).last].next = null, (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), lst = vhead1 ∨ lst ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = vtail0, vhead1 = phead1 ∨ vhead1 ∈ rl3 ⊦ |
vhead1 ' + rl0 = rl3 + phead1 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, ps[vhead1].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, first ≠ vhead1, lst ≠ vhead1, pretRefs0(tid) ≠ null, vhead1 ≠ vtail0, vtail0 ≠ phead1, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + rl3 + phead1 ', vs, ps, vs0, ps0), listp(first ' + rl2 + rl3 + phead1 ', vs, ps, owns), listp(rl1 + first ' + rl2 + rl3 + phead1 ', vs, ps, owns), listp(rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + rl3 + phead1 ', vhead, vs), noidRely(tid, rl1 + first ' + rl2 + rl3 + phead1 ', vs, rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + rl3 + phead1 ', vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (rl3 + phead1 ') + 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[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl0, ps), vtail ∈ rl0 from lst, lst ∈ vs, lst ∈ ps, lst ∈ rl0, pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ' from vtail, vhead0 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ dups(rl1 + rl2 + rl3), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl0), ¬ dups(rl2), ¬ phead1 ∈ rl0 from lst, ¬ vhead1 ∈ rl2, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl1, ¬ lst ∈ rl1, ¬ first ∈ rl0, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), phead1 = vhead1 ∨ phead1 ∈ rl0, vhead1 ∈ rl3 ∨ vhead1 = phead1, vhead1 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = vtail0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = rl0.last ∨ vtail = (first ' + rl2 + rl3).last ∧ vs[rl0.last].deqID = None ∧ vs[rl0.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 ' + rl0 = rl3 + phead1 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, ps[vhead1].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, first ≠ vhead1, lst ≠ vhead1, pretRefs0(tid) ≠ null, vhead1 ≠ vtail0, vtail0 ≠ phead1, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + rl3 + phead1 ', vs, ps, vs0, ps0), listp(first ' + rl2 + rl3 + phead1 ', vs, ps, owns), listp(rl1 + first ' + rl2 + rl3 + phead1 ', vs, ps, owns), listp(rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0, ps0, owns0), markedp(rl3, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl3, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + rl3 + phead1 ', vhead, vs), noidRely(tid, rl1 + first ' + rl2 + rl3 + phead1 ', vs, rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + rl3 + phead1 ', vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (rl3 + phead1 ') + 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[phead1].deqID), some?(vs0[phead1].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl0, ps), vtail ∈ rl0 from lst, lst ∈ vs, lst ∈ ps, lst ∈ rl0, pretRefs0(tid) ∈ vrvHp, phead1 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ' from vtail, vhead0 ∈ rl1 + first ' + rl2 + (rl3 + phead1 ') + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ dups(rl1 + rl2 + rl3), ¬ dups((rl1 + rl2) + rl0), ¬ dups(rl1), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl0), ¬ dups(rl2), ¬ phead1 ∈ rl0 from lst, ¬ vhead1 ∈ rl2, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl1, ¬ lst ∈ rl1, ¬ first ∈ rl0, ¬ lst ∈ rl2, ¬ first ∈ rl3, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ unmarkedp(rl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[vhead1].deqID = None ∧ unmarkedp(rl0, vs), phead1 = vhead1 ∨ phead1 ∈ rl0, vhead1 ∈ rl3 ∨ vhead1 = phead1, vhead1 = phead1 ∨ vhead1 ∈ rl3, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl3 ∨ phead0 = phead1 ∨ phead0 = vtail0, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl3 ∨ phead0 = phead1, phead1 = vhead0 ∨ (first ' + rl2 + rl3).last = vhead0 ∧ phead0 ≠ phead1, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = rl0.last ∨ vtail = (first ' + rl2 + rl3).last ∧ vs[rl0.last].deqID = None ∧ vs[rl0.last].next = null ⊦ |
Used simplifier rules: reflist freely generated by [], +;; ⊦ a ' + x = b ' + y ↔ a = b ∧ x = y; (ws) ⊦ 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) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a + x = a ' + x; (s) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] 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) ⊦ [] + x = x; (s) ⊦ ¬ dups([]); (s) ⊦ x + [] = x; (s) ⊦ unmarkedp([], vs); (s) ⊦ ¬ a ∈ []; (s)
| qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vtail0, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, lst ∈ rl1, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl1 + rl2), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ (first ' + rl2 + rl0).last ∈ (rl1 from lst) + first ' + rl2 + qrl + rl, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ qrl ∨ vtail0 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ⊦ |
qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (first ' + rl2 + rl0).last ≠ first, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, vtail ≠ 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 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, lst ∈ rl1, lst ∈ qrl, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl1 + rl2), ¬ dups(rl2), ¬ (first ' + rl2 + rl0).last ∈ rl, ¬ (first ' + rl2 + rl0).last ∈ qrl, ¬ (first ' + rl2 + rl0).last ∈ rl2, ¬ (first ' + rl2 + rl0).last ∈ rl1 from lst, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, vtail ∈ qrl ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, vtail0 ∈ qrl ∨ vtail0 ∈ rl, 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 ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x ∧ a ∈ y → dups(x + y); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (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) 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 ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl; (s)
| qrl + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (first ' + rl2 + rl0).last ≠ first, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, vtail ≠ 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 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), listp(rl1 + first ' + rl2 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, lst ∈ rl1, lst ∈ qrl, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl1 + rl2), ¬ dups(rl2), ¬ (first ' + rl2 + rl0).last ∈ rl, ¬ (first ' + rl2 + rl0).last ∈ qrl, ¬ (first ' + rl2 + rl0).last ∈ rl2, ¬ (first ' + rl2 + rl0).last ∈ rl1 from lst, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, vtail ∈ qrl ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, vtail0 ∈ qrl ∨ vtail0 ∈ rl, 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 ⊦ |
qrl + rl = rl0 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + rl3, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (first ' + rl2 + rl0).last ≠ first, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, qrl ≠ [], vtail ≠ 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), lst ∈ qrl, lst ∈ rl1, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, lst ∈ vs0, lst ∈ ps0, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl1 + rl2), ¬ dups(rl2), ¬ (first ' + rl2 + rl0).last ∈ rl, ¬ (first ' + rl2 + rl0).last ∈ qrl, ¬ (first ' + rl2 + rl0).last ∈ rl2, ¬ (first ' + rl2 + rl0).last ∈ rl1 from lst, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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, vtail0 ∈ qrl ∨ vtail0 ∈ rl, vtail ∈ qrl ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(rl3, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs) ⊦
Used simplifier rules: ⊦ [] + x = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ ¬ a ∈ []; (s) x ≠ [] ⊦ a = x.head ∧ y = x.tail ↔ x = a + y; (elim) Used terms: qrl, phead1, y
| qrl + rl = rl0 + vtail0 ', ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + rl3, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (first ' + rl2 + rl0).last ≠ first, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, qrl ≠ [], vtail ≠ 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(qrl, ps), lst ∈ qrl, lst ∈ rl1, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, lst ∈ vs0, lst ∈ ps0, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl1), ¬ dups(rl1 + rl2), ¬ dups(rl2), ¬ (first ' + rl2 + rl0).last ∈ rl, ¬ (first ' + rl2 + rl0).last ∈ qrl, ¬ (first ' + rl2 + rl0).last ∈ rl2, ¬ (first ' + rl2 + rl0).last ∈ rl1 from lst, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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, vtail0 ∈ qrl ∨ vtail0 ∈ rl, vtail ∈ qrl ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(rl3, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs) ⊦ |
(phead1 ' + rl3) + rl = rl0 + vtail0 ', ps[phead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (first ' + rl2 + rl0).last ≠ phead1, (first ' + rl2 + rl0).last ≠ first, ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail ≠ 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 + phead1 ' + rl3, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + rl0 + vtail0 ', vs0, ps0, owns0), listp(rl1 + first ' + rl2 + phead1 ' + rl3, vs, ps, owns), listp(first ' + rl2 + phead1 ' + rl3, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl3, vs, rl1 + first ' + rl2 + rl0 + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + rl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl3, 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(rl3, ps), lst ∈ rl3, lst ∈ rl1, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' from vhead, lst ∈ vs0, lst ∈ ps0, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl3), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ (first ' + rl2 + rl0).last ∈ rl1 from lst, ¬ (first ' + rl2 + rl0).last ∈ rl2, ¬ (first ' + rl2 + rl0).last ∈ rl3, ¬ (first ' + rl2 + rl0).last ∈ rl, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl2, ¬ lst ∈ rl2, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead1 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, vtail = phead1 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl3, vs), phead1 ∈ rl0 ∨ phead1 = vtail0, vtail0 = phead1 ∨ vtail0 ∈ rl3 ∨ 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 ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ b ' ↔ a = b; (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] in-14: ⊦ a ' + x = y → a ∈ y; (forward) from specification list[reflist] ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ a + x = a ' + x; (s) ⊦ a ' + x ≠ []; (s) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws)
| (phead1 ' + rl3) + rl = rl0 + vtail0 ', ps[phead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (first ' + rl2 + rl0).last ≠ phead1, (first ' + rl2 + rl0).last ≠ first, ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail ≠ 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 + phead1 ' + rl3, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + rl0 + vtail0 ', vs0, ps0, owns0), listp(rl1 + first ' + rl2 + phead1 ' + rl3, vs, ps, owns), listp(first ' + rl2 + phead1 ' + rl3, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl3, vs, rl1 + first ' + rl2 + rl0 + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + rl0 + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl3, 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(rl3, ps), lst ∈ rl3, lst ∈ rl1, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' from vhead, lst ∈ vs0, lst ∈ ps0, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl3), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ (first ' + rl2 + rl0).last ∈ rl1 from lst, ¬ (first ' + rl2 + rl0).last ∈ rl2, ¬ (first ' + rl2 + rl0).last ∈ rl3, ¬ (first ' + rl2 + rl0).last ∈ rl, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl2, ¬ lst ∈ rl2, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead1 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, vtail = phead1 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl3, vs), phead1 ∈ rl0 ∨ phead1 = vtail0, vtail0 = phead1 ∨ vtail0 ∈ rl3 ∨ vtail0 ∈ rl ⊦ |
(phead1 ' + rl3) + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, ps[phead1].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl0 = phead2 + rl4, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (first ' + rl2 + rl0).last ≠ phead1, (first ' + rl2 + rl0).last ≠ first, ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail ≠ 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 + phead1 ' + rl3, vs, ps, vs0, ps0), listp(first ' + rl2 + phead1 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + rl0 + vtail0 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl3, vs, rl1 + first ' + rl2 + rl0 + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl3, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + rl0 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl3, ps), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, vhead0 ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' from vtail, lst ∈ rl1, lst ∈ rl3, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl3), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ (first ' + rl2 + rl0).last ∈ rl1 from lst, ¬ (first ' + rl2 + rl0).last ∈ rl2, ¬ (first ' + rl2 + rl0).last ∈ rl3, ¬ (first ' + rl2 + rl0).last ∈ rl, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl2, ¬ lst ∈ rl2, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = phead1 ∨ vtail0 ∈ rl3 ∨ vtail0 ∈ rl, phead1 ∈ rl0 ∨ phead1 = vtail0, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl3, vs), vtail = phead1 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead1 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null ⊦
Used simplifier rules: reflist freely generated by [], +;; ⊦ a ' = b ' + x ↔ a = b ∧ x = []; (ws) ⊦ x + y = [] ↔ x = [] ∧ y = []; (as) ⊦ markedp([], vs); (s) ⊦ [] + x = x; (s) ⊦ ¬ dups([]); (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ unmarkedp([], vs); (s) ⊦ ¬ a ∈ []; (s)
| (phead1 ' + rl3) + rl = rl0 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, ps[phead1].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl0 = phead2 + rl4, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (first ' + rl2 + rl0).last ≠ phead1, (first ' + rl2 + rl0).last ≠ first, ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail ≠ 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 + phead1 ' + rl3, vs, ps, vs0, ps0), listp(first ' + rl2 + phead1 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + rl0 + vtail0 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + rl3, vs, rl1 + first ' + rl2 + rl0 + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + rl3, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + rl0 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl3, ps), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, vhead0 ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (first ' + rl2 + rl0).last ∈ rl1 + first ' + rl2 + rl0 + vtail0 ' from vtail, lst ∈ rl1, lst ∈ rl3, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2), ¬ dups(rl3), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl3), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(rl), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ (first ' + rl2 + rl0).last ∈ rl1 from lst, ¬ (first ' + rl2 + rl0).last ∈ rl2, ¬ (first ' + rl2 + rl0).last ∈ rl3, ¬ (first ' + rl2 + rl0).last ∈ rl, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl3, ¬ phead1 ∈ rl2, ¬ lst ∈ rl2, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = phead1 ∨ vtail0 ∈ rl3 ∨ vtail0 ∈ rl, phead1 ∈ rl0 ∨ phead1 = vtail0, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(rl3, vs), vtail = phead1 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead1 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null ⊦ |
rl3 + rl = rl4 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, ps[phead2].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (phead2 ' + rl4).last ≠ first, (phead2 ' + rl4).last ≠ phead2, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, first ≠ phead2, pretRefs0(tid) ≠ null, vtail ≠ first, vtail0 ≠ phead2, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0, ps0, owns0), listp(first ' + rl2 + phead2 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, owns), markedp(rl4, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl4, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vs, rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + phead2 ' + rl3, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (phead2 ' + rl4) + 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[phead2].deqID), some?(vs0[phead2].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl3, ps), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, vhead0 ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (phead2 ' + rl4).last ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vtail, lst ∈ rl1, lst ∈ rl3, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl1 + rl2) + rl4), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl), ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ first ∈ rl4, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, ¬ phead2 ∈ rl3, ¬ (phead2 ' + rl4).last ∈ rl, ¬ (phead2 ' + rl4).last ∈ rl3, ¬ (phead2 ' + rl4).last ∈ rl2, ¬ (phead2 ' + rl4).last ∈ rl1 from lst, ¬ first ∈ rl3, ¬ phead2 ∈ rl2, ¬ phead2 ∈ rl1, ¬ phead2 ∈ rl4, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = phead2 ∨ phead0 ∈ rl4 ∨ phead0 = vtail0, vtail0 ∈ rl3 ∨ vtail0 ∈ rl, (phead2 ' + rl4).last = vhead0 ∨ (first ' + rl2 + (phead2 ' + rl4).butlast).last = vhead0 ∧ phead0 ≠ (phead2 ' + rl4).last, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead2 ∨ phead0 ∈ rl4, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead2].deqID = None ∧ unmarkedp(rl3, vs), vtail = phead2 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead2 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null ⊦
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] ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a + x = a ' + x; (s) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ (x + a ' + y).butlast = x + (a ' + y).butlast; (s) ⊦ x + a ' + y ≠ []; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ ¬ 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) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ a ' + x = b ' + y ↔ a = b ∧ x = y; (ws)
| rl3 + rl = rl4 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, ps[phead2].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), (phead2 ' + rl4).last ≠ first, (phead2 ' + rl4).last ≠ phead2, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, first ≠ phead2, pretRefs0(tid) ≠ null, vtail ≠ first, vtail0 ≠ phead2, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0, ps0, owns0), listp(first ' + rl2 + phead2 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, owns), markedp(rl4, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl4, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vs, rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + phead2 ' + rl3, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (phead2 ' + rl4) + 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[phead2].deqID), some?(vs0[phead2].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl3, ps), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, vhead0 ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, (phead2 ' + rl4).last ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vtail, lst ∈ rl1, lst ∈ rl3, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl1 + rl2) + rl4), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl), ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ first ∈ rl4, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, ¬ phead2 ∈ rl3, ¬ (phead2 ' + rl4).last ∈ rl, ¬ (phead2 ' + rl4).last ∈ rl3, ¬ (phead2 ' + rl4).last ∈ rl2, ¬ (phead2 ' + rl4).last ∈ rl1 from lst, ¬ first ∈ rl3, ¬ phead2 ∈ rl2, ¬ phead2 ∈ rl1, ¬ phead2 ∈ rl4, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = phead2 ∨ phead0 ∈ rl4 ∨ phead0 = vtail0, vtail0 ∈ rl3 ∨ vtail0 ∈ rl, (phead2 ' + rl4).last = vhead0 ∨ (first ' + rl2 + (phead2 ' + rl4).butlast).last = vhead0 ∧ phead0 ≠ (phead2 ' + rl4).last, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead2 ∨ phead0 ∈ rl4, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead2].deqID = None ∧ unmarkedp(rl3, vs), vtail = phead2 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead2 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
rl3 + rl = rl4 + vtail0 ', ps[phead2].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl4.last ≠ first, rl4.last ≠ phead2, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, first ≠ phead2, pretRefs0(tid) ≠ null, rl4 ≠ [], vtail ≠ first, vtail0 ≠ phead2, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, owns), listp(first ' + rl2 + phead2 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl4, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl4, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vs, rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead2 ' + rl3, 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), some?(vs0[phead2].deqID), some?(ps0[phead2].deqID), unmarkedp(rl3, ps), lst ∈ rl3, lst ∈ rl1, rl4.last ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vhead, lst ∈ vs0, lst ∈ ps0, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl1 + rl2) + rl4), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl), ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ first ∈ rl4, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, ¬ phead2 ∈ rl3, ¬ rl4.last ∈ rl, ¬ rl4.last ∈ rl3, ¬ rl4.last ∈ rl2, ¬ rl4.last ∈ rl1 from lst, ¬ first ∈ rl3, ¬ phead2 ∈ rl2, ¬ phead2 ∈ rl1, ¬ phead2 ∈ rl4, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead2 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = phead2 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead2].deqID = None ∧ unmarkedp(rl3, vs), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead2 ∨ phead0 ∈ rl4, rl4.last = vhead0 ∨ (first ' + rl2 + (phead2 ' + rl4).butlast).last = vhead0 ∧ phead0 ≠ rl4.last, vtail0 ∈ rl3 ∨ vtail0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead2 ∨ phead0 ∈ rl4 ∨ phead0 = vtail0 ⊦
Used simplifier rules: ⊦ [] + x = x; (s) ⊦ x + [] = x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a '.last = a; (s) Used terms: phead2 ', rl4
| ⊦ y ≠ [] → (x + y).last = y.last |
| rl3 + rl = rl4 + vtail0 ', ps[phead2].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[vtail0].deqID = None, vs0[vtail0].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl4.last ≠ first, rl4.last ≠ phead2, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, first ≠ phead2, pretRefs0(tid) ≠ null, rl4 ≠ [], vtail ≠ first, vtail0 ≠ phead2, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, owns), listp(first ' + rl2 + phead2 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0, ps0, owns0), markedp(rl2, vs), markedp(rl1, vs), markedp(rl2, ps), markedp(rl1, ps), markedp(rl2, vs0), markedp(rl1, vs0), markedp(rl4, vs0), markedp(rl2, ps0), markedp(rl1, ps0), markedp(rl4, ps0), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vs, rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead2 ' + rl3, 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), some?(vs0[phead2].deqID), some?(ps0[phead2].deqID), unmarkedp(rl3, ps), lst ∈ rl3, lst ∈ rl1, rl4.last ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vtail, pretRefs0(tid) ∈ vrvHp, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vhead, lst ∈ vs0, lst ∈ ps0, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl1 + rl2) + rl4), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl), ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ first ∈ rl4, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, ¬ phead2 ∈ rl3, ¬ rl4.last ∈ rl, ¬ rl4.last ∈ rl3, ¬ rl4.last ∈ rl2, ¬ rl4.last ∈ rl1 from lst, ¬ first ∈ rl3, ¬ phead2 ∈ rl2, ¬ phead2 ∈ rl1, ¬ phead2 ∈ rl4, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead2 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = phead2 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead2].deqID = None ∧ unmarkedp(rl3, vs), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead2 ∨ phead0 ∈ rl4, rl4.last = vhead0 ∨ (first ' + rl2 + (phead2 ' + rl4).butlast).last = vhead0 ∧ phead0 ≠ rl4.last, vtail0 ∈ rl3 ∨ vtail0 ∈ rl, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 = phead2 ∨ phead0 ∈ rl4 ∨ phead0 = vtail0 ⊦ |
rl3 + rl = rl4 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, ps[phead2].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl4.last ≠ first, rl4.last ≠ phead2, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, first ≠ phead2, pretRefs0(tid) ≠ null, rl4 ≠ [], vtail ≠ first, vtail0 ≠ phead2, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0, ps0, owns0), listp(first ' + rl2 + phead2 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, owns), markedp(rl4, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl4, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vs, rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + phead2 ' + rl3, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (phead2 ' + rl4) + 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[phead2].deqID), some?(vs0[phead2].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl3, ps), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, vhead0 ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, rl4.last ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vtail, lst ∈ rl1, lst ∈ rl3, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl1 + rl2) + rl4), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl), ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ first ∈ rl4, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, ¬ phead2 ∈ rl3, ¬ rl4.last ∈ rl, ¬ rl4.last ∈ rl3, ¬ rl4.last ∈ rl2, ¬ rl4.last ∈ rl1 from lst, ¬ first ∈ rl3, ¬ phead2 ∈ rl2, ¬ phead2 ∈ rl1, ¬ phead2 ∈ rl4, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = phead2 ∨ phead0 ∈ rl4 ∨ phead0 = vtail0, vtail0 ∈ rl3 ∨ vtail0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead2 ∨ phead0 ∈ rl4, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead2].deqID = None ∧ unmarkedp(rl3, vs), vtail = phead2 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead2 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null, rl4.last = vhead0 ∨ (phead2 ' + rl4.butlast).last = vhead0 ∧ phead0 ≠ rl4.last ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).butlast = a ' + x.butlast; (s)
| rl3 + rl = rl4 + vtail0 ', vs0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, ps[phead2].deqID = None, vs0[vtail0].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), rl4.last ≠ first, rl4.last ≠ phead2, ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, first ≠ phead2, pretRefs0(tid) ≠ null, rl4 ≠ [], vtail ≠ first, vtail0 ≠ phead2, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0, ps0, owns0), listp(first ' + rl2 + phead2 ' + rl3, vs, ps, owns), listp(rl1 + first ' + rl2 + phead2 ' + rl3, vs, ps, owns), markedp(rl4, ps0), markedp(rl1, ps0), markedp(rl2, ps0), markedp(rl4, vs0), markedp(rl1, vs0), markedp(rl2, vs0), markedp(rl1, ps), markedp(rl2, ps), markedp(rl1, vs), markedp(rl2, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead2 ' + rl3, vs, rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + phead2 ' + rl3, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + (phead2 ' + rl4) + 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[phead2].deqID), some?(vs0[phead2].deqID), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(rl3, ps), lst ∈ ps, lst ∈ vs, lst ∈ ps0, lst ∈ vs0, vhead0 ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, pretRefs0(tid) ∈ vrvHp, rl4.last ∈ rl1 + first ' + rl2 + (phead2 ' + rl4) + vtail0 ' from vtail, lst ∈ rl1, lst ∈ rl3, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl2), ¬ dups((rl1 + rl2) + rl4), ¬ dups((rl1 + rl2) + rl3), ¬ dups(rl), ¬ dups(rl2 + rl3), ¬ dups(rl3), ¬ first ∈ rl4, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl1, ¬ lst ∈ rl2, ¬ phead2 ∈ rl3, ¬ rl4.last ∈ rl, ¬ rl4.last ∈ rl3, ¬ rl4.last ∈ rl2, ¬ rl4.last ∈ rl1 from lst, ¬ first ∈ rl3, ¬ phead2 ∈ rl2, ¬ phead2 ∈ rl1, ¬ phead2 ∈ rl4, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = phead2 ∨ phead0 ∈ rl4 ∨ phead0 = vtail0, vtail0 ∈ rl3 ∨ vtail0 ∈ rl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 = phead2 ∨ phead0 ∈ rl4, (first ' + rl2).last = vhead ∧ unmarkedp(rl3, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead2].deqID = None ∧ unmarkedp(rl3, vs), vtail = phead2 ∨ vtail ∈ rl3 ∨ vtail ∈ rl2 ∨ vtail ∈ rl1 from lst, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vtail = rl3.last ∨ vtail = (first ' + rl2 + (phead2 ' + rl3).butlast).last ∧ vs[rl3.last].deqID = None ∧ vs[rl3.last].next = null, rl4.last = vhead0 ∨ (phead2 ' + rl4.butlast).last = vhead0 ∧ phead0 ≠ rl4.last ⊦ |
Used simplifier rules: ⊦ x + a ' ≠ []; (s) ⊦ markedp(rl + rl0, vs) ↔ markedp(rl, vs) ∧ markedp(rl0, vs); (s) ⊦ markedp(r ', vs) ↔ some?(vs[r].deqID); (s) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ 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 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] ⊦ a ∈ b ' ↔ a = b; (s) x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl4, vhead1, y
| qrl + rl = rl0 + vtail0 ' + rl3, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[(vtail0 ' + rl3).last].deqID = None, vs0[(vtail0 ' + rl3).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, (first ' + rl2 + rl0 + vtail0 ' + rl3.butlast).last ∈ rl1 + first ' + rl2 + qrl + rl 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(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (first ' + rl2 + rl0 + vtail0 ' + rl3.butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ first ∈ rl3, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦ |
qrl + rl = rl0 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[rl3.last].deqID = None, vs0[rl3.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl3.butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3.butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0) ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ x ≠ [] → (a ' + x).last = x.last; (s)
| qrl + rl = rl0 + vtail0 ' + rl3, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[rl3.last].deqID = None, vs0[rl3.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl3, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl3.butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl3.butlast).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0) ⊦ |
qrl + rl = rl0 + vtail0 ' + rl3, vs0[phead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl3 = rl4 + phead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl3, phead1, y
| qrl + rl = rl0 + vtail0 ' + rl3, vs0[phead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl3 = rl4 + phead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, pretRefs0(tid) ≠ null, rl3 ≠ [], 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl3, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups((rl2 + rl0) + rl3), ¬ dups((rl1 + rl2 + rl0) + rl3), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(qrl), ¬ dups(rl0), ¬ dups(rl3), ¬ dups(rl1), ¬ dups(rl2 + rl0 + rl3), ¬ dups(rl1 + rl2), ¬ dups(rl0 + rl3), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ first ∈ rl3, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl3, ¬ vtail0 ∈ rl1, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl3, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl3, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl3, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2 ⊦ |
qrl + rl = rl0 + vtail0 ' + rl4 + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, 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) 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) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ x + a ' ≠ []; (s)
| qrl + rl = rl0 + vtail0 ' + rl4 + phead1 ', ps0[phead1].deqID = None, vs0[phead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead1 ∈ qrl ∨ phead1 ∈ rl ⊦ |
y ≠ [] ⊦ y = x + a ' ↔ x = y.butlast ∧ a = y.last
rl0 + vtail0 ' + rl4 = (qrl + rl).butlast, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, phead1 = (qrl + rl).last, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, 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 + vtail0 ' + rl4, phead1
| y ≠ [] ⊦ y = x + a ' ↔ x = y.butlast ∧ a = y.last |
| rl0 + vtail0 ' + rl4 = (qrl + rl).butlast, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, phead1 = (qrl + rl).last, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), phead1 ∈ qrl ∨ phead1 ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦ |
rl0 + vtail0 ' + rl4 = (qrl + rl).butlast, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[(qrl + rl).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ (qrl + rl).last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ (qrl + rl).last, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ (qrl + rl).last ∈ rl1, ¬ (qrl + rl).last ∈ rl4, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (qrl + rl).last, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl ⊦
| rl0 + vtail0 ' + rl4 = (qrl + rl).butlast, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[(qrl + rl).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ (qrl + rl).last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ (qrl + rl).last, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ (qrl + rl).last ∈ rl1, ¬ (qrl + rl).last ∈ rl4, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (qrl + rl).last, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl ⊦ |
⊦ y ≠ [] → (x + y).butlast = x + y.butlast
rl0 + vtail0 ' + rl4 = (qrl + rl).butlast, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ (qrl + rl).last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ (qrl + rl).last, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ (qrl + rl).last ∈ rl1, ¬ (qrl + rl).last ∈ rl4, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (qrl + rl).last, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦
rl0 + vtail0 ' + rl4 = qrl + rl.butlast, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ (qrl + rl).last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl ≠ [], vtail0 ≠ (qrl + rl).last, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ (qrl + rl).last ∈ rl1, ¬ (qrl + rl).last ∈ rl4, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (qrl + rl).last, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦
Used terms: qrl, rl
| ⊦ y ≠ [] → (x + y).butlast = x + y.butlast |
| rl0 + vtail0 ' + rl4 = (qrl + rl).butlast, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ (qrl + rl).last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ (qrl + rl).last, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ (qrl + rl).last ∈ rl1, ¬ (qrl + rl).last ∈ rl4, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (qrl + rl).last, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦ |
rl0 + vtail0 ' + rl4 = qrl.butlast, ps0[qrl.last].deqID = None, vs0[qrl.last].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[qrl.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ qrl.last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, qrl ≠ [], vtail0 ≠ qrl.last, 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) + qrl, vs, ps, owns), listp(first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + first ' + rl2 + qrl, vs0, ps0, owns0), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl, 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ qrl.last ∈ rl1, ¬ qrl.last ∈ rl4, ¬ qrl.last ∈ rl0, ¬ qrl.last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), lst ∈ rl2 ∨ lst ∈ qrl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = qrl.last, (first ' + rl2).last = vhead ∧ unmarkedp(qrl.tail, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), vtail = qrl.last ∨ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦
Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ x + [] = x; (s) ⊦ y ≠ [] → (a ' + x + y).last = y.last; (s) ⊦ ¬ dups([]); (s)
| rl0 + vtail0 ' + rl4 = qrl.butlast, ps0[qrl.last].deqID = None, vs0[qrl.last].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), vs0[qrl.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ qrl.last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, qrl ≠ [], vtail0 ≠ qrl.last, 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) + qrl, vs, ps, owns), listp(first ' + rl2 + qrl, vs, ps, owns), listp(rl1 + first ' + rl2 + qrl, vs0, ps0, owns0), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl, 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ qrl.last ∈ rl1, ¬ qrl.last ∈ rl4, ¬ qrl.last ∈ rl0, ¬ qrl.last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), lst ∈ rl2 ∨ lst ∈ qrl, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = qrl.last, (first ' + rl2).last = vhead ∧ unmarkedp(qrl.tail, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), vtail = qrl.last ∨ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ |
rl0 + vtail0 ' + rl4 = qrl.butlast, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[qrl.last].deqID = None, ps0[qrl.last].deqID = None, vs0[qrl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + qrl0, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ qrl.last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, qrl ≠ [], vtail0 ≠ qrl.last, 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(rl1 + first ' + rl2 + qrl, vs0, ps0, owns0), listp(first ' + rl2 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ qrl.last ∈ rl1, ¬ qrl.last ∈ rl4, ¬ qrl.last ∈ rl0, ¬ qrl.last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = qrl.last ∨ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, (first ' + rl2).last = vhead ∧ unmarkedp(qrl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = qrl.last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦
Used simplifier rules: ⊦ x ≠ [] → (head = x.head ∧ tail = x.tail ↔ x = head + tail); (elim) Used terms: qrl, head, tail
| rl0 + vtail0 ' + rl4 = qrl.butlast, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[qrl.last].deqID = None, ps0[qrl.last].deqID = None, vs0[qrl.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), qrl = phead1 + qrl0, rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ qrl.last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, qrl ≠ [], vtail0 ≠ qrl.last, 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(rl1 + first ' + rl2 + qrl, vs0, ps0, owns0), listp(first ' + rl2 + qrl, vs, ps, owns), listp((rl1 + first ' + rl2) + qrl, vs, ps, owns), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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), some?(ps0[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ qrl.last ∈ rl1, ¬ qrl.last ∈ rl4, ¬ qrl.last ∈ rl0, ¬ qrl.last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = qrl.last ∨ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, (first ' + rl2).last = vhead ∧ unmarkedp(qrl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = qrl.last, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, lst ∈ rl2 ∨ lst ∈ qrl, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦ |
rl0 + vtail0 ' + rl4 = (phead1 ' + qrl0).butlast, ps0[(phead1 ' + qrl0).last].deqID = None, vs0[(phead1 ' + qrl0).last].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps[phead1].deqID = None, vs0[(phead1 ' + qrl0).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ (phead1 ' + qrl0).last, first ≠ vtail0, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, vtail0 ≠ (phead1 ' + qrl0).last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), listp(first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs0, ps0, owns0), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vs, rl1 + first ' + rl2 + phead1 ' + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(rl4, ps0), unmarkedp(qrl0, ps), pretRefs0(tid) ∈ vrvHp, (phead1 ' + qrl0).last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from vhead, (vtail0 ' + rl4).last ∈ phead1 ' + qrl0 from (phead1 ' + qrl0).last, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl4), ¬ dups(rl0), ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl1), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ first ∈ rl4, ¬ (phead1 ' + qrl0).last ∈ rl1, ¬ (phead1 ' + qrl0).last ∈ rl4, ¬ (phead1 ' + qrl0).last ∈ rl0, ¬ (phead1 ' + qrl0).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + phead1 ' + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, lst ∈ rl2 ∨ lst = phead1 ∨ lst ∈ qrl0, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (phead1 ' + qrl0).last, (first ' + rl2).last = vhead ∧ unmarkedp(qrl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(qrl0, vs) ⊦
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] ⊦ a + x = a ' + x; (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ∈ b ' + x ↔ ¬(a ≠ b ∧ ¬ a ∈ x); (ss) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ dups(a ' + x) ↔ a ∈ x ∨ dups(x); (s) ⊦ a ' + x ≠ []; (s)
| rl0 + vtail0 ' + rl4 = (phead1 ' + qrl0).butlast, ps0[(phead1 ' + qrl0).last].deqID = None, vs0[(phead1 ' + qrl0).last].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps[phead1].deqID = None, vs0[(phead1 ' + qrl0).last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ (phead1 ' + qrl0).last, first ≠ vtail0, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, vtail0 ≠ (phead1 ' + qrl0).last, allocrv(pretRefs0, prvHp0), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), listp(first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs0, ps0, owns0), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vs, rl1 + first ' + rl2 + phead1 ' + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + qrl0, vs0, vretRefs0, pretRefs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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), some?(vs[first].deqID), some?(ps[first].deqID), some?(vs0[first].deqID), some?(ps0[first].deqID), unmarkedp(rl4, ps0), unmarkedp(qrl0, ps), pretRefs0(tid) ∈ vrvHp, (phead1 ' + qrl0).last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, phead0 ∈ vs0, phead0 ∈ ps0, phead ∈ ps, phead ∈ vs, phead ∈ vs0, phead ∈ ps0, first ∈ vs0, first ∈ ps0, first ∈ vs, first ∈ ps, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from vhead, (vtail0 ' + rl4).last ∈ phead1 ' + qrl0 from (phead1 ' + qrl0).last, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl4), ¬ dups(rl0), ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl1), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ first ∈ rl4, ¬ (phead1 ' + qrl0).last ∈ rl1, ¬ (phead1 ' + qrl0).last ∈ rl4, ¬ (phead1 ' + qrl0).last ∈ rl0, ¬ (phead1 ' + qrl0).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + phead1 ' + 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, lst ∈ rl2 ∨ lst = phead1 ∨ lst ∈ qrl0, phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (phead1 ' + qrl0).last, (first ' + rl2).last = vhead ∧ unmarkedp(qrl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(qrl0, vs) ⊦ |
⊦ y ≠ [] → (x + y).butlast = x + y.butlast
rl0 + vtail0 ' + rl4 = phead1 ' + qrl0.butlast, ps[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[(phead1 ' + qrl0).last].deqID = None, ps0[(phead1 ' + qrl0).last].deqID = None, vs0[(phead1 ' + qrl0).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ (phead1 ' + qrl0).last, first ≠ vtail0, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, qrl0 ≠ [], vtail0 ≠ (phead1 ' + qrl0).last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs0, ps0, owns0), listp(first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vs, rl1 + first ' + rl2 + phead1 ' + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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(qrl0, ps), unmarkedp(rl4, ps0), (vtail0 ' + rl4).last ∈ phead1 ' + qrl0 from (phead1 ' + qrl0).last, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, (phead1 ' + qrl0).last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl4), ¬ dups(rl0), ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl1), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ first ∈ rl4, ¬ (phead1 ' + qrl0).last ∈ rl1, ¬ (phead1 ' + qrl0).last ∈ rl4, ¬ (phead1 ' + qrl0).last ∈ rl0, ¬ (phead1 ' + qrl0).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ unmarkedp(qrl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(qrl0, vs), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (phead1 ' + qrl0).last, lst ∈ rl2 ∨ lst = phead1 ∨ lst ∈ qrl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦
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: phead1 ', qrl0
| ⊦ y ≠ [] → (x + y).butlast = x + y.butlast |
| rl0 + vtail0 ' + rl4 = phead1 ' + qrl0.butlast, ps[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[(phead1 ' + qrl0).last].deqID = None, ps0[(phead1 ' + qrl0).last].deqID = None, vs0[(phead1 ' + qrl0).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ (phead1 ' + qrl0).last, first ≠ vtail0, first ≠ lst, first ≠ phead1, pretRefs0(tid) ≠ null, qrl0 ≠ [], vtail0 ≠ (phead1 ' + qrl0).last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs0, ps0, owns0), listp(first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vs, rl1 + first ' + rl2 + phead1 ' + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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(qrl0, ps), unmarkedp(rl4, ps0), (vtail0 ' + rl4).last ∈ phead1 ' + qrl0 from (phead1 ' + qrl0).last, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, (phead1 ' + qrl0).last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl4), ¬ dups(rl0), ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(rl1), ¬ dups(rl2 + qrl0), ¬ dups(rl1 + rl2), ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl2, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl0, ¬ first ∈ rl4, ¬ (phead1 ' + qrl0).last ∈ rl1, ¬ (phead1 ' + qrl0).last ∈ rl4, ¬ (phead1 ' + qrl0).last ∈ rl0, ¬ (phead1 ' + qrl0).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (first ' + rl2).last = vhead ∧ unmarkedp(qrl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(qrl0, vs), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (phead1 ' + qrl0).last, lst ∈ rl2 ∨ lst = phead1 ∨ lst ∈ qrl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦ |
rl0 + vtail0 ' + rl4 = phead1 ' + qrl0.butlast, vs0[qrl0.last].deqID = None, ps0[qrl0.last].deqID = None, ps[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[qrl0.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, first ≠ qrl0.last, pretRefs0(tid) ≠ null, qrl0 ≠ [], vtail0 ≠ qrl0.last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs0, ps0, owns0), listp(first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vs, rl1 + first ' + rl2 + phead1 ' + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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(qrl0, ps), unmarkedp(rl4, ps0), (vtail0 ' + rl4).last ∈ phead1 ' + qrl0 from qrl0.last, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, qrl0.last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(rl1), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl0), ¬ dups(rl4), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ qrl0.last ∈ rl2, ¬ qrl0.last ∈ rl0, ¬ qrl0.last ∈ rl4, ¬ qrl0.last ∈ rl1, ¬ first ∈ rl4, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ qrl0, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = qrl0.last, (first ' + rl2).last = vhead ∧ unmarkedp(qrl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(qrl0, vs), lst ∈ rl2 ∨ lst = phead1 ∨ lst ∈ qrl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), phead1 ∈ rl0 ∨ phead1 = vtail0 ∨ phead1 ∈ rl4 ⊦
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).last = x.last; (s)
| rl0 + vtail0 ' + rl4 = phead1 ' + qrl0.butlast, vs0[qrl0.last].deqID = None, ps0[qrl0.last].deqID = None, ps[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[qrl0.last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ lst, first ≠ vtail0, first ≠ qrl0.last, pretRefs0(tid) ≠ null, qrl0 ≠ [], vtail0 ≠ qrl0.last, allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), allocrv(vretRefs0, vrvHp0), allocrv(pretRefs0, prvHp0), equalowns(vs, ps, owns, tid, vs0, ps0, owns0), equalrl(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, vs0, ps0), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs0, ps0, owns0), listp(first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), listp(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, ps, owns), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vhead, vs), noidRely(tid, rl1 + first ' + rl2 + phead1 ' + qrl0, vs, rl1 + first ' + rl2 + phead1 ' + qrl0, vs0), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + qrl0, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + phead1 ' + 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(qrl0, ps), unmarkedp(rl4, ps0), (vtail0 ' + rl4).last ∈ phead1 ' + qrl0 from qrl0.last, vhead0 ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from vhead, first ∈ ps, first ∈ vs, first ∈ ps0, first ∈ vs0, phead ∈ ps0, phead ∈ vs0, phead ∈ vs, phead ∈ ps, phead0 ∈ ps0, phead0 ∈ vs0, qrl0.last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, pretRefs0(tid) ∈ vrvHp, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2), ¬ dups(rl2 + qrl0), ¬ dups(rl1), ¬ dups(qrl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups((rl1 + rl2) + qrl0), ¬ dups(rl0), ¬ dups(rl4), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + rl0), ¬ qrl0.last ∈ rl2, ¬ qrl0.last ∈ rl0, ¬ qrl0.last ∈ rl4, ¬ qrl0.last ∈ rl1, ¬ first ∈ rl4, ¬ first ∈ qrl0, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl1, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl1, ¬ phead1 ∈ qrl0, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + phead1 ' + qrl0 from lst, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = qrl0.last, (first ' + rl2).last = vhead ∧ unmarkedp(qrl0, vs) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ vs[phead1].deqID = None ∧ unmarkedp(qrl0, vs), lst ∈ rl2 ∨ lst = phead1 ∨ lst ∈ qrl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0), phead1 ∈ rl0 ∨ phead1 = vtail0 ∨ phead1 ∈ rl4 ⊦ |
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) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (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 + vtail0 ' + rl4 = qrl + rl.butlast, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[(qrl + rl).last].deqID = None, ps0[(qrl + rl).last].deqID = None, vs0[(qrl + rl).last].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ (qrl + rl).last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl ≠ [], vtail0 ≠ (qrl + rl).last, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ (qrl + rl).last ∈ rl1, ¬ (qrl + rl).last ∈ rl4, ¬ (qrl + rl).last ∈ rl0, ¬ (qrl + rl).last ∈ rl2, ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), (qrl + rl).last ∈ qrl ∨ (qrl + rl).last ∈ rl, 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, 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), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = (qrl + rl).last, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦ |
rl0 + vtail0 ' + rl4 = qrl + rl.butlast, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[rl.last].deqID = None, vs0[rl.last].deqID = None, vs0[rl.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ rl.last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl ≠ [], vtail0 ≠ rl.last, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ rl.last ∈ rl1, ¬ rl.last ∈ rl4, ¬ rl.last ∈ rl0, ¬ rl.last ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, 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, 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = rl.last ⊦
Used simplifier rules: ⊦ x.last ∈ x ↔ x ≠ []; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ y ≠ [] → (x + y).last = y.last; (s)
| rl0 + vtail0 ' + rl4 = qrl + rl.butlast, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[rl.last].deqID = None, vs0[rl.last].deqID = None, vs0[rl.last].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ rl.last, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl ≠ [], vtail0 ≠ rl.last, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + rl, 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ rl.last ∈ rl1, ¬ rl.last ∈ rl4, ¬ rl.last ∈ rl0, ¬ rl.last ∈ rl2, 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, 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, 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = rl.last ⊦ |
rl0 + vtail0 ' + rl4 = qrl + qrl0, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = qrl0 + phead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl ≠ [], vtail0 ≠ phead1, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, 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, 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 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl, phead1, y
| rl0 + vtail0 ' + rl4 = qrl + qrl0, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl = qrl0 + phead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), qrl + rl ≠ [], ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl ≠ [], vtail0 ≠ phead1, 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 + qrl + rl, 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + rl, vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + rl from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + rl from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, 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, 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 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦ |
rl0 + vtail0 ' + rl4 = qrl + qrl0, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, 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, 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1 ⊦
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 + vtail0 ' + rl4 = qrl + qrl0, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', 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(rl4, ps0), unmarkedp(qrl, ps), (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, 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, 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1 ⊦ |
⊦ y ≠ [] → (x + y).last = y.last
rl0 + vtail0 ' + rl4 = qrl + qrl0, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl4 = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ qrl0, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, 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, 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 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦
rl0 + vtail0 ' + rl4 = qrl + qrl0, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl4 ≠ [], vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, 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, rl4.last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ rl4.last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ qrl0, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, 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, 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 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦
Used terms: vtail0 ', rl4
| ⊦ y ≠ [] → (x + y).last = y.last |
| rl0 + vtail0 ' + rl4 = qrl + qrl0, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rl4 = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, 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 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ (vtail0 ' + rl4).last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ qrl0, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, 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, 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 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦ |
rl0 + vtail0 ' = qrl + qrl0, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, first ≠ phead1, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vtail0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, 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, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl1 + rl2), ¬ dups(rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2 + qrl), ¬ vtail0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 = phead1, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None, 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, 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), vtail0 ∈ qrl ∨ vtail0 ∈ qrl0 ⊦
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] ⊦ ¬ a ∈ []; (s) ⊦ unmarkedp([], vs); (s) ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) ⊦ ¬ dups([]); (s)
| rl0 + vtail0 ' = qrl + qrl0, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ lst, first ≠ vtail0, first ≠ phead1, pretRefs0(tid) ≠ null, vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), vtail0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vtail, vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, 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, dom prvHp ⊆ dom prvHp0, ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl1), ¬ dups(rl1 + rl2), ¬ dups(rl0), ¬ dups(rl2), ¬ dups(rl2 + rl0), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2 + qrl), ¬ vtail0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 = phead1, (first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None, 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, 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), vtail0 ∈ qrl ∨ vtail0 ∈ qrl0 ⊦ |
⊦ 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 ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (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] ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) ni: ⊦ x + a ' = y + z ∧ ¬ a ∈ z → z = []; (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 ⊦ x + [] = x; (s) ⊦ [] + x = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ dups([]); (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] ⊦ 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) ⊦ ¬ b ∈ x → (dups(x + b ') ↔ dups(x)); (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r ' from r0 = (r = r0 ⊃ r ';[]); (s) Used terms: rl1, first ' + rl2 + qrl + qrl0 + phead1 ', lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| rl0 + vtail0 ' + rl4 = qrl + qrl0, vs0[phead1].deqID = None, ps0[phead1].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[vtail0].deqID = None, vs0[phead1].next = null, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl4 ≠ [], vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs((rl1 + first ' + rl2) + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + 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[first].deqID), some?(vs0[first].deqID), some?(ps[first].deqID), some?(vs[first].deqID), unmarkedp(qrl, ps), unmarkedp(rl4, ps0), vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, 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, rl4.last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vtail, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ rl4.last ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ qrl0, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1, 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, 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 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, vs0) ⊦ |
rl0 + vtail0 ' + rl4 = qrl + qrl0, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl4 = qrl1 + vhead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl4 ≠ [], vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', 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(rl4, ps0), unmarkedp(qrl, ps), vhead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ vhead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, 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, 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1 ⊦
Used simplifier rules: x ≠ [] ⊦ a = x.last ∧ y = x.butlast ↔ x = y + a '; (elim) Used terms: rl4, vhead1, y
| rl0 + vtail0 ' + rl4 = qrl + qrl0, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl4 = qrl1 + vhead1 ', rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ phead1, first ≠ vtail0, first ≠ lst, pretRefs0(tid) ≠ null, rl4 ≠ [], vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', 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(rl4, ps0), unmarkedp(qrl, ps), vhead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + rl4), ¬ dups(rl2 + qrl), ¬ dups(rl2 + rl0), ¬ dups(rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl0 + rl4), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + rl4), ¬ dups(rl1), ¬ dups(rl4), ¬ dups(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ vhead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vtail0 ∈ rl1, ¬ vtail0 ∈ rl4, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ rl2, ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ rl4, ¬ phead1 ∈ rl1, ¬ phead1 ∈ rl4, ¬ phead1 ∈ rl0, ¬ phead1 ∈ rl2, ¬ phead1 ∈ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(rl4, vs0) ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(rl4, 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, 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 = vtail0 ∨ phead0 ∈ rl4 ∨ phead0 = phead1 ⊦ |
rl0 + vtail0 ' + qrl1 + vhead1 ' = qrl + qrl0, ps0[vhead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vhead1, first ≠ lst, first ≠ vtail0, first ≠ phead1, phead1 ≠ vhead1, pretRefs0(tid) ≠ null, vtail0 ≠ vhead1, vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', 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(qrl1, ps0), unmarkedp(qrl, ps), vhead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl1), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl1), ¬ dups(rl2 + rl0), ¬ dups(rl0 + qrl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl1), ¬ dups(rl1 + rl2 + qrl), ¬ phead1 ∈ qrl1, ¬ phead1 ∈ rl1, ¬ first ∈ qrl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ qrl1, ¬ vtail0 ∈ rl1, ¬ vhead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vhead1 ∈ qrl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, ¬ vhead1 ∈ rl1, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl2, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ qrl1 ∨ phead0 = vhead1 ∨ phead0 = phead1, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(qrl1, vs0) ∧ vs0[vhead1].deqID = None ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(qrl1, vs0) ∧ vs0[vhead1].deqID = None, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vhead1 ∈ qrl ∨ vhead1 ∈ qrl0 ⊦
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)
| rl0 + vtail0 ' + qrl1 + vhead1 ' = qrl + qrl0, ps0[vhead1].deqID = None, ps0[vtail0].deqID = None, vs[ps[first].next].deqID = Some(othertid), ps0[phead1].deqID = None, vs0[phead1].deqID = None, vs0[phead1].next = null, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), ps[first].next ≠ null, first ≠ vhead1, first ≠ lst, first ≠ vtail0, first ≠ phead1, phead1 ≠ vhead1, pretRefs0(tid) ≠ null, vtail0 ≠ vhead1, vtail0 ≠ phead1, 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 + qrl + qrl0 + phead1 ', 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs), noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', vs0), nonullRetRefs(rl1 + first ' + rl2 + qrl + qrl0 + phead1 ', 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(qrl1, ps0), unmarkedp(qrl, ps), vhead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' 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, vhead0 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from vhead, dom prvHp ⊆ dom prvHp0, ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl1), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(qrl1), ¬ dups(rl2 + rl0), ¬ dups(rl0 + qrl1), ¬ dups(rl2), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl1), ¬ dups(rl1 + rl2 + qrl), ¬ phead1 ∈ qrl1, ¬ phead1 ∈ rl1, ¬ first ∈ qrl1, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, ¬ vtail0 ∈ rl2, ¬ vtail0 ∈ rl0, ¬ vtail0 ∈ qrl1, ¬ vtail0 ∈ rl1, ¬ vhead1 ∈ rl1 + first ' + rl2 + qrl + qrl0 + phead1 ' from lst, ¬ vhead1 ∈ qrl1, ¬ vhead1 ∈ rl0, ¬ vhead1 ∈ rl2, ¬ vhead1 ∈ rl1, ¬ phead1 ∈ qrl0, ¬ phead1 ∈ rl2, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), phead0 ∈ rl1 + first ' + rl2 from phead ∨ phead0 ∈ rl0 ∨ phead0 = vtail0 ∨ phead0 ∈ qrl1 ∨ phead0 = vhead1 ∨ phead0 = phead1, (first ' + rl2 + rl0).last = vhead0 ∧ unmarkedp(qrl1, vs0) ∧ vs0[vhead1].deqID = None ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0 ∧ phead0 ≠ (first ' + rl2 + rl0).last ∧ vs0[vtail0].deqID = None ∧ unmarkedp(qrl1, vs0) ∧ vs0[vhead1].deqID = None, (first ' + rl2).last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead ∧ phead ≠ (first ' + rl2).last ∧ unmarkedp(qrl, vs), lst ∈ rl2 ∨ lst ∈ qrl, vtail = (first ' + rl2 + qrl).last ∨ qrl ≠ [] ∧ vtail = (first ' + rl2 + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl2 ∨ phead0 ∈ rl0, phead ∈ rl1 ∨ phead = first ∨ phead ∈ rl2, vhead1 ∈ qrl ∨ vhead1 ∈ qrl0 ⊦ |
⊦ 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 ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) ⊦ a ≠ b → (a ∈ b ' + x ↔ a ∈ x); (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] ni: ⊦ x + a ' = y + z ∧ ¬ a ∈ z → z = []; (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 ⊦ x + [] = x; (s) ⊦ [] + x = x; (s) ⊦ ¬ a ∈ []; (s) ⊦ ¬ dups([]); (s) in-15: ⊦ x + a ' = y → a ∈ y; (forward) from specification list[reflist] ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) ⊦ r ' from r0 = (r = r0 ⊃ r ';[]); (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ dups(x + a ') ↔ a ∈ x ∨ dups(x); (ws) ⊦ ¬ a ∈ x ∧ ¬ a ∈ y → (dups(x + a ' + y) ↔ dups(x + y)); (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r0 ≠ r → r0 ' + rl from r = rl from r; (s) Used terms: rl1, first ' + rl2 + qrl + qrl0 + phead1 ', lst
| ⊦ r ∈ orl → orl + qrl from r = (orl from r) + qrl |
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ lst ∈ rl2, ¬ lst ∈ rl0, ¬ lst ∈ qrl0, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ lst ∈ rl2, ¬ lst ∈ rl0, ¬ lst ∈ qrl0, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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, (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) ⊦
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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ lst ∈ rl2, ¬ lst ∈ rl0, ¬ lst ∈ qrl0, ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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, (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) ⊦ |
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) ⊦ (a ' + x + b ' + y).last = (b ' + y).last; (s) ⊦ a ' + x ≠ []; (s) ⊦ a + x = a ' + x; (s) ⊦ unmarkedp(rl + rl0, vs) ↔ unmarkedp(rl, vs) ∧ unmarkedp(rl0, vs); (s) ⊦ unmarkedp(r ', vs) ↔ vs[r].deqID = None; (s) 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, phead1, y
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ noid(tid, ((rl1 + first ' + rl2) + rl0) + qrl0, vhead0, vs0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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) ⊦ |
orl.last = vhead ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead, (orl + rl0).last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ⊦ noidRely(tid, orl + qrl, vs, orl + rl0 + qrl0, vs0) ∧ orl ≠ [] ∧ noid(tid, orl + qrl, vhead, vs) ∧ ¬ dups(orl + qrl) ∧ ¬ dups(orl + rl0 + qrl0) ∧ qrl + rl = rl0 + qrl0 ∧ vhead0 ∈ (orl + rl0) + qrl0 from vhead → noid(tid, orl + rl0 + qrl0, vhead0, vs0)
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ noid(tid, ((rl1 + first ' + rl2) + rl0) + qrl0, vhead0, vs0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ ((rl1 + first ' + rl2).last = vhead ∨ (rl1 + first ' + rl2).butlast ≠ [] ∧ (rl1 + first ' + rl2).butlast.last = vhead) ∧ (((rl1 + first ' + rl2) + rl0).last = vhead0 ∨ ((rl1 + first ' + rl2) + rl0).butlast ≠ [] ∧ ((rl1 + first ' + rl2) + rl0).butlast.last = vhead0) ∧ noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, (rl1 + first ' + rl2) + rl0 + qrl0, vs0) ∧ rl1 + first ' + rl2 ≠ [] ∧ noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs) ∧ ¬ dups((rl1 + first ' + rl2) + qrl) ∧ ¬ dups((rl1 + first ' + rl2) + rl0 + qrl0) ∧ qrl + rl = rl0 + qrl0 ∧ vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] Used terms: qrl, rl, vhead, vhead0, tid, qrl0, rl1 + first ' + rl2, vs0, rl0, vs
| orl.last = vhead ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead, (orl + rl0).last = vhead0 ∨ (orl + rl0).butlast ≠ [] ∧ (orl + rl0).butlast.last = vhead0 ⊦ noidRely(tid, orl + qrl, vs, orl + rl0 + qrl0, vs0) ∧ orl ≠ [] ∧ noid(tid, orl + qrl, vhead, vs) ∧ ¬ dups(orl + qrl) ∧ ¬ dups(orl + rl0 + qrl0) ∧ qrl + rl = rl0 + qrl0 ∧ vhead0 ∈ (orl + rl0) + qrl0 from vhead → noid(tid, orl + rl0 + qrl0, vhead0, vs0) |
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ noid(tid, ((rl1 + first ' + rl2) + rl0) + qrl0, vhead0, vs0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ ((rl1 + first ' + rl2).last = vhead ∨ (rl1 + first ' + rl2).butlast ≠ [] ∧ (rl1 + first ' + rl2).butlast.last = vhead) ∧ (((rl1 + first ' + rl2) + rl0).last = vhead0 ∨ ((rl1 + first ' + rl2) + rl0).butlast ≠ [] ∧ ((rl1 + first ' + rl2) + rl0).butlast.last = vhead0) ∧ noidRely(tid, (rl1 + first ' + rl2) + qrl, vs, (rl1 + first ' + rl2) + rl0 + qrl0, vs0) ∧ rl1 + first ' + rl2 ≠ [] ∧ noid(tid, (rl1 + first ' + rl2) + qrl, vhead, vs) ∧ ¬ dups((rl1 + first ' + rl2) + qrl) ∧ ¬ dups((rl1 + first ' + rl2) + rl0 + qrl0) ∧ qrl + rl = rl0 + qrl0 ∧ vhead0 ∈ ((rl1 + first ' + rl2) + rl0) + qrl0 from vhead |
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ noid(tid, ((rl1 + first ' + rl2) + rl0) + qrl0, vhead0, vs0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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) ⊦ ((first ' + rl2).last = vhead ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead) ∧ ((first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0)
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ dups(x + a ' + y) ↔ a ∈ x ∨ a ∈ y ∨ dups(x + y); (ws) ⊦ x + a ' + y ≠ []; (s) ⊦ (x + a ' + y).butlast = x + (a ' + y).butlast; (s) ⊦ (x + a ' + y).last = (a ' + y).last; (s)
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ noid(tid, ((rl1 + first ' + rl2) + rl0) + qrl0, vhead0, vs0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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) ⊦ ((first ' + rl2).last = vhead ∨ rl1 + (first ' + rl2).butlast ≠ [] ∧ (rl1 + (first ' + rl2).butlast).last = vhead) ∧ ((first ' + rl2 + rl0).last = vhead0 ∨ rl1 + (first ' + rl2 + rl0).butlast ≠ [] ∧ (rl1 + (first ' + rl2 + rl0).butlast).last = vhead0) |
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next |
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next |
⊦ 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 + first ' + rl2) + 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[((rl1 + first ' + rl2) + qrl).last].next ≠ null → vs0[((rl1 + first ' + rl2) + qrl).last].next = vs[((rl1 + first ' + rl2) + qrl).last].next ∧ vs0[vs0[((rl1 + first ' + rl2) + qrl).last].next].val = vs[vs0[((rl1 + 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next
Used terms: ps, (rl1 + first ' + rl2) + 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, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 + first ' + rl2) + 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[((rl1 + first ' + rl2) + qrl).last].next ≠ null → vs0[((rl1 + first ' + rl2) + qrl).last].next = vs[((rl1 + first ' + rl2) + qrl).last].next ∧ vs0[vs0[((rl1 + first ' + rl2) + qrl).last].next].val = vs[vs0[((rl1 + 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next |
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ (x + a ' + y).last = (a ' + y).last; (s) ⊦ a ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s)
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].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 ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next |
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), first ∈ rl1 ∨ first = first ∨ first ∈ rl2 ∨ first ∈ qrl → vs[first].val = vs0[first].val ∧ ps[first].val = ps0[first].val ∧ (vs[first].deqID ≠ None → vs0[first].deqID = vs[first].deqID) ∧ (ps[first].deqID ≠ None → ps0[first].deqID = ps[first].deqID) ∧ (vs[first].next ≠ null → vs0[first].next = vs[first].next) ∧ (ps[first].next ≠ null → ps0[first].next = ps[first].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), ∀ r. r ∈ rl1 ∨ 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next
Used terms: first
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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), first ∈ rl1 ∨ first = first ∨ first ∈ rl2 ∨ first ∈ qrl → vs[first].val = vs0[first].val ∧ ps[first].val = ps0[first].val ∧ (vs[first].deqID ≠ None → vs0[first].deqID = vs[first].deqID) ∧ (ps[first].deqID ≠ None → ps0[first].deqID = ps[first].deqID) ∧ (vs[first].next ≠ null → vs0[first].next = vs[first].next) ∧ (ps[first].next ≠ null → ps0[first].next = ps[first].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), ∀ r. r ∈ rl1 ∨ 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None ∧ ps[first].next = ps0[first].next |
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), vs0[first].deqID = vs[first].deqID, ps0[first].deqID = ps[first].deqID, ps0[first].next = ps[first].next, vs[first].val = vs0[first].val, ps[first].val = ps0[first].val, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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), 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vs[first].next ≠ null → vs0[first].next = vs[first].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, ∀ r. r ∈ rl1 ∨ 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), (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 ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None
Used simplifier rules: ⊦ some?(opttid) → opttid ≠ None; (as)
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), vs0[first].deqID = vs[first].deqID, ps0[first].deqID = ps[first].deqID, ps0[first].next = ps[first].next, vs[first].val = vs0[first].val, ps[first].val = ps0[first].val, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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), 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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ 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), 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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vs[first].next ≠ null → vs0[first].next = vs[first].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, ∀ r. r ∈ rl1 ∨ 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), (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 ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None |
qrl + rl = rl0 + qrl0, ps0[first].deqID = ps[first].deqID, vs0[first].deqID = vs[first].deqID, vs[ps[first].next].deqID = Some(othertid), ps0[first].next = ps[first].next, ps[first].val = ps0[first].val, vs[first].val = vs0[first].val, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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?(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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, 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, vs[first].next ≠ null → vs0[first].next = vs[first].next, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl1 ∨ ps[first].next ∈ rl2 ∨ 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), ∀ r. r ∈ rl1 ∨ 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), 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None
Used terms: ps[first].next
| qrl + rl = rl0 + qrl0, ps0[first].deqID = ps[first].deqID, vs0[first].deqID = vs[first].deqID, vs[ps[first].next].deqID = Some(othertid), ps0[first].next = ps[first].next, ps[first].val = ps0[first].val, vs[first].val = vs0[first].val, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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?(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(rl2 + qrl), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl1 + rl2), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl), ¬ dups(rl2), ¬ dups(rl0 + qrl0), ¬ dups(rl2 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ dups(rl0), ¬ first ∈ qrl0, ¬ first ∈ qrl, ¬ first ∈ rl0, ¬ first ∈ rl2, ¬ first ∈ rl1, 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, vs[first].next ≠ null → vs0[first].next = vs[first].next, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl1 ∨ ps[first].next ∈ rl2 ∨ 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), ∀ r. r ∈ rl1 ∨ 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), 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None |
qrl + rl = rl0 + qrl0, ps0[first].deqID = ps[first].deqID, vs0[first].deqID = vs[first].deqID, vs[ps[first].next].deqID = Some(othertid), ps0[first].next = ps[first].next, ps[first].val = ps0[first].val, vs[first].val = vs0[first].val, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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?(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(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ dups(rl2 + rl0), ¬ dups(rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + qrl), ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ qrl0, 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, vs[first].next ≠ null → vs0[first].next = vs[first].next, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl1 ∨ ps[first].next ∈ rl2 ∨ ps[first].next ∈ qrl → vs[ps[first].next].val = vs0[ps[first].next].val ∧ ps[ps[first].next].val = ps0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ (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), ∀ r. r ∈ rl1 ∨ 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), 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None
Used simplifier rules: ⊦ None ≠ Some(tid); (s)
| qrl + rl = rl0 + qrl0, ps0[first].deqID = ps[first].deqID, vs0[first].deqID = vs[first].deqID, vs[ps[first].next].deqID = Some(othertid), ps0[first].next = ps[first].next, ps[first].val = ps0[first].val, vs[first].val = vs0[first].val, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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?(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(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ dups(rl2 + rl0), ¬ dups(rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + qrl), ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ qrl0, 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, vs[first].next ≠ null → vs0[first].next = vs[first].next, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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 ∈ rl1 ∨ ps[first].next ∈ rl2 ∨ ps[first].next ∈ qrl → vs[ps[first].next].val = vs0[ps[first].next].val ∧ ps[ps[first].next].val = ps0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ (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), ∀ r. r ∈ rl1 ∨ 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), 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) ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None |
qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), vs0[first].deqID = vs[first].deqID, ps0[first].deqID = ps[first].deqID, ps0[first].next = ps[first].next, vs[first].val = vs0[first].val, ps[first].val = ps0[first].val, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl2 = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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), 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(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ dups(rl2 + rl0), ¬ dups(rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + qrl), ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ qrl0, ps[first].next ∈ rl1 ∨ ps[first].next ∈ rl2 ∨ ps[first].next ∈ qrl → vs[ps[first].next].val = vs0[ps[first].next].val ∧ ps[ps[first].next].val = ps0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ (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), 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vs[first].next ≠ null → vs0[first].next = vs[first].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, ∀ r. r ∈ rl1 ∨ 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), (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 ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None
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 + 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] ⊦ some?(opttid) → opttid ≠ None; (as) ⊦ some?(Some(tid)); (s) ⊦ None ≠ Some(tid); (s) ⊦ Some(tid).tid = tid; (s)
| qrl + rl = rl0 + qrl0, vs[ps[first].next].deqID = Some(othertid), vs0[first].deqID = vs[first].deqID, ps0[first].deqID = ps[first].deqID, ps0[first].next = ps[first].next, vs[first].val = vs0[first].val, ps[first].val = ps0[first].val, dom vrvHp0 = dom prvHp0, dom vrvHp = dom prvHp, pretRefs(tid) = pretRefs0(tid), rl2 = [], rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), 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), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, (rl1 + first ' + rl2) + qrl, vhead, 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), 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(rl0), ¬ dups(qrl), ¬ dups(qrl0), ¬ dups(rl2 + rl0), ¬ dups(rl0 + qrl0), ¬ dups(rl2), ¬ dups(rl), ¬ dups(rl1 + rl2 + qrl), ¬ dups(rl1 + rl2 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl2 + rl0 + qrl0), ¬ dups(rl1 + rl2), ¬ dups(rl1 + rl2 + rl0), ¬ dups(rl2 + qrl), ¬ first ∈ rl1, ¬ first ∈ rl2, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ qrl0, ps[first].next ∈ rl1 ∨ ps[first].next ∈ rl2 ∨ ps[first].next ∈ qrl → vs[ps[first].next].val = vs0[ps[first].next].val ∧ ps[ps[first].next].val = ps0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ (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), 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[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 → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), vs[first].next ≠ null → vs0[first].next = vs[first].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, ∀ r. r ∈ rl1 ∨ 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), (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 ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None |
qrl + rl = rl0 + qrl0, ps0[first].deqID = ps[first].deqID, vs0[first].deqID = vs[first].deqID, vs[ps[first].next].deqID = Some(othertid), ps0[first].next = ps[first].next, ps[first].val = ps0[first].val, vs[first].val = vs0[first].val, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), listp(first ' + qrl, vs, ps, owns), listp(rl1 + first ' + qrl, vs, ps, owns), listp(rl1 + first ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(rl1, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + qrl, vhead, vs), noidRely(tid, rl1 + first ' + qrl, vs, rl1 + first ' + rl0 + qrl0, vs0), nonullRetRefs(rl1 + first ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + 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?(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 ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + rl0 + qrl0 from vtail, vhead0 ∈ rl1 + first ' + rl0 + qrl0 from vhead, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ qrl0, vs[first].next ≠ null → vs0[first].next = vs[first].next, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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[qrl.last].next ≠ null → vs0[qrl.last].next = vs[qrl.last].next ∧ vs0[vs0[qrl.last].next].val = vs[vs0[qrl.last].next].val, ps[first].next ∈ rl1 ∨ ps[first].next ∈ qrl → vs[ps[first].next].val = vs0[ps[first].next].val ∧ ps[ps[first].next].val = ps0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ (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), ∀ r. r ∈ rl1 ∨ 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), phead0 ∈ rl1 + first ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl0, vtail0 = (first ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, first = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 ≠ [] ∧ rl1.last = vhead ∧ phead ≠ first ∧ unmarkedp(qrl, vs), (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), vtail = qrl.last ∨ qrl ≠ [] ∧ vtail = (first ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] list-elem-in-app21: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ vs; (forward) from specification DMSQ list-elem-in-app22: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ qrl → node ∈ ps; (forward) from specification DMSQ ⊦ a ∈ x → (b ' + x).last = x.last; (s) ⊦ ¬ a ∈ []; (s) ⊦ [] + x = x; (s) ⊦ a '.last = a; (s) ⊦ x + [] = x; (s) ⊦ a '.butlast = []; (s) ⊦ ¬ dups([]); (s) ⊦ markedp([], vs); (s)
| qrl + rl = rl0 + qrl0, ps0[first].deqID = ps[first].deqID, vs0[first].deqID = vs[first].deqID, vs[ps[first].next].deqID = Some(othertid), ps0[first].next = ps[first].next, ps[first].val = ps0[first].val, vs[first].val = vs0[first].val, dom vrvHp = dom prvHp, dom vrvHp0 = dom prvHp0, pretRefs(tid) = pretRefs0(tid), rvowns(pretRefs0(tid)) = Pending(tid), vretRefs(tid) = pretRefs0(tid), vretRefs0(tid) = pretRefs0(tid), 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), listp(first ' + qrl, vs, ps, owns), listp(rl1 + first ' + qrl, vs, ps, owns), listp(rl1 + first ' + rl0 + qrl0, vs0, ps0, owns0), markedp(rl0, ps0), markedp(rl1, ps0), markedp(rl0, vs0), markedp(rl1, vs0), markedp(rl1, ps), markedp(rl1, vs), nextnottid(tid, vhead, vs), nextnottidRely(tid, vhead, vs, vhead0, vs0), noid(tid, rl1 + first ' + qrl, vhead, vs), noidRely(tid, rl1 + first ' + qrl, vs, rl1 + first ' + rl0 + qrl0, vs0), nonullRetRefs(rl1 + first ' + qrl, vs, vretRefs, pretRefs), nonullRetRefs(rl1 + first ' + 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?(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 ' + qrl from lst, pretRefs0(tid) ∈ vrvHp, vtail0 ∈ rl1 + first ' + rl0 + qrl0 from vtail, vhead0 ∈ rl1 + first ' + rl0 + qrl0 from vhead, lst ∈ qrl, lst ∈ vs, lst ∈ ps, dom prvHp ⊆ dom prvHp0, ¬ dups(rl), ¬ dups(rl1 + qrl), ¬ dups(rl1 + rl0 + qrl0), ¬ dups(rl1), ¬ dups(rl0), ¬ dups(rl0 + qrl0), ¬ dups(rl1 + rl0), ¬ dups(qrl0), ¬ dups(qrl), ¬ first ∈ rl1, ¬ first ∈ rl0, ¬ first ∈ qrl, ¬ first ∈ qrl0, vs[first].next ≠ null → vs0[first].next = vs[first].next, vhead = first → rvowns(vretRefs(othertid)) = Claimed(othertid, vs[ps[first].next].val), 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), 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[qrl.last].next ≠ null → vs0[qrl.last].next = vs[qrl.last].next ∧ vs0[vs0[qrl.last].next].val = vs[vs0[qrl.last].next].val, ps[first].next ∈ rl1 ∨ ps[first].next ∈ qrl → vs[ps[first].next].val = vs0[ps[first].next].val ∧ ps[ps[first].next].val = ps0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ (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), ∀ r. r ∈ rl1 ∨ 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), phead0 ∈ rl1 + first ' from phead ∨ phead0 ∈ rl0 ∨ phead0 ∈ qrl0, phead ∈ rl1 ∨ phead = first, phead0 ∈ rl1 ∨ phead0 = first ∨ phead0 ∈ rl0, vtail0 = (first ' + rl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (first ' + rl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, first = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ rl1 ≠ [] ∧ rl1.last = vhead ∧ phead ≠ first ∧ unmarkedp(qrl, vs), (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), vtail = qrl.last ∨ qrl ≠ [] ∧ vtail = (first ' + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ (vhead0 = first → rvowns0(vretRefs0(othertid)) = Claimed(othertid, vs[ps[first].next].val)) ∧ vs[ps[first].next].val = vs0[ps[first].next].val ∧ vs0[ps[first].next].deqID = Some(othertid) ∧ vs0[ps[first].next].deqID ≠ None |
Used simplifier rules: ⊦ 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 ∈ 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) a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] 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 ∈ x + y ↔ a ∈ x ∨ a ∈ y; (s) ⊦ a ∈ b ' ↔ a = b; (s) ⊦ ¬ r ∈ orl → orl + qrl from r = qrl from r; (s) ⊦ r ' + rl from r = r ' + rl; (s) ⊦ a ∈ b ' + x ↔ a = b ∨ a ∈ x; (s) a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] ⊦ None ≠ Some(tid); (s) ⊦ Some(tid).tid = tid; (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
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.