M6: group split steps (removeGroup, moveElem, groupSplitStep, driveGroup) #
The agreement lemmas cover the cases Level F's cost proof uses (removeGroup_ok, MoveLOK,
MoveROK), and reach the states it names (removeState, moveLState, moveRState).
removeGroup #
Procedure allocating and linking a group's two overflow siblings.
Equations
- OrderMaintenance.Impl.startGroupSplitP = { name := "startGroupSplit", params := ["g"], rets := [], body := OrderMaintenance.Impl.startGroupSplitS }
Instances For
Quiet the overflow sibling x of g (flag q).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Quiet a matching overflow sibling and record whether its state changed.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Split the quieted sibling x if it is full.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Start a split when a newly quieted sibling meets the group-size threshold.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Unlink and free g, quiet its overflow siblings, and split full siblings.
Equations
- One or more equations did not get rendered due to their size.
Instances For
moveElem #
The centre label 1 <<< (elementBits - 1).
Equations
Instances For
Choose the append label for an element moving to the left overflow group.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Choose the prepend label for an element moving to the right overflow group.
Equations
- One or more equations did not get rendered due to their size.
Instances For
d := moveElem g (local g): move one element to the lighter sibling.
Equations
- One or more equations did not get rendered due to their size.
Instances For
groupSplitStep #
Test whether a group-split move stays inside its source chunk.
Equations
- One or more equations did not get rendered due to their size.
Instances For
After a move: the sizes, and (unreachable under invariant F) a move across chunks.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Move one element of the split, or remove an empty group, returning ok.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The drive loop #
Procedure moving one element of a group split and reporting progress.
Equations
- OrderMaintenance.Impl.groupSplitStepP = { name := "groupSplitStep", params := ["g"], rets := ["ok"], body := OrderMaintenance.Impl.groupSplitStepS }
Instances For
Perform one group-split step unless an earlier iteration removed its source.
Equations
- One or more equations did not get rendered due to their size.
Instances For
driveGroupFrom g: up to groupBudget 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
driveGroup #
Procedure performing at most the configured group-split budget.
Equations
- OrderMaintenance.Impl.driveP = { name := "driveGroupFrom", params := ["g"], rets := [], body := OrderMaintenance.Impl.driveGroupFromS }
Instances For
driveGroup 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.