Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§3.1, proof of Theorem 3.2, p. 265 — Σ_{s=1}^t (f(x_s) − f(x*)) ≤ R²/(2η) + ηL²t/2

Proved
ConvexOptAlg.Subgradient.thm_3_2_sum

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

convergence-rateconvex-optimizationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1subgradient-method

Let X⊆Rn\mathcal X\subseteq\mathbb R^nX⊆Rn be compact and convex, fff convex on X\mathcal XX, and x∗∈Xx^*\in\mathcal Xx∗∈X a minimizer of fff on X\mathcal XX. Let η>0\eta>0η>0, R>0R>0R>0, L∈RL\in\mathbb RL∈R and t∈Nt\in\mathbb Nt∈N, and let (xs),(gs)(x_s),(g_s)(xs​),(gs​) be a run of projected subgradient descent with constant step η\etaη for the steps 1,…,t1,\dots,t1,…,t, such that X\mathcal XX is contained in the closed Euclidean ball of radius RRR centred at x1x_1x1​ and ∥gs∥≤L\|g_s\|\le L∥gs​∥≤L for 1≤s≤t1\le s\le t1≤s≤t. Then

∑s=1t(f(xs)−f(x∗))≤R22η+ηL2t2.\sum_{s=1}^{t}\big(f(x_s)-f(x^*)\big)\le\frac{R^2}{2\eta}+\frac{\eta L^2 t}{2}.s=1∑t​(f(xs​)−f(x∗))≤2ηR2​+2ηL2t​.

Dividing by ttt and choosing η\etaη to balance the two terms gives Theorem 3.2.

Formalization Note Compactness of X\mathcal XX, convexity of fff and the existence of the minimizer x∗x^*x∗ are the standing assumptions of Chapter 3 and of the book. The page assumes ∥g∥≤L\|g\|\le L∥g∥≤L for every subgradient at every point of X\mathcal XX; here the bound is assumed only for the subgradients g1,…,gtg_1,\dots,g_tg1​,…,gt​ used by the run, a weaker hypothesis (so a stronger statement). With subgradients taken relative to X\mathcal XX, the page's form of the bound could never hold at a boundary point of a compact set (the relative subdifferential there contains every outward normal), so the run-wise bound is also what keeps the statement non-vacuous.

Preamble
import Mathlib
import Definitions.Def_OnlineConvexOpt_FirstOrder_Protocol
import Definitions.Def_ConvexOptAlg_Subgradient_Defs
Formal statement
namespace ConvexOptAlg.Subgradient

/-- Bubeck, proof of Theorem 3.2, p. 265, second display: under the assumptions of Chapter 3
and §3.1 (`X` compact convex, `f` convex on `X`, `X` inside the ball of radius `R` centred at
`x₁`, subgradients bounded by `L`, `x*` a minimizer of `f` on `X`), a run of projected
subgradient descent with constant step `η > 0` satisfies
`∑_{s=1}^t (f(x_s) - f(x*)) ≤ R²/(2η) + ηL²t/2`. The bound `‖g_s‖ ≤ L` is assumed only for the
subgradients the run uses. -/
theorem thm_3_2_sum {n : ℕ} (X : Set (EuclideanSpace ℝ (Fin n)))
    (hXcpt : IsCompact X) (hXconv : Convex ℝ X)
    (f : EuclideanSpace ℝ (Fin n) → ℝ) (hf : ConvexOn ℝ X f)
    (R L η : ℝ) (hR : 0 < R) (hη : 0 < η) (t : ℕ)
    (x g : ℕ → EuclideanSpace ℝ (Fin n))
    (hrun : IsProjSubgradRun X f (fun _ => η) x g t)
    (hball : X ⊆ Metric.closedBall (x 1) R)
    (hL : ∀ s, 1 ≤ s → s ≤ t → ‖g s‖ ≤ L)
    (xstar : EuclideanSpace ℝ (Fin n)) (hxstar : xstar ∈ X) (hmin : ∀ y ∈ X, f xstar ≤ f y) :
    ∑ s ∈ Finset.Icc 1 t, (f (x s) - f xstar) ≤
      R ^ 2 / (2 * η) + η * L ^ 2 * (t : ℝ) / 2 := by sorry

end ConvexOptAlg.Subgradient
Source
Bubeck, arXiv:1405.4980v2, §3.1, proof of Theorem 3.2, p. 265, second display
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

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