Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3.2, first display — one-step chain of projected subgradient descent

Proved
BubeckCO.PSGD.psgd_one_step

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

convex-optimizationprojected-subgradient-descentsubgradient-method

Let X⊆RnX \subseteq \mathbb{R}^nX⊆Rn, f:X→Rf : X \to \mathbb{R}f:X→R, a step size η>0\eta > 0η>0, a point xs∈Xx_s \in Xxs​∈X with a subgradient gs∈∂f(xs)g_s \in \partial f(x_s)gs​∈∂f(xs​) (Definition 1.2), and ys+1=xs−ηgsy_{s+1} = x_s - \eta g_sys+1​=xs​−ηgs​ as in (3.2). Then for every x∗∈Xx^* \in Xx∗∈X,

f(xs)−f(x∗)≤gs⊤(xs−x∗)=1η (xs−ys+1)⊤(xs−x∗)=12η(∥xs−x∗∥2+∥xs−ys+1∥2−∥ys+1−x∗∥2)=12η(∥xs−x∗∥2−∥ys+1−x∗∥2)+η2∥gs∥2.\begin{aligned} f(x_s) - f(x^*) &\le g_s^\top (x_s - x^*) \\ &= \tfrac{1}{\eta}\,(x_s - y_{s+1})^\top (x_s - x^*) \\ &= \tfrac{1}{2\eta}\big(\|x_s - x^*\|^2 + \|x_s - y_{s+1}\|^2 - \|y_{s+1} - x^*\|^2\big) \\ &= \tfrac{1}{2\eta}\big(\|x_s - x^*\|^2 - \|y_{s+1} - x^*\|^2\big) + \tfrac{\eta}{2}\|g_s\|^2 . \end{aligned}f(xs​)−f(x∗)​≤gs⊤​(xs​−x∗)=η1​(xs​−ys+1​)⊤(xs​−x∗)=2η1​(∥xs​−x∗∥2+∥xs​−ys+1​∥2−∥ys+1​−x∗∥2)=2η1​(∥xs​−x∗∥2−∥ys+1​−x∗∥2)+2η​∥gs​∥2.​

This per-step estimate is the first step of the proof of Theorem 3.2; combined with Lemma 3.1 and summed over sss it gives the bound on ∑s(f(xs)−f(x∗))\sum_s (f(x_s) - f(x^*))∑s​(f(xs​)−f(x∗)).

Formalization Note The chain is stated as a conjunction of one inequality and three equalities. η>0\eta > 0η>0 is the book's step-size convention (p. 262); the second link would be false at η=0\eta = 0η=0 under Lean's convention 1/0=01/0 = 01/0=0.

Differences from the source:

  • encoding: f : X → ℝ → f : ℝⁿ → ℝ (values off X never read); reason: Lean functions are total; every hypothesis and the conclusion evaluate f only at points of X, so the instances are the same
  • generalization: X ⊂ ℝⁿ compact and convex (Chapter 3 standing assumption) → X an arbitrary subset of ℝⁿ; reason: the chain uses only the subgradient inequality at x* ∈ X and algebraic identities; the Chapter 3 case is a special case
  • generalization: x* a minimizer of f on X (Notation, p. 242) → any point xstar ∈ X; reason: minimality of x* is not used; taking xstar to be the minimizer recovers the book's statement
  • encoding: y_{s+1} defined by (3.2) → binder ys with hys : ys = xs − η • gs; reason: the same point, named as in the display
Preamble
import Mathlib
import Definitions.Def_BubeckCO_PSGD_IsSubgradient
Formal statement
namespace BubeckCO.PSGD

/-- **One-step chain of projected subgradient descent (proof of Theorem 3.2, first display).**
Bubeck, Convex Optimization: Algorithms and Complexity, Found. Trends Mach. Learn. 8(3-4), 2015,
p. 265 (PDF p. 38), proof of Theorem 3.2, first display:
`f(x_s) − f(x*) ≤ g_sᵀ(x_s − x*) = (1/η)(x_s − y_{s+1})ᵀ(x_s − x*)
 = (1/(2η))(‖x_s − x*‖² + ‖x_s − y_{s+1}‖² − ‖y_{s+1} − x*‖²)
 = (1/(2η))(‖x_s − x*‖² − ‖y_{s+1} − x*‖²) + (η/2)‖g_s‖²`.

For a step size `η > 0`, a subgradient `g_s ∈ ∂f(x_s)` (Definition 1.2, relative to `X`),
`y_{s+1} = x_s − η g_s` (equation (3.2)) and any `x* ∈ X`, the inequality and the three
equalities of the chain hold.

**Formalization Note.** The chain is stated as a conjunction of its four links. `X` is an
arbitrary set: the compactness and convexity of Chapter 3 are not needed for this step.
`x*` may be any point of `X` (the chain does not use minimality). `η > 0` is the book's step-size
convention (p. 262); the second link is false at `η = 0` with Lean's `1 / 0 = 0`. -/
theorem psgd_one_step {n : ℕ} (X : Set (EuclideanSpace ℝ (Fin n)))
    (f : EuclideanSpace ℝ (Fin n) → ℝ) (η : ℝ) (hη : 0 < η)
    (xs gs ys xstar : EuclideanSpace ℝ (Fin n))
    (hgs : IsSubgradient X f xs gs) (hys : ys = xs - η • gs) (hxstar : xstar ∈ X) :
    f xs - f xstar ≤ inner ℝ gs (xs - xstar) ∧
      inner ℝ gs (xs - xstar) = 1 / η * inner ℝ (xs - ys) (xs - xstar) ∧
      1 / η * inner ℝ (xs - ys) (xs - xstar) =
        1 / (2 * η) * (‖xs - xstar‖ ^ 2 + ‖xs - ys‖ ^ 2 - ‖ys - xstar‖ ^ 2) ∧
      1 / (2 * η) * (‖xs - xstar‖ ^ 2 + ‖xs - ys‖ ^ 2 - ‖ys - xstar‖ ^ 2) =
        1 / (2 * η) * (‖xs - xstar‖ ^ 2 - ‖ys - xstar‖ ^ 2) + η / 2 * ‖gs‖ ^ 2 := by sorry

end BubeckCO.PSGD
Source
Bubeck, Convex Optimization: Algorithms and Complexity, Found. Trends Mach. Learn. 8(3-4), 2015, p. 265 (PDF p. 38), proof of Theorem 3.2, first display (unnumbered)

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