Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 11.8 — Pseudo-dimension regression bound

Disproved
FoundationsML.Regression.pseudo_dimension_regression_bound

by mikedeng1 · Sep 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

generalization-boundmachine-learningpseudo-dimensionregression

Statement (Theorem 11.8, p. 273, PDF p. 290). Let HHH be a family of real-valued functions and G={(x,y)↦L(h(x),y):h∈H}G=\{(x,y)\mapsto L(h(x),y):h\in H\}G={(x,y)↦L(h(x),y):h∈H}. Assume Pdim(G)=d\mathrm{Pdim}(G)=dPdim(G)=d and LLL is non-negative and bounded by MMM. Then, for any δ>0\delta>0δ>0, with probability at least 1−δ1-\delta1−δ over an i.i.d. sample SSS of size mmm, for all h∈Hh\in Hh∈H: R(h)≤R^S(h)+M2dlog⁡(em/d)/m+Mlog⁡(1/δ)/(2m)R(h) \le \hat R_S(h) + M\sqrt{2d\log(em/d)/m} + M\sqrt{\log(1/\delta)/(2m)}R(h)≤R^S​(h)+M2dlog(em/d)/m​+Mlog(1/δ)/(2m)​. The chapter's second, independent technique (pseudo-dimension, reducing regression to classification via Eq. 11.5's expectation-as-integrated-tail identity), structurally parallel to chunk 03's Corollary 3.19 but proved by a distinct pseudo-dimension argument.


Retired. Retired because it allowed the degenerate sample size m = 0, where the bound is false; replaced by FoundationsML.Regression.pseudo_dimension_regression_bound_v2.

Preamble
import Mathlib
import Definitions.Def_FoundationsML_Regression_GeneralizationError
import Definitions.Def_FoundationsML_Regression_EmpiricalError
import Definitions.Def_FoundationsML_Regression_LossComposedFamily
import Definitions.Def_FoundationsML_Regression_PseudoDim

open MeasureTheory
Formal statement
namespace FoundationsML.Regression

/-- Theorem 11.8 (Mohri, Rostamizadeh & Talwalkar, *Foundations of Machine Learning*, 2nd ed.,
MIT Press 2018, p. 273, PDF p. 290). Let `H` be a family of real-valued functions and
`G = {(x,y) ↦ L(h(x),y) : h ∈ H}`. Assume `Pdim(G) = d` and `L` is non-negative and bounded by
`M`. Then, for any `δ > 0`, with probability at least `1 − δ` over an i.i.d. sample `S` of
size `m`, for all `h ∈ H`: `R(h) ≤ R̂_S(h) + M sqrt(2d log(em/d)/m) + M sqrt(log(1/δ)/(2m))`.

**Formalization Note.** `hH_meas`/`hL_meas` guard `GeneralizationError`'s Bochner integral
against trap 2, for the same reason as `rademacher_regression_bound`/
`finite_hypothesis_regression_bound`. -/
theorem pseudo_dimension_regression_bound
    {X : Type*} [MeasurableSpace X] (D : Measure (X × ℝ)) [IsProbabilityMeasure D]
    (L : ℝ → ℝ → ℝ) (M : ℝ) (hM : 0 < M) (hLnn : ∀ y y', 0 ≤ L y y') (hLb : ∀ y y', L y y' ≤ M)
    (hL_meas : Measurable (Function.uncurry L))
    (H : Set (X → ℝ)) (hH_meas : ∀ h ∈ H, Measurable h)
    (d : ℕ) (hPdim : PseudoDim (LossComposedFamily L H) d)
    (m : ℕ) (hdm : d ≤ m) (δ : ℝ) (hδ : 0 < δ) :
    (1 - δ) ≤ (Measure.pi (fun _ : Fin m => D)
      {S : Fin m → X × ℝ | ∀ h ∈ H,
        GeneralizationError D L h ≤
          EmpiricalError S L h +
            M * Real.sqrt (2 * d * Real.log (Real.exp 1 * m / d) / m) +
            M * Real.sqrt (Real.log (1 / δ) / (2 * m))}).toReal := by sorry

end FoundationsML.Regression
Source
Mohri, Rostamizadeh & Talwalkar, Foundations of Machine Learning, 2nd ed., MIT Press 2018, p. 273, Theorem 11.8 (PDF p. 290)
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me