Documentation

LeanPool.OrderMaintenance.Impl.PeakDrain

Theorem W, option (A), stage A2: the tables of the new nodes of a drain start #

The rest of startDrainS (the weights of the new nodes, written from sums of width K + 9) is not done yet (docs/WORD.md §7).

Nothing here is used by Theorems A and B.

theorem OrderMaintenance.Impl.PK.lgrowV {K KH W : ℕ} {κ : Caps} {s : Model.Core} {L : Loc} {Γ : Machine.Reg → ℕ} {k : LK} {i a b : Exp} {x va vb : ℕ} (hC : CapsW K κ) (hW : K ≤ W) (hG : Gd K KH κ Γ s L) (hx : Exp.ev κ s L i = some x) (ha : Exp.ev κ s L a = some va) (hb : Exp.ev κ s L b = some vb) (hpi : Exp.pk κ s L i < 2 ^ W) (hpa : Exp.pk κ s L a < 2 ^ W) (hpb : Exp.pk κ s L b < 2 ^ W) (hva : va < 2 ^ K) (hvb : vb < 2 ^ K) :
PK K KH κ Γ W (Stm.lgrow k i a b) s L

lgrow with known values below 2^K.

theorem OrderMaintenance.Impl.gdD {K KH : ℕ} {κ : Caps} {s : Model.Core} {L : Loc} (hG : Gd K KH κ (ΓD K) s L) (x : Machine.Reg) (hx : ¬(x = "t" ∨ x = "b" ∨ x = "ws")) :
L x < 2 ^ K
theorem OrderMaintenance.Impl.tab_pk {K KH W : ℕ} {κ : Caps} {s : Model.Core} {L : Loc} (hC : CapsW K κ) (hK : 8 ≤ K) (hW : 2 * K + 4 ≤ W) (hcapT : κ.lcap LK.table < 512) (hG : Gd K KH κ (ΓD K) s L) :
PK K KH κ (ΓD K) W tabS s L

The table of a new node (tabS): even labels below 512·2^β ≤ 2^K.