Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.11 — FoReL with a σ-strongly-convex regularizer: Regret_T(u) ≤ R(u) − min_S R + TL²/σ

Proved
OnlineLearningOCO.FoReL.theorem_2_11

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, and T≥1T \ge 1T≥1. Let f1,…,fTf_1, \dots, f_Tf1​,…,fT​ be convex functions on SSS such that ftf_tft​ is LtL_tLt​-Lipschitz over SSS with respect to ∥⋅∥\|\cdot\|∥⋅∥, and let LLL be such that

1T∑t=1TLt2≤L2.\frac{1}{T} \sum_{t=1}^{T} L_t^2 \le L^2 .T1​t=1∑T​Lt2​≤L2.

Assume that Follow-the-Regularized-Leader, wt∈argmin⁡w∈S∑i<tfi(w)+R(w)w_t \in \operatorname{argmin}_{w \in S} \sum_{i<t} f_i(w) + R(w)wt​∈argminw∈S​∑i<t​fi​(w)+R(w), is run on the sequence with a regularization function RRR that is σ\sigmaσ-strongly-convex over SSS with respect to the same norm, σ>0\sigma > 0σ>0. Then for all u∈Su \in Su∈S,

RegretT(u)=∑t=1Tft(wt)−∑t=1Tft(u)≤R(u)−min⁡v∈SR(v)+TL2σ.\mathrm{Regret}_T(u) = \sum_{t=1}^{T} f_t(w_t) - \sum_{t=1}^{T} f_t(u) \le R(u) - \min_{v \in S} R(v) + \frac{T L^2}{\sigma}.RegretT​(u)=t=1∑T​ft​(wt​)−t=1∑T​ft​(u)≤R(u)−v∈Smin​R(v)+σTL2​.

This is the survey's central regret bound for FoReL. Choosing R(w)=12η∥w∥22R(w) = \frac{1}{2\eta}\|w\|_2^2R(w)=2η1​∥w∥22​ gives online gradient descent's 12η∥u∥22+ηTL2\frac{1}{2\eta}\|u\|_2^2 + \eta T L^22η1​∥u∥22​+ηTL2 (Corollary 2.12), and an entropic regularizer gives the experts bounds (Corollary 2.14).

Formalization Note min⁡v∈SR(v)\min_{v \in S} R(v)minv∈S​R(v) is written as the infimum of R(S)R(S)R(S); a FoReL run exists only if RRR attains its minimum on SSS at w1w_1w1​, so the infimum is that minimum. The hypothesis T≥1T \ge 1T≥1 is needed only for the factor 1/T1/T1/T. Convexity and Lipschitzness are assumed for t=1,…,Tt = 1, \dots, Tt=1,…,T, the rounds of the regret; the losses of later rounds are unconstrained. Strong convexity is Mathlib's StrongConvexOn S σ R (see Lemma 2.8), which includes convexity of SSS. The carrier is an arbitrary real normed space, so the theorem covers every norm, e.g. ℓ1\ell_1ℓ1​ on Rd\mathbb R^dRd as used in Corollary 2.14. The bound is explicit on the page; no O(⋅)O(\cdot)O(⋅) is involved.

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

/-- Theorem 2.11 (Shalev-Shwartz, FnT ML 4(2) (2011), p. 138). Let `f_1, …, f_T` be convex
functions on `S` with `f_t` `L_t`-Lipschitz over `S` with respect to a norm `‖·‖`, and let `L`
satisfy `(1/T) ∑_{t=1}^T L_t² ≤ L²`. If FoReL is run on the sequence with a regularization
function `R` that is `σ`-strongly-convex over `S` with respect to the same norm (`σ > 0`), then
for all `u ∈ S`, `Regret_T(u) ≤ R(u) − min_{v ∈ S} R(v) + T L² / σ`.
`min_{v ∈ S} R(v)` is written `sInf (R '' S)`; it is attained at `w 1`. -/
theorem theorem_2_11 {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
    (S : Set E) (σ : ℝ) (hσ : 0 < σ) (f : ℕ → E → ℝ) (R : E → ℝ) (w : ℕ → E)
    (hR : StrongConvexOn S σ R) (T : ℕ) (hT : 0 < T)
    (hf : ∀ t ∈ Finset.Icc 1 T, ConvexOn ℝ S (f t))
    (Lt : ℕ → ℝ)
    (hLip : ∀ t ∈ Finset.Icc 1 T, ∀ u ∈ S, ∀ v ∈ S, |f t u - f t v| ≤ Lt t * ‖u - v‖)
    (L : ℝ) (hL : (1 / (T : ℝ)) * ∑ t ∈ Finset.Icc 1 T, Lt t ^ 2 ≤ L ^ 2)
    (hw : IsFoReLRun S f R w) :
    ∀ u ∈ S, regret f w T u ≤ R u - sInf (R '' S) + T * L ^ 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. 138, Theorem 2.11
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