Theorem W, option (A), stage A2: queue adjustment, filtering, chunk sizes, element insertion #
pqAdjust_pk: the bucketpchosen by a 0/1 flag (ifz alone a + ifz (!alone) b).filter_pk: the write indexwstays below the loop index.csP_pk: a chunk's size plus one, below2^K(a hypothesis: it is below the queue's bucket capacity,InsCaps.cB).insertElem_pk: the label after its guard, and the group size and count plus one (hypotheses on the state before the insertion); the handle at widthKH.
Nothing here is used by Theorems A and B.
Run a safe first statement of a sequence, passing on the end-state bound.
Equations
- OrderMaintenance.Impl.tacticPeelf = Lean.ParserDescr.node `OrderMaintenance.Impl.tacticPeelf 1024 (Lean.ParserDescr.nonReservedSymbol "peelf" false)
Instances For
theorem
OrderMaintenance.Impl.linkElem_pkok
{K KH W : ℕ}
{κ : Caps}
{s : Model.Core}
{L : Loc}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
(hKH : KH ≤ W)
(hG : Gd K KH κ (ΓH K KH) s L)
(hF : Fin (fun (t : Model.Core) => FB K KH κ (Fld.g GF.size) t ∧ FB K KH κ (Fld.s SF.count) t) linkElemS s L)
:
Linking a new element: the group size and the count plus one are the end state's.
theorem
OrderMaintenance.Impl.insertElem_pkok
{K KH W : ℕ}
{κ : Caps}
{s : Model.Core}
{L : Loc}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
(hKH : KH ≤ W)
(hG : Gd K KH κ (ΓH K KH) s L)
(hF : Fin (fun (t : Model.Core) => FB K KH κ (Fld.g GF.size) t ∧ FB K KH κ (Fld.s SF.count) t) insertElemP.body s L)
:
PKok K KH κ (ΓH K KH) W insertElemP.body s L