Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.10 — FoReL with a σ-strongly-convex regularizer is stable: f_t(w_t) − f_t(w_{t+1}) ≤ L_t²/σ

Proved
OnlineLearningOCO.FoReL.lemma_2_10

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

online-convex-optimizationonline-learningp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1regretstrong-convexity

Let EEE be a real normed space with norm ∥⋅∥\|\cdot\|∥⋅∥, S⊆ES \subseteq ES⊆E, σ>0\sigma > 0σ>0, and let RRR be σ\sigmaσ-strongly-convex over SSS with respect to ∥⋅∥\|\cdot\|∥⋅∥. Let w1,w2,…w_1, w_2, \dotsw1​,w2​,… be the predictions of Follow-the-Regularized-Leader with regularizer RRR on losses f1,f2,…f_1, f_2, \dotsf1​,f2​,…. Fix a round t≥1t \ge 1t≥1 and assume f1,…,ftf_1, \dots, f_tf1​,…,ft​ are convex on SSS. If ftf_tft​ is LtL_tLt​-Lipschitz over SSS with respect to ∥⋅∥\|\cdot\|∥⋅∥, i.e. ∣ft(u)−ft(v)∣≤Lt∥u−v∥|f_t(u) - f_t(v)| \le L_t \|u - v\|∣ft​(u)−ft​(v)∣≤Lt​∥u−v∥ for u,v∈Su, v \in Su,v∈S, then

ft(wt)−ft(wt+1)≤Lt∥wt−wt+1∥≤Lt2σ.f_t(w_t) - f_t(w_{t+1}) \le L_t \|w_t - w_{t+1}\| \le \frac{L_t^2}{\sigma}.ft​(wt​)−ft​(wt+1​)≤Lt​∥wt​−wt+1​∥≤σLt2​​.

Together with Lemma 2.3 this bounds the regret of FoReL by R(u)−R(w1)+∑tLt2/σR(u) - R(w_1) + \sum_t L_t^2/\sigmaR(u)−R(w1​)+∑t​Lt2​/σ.

Formalization Note Both inequalities of the chain are stated, as a conjunction. The convexity of f1,…,ftf_1, \dots, f_tf1​,…,ft​ on SSS is the standing assumption of online convex optimization (p. 119); the proof uses it to make ∑i<tfi+R\sum_{i<t} f_i + R∑i<t​fi​+R and ∑i≤tfi+R\sum_{i \le t} f_i + R∑i≤t​fi​+R strongly convex. Strong convexity is Mathlib's StrongConvexOn S σ R (see Lemma 2.8), which includes convexity of SSS. The proof on the page ends with "∥wt−wt+1∥≤L/σ\|w_t - w_{t+1}\| \le L/\sigma∥wt​−wt+1​∥≤L/σ", a misprint for Lt/σL_t/\sigmaLt​/σ; the statement is unaffected.

Preamble
import Mathlib
import Definitions.Def_OnlineLearningOCO_FoReL_IsFoReLRun
Formal statement
namespace OnlineLearningOCO.FoReL

/-- Lemma 2.10 (Shalev-Shwartz, FnT ML 4(2) (2011), p. 137). Let `R` be `σ`-strongly-convex
over `S` (`σ > 0`) and let `w₁, w₂, …` be the predictions of FoReL on losses convex on `S`. For
a round `t ≥ 1`, if `f_t` is `L_t`-Lipschitz over `S` with respect to `‖·‖`, then
`f_t(w_t) − f_t(w_{t+1}) ≤ L_t ‖w_t − w_{t+1}‖ ≤ L_t² / σ`. -/
theorem lemma_2_10 {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
    (S : Set E) (σ : ℝ) (hσ : 0 < σ) (f : ℕ → E → ℝ) (R : E → ℝ) (w : ℕ → E)
    (hR : StrongConvexOn S σ R) (t : ℕ) (ht : 1 ≤ t)
    (hf : ∀ i ∈ Finset.Icc 1 t, ConvexOn ℝ S (f i))
    (Lt : ℝ) (hLip : ∀ u ∈ S, ∀ v ∈ S, |f t u - f t v| ≤ Lt * ‖u - v‖)
    (hw : IsFoReLRun S f R w) :
    f t (w t) - f t (w (t + 1)) ≤ Lt * ‖w t - w (t + 1)‖ ∧
      Lt * ‖w t - w (t + 1)‖ ≤ Lt ^ 2 / σ := by sorry

end OnlineLearningOCO.FoReL
Source
Shalev-Shwartz, Online Learning and Online Convex Optimization, Found. Trends Mach. Learn. 4(2) (2011) 107–194, p. 137, Lemma 2.10
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 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