littlestone_dim
The Littlestone dimension of a class H of functions X → Bool, valued in ℕ∞: the supremum of the depths d such that H shatters a complete binary tree of depth d (littlestone_shatters H d), which is ⊤ when there is no maximum. For a nonempty class this is the paper's Ldim; for the empty class the supremum is 0 (the paper sets −1 there).
Statement
noncomputable def littlestone_dim {X : Type*} (H : Set (X → Bool)) : ℕ∞
- Defined in
- arXiv:2611.26721 (Littlestone dimension and its dual), Section 2, definition of Ldim (empty class convention differs: 0 here instead of −1).
- Verified
- 27 Nov 2026
- Axioms
- none listed
- Built on 1
- littlestone_shattersFor a class H of functions X → Bool and a natural number d, H shatters a complete binary tree of depth d (internal nodes labelled by…
- Used by 2
- littlestone_dim_le_restrict_add_restrict_complFor every nonempty class H of functions X → Bool and every subset Y of X, the Littlestone dimension of H (in ℕ∞) is at most the…
- littlestone_dim_singletonA class consisting of a single function X → Bool has Littlestone dimension 0.
Read back from the Lean
Given a type X and a subset of functions H : Set (X → Bool), littlestone_dim H defines the Littlestone dimension of H as an element of ℕ∞ (extended natural numbers, with ⊤ representing infinity). It is defined as the supremum over all d : ℕ such that H shatters a Littlestone tree of depth d (littlestone_shatters H d), coerced to ℕ∞.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
noncomputable def littlestone_dim {X : Type*} (H : Set (X → Bool)) : ℕ∞ := ⨆ (d : ℕ) (_ : littlestone_shatters H d), (d : ℕ∞)