Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 7.2: a class of binary classifiers is nonuniformly learnable iff it is a countable union of agnostic PAC learnable classes

Proved
UnderstandingML.nonuniform_learnable_iff_countable_union

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

agnostic-pacfundamental-theoremnonuniform-learnabilityvc-dimension

Theorem 7.2. A hypothesis class HHH of binary classifiers is nonuniformly learnable if and only if it is a countable union of agnostic PAC learnable hypothesis classes.

Formally: for a class of measurable hypotheses over a domain with measurable singletons, every subclass of which is pointwise separable (the measurability assumption of Remark 3.1 needed by the fundamental theorem; automatic over a countable domain), NonuniformLearnable loss01 H holds iff there are classes HnH_nHn​ with ⋃nHn=H\bigcup_n H_n = H⋃n​Hn​=H and each HnH_nHn​ agnostic PAC learnable.

Preamble
import Definitions.Def_UnderstandingML_Nonuniform

open MeasureTheory
Formal statement
namespace UnderstandingML

/-- **Theorem 7.2** (p. 84). A hypothesis class `H` of binary classifiers is nonuniformly
learnable if and only if it is a countable union of agnostic PAC learnable hypothesis classes.
The domain has measurable singletons, the hypotheses are measurable, and every subclass of `H`
is pointwise separable (the measurability assumption of Remark 3.1, which the fundamental
theorem needs; it holds for every class over a countable domain). -/
theorem nonuniform_learnable_iff_countable_union {X : Type*} [MeasurableSpace X]
    [MeasurableSingletonClass X] (H : Set (X → Bool)) (hH : ∀ h ∈ H, Measurable h)
    (hsep : ∀ H' ⊆ H, PointwiseSeparable H') :
    NonuniformLearnable loss01 H ↔
      ∃ Hn : ℕ → Set (X → Bool), (⋃ n, Hn n) = H ∧
        ∀ n, AgnosticPACLearnable loss01 (Hn n) := by sorry

end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §7.1.1 pp. 84-85, Theorem 7.2 with its proof (via Theorems 6.7 and 7.3)
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me