Theorem W, option (A), stage A2: the cut of a drain, its side list, and its end #
drainCut_pk: the weight sumtof at most 511 children (widthK + 9), the cut countc(at most the loop index) and the shiftk(below the children count by its guard).drainSide_pk,finishDrain_pk: safe, but for the filters offinishDrain(filter_pk).
Nothing here is used by Theorems A and B.
theorem
OrderMaintenance.Impl.sum_pk
{K KH W : ℕ}
{κ : Caps}
{s : Model.Core}
{L : Loc}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
(hcap : κ.lcap LK.children < 512)
{N : ℕ}
(hNc : N ≤ κ.lcap LK.children)
(hG : Gd K KH κ (ΓD K) s L)
(hn : L "n" = N)
:
The sum of the children's weights: t ≤ j·(2^K − 1) before iteration j.
theorem
OrderMaintenance.Impl.drainCut_pk
{K KH W : ℕ}
{κ : Caps}
{s : Model.Core}
{L : Loc}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
(hcap : κ.lcap LK.children < 512)
(hG : Gd K KH κ (ΓD K) s L)
:
The cut of a drain (drainCut), with at most 511 children.
theorem
OrderMaintenance.Impl.filterCall_pk
{K KH W : ℕ}
{κ : Caps}
{s : Model.Core}
{L : Loc}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
{Γ : Machine.Reg → ℕ}
{k : LK}
{args : List Exp}
{ds : List Machine.Reg}
(hG : Gd K KH κ Γ s L)
(ha : ∀ e ∈ args, Exp.OK Γ K KH W e ∧ Exp.vw Γ K KH K e ≤ K)
(hd : ∀ d ∈ ds, K ≤ Γ d)
: