Theorem W, stage B2: a split's insertion into the top structure #
insertAround x y z reads labels for the new chunks y, z around x (insertAroundPrep,
read-only), writes their tags (Tag), and inserts them into the tables, paths and children of the
top structure (insertAroundFinish: R, F for y, z, Lab for the labels). The tags are bounded by
the top invariant of the state after the split (tag_lt_of_topInv), as a hypothesis on the final
state: the finish leaves the chunk records alone, so the final tags of y, z are the written
ones.
Read-only and chunk-preserving runs #
The chunk records are unchanged.
Equations
- OrderMaintenance.Proof.Word.CS s s' = (s'.C = s.C)
Instances For
A guarded tag write that succeeds writes the tag.
Triples #
A label next to an entry is below its upper neighbour, a label or 2^β, hence below 2^K.
A table insertion: the new entry and its label (hypotheses), the side list (R).
The rest of a split's insertion (R, F, Lab): the new chunks y, z enter the tables
(labels ly, lz), the paths (NIL rows), the tables lists (tabs), the live parent and its
children.
The read-only part of a split's insertion returns bounded tables, labels and parent.
A split's insertion into the top structure keeps the stored-value bound, given the new
chunks below 2^K and the bound of their final tags (which the top invariant after the split
gives).
The construction of the initial chain #
A construction step keeps the stored-value bound (stage h of Stage): a chain node
(index nodes.size = h, F; its table holds the centre, Lab), the next height and the tag of the
chain so far (chainTag, below 2^(hβ)), or, at the end, the stored path and tag.
The fresh core before its chain is built.
The eager construction's loop keeps the stored-value bound.
A fresh core keeps the stored-value bound (initCore, eager or lazy), from bounded
parameters and room for labels, tags and heights.
A fresh core, as the wrapper makes it (newCore).
A preparation step keeps the stored-value bound, on a core whose chain is being built
(topPI) or that is ready.