Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Corollary 13.10: for a convex β-smooth nonnegative loss and λ ≥ 2β/m, E_S[L_D(A(S))] ≤ (1 + 48β/(λm)) E_S[L_S(A(S))] ≤ (1 + 48β/(λm))(L_D(w*) + λ‖w*‖²)

Proved
UnderstandingML.rlm_smooth_oracle

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

oracle-inequalityregularizationsmoothness

Corollary 13.10. Assume that the loss function is convex, β\betaβ-smooth, and nonnegative. Then the RLM rule with the regularization function λ∥w∥2\lambda\|w\|^2λ∥w∥2, for λ≥2βm\lambda \ge \frac{2\beta}{m}λ≥m2β​, satisfies the following for all w∗w^*w∗:

ES[LD(A(S))]≤(1+48βλm)ES[LS(A(S))]≤(1+48βλm)(LD(w∗)+λ∥w∗∥2).\mathbb{E}_S[L_D(A(S))] \le \Big(1 + \frac{48\beta}{\lambda m}\Big)\mathbb{E}_S[L_S(A(S))] \le \Big(1 + \frac{48\beta}{\lambda m}\Big)\big(L_D(w^*) + \lambda\|w^*\|^2\big).ES​[LD​(A(S))]≤(1+λm48β​)ES​[LS​(A(S))]≤(1+λm48β​)(LD​(w∗)+λ∥w∗∥2).

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.10** (p. 180). Assume that the loss function is convex, `β`-smooth and
nonnegative. Then the RLM rule with the regularization function `λ‖w‖²`, for `λ ≥ 2β/m`,
satisfies for all `w*`:
`E_S[L_D(A(S))] ≤ (1 + 48β/(λm)) E_S[L_S(A(S))] ≤ (1 + 48β/(λm))(L_D(w*) + λ‖w*‖²)`.
Measurability as in Corollary 13.6. -/
theorem rlm_smooth_oracle {d : ℕ} {Z : Type*} [MeasurableSpace Z] (loss : Vec d → Z → ℝ)
    (hconv : ∀ z, ConvexOn ℝ Set.univ (fun w ↦ loss w z)) (hnonneg : ∀ w z, 0 ≤ loss w z)
    {β : ℝ} (hβ : 0 ≤ β) (hsmooth : IsSmoothLoss β loss) {lam : ℝ} (hlam : 0 < lam)
    (A : Learner Z (Vec d)) (hA : IsRLMLearner loss lam A)
    (hmeas : Measurable (Function.uncurry loss)) {C : ℝ} (hC : ∀ z, loss 0 z ≤ C)
    (hAmeas : ∀ m, Measurable (A m)) (D : Measure Z) [IsProbabilityMeasure D] (m : ℕ)
    (hm : 0 < m) (hlm : 2 * β / m ≤ lam) :
    ∫ S, risk loss D (A m S) ∂(iidLaw D m) ≤
      (1 + 48 * β / (lam * m)) * ∫ S, empRisk loss S (A m S) ∂(iidLaw D m) ∧
    ∀ wstar : Vec d, (1 + 48 * β / (lam * m)) * ∫ S, empRisk loss S (A m S) ∂(iidLaw D m) ≤
      (1 + 48 * β / (lam * m)) * (risk loss D wstar + lam * ‖wstar‖ ^ 2) := 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. 180, Corollary 13.10 (from (13.16) and Corollary 13.7)
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