Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Corollary 5.2: for an infinite domain X the class of all functions X → {0,1} is not PAC learnable

Proved
UnderstandingML.all_functions_not_pac_learnable

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

binary-classificationno-free-lunchpac-learning

Corollary 5.2. Let XXX be an infinite domain set and let HHH be the set of all functions from XXX to {0,1}\{0,1\}{0,1}. Then, HHH is not PAC learnable.

Formally: for an infinite domain XXX with measurable singletons, the class of all functions X→{0,1}X \to \{0,1\}X→{0,1} is not PAC learnable in the sense of Definition 3.1 (PACLearnable).

Preamble
import Definitions.Def_UnderstandingML_Framework
import Mathlib.SetTheory.Cardinal.Finite

open MeasureTheory
Formal statement
namespace UnderstandingML

/-- **Corollary 5.2** (p. 63). Let `X` be an infinite domain set and let `H` be the set of all
functions from `X` to `{0, 1}`. Then `H` is not PAC learnable. The domain has measurable
singletons (Remark 3.1). -/
theorem all_functions_not_pac_learnable {X : Type*} [MeasurableSpace X]
    [MeasurableSingletonClass X] [Infinite X] :
    ¬ PACLearnable (Set.univ : Set (X → Bool)) := 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, §5.1.1 pp. 63-64, Corollary 5.2 with its proof
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