Lemma C3 across chunk-split moves #
A chunk-split move carries a unit (a quiet group, or a whole family) from one end of the splitting
chunk x to the adjacent end of a sibling dst. The moved groups get fresh labels pushed at that
end and stop being children; the sibling's arrivals and pushes grow by the unit's length.
linv_cmove_core handles every field but the gaps and the label range, which depend on the
direction and are proved separately.
The group-label invariant across a chunk-split move, given the gaps and ranges after it.
Facts for the two directions #
Across a chunk boundary, the last group of a chunk is followed by the first of the next.
The labels pushed at the back: b₀, b₀ + D, …, from the centre or after p.
The labels pushed at the front: …, n₀ − 2D, n₀ − D, before n (or the centre's n₀).
The shape of a unit: one group, or three consecutive groups.
Equations
Instances For
A gap away from the moved unit is unchanged.
The gaps after a move to the left sibling.
The gaps after a move to the right sibling.
Pushing at the back succeeds when every label fits.
Pushing at the front succeeds when every label stays nonnegative.
Room for pushes at a sibling of a splitting chunk: with at least one unit left in x,
its pushes plus one more unit stay within PC.
The label range after a move, given the range of the pushed labels.
Lemma C3 across a move to the left sibling (the chunk drive's hook): the pushed labels fit, and the invariant holds after the move.
Lemma C3 across a move to the right sibling (the chunk drive's hook).
Lemma C3 across a chunk removal: the emptied chunk dies, its siblings become quiet with
their current sizes as e0, and every undriven insertion counts as driven.