Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 9.3 — Rademacher complexity of multi-class kernel-based hypotheses

Proved
FoundationsML.MultiClass.kernel_rademacher_bound

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

kernel-methodsmachine-learningmulti-class-classificationrademacher-complexity

Statement (Proposition 9.3, p. 219, PDF p. 236). Let KKK be a PDS kernel with feature map Φ\PhiΦ (K(x,y)=⟨Φ(x),Φ(y)⟩K(x,y)=\langle\Phi(x),\Phi(y)\rangleK(x,y)=⟨Φ(x),Φ(y)⟩), and assume K(x,x)≤r2K(x,x)\le r^2K(x,x)≤r2 for all xxx. Then, for any m≥1m\ge1m≥1, Rm(Π1(HK,p))≤r2Λ2/mR_m(\Pi_1(H_{K,p})) \le \sqrt{r^2\Lambda^2/m}Rm​(Π1​(HK,p​))≤r2Λ2/m​. Makes Theorem 9.2's bound fully explicit for kernel-based multi-class hypotheses.

Preamble
import Mathlib
import Definitions.Def_FoundationsML_MultiClass_RademacherComplexity
import Definitions.Def_FoundationsML_MultiClass_EmpiricalRademacherComplexity
import Definitions.Def_FoundationsML_MultiClass_Proj1
import Definitions.Def_FoundationsML_MultiClass_IsPDS
import Definitions.Def_FoundationsML_MultiClass_KernelHypothesisClass

open MeasureTheory
Formal statement
namespace FoundationsML.MultiClass

/-- Proposition 9.3 (Rademacher complexity of multi-class kernel-based hypotheses; Mohri,
Rostamizadeh & Talwalkar, *Foundations of Machine Learning*, 2nd ed., MIT Press 2018, p. 219,
PDF p. 236). Let `K` be a PDS kernel with feature map `Φ` (`K x y = ⟪Φ x, Φ y⟫`), and assume
`K(x,x) ≤ r²` for all `x`. Then, for any `m ≥ 1`, `R_m(Π_1(H_{K,p})) ≤ sqrt(r²Λ²/m)`.

**Formalization Note.** `hInt` guards `RademacherComplexity`'s outer Bochner integral against
trap 2 directly (rather than via a `Measurable Φ` hypothesis, which would need a
`MeasurableSpace Hb` instance this theorem's ambient Hilbert space does not otherwise carry):
without it, a non-measurable `Φ` could junk the integral to `0`, making the conclusion provable
as `0 ≤ Real.sqrt (...)` (always true) without using `hK`, `hΦ`, `hrK`, `hp`, or `hΛ` at all —
the "makes it trivially true" direction of trap 2. The pointwise boundedness the inner `⨆`
needs is already derivable from `hrK`/`hΛ` via the book's own Cauchy-Schwarz argument, so only
the outer integral needs an explicit guard. -/
theorem kernel_rademacher_bound
    {X Hb : Type*} [MeasurableSpace X] (D : Measure X) [IsProbabilityMeasure D]
    [NormedAddCommGroup Hb] [InnerProductSpace ℝ Hb]
    (K : X → X → ℝ) (Φ : X → Hb) (hK : IsPDS K) (hΦ : ∀ x y, K x y = (inner (𝕜 := ℝ) (Φ x) (Φ y) : ℝ))
    (r : ℝ) (hr : 0 < r) (hrK : ∀ x, K x x ≤ r ^ 2)
    (k : ℕ) (hk : 0 < k) (p Λ : ℝ) (hp : 1 ≤ p) (hΛ : 0 < Λ) (m : ℕ) (hm : 0 < m)
    (hInt : Integrable
      (fun S => EmpiricalRademacherComplexity (Proj1 (KernelHypothesisClass Φ k p Λ)) S)
      (Measure.pi fun _ : Fin m => D)) :
    RademacherComplexity D (Proj1 (KernelHypothesisClass Φ k p Λ)) m ≤
      Real.sqrt (r ^ 2 * Λ ^ 2 / m) := by sorry

end FoundationsML.MultiClass
Source
Mohri, Rostamizadeh & Talwalkar, Foundations of Machine Learning, 2nd ed., MIT Press 2018, p. 219, Proposition 9.3 (PDF p. 236)
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