Documentation

LeanPool.OrderMaintenance.Proof.Top.PrepInv

M5: the complete initial chain satisfies the invariant #

The chain 1 → 2 → … → H above chunk 1: node k has height k, the single child k - 1 (chunk 1 for k = 1), labelled center.

The level orders of the chain.

Equations
Instances For
    theorem OrderMaintenance.Proof.Top.gaps_center {P : Model.Params} (hb : 1 ≤ P.beta) {B : ℕ} (hB : B ≤ center P) :

    A one-entry table labelled center has gaps center.

    theorem OrderMaintenance.Proof.Top.Final.nd_of {P : Model.Params} {s : Model.Core} (F : Final P s) {k : ℕ} (h1 : 1 ≤ k) (hH : k ≤ P.H) :
    nd (ts s) k = chainNd P P.H k
    theorem OrderMaintenance.Proof.Top.Final.ht_of {P : Model.Params} {s : Model.Core} (F : Final P s) {v : ℕ} (h1 : 1 ≤ v) (hH : v ≤ P.H) :
    ht (ts s) v = v
    theorem OrderMaintenance.Proof.Top.Final.pp_eq {P : Model.Params} {s : Model.Core} (F : Final P s) {j : ℕ} (hj : j ≤ P.H) :
    pp (ts s) 1 j = if j = 0 then 1 else j
    theorem OrderMaintenance.Proof.Top.Final.anc_eq {P : Model.Params} {s : Model.Core} (F : Final P s) (j : ℕ) :
    1 ≤ j → j ≤ P.H → anc (ts s) 1 j = j
    theorem OrderMaintenance.Proof.Top.Final.tw_eq {P : Model.Params} {s : Model.Core} (F : Final P s) {u : ℕ} (h1 : 1 ≤ u) (hH : u ≤ P.H) :
    tw (ts s) [1] u = 1
    theorem OrderMaintenance.Proof.Top.Final.rng_eq {P : Model.Params} {s : Model.Core} (F : Final P s) {u : ℕ} (h1 : 1 ≤ u) (hH : u ≤ P.H) :
    rng (ts s) [1] u = [1]
    theorem OrderMaintenance.Proof.Top.Final.order_eq {P : Model.Params} {s : Model.Core} (F : Final P s) {X : ℕ} (h1 : 1 ≤ X) (hH : X ≤ P.H) :
    order (ts s) X = [if X = 1 then 1 else X - 1]
    theorem OrderMaintenance.Proof.Top.Final.labs_eq {P : Model.Params} {s : Model.Core} (F : Final P s) {X : ℕ} (h1 : 1 ≤ X) (hH : X ≤ P.H) :
    labs (ts s) X = [center P]
    theorem OrderMaintenance.Proof.Top.Final.tabsH {P : Model.Params} {s : Model.Core} (F : Final P s) {h : ℕ} (h1 : 1 ≤ h) (hH : h ≤ P.H) :
    tabs (ts s) h h = if h < P.H then [h + 1] else []
    theorem OrderMaintenance.Proof.Top.Final.par_eq {P : Model.Params} {s : Model.Core} (F : Final P s) {h e : ℕ} (h1 : 1 ≤ h) (he1 : 1 ≤ e) (heH : e ≤ P.H) :
    par (ts s) h e = if e < P.H then e + 1 else Model.NIL
    theorem OrderMaintenance.Proof.Top.Final.digit_eq {P : Model.Params} {s : Model.Core} (F : Final P s) {j : ℕ} (h1 : 1 ≤ j) (hH : j ≤ P.H) :
    digit (ts s) 1 j = center P
    theorem OrderMaintenance.Proof.Top.Final.tagUp_eq {P : Model.Params} {s : Model.Core} (F : Final P s) (m : ℕ) :
    m ≤ P.H → tagUp (ts s) 1 m = chainTag P m
    theorem OrderMaintenance.Proof.Top.Final.shapeT {P : Model.Params} {s : Model.Core} (F : Final P s) (H3 : 3 ≤ P.H) (hb : 1 ≤ P.beta) :
    ShapeT (ts s) [1] (chainOrd P)
    theorem OrderMaintenance.Proof.Top.Final.ord_sub {P : Model.Params} {u : ℕ} (h1 : 1 ≤ u) (hH : u ≤ P.H) :
    [if u = 1 then 1 else u - 1].Sublist (chainOrd P (u - 1))
    theorem OrderMaintenance.Proof.Top.Final.shape {P : Model.Params} {s : Model.Core} (F : Final P s) (H3 : 3 ≤ P.H) (hb : 1 ≤ P.beta) :
    Shape (ts s) [1] (chainOrd P)
    theorem OrderMaintenance.Proof.Top.Final.ew_eq {P : Model.Params} {s : Model.Core} (F : Final P s) {u : ℕ} (h1 : 1 ≤ u) (hH : u ≤ P.H) :
    ew (ts s) [1] u = 1
    theorem OrderMaintenance.Proof.Top.Final.weight_eq {P : Model.Params} {s : Model.Core} (F : Final P s) {u : ℕ} (h1 : 1 ≤ u) (hH : u ≤ P.H) :
    (nd (ts s) u).weight = 1
    theorem OrderMaintenance.Proof.Top.Final.room {P : Model.Params} {s : Model.Core} (F : Final P s) (hb : 1 ≤ P.beta) :
    Room (ts s) [1] (fun (x : ℕ) => 0) fun (x : ℕ) => 1
    theorem OrderMaintenance.Proof.Top.Final.topInv {P : Model.Params} {s : Model.Core} (F : Final P s) (hTP : TopParams P) (H3 : 3 ≤ P.H) :

    The complete chain satisfies the top structure's invariant.