Chunk split moves preserve INV-S (Lemma 3.2: chunk-split and family moves) #
moveUnit x left takes the unit at one end of chunk x (one group, or a whole family of three
groups that the guard checks to lie in x, consecutively) and appends it to the end of the
sibling chunk before x (or prepends it to the one after), with guarded group labels. The group
list does not change; only the chunks' runs, the moved groups' chk and labels, and the chunks'
first/last pointers do.
The unit #
The successor (in the group list) of a member of chunk x's run, if it is also in chunk
x, is its successor in the run.
Labels for moved groups #
Running moveUnit #
The records after a chunk-level move #
What a chunk-level move does to the groups: the moved ones get chunk d and new labels.
Moving a prefix of groups updates exactly the source and destination chunk ends.
Moving a prefix u of chunk x to the end of the chunk y before it preserves INV-S.
Moving a suffix of groups updates exactly the source and destination chunk ends.
Moving a suffix u of chunk x to the front of the chunk z after it preserves
INV-S.