Documentation

LeanPool.OrderMaintenance.Proof.Cost.LHooks

Lemma C3 inside the group phase and the chunk drive #

The drives thread extra invariants through their steps (XGroup, CXSteps). Here: conjunction of such invariants, and Lemma C3 (with the parameter conditions it needs) as one of them.

theorem OrderMaintenance.Proof.XGroup.and {X Y X' Y' : Model.Core → Prop} {L : List ℕ} {c : ℕ} (h1 : XGroup X Y L c) (h2 : XGroup X' Y' L c) :
XGroup (fun (t : Model.Core) => X t ∧ X' t) (fun (t : Model.Core) => Y t ∧ Y' t) L c
theorem OrderMaintenance.Proof.CXSteps.and {X Y X' Y' : Model.Core → Prop} {L : List ℕ} {δ δu s₀ : ℕ → ℕ} {x : ℕ} (h1 : CXSteps X Y L δ δu s₀ x) (h2L : ∀ (t : Model.Core) (A : Abs) (gh : GGh) (labs : List ℕ), INV t A → A.elist = L → (GInv t L gh fun (x : ℕ) => 0) → CInvE t L δ δu s₀ x → LiveC t x → cSt t x = Model.St.splitting → X' t → X' (cmoveLState t x (Model.unitCand t x true) labs)) (h2R : ∀ (t : Model.Core) (A : Abs) (gh : GGh) (labs : List ℕ), INV t A → A.elist = L → (GInv t L gh fun (x : ℕ) => 0) → CInvE t L δ δu s₀ x → LiveC t x → cSt t x = Model.St.splitting → X' t → X' (cmoveRState t x (Model.unitCand t x false) labs)) (h3 : ∀ (t : Model.Core) (A : Abs) (gh : GGh), INV t A → A.elist = L → (GInv t L gh fun (x : ℕ) => 0) → CInvE t L δ δu s₀ x → LiveC t x → cSt t x = Model.St.splitting → cSz t (cLl t x) ≤ cmax t.P → cSz t (cRr t x) ≤ cmax t.P → X' t → Y' (cremoveState t x)) :
CXSteps (fun (t : Model.Core) => X t ∧ X' t) (fun (t : Model.Core) => Y t ∧ Y' t) L δ δu s₀ x
def OrderMaintenance.Proof.LX (s₀ δ δu : ℕ → ℕ) (t : Model.Core) :

Lemma C3's invariant, with the parameter conditions it needs.

Equations
Instances For
    theorem OrderMaintenance.Proof.xgroup_linv {L : List ℕ} {s₀ δ δu : ℕ → ℕ} {c : ℕ} :
    XGroup (LX s₀ δ δu) (LX s₀ δ (Function.update δu c (δu c + 1))) L c

    Lemma C3 through the group phase.

    theorem OrderMaintenance.Proof.cxsteps_linv {L : List ℕ} {δ δu s₀ : ℕ → ℕ} {x : ℕ} :
    CXSteps (LX s₀ δ δu) (LX s₀ (fun (x : ℕ) => 0) fun (x : ℕ) => 0) L δ δu s₀ x

    Lemma C3 through the chunk drive.