concept_class_restrict_nonempty
The restriction of a nonempty class of functions X → Bool to any subset Y of X is nonempty.
Statement
theorem concept_class_restrict_nonempty {X : Type*} (H : Set (X → Bool)) (Y : Set X) (hH : H.Nonempty) : (concept_class_restrict H Y).Nonempty
- Source
- Sanity check of concept_class_restrict; arXiv:2611.26721 (Littlestone dimension and its dual).
- Verified
- 29 Nov 2026
- Axioms
- none — Lean reports it depends on no axioms
- Built on 1
- concept_class_restrictThe restriction H|_Y of a class H of functions X → Bool to a subset Y of X: the set of functions Y → Bool obtained by restricting the…
- Used by 1
- 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…
The proof, explained
By definition, the restriction of a concept class $H$ to a subset $Y$ is the image of $H$ under the restriction map $h \mapsto (y \mapsto h(y))$. Since the image of any nonempty set under a function is nonempty, the assumption that $H$ is nonempty directly implies that its restriction is nonempty.
The restricted concept class `concept_class_restrict H Y` is nonempty.
By definition, `concept_class_restrict H Y` is the direct image of $H$ under the function that restricts each boolean concept $h : X \to \mathrm{Bool}$ to the subset $Y$. Applying the property that the image of a nonempty set is nonempty (`image`, namely `Set.Nonempty.image`) to the assumption that $H$ is nonempty (`hH`) establishes that the restricted class is nonempty.
uses
image(hH : H.Nonempty) : (concept_class_restrict H Y).Nonempty := hH.image _
image- if a set $s$ is nonempty, its image $f(s)$ under any function $f$ is also nonempty
- The definition of `concept_class_restrict H Y` as the image `(fun h y => h y.1) '' H` is unfolded transparently by Lean's definitional equality, allowing `Set.Nonempty.image` (called via dot notation as `hH.image`) to conclude the proof directly without an explicit rewrite step.
Written by a model (gemini-3.8-flash) from the Lean source alone (no goal states were available). Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
theorem concept_class_restrict_nonempty {X : Type*} (H : Set (X → Bool)) (Y : Set X) (hH : H.Nonempty) : (concept_class_restrict H Y).Nonempty := hH.image _