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
Lemma C3's invariant, with the parameter conditions it needs.
Equations
- OrderMaintenance.Proof.LX s₀ δ δu t = ((∃ (lg : OrderMaintenance.Proof.LGh), OrderMaintenance.Proof.LInv t lg s₀ δ δu) ∧ OrderMaintenance.Proof.LParams t.P ∧ OrderMaintenance.Proof.GParams t.P)