M6: the glue for the core's parts #
Level F's cost proofs establish the hypotheses of the core's run lemmas inside their proofs (the group drive, the chunk drive, the split starts). Here those places get Level M agreements: each proof is followed, and its run lemma is paired with the Level M lemma for the same branch.
A group split step of a drive agrees (the cases of DriveInv.step).
The drive of a splitting group agrees (the context of ginv_drive).
A drive that agrees, read off a DriveAgree for the run Level F made.
The group phase agrees (the context of groupPhase_ok): the split start, when it runs, and
the drive.
A chunk split step of a drive agrees (the cases of CDriveInv.step).
The drive of a splitting chunk agrees (the context of cinv_drive).
The chunk phase agrees (the context of driveChunk_ok).
The reservation loop agrees, from Level F's loop invariant and the agreement of each round: a job step at a state with a job, a split start at a state with none.
The cost bound of the reservation loop of one insertion, from the bounds of a job step and a split start.
Instances For
The reservation agrees (the context of reservation_cost), relative to a predicate Mc
on cores that gives the Level M side conditions and that the rounds keep.
The cost bound of the background work of one insertion at Level M.
Equations
- OrderMaintenance.Impl.bgBound P = 750 + 600 + (30 + P.groupBudget * 401) + (30 + P.chunkBudget * 751) + OrderMaintenance.Impl.resBound P.reservationBudget + 100
Instances For
The background work agrees (the context of background_ok), relative to a predicate Mc
on cores that gives the Level M side conditions of the reservation and that its rounds keep.
The capacities an insertion needs at its start (besides those of the top structure).
- pq : PQCaps κ s
Instances For
The cost bound of an insertion at Level M.
Equations
Instances For
An insertion agrees (the context of insertAfter_cost), relative to a predicate Mc on
cores that gives the Level M side conditions of the reservation and that its rounds keep.