Theorem W, stage B2: the top structure's write sites #
The top structure's operations, as the pure state updates the cost proof computes them
(copyC, wiC, sdS, dsS, fdS, insFinS, the construction steps), keep the stored-value
bound. The classes of docs/WORD.md §2:
- R: node indices, entries and sides read from the state, sublists (
filter,erase,assocErase,replace1),NIL; - F: the two fresh nodes of a drain start (
nodes.size,nodes.size + 1) and the new chunks of a split: hypotheses; - Lab: table labels (
roomL,evenTable, the centre), givenβ ≤ K; - Sz: weights (
weight + 2, the sums of a drain start): hypotheses, discharged inTopStep.leanfromTiming.wts; - Tag: chunk tags: hypotheses, discharged from
Shape.tags(tag_lt_of_topInv).
Lists #
The keys of sidesOf are entries of the order.
fixSides adds keys from its entry list.
The keys of a drain's side list are entries of the ghost's table.
Labels #
Nodes #
Close a NodeB goal for a record update whose new values are bounded.
Equations
- OrderMaintenance.Proof.Word.tacticNodeb = Lean.ParserDescr.node `OrderMaintenance.Proof.Word.tacticNodeb 1024 (Lean.ParserDescr.nonReservedSymbol "nodeb" false)
Instances For
Updates of the top structure's arrays.
Tags from the top invariant #
Node updates #
A copy step #
The walk's weight update (class Sz) #
A sweep step (class Tag) #
A sweep step moves chunk dsY to target dsT (R) and writes its new tag (the
hypothesis).
The end of a drain (class R) #
The end of a drain: entries and tables lose the ghost (sublists), its targets are released, it dies.
A drain start (classes F, Lab, Sz) #
Insertions around e in a list of tables: the new entries and their labels are bounded.
A drain start: two fresh nodes (F: nodes.size + 2 ≤ 2^K), their tables (Lab:
evenTable, roomL, given β ≤ K), their weights (Sz: the sums, hypotheses), and the side
list (keys from the ghost's table, hypothesis).