M5: weights, drain timing and label room after a drain starts #
The job after the walk starts a drain at v (up its live parent).
Equations
- OrderMaintenance.Proof.Top.drainJob j v up = { x := j.x, y := j.y, z := j.z, pc := OrderMaintenance.Model.JobPc.afterDrain v up }
Instances For
theorem
OrderMaintenance.Proof.Top.SDCtx.tw_new
{s : Model.Core}
{cl : List ℕ}
{ord : ℕ → List ℕ}
{dr n0 : ℕ → ℕ}
{j : Model.Job}
{v : ℕ}
{side : List (ℕ × Model.Side)}
(C : SDCtx s cl ord dr n0 j v side)
(w : ℕ)
(hw : w = s.nodes.size ∨ w = s.nodes.size + 1)
:
The weight of a new node: its part's children's, stored as its true weight.
theorem
OrderMaintenance.Proof.Top.SDCtx.livePar_high
{s : Model.Core}
{cl : List ℕ}
{ord : ℕ → List ℕ}
{dr n0 : ℕ → ℕ}
{j : Model.Job}
{v : ℕ}
{side : List (ℕ × Model.Side)}
(C : SDCtx s cl ord dr n0 j v side)
{x : ℕ}
(hx : Top.liveN (ts s) x)
(hh : Top.ht (ts s) v + 1 ≤ Top.ht (ts s) x)
:
Live nodes above v keep their live parents.
theorem
OrderMaintenance.Proof.Top.SDCtx.funded_old
{s : Model.Core}
{cl : List ℕ}
{ord : ℕ → List ℕ}
{dr n0 : ℕ → ℕ}
{j : Model.Job}
{v : ℕ}
{side : List (ℕ × Model.Side)}
(C : SDCtx s cl ord dr n0 j v side)
{g : ℕ}
(hg : Top.ghostN (ts s) g)
:
theorem
OrderMaintenance.Proof.Top.SDCtx.slack_old
{s : Model.Core}
{cl : List ℕ}
{ord : ℕ → List ℕ}
{dr n0 : ℕ → ℕ}
{j : Model.Job}
{v : ℕ}
{side : List (ℕ × Model.Side)}
(C : SDCtx s cl ord dr n0 j v side)
{g : ℕ}
(hg : Top.ghostN (ts s) g)
:
theorem
OrderMaintenance.Proof.Top.SDCtx.tw_new_range
{s : Model.Core}
{cl : List ℕ}
{ord : ℕ → List ℕ}
{dr n0 : ℕ → ℕ}
{j : Model.Job}
{v : ℕ}
{side : List (ℕ × Model.Side)}
(C : SDCtx s cl ord dr n0 j v side)
(w : ℕ)
(hw : w = s.nodes.size ∨ w = s.nodes.size + 1)
:
The new nodes weigh between λ_h and τ_h (Lemma T0).
theorem
OrderMaintenance.Proof.Top.SDCtx.growth_same
{s : Model.Core}
{cl : List ℕ}
{ord : ℕ → List ℕ}
{dr n0 : ℕ → ℕ}
{j : Model.Job}
{v : ℕ}
{side : List (ℕ × Model.Side)}
(C : SDCtx s cl ord dr n0 j v side)
{X : ℕ}
(hX : Top.isN (ts s) X)
(h2 : 2 ≤ Top.ht (ts s) X)
(hT : X ∉ (nd (ts s) v).inTables)
: