Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (2.7) — consecutive FoReL predictions: σ‖w_t − w_{t+1}‖² ≤ f_t(w_t) − f_t(w_{t+1})

Proved
OnlineLearningOCO.FoReL.eq_2_7

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

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

Let EEE be a real normed space, S⊆ES \subseteq ES⊆E, and let the regularization function RRR be σ\sigmaσ-strongly-convex over SSS. Fix a round t≥1t \ge 1t≥1, assume f1,…,ftf_1, \dots, f_tf1​,…,ft​ are convex on SSS, and let w1,w2,…w_1, w_2, \dotsw1​,w2​,… be a run of Follow-the-Regularized-Leader on fff with regularizer RRR. Then

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

This is equation (2.7) in the proof of Lemma 2.10: the objectives Ft=∑i<tfi+RF_t = \sum_{i<t} f_i + RFt​=∑i<t​fi​+R and Ft+1F_{t+1}Ft+1​ are both σ\sigmaσ-strongly convex, and comparing each at the other's minimizer gives the display.

Formalization Note Strong convexity is Mathlib's StrongConvexOn S σ R (see Lemma 2.8). Convexity is required of f1,…,ftf_1, \dots, f_tf1​,…,ft​ on SSS only, the losses that enter FtF_tFt​ and Ft+1F_{t+1}Ft+1​. No sign condition on σ\sigmaσ is imposed.

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

/-- Equation (2.7) (Shalev-Shwartz, FnT ML 4(2) (2011), §2.5.2, proof of Lemma 2.10, p. 138).
Let `R` be `σ`-strongly-convex over `S`, let `f_1, …, f_t` be convex on `S`, and let
`w₁, w₂, …` be a run of FoReL. Then `σ ‖w_t − w_{t+1}‖² ≤ f_t(w_t) − f_t(w_{t+1})`. -/
theorem eq_2_7 {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
    (S : Set E) (σ : ℝ) (f : ℕ → E → ℝ) (R : E → ℝ) (w : ℕ → E)
    (hR : StrongConvexOn S σ R) (t : ℕ) (ht : 1 ≤ t)
    (hf : ∀ i ∈ Finset.Icc 1 t, ConvexOn ℝ S (f i))
    (hw : IsFoReLRun S f R w) :
    σ * ‖w t - w (t + 1)‖ ^ 2 ≤ f t (w t) - f t (w (t + 1)) := by sorry

end OnlineLearningOCO.FoReL
Source
Shalev-Shwartz, Online Learning and Online Convex Optimization, Found. Trends Mach. Learn. 4(2) (2011) 107–194, p. 138, §2.5.2, proof of Lemma 2.10, eq. (2.7)
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