AFTD Auto-Formalizing Theoretical Domains

concept_class_restrict

def

The 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 members of H to Y.

Statement

def concept_class_restrict {X : Type*} (H : Set (X → Bool)) (Y : Set X) : Set (Y → Bool)
Defined in
arXiv:2611.26721 (Littlestone dimension and its dual), Section 2 (restriction H|_{X'}).
Verified
27 Nov 2026
Axioms
none listed
Used by 2

Read back from the Lean

Given a type X, a set H of functions from X to Bool, and a subset Y of X, concept_class_restrict H Y is defined as the set of functions from the subtype Y to Bool formed by the image of H under the restriction map h ↦ (fun (y : Y) => h y.1). In other words, it is the set of all functions f : Y → Bool for which there exists some h ∈ H such that f(y) = h(y) for all y ∈ Y.

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

def concept_class_restrict {X : Type*} (H : Set (X → Bool)) (Y : Set X) : Set (Y → Bool) :=
  (fun h (y : Y) => h y.1) '' H
See it in the graphDiscuss this resultChallenge it