Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Corollary 13.9: a convex-Lipschitz-bounded problem (ρ, B) is learned by RLM with λ = √(2ρ²/(B²m)): E_S[L_D(A(S))] ≤ min_{w∈H} L_D(w) + ρB√(8/m), hence ≤ +ε for m ≥ 8ρ²B²/ε²

Proved
UnderstandingML.convex_lipschitz_bounded_learnable

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

convex-learninglearnabilitylipschitzregularization

Corollary 13.9. Let (H,Z,ℓ)(H, Z, \ell)(H,Z,ℓ) be a convex-Lipschitz-bounded learning problem with parameters ρ,B\rho, Bρ,B. For any training set size mmm, let λ=2ρ2B2m\lambda = \sqrt{\frac{2\rho^2}{B^2 m}}λ=B2m2ρ2​​. Then the RLM rule with the regularization function λ∥w∥2\lambda\|w\|^2λ∥w∥2 satisfies

ES[LD(A(S))]≤min⁡w∈HLD(w)+ρB8m.\mathbb{E}_S[L_D(A(S))] \le \min_{w \in H} L_D(w) + \rho B\sqrt{\frac8m}.ES​[LD​(A(S))]≤w∈Hmin​LD​(w)+ρBm8​​.

In particular, for every ϵ>0\epsilon > 0ϵ>0, if m≥8ρ2B2ϵ2m \ge \frac{8\rho^2 B^2}{\epsilon^2}m≥ϵ28ρ2B2​ then for every distribution DDD, ES[LD(A(S))]≤min⁡w∈HLD(w)+ϵ\mathbb{E}_S[L_D(A(S))] \le \min_{w \in H} L_D(w) + \epsilonES​[LD​(A(S))]≤minw∈H​LD​(w)+ϵ.

Formally: the RLM learner uses the parameter λ(m)\lambda(m)λ(m); "min⁡w∈H\min_{w \in H}minw∈H​" is "for every w∈Hw \in Hw∈H"; ρ,B>0\rho, B > 0ρ,B>0. Measurability: jointly measurable loss and measurable algorithm, with a nonnegative loss bounded at the origin so that all expectations exist (for the RLM rule the minimizer is unique, so measurability of the algorithm is automatic).

Preamble
import Definitions.Def_UnderstandingML_Convex

open MeasureTheory
open scoped InnerProductSpace
Formal statement
namespace UnderstandingML

/-- **Corollary 13.9** (p. 179). Let `(H, Z, ℓ)` be a convex-Lipschitz-bounded learning problem
with parameters `ρ, B`. For any training set size `m`, let `λ = √(2ρ²/(B²m))`. Then the RLM rule
with the regularization function `λ‖w‖²` satisfies
`E_S[L_D(A(S))] ≤ min_{w ∈ H} L_D(w) + ρB√(8/m)`. In particular, for every `ε > 0`, if
`m ≥ 8ρ²B²/ε²` then for every distribution `D`, `E_S[L_D(A(S))] ≤ min_{w ∈ H} L_D(w) + ε`.
The RLM parameter depends on `m`; "`min`" is stated as "for every `w ∈ H`". Measurability as in
Corollary 13.6. -/
theorem convex_lipschitz_bounded_learnable {d : ℕ} {Z : Type*} [MeasurableSpace Z]
    (H : Set (Vec d)) (loss : Vec d → Z → ℝ) {ρ B : ℝ} (hρ : 0 < ρ) (hB : 0 < B)
    (hprob : ConvexLipschitzBounded H loss ρ B) (A : Learner Z (Vec d))
    (hA : ∀ (m : ℕ) (S : Fin m → Z), IsRLM loss (Real.sqrt (2 * ρ ^ 2 / (B ^ 2 * m))) S (A m S))
    (hmeas : Measurable (Function.uncurry loss)) (hnonneg : ∀ w z, 0 ≤ loss w z) {C : ℝ}
    (hC : ∀ z, loss 0 z ≤ C) (hAmeas : ∀ m, Measurable (A m)) :
    (∀ (D : Measure Z), IsProbabilityMeasure D → ∀ m : ℕ, 0 < m → ∀ w ∈ H,
        ∫ S, risk loss D (A m S) ∂(iidLaw D m) ≤ risk loss D w + ρ * B * Real.sqrt (8 / m)) ∧
    ∀ ε : ℝ, 0 < ε → ∀ m : ℕ, 8 * ρ ^ 2 * B ^ 2 / ε ^ 2 ≤ m →
      ∀ (D : Measure Z), IsProbabilityMeasure D → ∀ w ∈ H,
        ∫ S, risk loss D (A m S) ∂(iidLaw D m) ≤ risk loss D w + ε := 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, §13.4 p. 179, Corollary 13.9 (from Corollary 13.8)
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