Documentation

LeanPool.OrderMaintenance.Proof.Top.Shape

M5: the order invariant of the top structure (docs/PROOF.md §4.5.1) #

Shape s cl ord: the structural invariant, for a state whose running job (if any) has copied its whole path. cl is the chunk list and ord h the order ≺_h of the nodes of height h (ord 0 = cl), a ghost variable.

@[reducible, inline]
abbrev OrderMaintenance.Proof.Top.Ent (ord : ℕ → List ℕ) (h e : ℕ) :

Entries of height h: chunks for h = 0, else nodes.

Equations
Instances For
    structure OrderMaintenance.Proof.Top.ShapeT (s : TS) (cl : List ℕ) (ord : ℕ → List ℕ) :

    The part of the invariant that orders tags (Lemma T1).

    Instances For
      structure OrderMaintenance.Proof.Top.Shape (s : TS) (cl : List ℕ) (ord : ℕ → List ℕ) extends OrderMaintenance.Proof.Top.ShapeT s cl ord :

      Structural, nesting, membership, endpoint and path invariants of the top tree.

      Instances For
        theorem OrderMaintenance.Proof.Top.len_le_two_of {l : List ℕ} {a b : ℕ} (hnd : l.Nodup) (h : ∀ x ∈ l, x = a ∨ x = b) :
        theorem OrderMaintenance.Proof.Top.Shape.tabs_len {t : TS} {cl : List ℕ} {ord : ℕ → List ℕ} (S : Shape t cl ord) {h e : ℕ} (he : Ent ord h e) :
        (tabs t h e).length ≤ 2

        An entry lies in at most two tables (invariant Q).