Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 11.3 — Rademacher complexity regression bounds (goal)

Disproved
FoundationsML.Regression.rademacher_regression_bound

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

generalization-boundmachine-learningrademacher-complexityregression

Statement (Theorem 11.3, p. 270, PDF p. 287). Let LLL be non-negative, bounded by M>0M>0M>0, and μ\muμ-Lipschitz in its first argument. Then, for any δ>0\delta>0δ>0, with probability at least 1−δ1-\delta1−δ, for all h∈Hh\in Hh∈H:

E[L(h(x),y)]≤1m∑iL(h(xi),yi)+2μRm(H)+Mlog⁡(1/δ)2m\mathbb E[L(h(x),y)] \le \tfrac1m\sum_i L(h(x_i),y_i) + 2\mu R_m(H) + M\sqrt{\tfrac{\log(1/\delta)}{2m}}E[L(h(x),y)]≤m1​i∑​L(h(xi​),yi​)+2μRm​(H)+M2mlog(1/δ)​​ E[L(h(x),y)]≤1m∑iL(h(xi),yi)+2μR^S(H)+3Mlog⁡(2/δ)2m.\mathbb E[L(h(x),y)] \le \tfrac1m\sum_i L(h(x_i),y_i) + 2\mu \hat R_S(H) + 3M\sqrt{\tfrac{\log(2/\delta)}{2m}}.E[L(h(x),y)]≤m1​i∑​L(h(xi​),yi​)+2μR^S​(H)+3M2mlog(2/δ)​​.

This is the chapter's headline result: it reuses chunk 03's Theorem 3.3 through the Lipschitz-contraction step of Proposition 11.2, extending margin/Rademacher-complexity generalization theory from classification to regression.

Formalization Note. RademacherComplexity (Measure.map Prod.fst D) H m gives R_m(H) (H's complexity under the marginal of D on X, the sampling distribution of the inputs); both displayed inequalities bundled as a conjunction, mirroring the series' own two-part-theorem precedent (chunk 07-boosting's adaboost_empirical_error_bound).


Retired. Retired because it allowed m = 0 (bound false) and used the clipped ⨆ h ∈ H Rademacher definition; replaced by FoundationsML.Regression.rademacher_regression_bound_v2.

Preamble
import Mathlib
import Definitions.Def_FoundationsML_Regression_GeneralizationError
import Definitions.Def_FoundationsML_Regression_EmpiricalError
import Definitions.Def_FoundationsML_Regression_RademacherComplexity
import Definitions.Def_FoundationsML_Regression_EmpiricalRademacherComplexity

open MeasureTheory
Formal statement
namespace FoundationsML.Regression

/-- Theorem 11.3 (Rademacher complexity regression bounds; Mohri, Rostamizadeh & Talwalkar,
*Foundations of Machine Learning*, 2nd ed., MIT Press 2018, p. 270, PDF p. 287). Let `L` be a
non-negative loss bounded by `M > 0` that is `µ`-Lipschitz in its first argument. Then, for
any `δ > 0`, with probability at least `1 − δ`, for all `h ∈ H`:
`E[L(h(x),y)] ≤ (1/m)∑L(h(x_i),y_i) + 2µ R_m(H) + M sqrt(log(1/δ)/(2m))`, and also
`E[L(h(x),y)] ≤ (1/m)∑L(h(x_i),y_i) + 2µ R̂_S(H) + 3M sqrt(log(2/δ)/(2m))`.

**Formalization Note.** `hH_meas`/`hL_meas` guard `GeneralizationError`'s Bochner integral
against trap 2, matching chunk `02-pac`'s precedent for this book's standing measurability
convention: without them, an adversarial `h ∈ H` could make `GeneralizationError` junk to `0`,
trivially satisfying the (already `≥0`, by `hLnn`) right-hand side for that `h`. -/
theorem rademacher_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) (hμ : 0 < μ)
    (hLlip : ∀ y' y1 y2, |L y1 y' - L y2 y'| ≤ μ * |y1 - y2|)
    (hL_meas : Measurable (Function.uncurry L))
    (H : Set (X → ℝ)) (hH_meas : ∀ h ∈ H, Measurable h)
    (m : ℕ) (δ : ℝ) (hδ : 0 < δ) :
    (1 - δ) ≤ (Measure.pi (fun _ : Fin m => D)
      {S : Fin m → X × ℝ | ∀ h ∈ H,
        GeneralizationError D L h ≤
          EmpiricalError S L h +
            2 * μ * RademacherComplexity (Measure.map Prod.fst D) H m +
            M * Real.sqrt (Real.log (1 / δ) / (2 * m))}).toReal ∧
    (1 - δ) ≤ (Measure.pi (fun _ : Fin m => D)
      {S : Fin m → X × ℝ | ∀ h ∈ H,
        GeneralizationError D L h ≤
          EmpiricalError S L h +
            2 * μ * EmpiricalRademacherComplexity H (fun i => (S i).1) +
            3 * M * Real.sqrt (Real.log (2 / δ) / (2 * m))}).toReal := by sorry

end FoundationsML.Regression
Source
Mohri, Rostamizadeh & Talwalkar, Foundations of Machine Learning, 2nd ed., MIT Press 2018, p. 270, Theorem 11.3 (PDF p. 287)
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