Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 3.2, pp. 264–265 — projected subgradient descent with η = R/(L√t) satisfies f((1/t)Σ x_s) − f(x*) ≤ RL/√t

Proved
ConvexOptAlg.Subgradient.theorem_3_2

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 and f:X→Rf:\mathcal X\to\mathbb Rf:X→R convex, with a minimizer x∗∈Xx^*\in\mathcal Xx∗∈X. Let R>0R>0R>0 and L>0L>0L>0, and fix a horizon t≥1t\ge1t≥1. Let (xs),(gs)(x_s),(g_s)(xs​),(gs​) be a run of projected subgradient descent

ys+1=xs−ηgs,gs∈∂f(xs),xs+1=ΠX(ys+1),s=1,…,t,y_{s+1}=x_s-\eta g_s,\quad g_s\in\partial f(x_s),\qquad x_{s+1}=\Pi_{\mathcal X}(y_{s+1}),\qquad s=1,\dots,t,ys+1​=xs​−ηgs​,gs​∈∂f(xs​),xs+1​=ΠX​(ys+1​),s=1,…,t,

with the constant step η=R/(Lt)\eta=R/(L\sqrt t)η=R/(Lt​), such that X\mathcal XX is contained in the Euclidean ball of radius RRR centred at x1∈Xx_1\in\mathcal Xx1​∈X and ∥gs∥≤L\|g_s\|\le L∥gs​∥≤L for 1≤s≤t1\le s\le t1≤s≤t. Then

f(1t∑s=1txs)−f(x∗)≤RLt.f\Big(\frac1t\sum_{s=1}^{t}x_s\Big)-f(x^*)\le\frac{RL}{\sqrt t}.f(t1​s=1∑t​xs​)−f(x∗)≤t​RL​.

This is the dimension-free O(1/t)O(1/\sqrt t)O(1/t​) rate of the projected subgradient method for Lipschitz convex functions; Section 3.5 of the book shows it cannot be improved for black-box first-order methods.

Formalization Note ∂f(x)\partial f(x)∂f(x) is the set of subgradients relative to X\mathcal XX (Definition 1.2), and any choice of subgradient is allowed at each step. Compactness and convexity of X\mathcal XX, convexity of fff and the existence of x∗x^*x∗ are the standing assumptions of Chapter 3 and of the book. R>0R>0R>0 and L>0L>0L>0 make the step and the bound well defined (Lean's a/0=0a/0=0a/0=0 would otherwise give a junk step). The page assumes ∥g∥≤L\|g\|\le L∥g∥≤L for every subgradient at every point of X\mathcal XX (with ∂f(x)≠∅\partial f(x)\neq\emptyset∂f(x)=∅); here the bound is assumed only for the subgradients the run uses, a weaker hypothesis and hence a stronger statement. Taken literally with relative subgradients, the page's bound fails at every boundary point of a nonempty compact X\mathcal XX in Rn\mathbb R^nRn, n≥1n\ge1n≥1, so the run-wise bound is also what keeps the statement non-vacuous. The run is required only for the steps 1,…,t1,\dots,t1,…,t.

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

/-- Bubeck, Theorem 3.2, pp. 264–265: under the assumptions of Chapter 3 and §3.1 (`X` compact
convex, `f` convex on `X`, `X` inside the ball of radius `R > 0` centred at `x₁`, subgradients
bounded by `L > 0`, `x*` a minimizer of `f` on `X`), for every horizon `t ≥ 1`, projected
subgradient descent run for `t` steps with the constant step `η = R/(L√t)` satisfies
`f((1/t) ∑_{s=1}^t x_s) - f(x*) ≤ RL/√t`. The bound `‖g_s‖ ≤ L` is assumed only for the
subgradients the run uses (a weaker hypothesis than the page's). -/
theorem theorem_3_2 {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) (hLpos : 0 < L) (t : ℕ) (ht : 1 ≤ t)
    (x g : ℕ → EuclideanSpace ℝ (Fin n))
    (hrun : IsProjSubgradRun X f (fun _ => R / (L * Real.sqrt t)) 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) :
    f ((1 / (t : ℝ)) • ∑ s ∈ Finset.Icc 1 t, x s) - f xstar ≤ R * L / Real.sqrt t := by sorry

end ConvexOptAlg.Subgradient
Source
Bubeck, arXiv:1405.4980v2, Theorem 3.2, pp. 264–265 (with the assumptions of the Ch. 3 preamble, pp. 262–263, and §3.1, pp. 263–264)
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