The invariants across a chunk-split move and a chunk removal #
Counting #
theorem
OrderMaintenance.Proof.length_filter_split
{α : Type}
(L : List α)
(q P : α → Bool)
(h : ∀ a ∈ L, P a = true → q a = true)
:
(List.filter (fun (a : α) => q a && !P a) L).length + (List.filter P L).length = (List.filter q L).length
theorem
OrderMaintenance.Proof.length_filter_or
{α : Type}
(L : List α)
(q P : α → Bool)
(h : ∀ a ∈ L, P a = true → q a = false)
:
(List.filter (fun (a : α) => q a || P a) L).length = (List.filter q L).length + (List.filter P L).length
The group invariant across a chunk-split move (invariant F) #
theorem
OrderMaintenance.Proof.CMoveSpec.gfields
{s s' : Model.Core}
{x dst : ℕ}
{u labs : List ℕ}
(M : CMoveSpec s s' x dst u labs)
(g : ℕ)
:
theorem
OrderMaintenance.Proof.CMoveSpec.runOf
{s s' : Model.Core}
{x dst : ℕ}
{u labs : List ℕ}
(M : CMoveSpec s s' x dst u labs)
(L : List ℕ)
(g : ℕ)
:
theorem
OrderMaintenance.Proof.CMoveSpec.eL
{s s' : Model.Core}
{x dst : ℕ}
{u labs : List ℕ}
(M : CMoveSpec s s' x dst u labs)
:
A set of groups closed under families.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The chunk invariant across a chunk-split move #
theorem
OrderMaintenance.Proof.CFamOK.disjoint
{s : Model.Core}
{x x' : ℕ}
(F : CFamOK s x)
(F' : CFamOK s x')
(hxx : x ≠ x')
(hs : cSt s x = Model.St.splitting)
(hs' : cSt s x' = Model.St.splitting)
:
theorem
OrderMaintenance.Proof.cinv_cmove
{s s' : Model.Core}
{A : Abs}
{gh : GGh}
{δ δu s₀ : ℕ → ℕ}
{x dst : ℕ}
{u labs : List ℕ}
(hG : GInv s A.elist gh fun (x : ℕ) => 0)
(hC : CInvE s A.elist δ δu s₀ x)
(M : CMoveSpec s s' x dst u labs)
(hxL : LiveC s x)
(hst : cSt s x = Model.St.splitting)
(hdst : dst = cLl s x ∨ dst = cRr s x)
(hxd : x ≠ dst)
(hu : ∀ g ∈ u, LiveG s g ∧ gC s g = x)
(hnd : u.Nodup)
(hone : ∃ um ∈ u, UnitG s x um ∧ ∀ g ∈ u, g ≠ um → gSt s g = Model.St.overflow)
:
Chunk removal #
theorem
OrderMaintenance.Proof.cinv_cremove
{s : Model.Core}
{A : Abs}
{δ δu s₀ : ℕ → ℕ}
{x : ℕ}
(hI : INV s A)
(hC : CInvE s A.elist δ δu s₀ x)
(hxL : LiveC s x)
(hst : cSt s x = Model.St.splitting)
(he : cF s x = Model.NIL)
(hδ : ∀ (c : ℕ), c ≠ cLl s x → c ≠ x → c ≠ cRr s x → δ c = 0)
:
CInv (cremoveState s x) A.elist (fun (x : ℕ) => 0) (fun (x : ℕ) => 0) s₀