AFTD Auto-Formalizing Theoretical Domains

concept_class_restrict_nonempty

theoremverified

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

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.

  1. 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.

    line 2

    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

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 _
See it in the graphDiscuss this resultChallenge it