Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§10.1: a class of infinite VC-dimension is not γ-weak-learnable for any γ > 0

Proved
UnderstandingML.infinite_vc_not_weak_learnable

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

no-free-lunchvc-dimensionweak-learning

§10.1. The fundamental theorem of learning (Theorem 6.8) states that if HHH has VC-dimension ddd then mH(ϵ,δ)≥C1d+log⁡(1/δ)ϵm_H(\epsilon,\delta) \ge C_1 \frac{d + \log(1/\delta)}{\epsilon}mH​(ϵ,δ)≥C1​ϵd+log(1/δ)​. Applying this with ϵ=1/2−γ\epsilon = 1/2 - \gammaϵ=1/2−γ we immediately obtain that if d=∞d = \inftyd=∞ then HHH is not γ-weak-learnable.

Formally (domain with measurable singletons, measurable hypotheses): if VCdim(H)=∞\mathrm{VCdim}(H) = \inftyVCdim(H)=∞ and γ>0\gamma > 0γ>0 then WeakLearnable H γ fails.

Preamble
import Definitions.Def_UnderstandingML_Boosting

open MeasureTheory
Formal statement
namespace UnderstandingML

/-- **§10.1** (p. 132). If `VCdim(H) = ∞` then `H` is not γ-weak-learnable: from the statistical
perspective weak learnability is characterized by the VC-dimension, just as PAC learning is.
(Domain with measurable singletons, measurable hypotheses; the book derives this from the
lower bound of Theorem 6.8 at `ε = 1/2 − γ`, which needs the `km`-point form of the
No-Free-Lunch argument, Exercise 5.3, for `γ` close to `0`.) -/
theorem infinite_vc_not_weak_learnable {X : Type*} [MeasurableSpace X]
    [MeasurableSingletonClass X] (H : Set (X → Bool)) (hH : ∀ h ∈ H, Measurable h)
    (hvc : vcDim H = ⊤) {γ : ℝ} (hγ : 0 < γ) : ¬ WeakLearnable H γ := 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, §10.1 p. 132 (the remark after Definition 10.1; via Exercise 5.3 and Lemma B.1)
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