The core's insertion (Core.insertAfter) #
insertAfter x h inserts a new element after x. If the label guard fails, FALLBACK rebuilds
and the retried insertion succeeds (RoomP); if the background work fails a guard, FALLBACK
rebuilds. Either way the result satisfies INV-S, and the element list is x's list with the
new element y = |E| right after x.
The parameter conditions for the core (docs/PROOF.md §3.4).
Equations
Instances For
With room after x, the insertion succeeds.
The first phase: the insertion itself, with FALLBACK and a retry on a failed guard.
The core's insertion. From INV-S, insertAfter x h with x in the element list returns
y = |E|, and the result satisfies INV-S with element list insertAfterL x y.
Queries and deletion #
Order queries answer by position in the element list (Lemma 3.1).
Marking an element dead touches only its live bit.
INV-S reads the element records only through next, prev, grp and lab.