Lemma R: chunk sizes through the zeroing game (docs/PROOF.md §4.4) #
The game's variables are the chunks 1 … n. The value of a quiet chunk is how far its size exceeds
θ; other chunks have value 0. A round runs from one pop of the priority queue to the next: the
pop zeroes a maximal value, and the round's insertions add at most R. GameInv is Theorem Z's
invariant at the start of the current round, together with this round's adds so far. It bounds
every quiet chunk's size by θ + R·(H_{n−1} + 1) (Lemma R).
The value of chunk c in the game.
Equations
Instances For
The game's variables: chunk i + 1 for i < n.
Equations
- OrderMaintenance.Proof.gvec n s i = ↑(OrderMaintenance.Proof.gval s (↑i + 1))
Instances For
The game's state in the current round: Theorem Z's invariant at the round's start (y, with
i zeroed by the pop), and the adds a of the ip insertions since.
- inv : Zeroing.Inv (↑R) y
Instances For
The current values satisfy Theorem Z's invariant.
An insertion: one value grows by at most one; one more insertion in the round.
The pop: zeroing a maximal value starts a new round.
Idle: when every value is 0, a new round may start.