M6: chunk split steps (removeChunk, moveUnit, chunkSplitStep, driveChunk) #
As for groups, the agreement lemmas cover the cases Level F's cost proof uses, and reach the states
it names (cremoveState, cmoveLState, cmoveRState). A unit has at most three groups, kept in
locals.
removeChunk #
Test whether a chunk is an overflow sibling of the source in local x.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Release an overflow sibling to the quiet state and reconsider its queue entry.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The unit at an end of a chunk #
Test whether the left candidate is the source group's left overflow sibling.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Test whether the right candidate is the source group's right overflow sibling.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Labels for a moved unit #
The central group label at the configured group-label width.
Equations
Instances For
Moving a unit's groups #
The moved groups join chunk y with their labels.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Update chunk indices and labels for the one or three groups in a moving unit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Join groups u to chunk y with labs, matching the Level F group update.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Change a group's containing chunk and order label.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Select the last group of a moving unit, according to whether it has one or three groups.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Remove the moving prefix from the source chunk's endpoint registers.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Append the moving prefix to the destination chunk's endpoints.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Remove the moving suffix from the source chunk's endpoints.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Prepend the moving suffix to the destination chunk's endpoints.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Sizes after a move #
Transfer the moving unit's element count between its source and destination chunks.
Equations
- One or more equations did not get rendered due to their size.
Instances For
chunkSplitStep #
Choose the lighter overflow sibling, breaking equal-size ties to the left.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Label and move a unit to the left overflow sibling.
Equations
Instances For
Label and move a unit to the right overflow sibling.
Equations
Instances For
Choose a unit and destination, move it, and update the two chunk sizes.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Move one unit to the lighter sibling, or remove an empty chunk, returning ok.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The drive loop #
Procedure moving one chunk-split unit and reporting whether work remains.
Equations
- OrderMaintenance.Impl.chunkSplitStepP = { name := "chunkSplitStep", params := ["x"], rets := ["ok"], body := OrderMaintenance.Impl.chunkSplitStepS }
Instances For
Perform one chunk-split step unless an earlier iteration finished the split.
Equations
- One or more equations did not get rendered due to their size.
Instances For
driveChunkFrom g: up to chunkBudget split steps, stopping once g is removed.
Equations
Instances For
A Level M split step that agrees with a Level F one (b = Level F's result).
Equations
- One or more equations did not get rendered due to their size.
Instances For
driveChunk #
Procedure performing at most the configured chunk-split budget.
Equations
- OrderMaintenance.Impl.cdriveP = { name := "driveChunkFrom", params := ["x"], rets := [], body := OrderMaintenance.Impl.driveChunkFromS }
Instances For
driveChunk g: drive the split g belongs to, if any (local g).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The drive of the split rooted at q agrees at Level M, ending in t'.
Equations
- One or more equations did not get rendered due to their size.