Scheduling: the priority queue and the zeroing game #
The queue holds exactly the quiet chunks above θ, keyed by their sizes (PQC). So pqPopMax
returns a chunk of largest game value, and pqEmpty says that every value is 0. Every step but
the insertion's size update and the pop leaves the queue, and the quiet sizes it reads, alone.
The chunks the queue must hold: live, quiet, above θ.
Equations
Instances For
The queue invariant.
Equations
Instances For
The queue's own fields.
Instances For
A frame for the queue invariant: the queue's fields are unchanged, and so are the queued chunks and their sizes.
What PQC and the game read of the chunks.
- q (c : ℕ) : LiveC s c → (cSt s' c = Model.St.quiet ↔ cSt s c = Model.St.quiet)
Instances For
The game values agree when the quiet sizes do.
What the group phase leaves alone #
Chunk fields other than first/last, the queue and the top structure are unchanged.
- pq : PQSame s s'
Instances For
A frame from equal chunk arrays.
The group phase leaves the chunk fields, the queue and the top structure alone.
What the chunk drive leaves alone #
The queue, the top structure and the chunk list are unchanged, and so are the queued chunks, their sizes and the game values.
- pq : PQSame s s'
Instances For
A frame from equal quiet sizes and states.
A chunk-split move leaves the quiet chunks alone.
A chunk removal: the siblings turn quiet at sizes at most θ, so no game value changes and the
queue stays as it is.
The chunk drive leaves the queue, the game and the top structure alone, threaded next to
an invariant X.