Documentation

Complexity.Algorithms.Lean.VanEmdeBoas.Elements

Finite-set abstraction of recursive van Emde Boas trees #

The finite set below is a mathematical observation of the recursive representation. The operations do not enumerate this finite set. No execution-time bound is attached to constructing the observation.

Main definitions #

Main results #

References #

The representation and its source credit are described in Complexity.Algorithms.Lean.VanEmdeBoas.Basic.

Mathematical finite-set abstraction; this enumeration is not used by the operations.

Instances For

    The finite observation includes exactly the recursively represented keys.

    The finite-set observation commutes with bounded insertion.

    theorem Cslib.Algorithms.Lean.VanEmdeBoas.Tree.successor_elements_some_iff {d : ℕ} {t : Tree d} (ht : t.Valid) (x y : ℕ) :
    t.successor x = some y ↔ y ∈ t.elements ∧ x < y ∧ ∀ z ∈ t.elements, x < z → y ≤ z

    A successful successor is the least finite-set element strictly above the query.

    An absent successor means that every finite-set element is at most the query.