Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Convex Optimization

253 missions · 153 completed

Missions

Open100Completed153All253
Machine LearningOptimization·Captain: mikedeng1

Convex Optimization: Algorithms and Complexity VI: Gradient Descent with η = 2/(α + β) on a β-Smooth α-Strongly Convex Function Has Rate (β/2)exp(−4t/(κ + 1))‖x₁ − x*‖²Textbook

Motivation

Gradient descent is a basic method for minimizing a differentiable function when evaluating its gradient is practical but solving the optimization problem directly is not. The rate at which its iterates approach an optimizer depends on the assumptions about the function. For a convex function with a Lipschitz gradient, the value error decreases at a sublinear rate. Adding strong convexity changes the behavior: the distance from the optimizer contracts at each step, giving an exponential bound on the value error. This section of Bubeck's monograph identifies a fixed step size that uses both the smoothness and curvature constants and gives the corresponding rate.

The result matters when a high-accuracy answer is needed. A sublinear bound makes each extra digit progressively more expensive; an exponential bound says that a fixed number of additional gradient evaluations reduces the error by a fixed factor. The theorem is a textbook result, already proved mathematically. This mission asks for its precise machine-checked statement and the source's supporting inequalities, rather than for a new optimization method.

Setting

Work in Euclidean space Rn\mathbb R^nRn with n≥1n\ge1n≥1, equipped with its usual inner product and norm. A differentiable function f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R has gradient g(x)=∇f(x)g(x)=\nabla f(x)g(x)=∇f(x). It is β\betaβ-smooth when its gradient is β\betaβ-Lipschitz: ∥g(x)−g(y)∥≤β∥x−y∥\|g(x)-g(y)\|\le\beta\|x-y\|∥g(x)−g(y)∥≤β∥x−y∥ for every x,yx,yx,y. It is α\alphaα-strongly convex when, for every x,yx,yx,y,

f(y)≥f(x)+⟨g(x),y−x⟩+α2∥y−x∥2.f(y)\ge f(x)+\langle g(x),y-x\rangle+\frac\alpha2\|y-x\|^2.f(y)≥f(x)+⟨g(x),y−x⟩+2α​∥y−x∥2.

The first condition limits how rapidly the gradient changes. The second gives a quadratic lower bound on the function around any point. Here α>0\alpha>0α>0 and β≥0\beta\ge0β≥0. In positive dimension, the two conditions together entail β≥α\beta\ge\alphaβ≥α, so the condition number κ=β/α\kappa=\beta/\alphaκ=β/α is at least one. The case α=β\alpha=\betaα=β remains part of the target.

A point x∗x^*x∗ is a global minimizer when f(x∗)≤f(y)f(x^*)\le f(y)f(x∗)≤f(y) for every yyy. The book assumes such a point exists as a standing convention. A gradient descent run is a sequence (xt)t≥1(x_t)_{t\ge1}(xt​)t≥1​ satisfying xt+1=xt−ηg(xt)x_{t+1}=x_t-\eta g(x_t)xt+1​=xt​−ηg(xt​) at each positive index. Its first iterate x1x_1x1​ is arbitrary. The step size in this mission is fixed at η=2/(α+β)\eta=2/(\alpha+\beta)η=2/(α+β), rather than chosen by line search or adapted along the run.

Formalization targets

The central target is Theorem 3.12 of Bubeck, p. 279. For every integer t≥0t\ge0t≥0, the gradient descent run satisfies

f(xt+1)−f(x∗)≤β2exp⁡ ⁣(−4tκ+1)∥x1−x∗∥2.f(x_{t+1})-f(x^*)\le \frac\beta2\exp\!\left(-\frac{4t}{\kappa+1}\right)\|x_1-x^*\|^2.f(xt+1​)−f(x∗)≤2β​exp(−κ+14t​)∥x1​−x∗∥2.

At t=0t=0t=0 this is a smoothness bound on the initial value gap. For subsequent iterations it gives a linear convergence rate with the explicit exponential factor stated in the book. No initial-radius bound or bounded domain is imposed: the actual squared distance ∥x1−x∗∥2\|x_1-x^*\|^2∥x1​−x∗∥2 appears in the conclusion.

The milestones trace the mathematical claims stated in the source. Equation (3.6) is the co-coercivity inequality for gradients of convex smooth functions. The proof of Lemma 3.11 introduces ϕ(z)=f(z)−(α/2)∥z∥2\phi(z)=f(z)-(\alpha/2)\|z\|^2ϕ(z)=f(z)−(α/2)∥z∥2, and identifies it as convex and (β−α)(\beta-\alpha)(β−α)-smooth. Lemma 3.11 combines curvature and smoothness into a sharper inequality for two gradients. The proof of Theorem 3.12 then gives a value-gap bound, a one-step distance contraction, and its iterated exponential form. These statements are separately useful: the co-coercivity and contraction bounds can be reused in analyses of related first-order methods.

Significance

The theorem states a complete guarantee for the algorithm: an explicit rule, the hypotheses on the objective, and a bound valid for every iteration count. It makes the role of κ\kappaκ visible. When κ\kappaκ is close to one, the contraction is strong; when the smoothness constant is much larger than the curvature constant, more iterations are needed for the same error reduction. The stated dependence supports comparisons with projected and accelerated gradient methods elsewhere in the same monograph.

Formalizing the result requires a common interface for actual gradients, smoothness, strong convexity, and algorithm runs. The strong-convexity predicate is an existing published definition, while the local smoothness and run definitions use Bubeck's conventions. Once these interfaces and the inequalities are proved, later missions can use the resulting declarations to compare rates without translating between informal meanings of “smooth” or changing the iterate index. The source provides a mathematical proof; these draft Lean theorems carry sorry and do not yet constitute machine-checked proofs.

Difficulty

The main issue is getting the sharp contraction factor from two assumptions that control different parts of the gradient step. A direct Lipschitz estimate on the update map does not by itself express the mixed inner-product term with the constants needed for the stated factor. Lemma 3.11 is the source's precise bridge between the gradient difference, the point displacement, and their inner product. The case α=β\alpha=\betaα=β also needs to remain valid: a proof route that divides by β−α\beta-\alphaβ−α cannot cover that boundary by the same calculation.

The last display in the proof of Theorem 3.12 joins a one-step inequality involving xtx_txt​ to an exponential inequality involving x1x_1x1​. The latter is the cumulative statement after ttt steps. Keeping these as separate milestones makes each quantified claim explicit while preserving the theorem's bound.

Formalization scope

Lean represents Rn\mathbb R^nRn as EuclideanSpace ℝ (Fin n), with n>0n>0n>0. The gradient is an explicit map ggg required to be the actual gradient of fff at every point. Smoothness is the gradient Lipschitz condition, not a quadratic upper bound used as a definition. Strong convexity uses the published OnlineConvexOpt.ConvexBasics.StronglyConvexOn predicate on the whole space; its formula is the book's (3.13). Iterates are indexed from one, and index zero imposes no condition. The norm, inner product, constants, and real exponential follow the printed formulas.

The added explicit conditions are n>0n>0n>0, α>0\alpha>0α>0, and β>0\beta>0β>0 where Equation (3.6) divides by β\betaβ. Positive dimension excludes a degenerate space where curvature imposes no restriction on smoothness. The positivity of α\alphaα makes κ\kappaκ meaningful; the source treats it as a positive strong-convexity parameter. The minimizer hypothesis is the book's standing convention. There is no assumption that g(x∗)=0g(x^*)=0g(x∗)=0: that property follows from global minimality and differentiability. A gradient map unrelated to fff would trivialize the model, so the smoothness definition includes the gradient identity.

The local development needs Euclidean inner-product identities, convexity, differentiability, Lipschitz gradient bounds, and real exponential estimates. The auxiliary function and the two co-coercivity inequalities are reusable outside this chapter. Contributions should prove the exact milestone statements and the final theorem, including t=0t=0t=0 and α=β\alpha=\betaα=β, without weakening constants or substituting another gradient descent step.

Selected references

  • Sébastien Bubeck, Convex Optimization: Algorithms and Complexity, Foundations and Trends in Machine Learning 8(3–4):231–358, 2015. arXiv:1405.4980v2; DOI:10.1561/2200000050.
9 thms0 active usersReviewed
Machine LearningOptimization·Captain: mikedeng1

Convex Optimization: Algorithms and Complexity V: Projected Gradient Descent on a Convex β-Smooth Function Has Rate (3β‖x₁ − x*‖² + f(x₁) − f(x*))/tTextbook

Motivation

Many optimization problems in statistics, machine learning and operations research ask to minimize a smooth convex function over a simple convex set: a box, a ball, a simplex, a cone of positive semidefinite matrices. Projected gradient descent is the most basic first-order method for such problems. It takes a gradient step and then returns to the feasible set by Euclidean projection. Its cost per iteration is one gradient evaluation and one projection, independent of the dimension apart from the cost of manipulating vectors, which is why it remains a workhorse in very high dimension.

This mission is the fifth in a series formalizing S. Bubeck, Convex Optimization: Algorithms and Complexity (Foundations and Trends in Machine Learning 8(3–4), 2015; arXiv:1405.4980). Chapter 3 of the monograph treats "dimension-free" convex optimization. Its §3.2 first proves that gradient descent on a convex β\betaβ-smooth function on Rn\mathbb R^nRn has rate O(β∥x1−x∗∥2/t)O(\beta\|x_1-x^*\|^2/t)O(β∥x1​−x∗∥2/t) (Theorem 3.3, the subject of mission IV), and then turns to the constrained case, which is the subject of this mission. The analysis follows Nesterov's Introductory Lectures on Convex Optimization (2004).

Setting

Write x⊤yx^\top yx⊤y for the Euclidean inner product on Rn\mathbb R^nRn and ∥⋅∥\|\cdot\|∥⋅∥ for the Euclidean norm. The constraint set X⊆Rn\mathcal X\subseteq\mathbb R^nX⊆Rn is compact and convex; this is the standing assumption of Chapter 3. The Euclidean projection of y∈Rny\in\mathbb R^ny∈Rn onto X\mathcal XX is

ΠX(y)=argmin⁡z∈X∥y−z∥,\Pi_{\mathcal X}(y)=\operatorname*{argmin}_{z\in\mathcal X}\|y-z\| ,ΠX​(y)=z∈Xargmin​∥y−z∥,

which exists and is unique for a nonempty closed convex set.

A differentiable function f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R is β\betaβ-smooth on X\mathcal XX if its gradient is β\betaβ-Lipschitz there:

∥∇f(x)−∇f(y)∥≤β∥x−y∥(x,y∈X).\|\nabla f(x)-\nabla f(y)\|\le\beta\|x-y\|\qquad(x,y\in\mathcal X).∥∇f(x)−∇f(y)∥≤β∥x−y∥(x,y∈X).

It is α\alphaα-strongly convex on X\mathcal XX if f(x)−f(y)≤∇f(x)⊤(x−y)−α2∥x−y∥2f(x)-f(y)\le\nabla f(x)^\top(x-y)-\frac\alpha2\|x-y\|^2f(x)−f(y)≤∇f(x)⊤(x−y)−2α​∥x−y∥2 for x,y∈Xx,y\in\mathcal Xx,y∈X. A minimizer x∗∈Xx^*\in\mathcal Xx∗∈X of fff over X\mathcal XX is assumed to exist, as everywhere in the monograph.

Projected gradient descent with step size η=1/β\eta=1/\betaη=1/β starts at x1∈Xx_1\in\mathcal Xx1​∈X and iterates

xt+1=ΠX(xt−1β∇f(xt))(t≥1).x_{t+1}=\Pi_{\mathcal X}\Bigl(x_t-\tfrac1\beta\nabla f(x_t)\Bigr)\qquad(t\ge1).xt+1​=ΠX​(xt​−β1​∇f(xt​))(t≥1).

For a point xxx with projected step x+=ΠX(x−1β∇f(x))x^+=\Pi_{\mathcal X}\bigl(x-\frac1\beta\nabla f(x)\bigr)x+=ΠX​(x−β1​∇f(x)), the gradient mapping is gX(x)=β(x−x+)g_{\mathcal X}(x)=\beta(x-x^+)gX​(x)=β(x−x+). Without constraints it equals ∇f(x)\nabla f(x)∇f(x).

Formalization targets

Goal: Theorem 3.7 (p. 270)

For fff convex and β\betaβ-smooth on X\mathcal XX, projected gradient descent with η=1/β\eta=1/\betaη=1/β satisfies, for every t≥1t\ge1t≥1,

f(xt)−f(x∗)≤3β∥x1−x∗∥2+f(x1)−f(x∗)t.f(x_t)-f(x^*)\le\frac{3\beta\|x_1-x^*\|^2+f(x_1)-f(x^*)}{t}.f(xt​)−f(x∗)≤t3β∥x1​−x∗∥2+f(x1​)−f(x∗)​.

Milestones

  1. Lemma 3.1 (p. 263): for x∈Xx\in\mathcal Xx∈X and y∈Rny\in\mathbb R^ny∈Rn, (ΠX(y)−x)⊤(ΠX(y)−y)≤0(\Pi_{\mathcal X}(y)-x)^\top(\Pi_{\mathcal X}(y)-y)\le0(ΠX​(y)−x)⊤(ΠX​(y)−y)≤0, and hence ∥ΠX(y)−x∥2+∥y−ΠX(y)∥2≤∥y−x∥2\|\Pi_{\mathcal X}(y)-x\|^2+\|y-\Pi_{\mathcal X}(y)\|^2\le\|y-x\|^2∥ΠX​(y)−x∥2+∥y−ΠX​(y)∥2≤∥y−x∥2. The first claim is an already proved platform theorem.
  2. (3.7) (p. 270): ∇f(x)⊤(x+−y)≤gX(x)⊤(x+−y)\nabla f(x)^\top(x^+-y)\le g_{\mathcal X}(x)^\top(x^+-y)∇f(x)⊤(x+−y)≤gX​(x)⊤(x+−y) for y∈Xy\in\mathcal Xy∈X.
  3. Lemma 3.6 (p. 270): for x,y∈Xx,y\in\mathcal Xx,y∈X,
f(x+)−f(y)≤gX(x)⊤(x−y)−12β∥gX(x)∥2.f(x^+)-f(y)\le g_{\mathcal X}(x)^\top(x-y)-\frac1{2\beta}\|g_{\mathcal X}(x)\|^2 .f(x+)−f(y)≤gX​(x)⊤(x−y)−2β1​∥gX​(x)∥2.
  1. Descent and gap (pp. 270–271): f(xs+1)−f(xs)≤−12β∥gX(xs)∥2f(x_{s+1})-f(x_s)\le-\frac1{2\beta}\|g_{\mathcal X}(x_s)\|^2f(xs+1​)−f(xs​)≤−2β1​∥gX​(xs​)∥2 and f(xs+1)−f(x∗)≤∥gX(xs)∥ ∥xs−x∗∥f(x_{s+1})-f(x^*)\le\|g_{\mathcal X}(x_s)\|\,\|x_s-x^*\|f(xs+1​)−f(x∗)≤∥gX​(xs​)∥∥xs​−x∗∥.
  2. Distances decrease (p. 271): ∥xs+1−x∗∥≤∥xs−x∗∥\|x_{s+1}-x^*\|\le\|x_s-x^*\|∥xs+1​−x∗∥≤∥xs​−x∗∥.
  3. Recursion and induction (p. 271): with δs=f(xs)−f(x∗)\delta_s=f(x_s)-f(x^*)δs​=f(xs​)−f(x∗), δs+1≤δs−12β∥x1−x∗∥2δs+12\delta_{s+1}\le\delta_s-\frac{1}{2\beta\|x_1-x^*\|^2}\delta_{s+1}^2δs+1​≤δs​−2β∥x1​−x∗∥21​δs+12​, and an induction on this recursion gives the bound of Theorem 3.7.

Companion: Theorem 3.10 (p. 278)

If fff is in addition α\alphaα-strongly convex on X\mathcal XX, with condition number κ=β/α\kappa=\beta/\alphaκ=β/α, then the strengthened Lemma 3.6, display (3.14), gives for every t≥0t\ge0t≥0

∥xt+1−x∗∥2≤exp⁡(−tκ)∥x1−x∗∥2.\|x_{t+1}-x^*\|^2\le\exp\Bigl(-\frac t\kappa\Bigr)\|x_1-x^*\|^2 .∥xt+1​−x∗∥2≤exp(−κt​)∥x1​−x∗∥2.

Significance

Theorem 3.7 shows that a constraint set with a cheap projection costs nothing in the order of convergence: the O(β∥x1−x∗∥2/t)O(\beta\|x_1-x^*\|^2/t)O(β∥x1​−x∗∥2/t) rate of unconstrained gradient descent survives, with a constant that depends on f(x1)−f(x∗)f(x_1)-f(x^*)f(x1​)−f(x∗). Lemma 3.6 is the reusable part. It isolates the gradient mapping as the quantity that measures progress under constraints, and the same inequality, with a strong-convexity term added, gives the linear rate of Theorem 3.10. It is also the starting point of the analysis of proximal gradient methods for composite objectives.

All of these results are classical and proved in the textbook. As far as a search of the platform shows, none of them is formalized there. A related platform theorem on constrained gradient descent for well-conditioned functions (from Hazan's Introduction to Online Convex Optimization) bounds function values with a different exponent. It is not Theorem 3.10, which bounds distances with rate exp⁡(−t/κ)\exp(-t/\kappa)exp(−t/κ). This mission adds machine-checked statements of the constrained analysis in Bubeck's formulation, with the book's constants. The definitions of β\betaβ-smoothness on a set, the gradient mapping and the run predicate can be reused by later missions on accelerated and proximal methods.

Difficulty

The obvious attempt is to copy the unconstrained proof, which rests on the descent inequality f(x−1β∇f(x))≤f(x)−12β∥∇f(x)∥2f(x-\frac1\beta\nabla f(x))\le f(x)-\frac1{2\beta}\|\nabla f(x)\|^2f(x−β1​∇f(x))≤f(x)−2β1​∥∇f(x)∥2. That inequality fails under constraints: the projection can cut the step short, so the decrease in fff is not controlled by ∥∇f(x)∥\|\nabla f(x)\|∥∇f(x)∥. At a boundary minimizer, for instance, ∇f(x∗)≠0\nabla f(x^*)\neq0∇f(x∗)=0 while no step makes progress. The proof has to replace the gradient by the gradient mapping throughout. It also has to show separately that the iterates do not move away from x∗x^*x∗, a fact that came for free without constraints from co-coercivity of the gradient (display (3.6)).

The closing induction is not routine either. The step from sss to s+1s+1s+1 works only from s=2s=2s=2 on, and the step from 111 to 222 needs a direct computation that uses the term f(x1)−f(x∗)f(x_1)-f(x^*)f(x1​)−f(x∗) in the numerator.

Formalization scope

  • Space. Rn\mathbb R^nRn is EuclideanSpace ℝ (Fin n), and x⊤yx^\top yx⊤y is ⟪x, y⟫_ℝ.
  • Constraint set and minimizer. Every statement assumes X\mathcal XX compact (IsCompact X) and convex (Convex ℝ X), the standing assumption of Chapter 3. Every statement about a run assumes a minimizer x∗∈Xx^*\in\mathcal Xx∗∈X with f(x∗)≤f(y)f(x^*)\le f(y)f(x∗)≤f(y) for all y∈Xy\in\mathcal Xy∈X, the monograph's standing assumption.
  • Gradient. The gradient is an explicit map g with HasGradientAt f (g x) x at every point of Rn\mathbb R^nRn, so ∇f(x)\nabla f(x)∇f(x) is defined at boundary points of X\mathcal XX. β\betaβ-smoothness on X\mathcal XX (IsBetaSmoothOn X f g β) asks this together with β≥0\beta\ge0β≥0 and the Lipschitz bound on X\mathcal XX only. It is not the quadratic upper bound (3.4), which is a consequence.
  • Strong convexity. It is the published predicate OnlineConvexOpt.ConvexBasics.StronglyConvexOn X f g α, which is display (3.13) with the same gradient map. Display (3.14) and Theorem 3.10 use α>0\alpha>0α>0.
  • Projection. The projection is the published relation IsMetricProjection X y p: p∈Xp\in\mathcal Xp∈X and ∥y−p∥≤∥y−z∥\|y-p\|\le\|y-z\|∥y−p∥≤∥y−z∥ for every z∈Xz\in\mathcal Xz∈X. No choice function is used.
  • Run. A run is IsProjGDRun X g β x: β>0\beta>0β>0, x1∈Xx_1\in\mathcal Xx1​∈X, and for every t≥1t\ge1t≥1 the iterate xt+1x_{t+1}xt+1​ is a projection of xt−β−1g(xt)x_t-\beta^{-1}g(x_t)xt​−β−1g(xt​). Indices start at 111 as in the book, and x 0 is unused.
  • Gradient mapping. gradMap β x xplus =β(x−x+)=\beta(x-x^+)=β(x−x+) takes the projected point of the run as an argument.
  • Positivity. β>0\beta>0β>0 is assumed, as the step size 1/β1/\beta1/β requires, and α>0\alpha>0α>0 for Theorem 3.10, as κ=β/α\kappa=\beta/\alphaκ=β/α requires.
  • The recursion. The recursion of milestone 6 is stated multiplied by 2β∥x1−x∗∥22\beta\|x_1-x^*\|^22β∥x1​−x∗∥2, so the case x1=x∗x_1=x^*x1​=x∗ needs no division.
  • No trivial readings. A run predicate with a free step size, or β\betaβ-smoothness replaced by the quadratic bound (3.4), would change the content. Both are excluded: the step is fixed to 1/β1/\beta1/β, and smoothness is the Lipschitz condition on the gradient.

Contributions are welcome on any milestone. Lemma 3.1 and (3.7) need only the variational characterization of the projection. Lemma 3.6 needs the quadratic upper bound for a function whose gradient is Lipschitz on a convex set, together with the first-order characterization of convexity relative to a set. Both are of independent use. The induction milestone is a self-contained statement about real sequences.

Selected references

  • S. Bubeck, Convex Optimization: Algorithms and Complexity, Foundations and Trends in Machine Learning 8(3–4):231–358, 2015. arXiv:1405.4980
  • Y. Nesterov, Introductory Lectures on Convex Optimization: A Basic Course, Kluwer Academic Publishers, 2004. doi:10.1007/978-1-4419-8853-9
  • E. Hazan, Introduction to Online Convex Optimization, 2nd ed., MIT Press, 2022. arXiv:1909.05207
12 thms0 active usersReviewed
Machine LearningOptimization·Captain: mikedeng1

Convex Optimization: Algorithms and Complexity IV: Gradient Descent on a Convex β-Smooth Function Has Rate 2β‖x₁ − x*‖²/(t − 1)Textbook

Motivation

Gradient descent goes back to Cauchy (1847). It is the simplest method for minimizing a differentiable function, and most of the first-order methods in large-scale optimization and machine learning are variants of it. Its appeal in high dimension is that its oracle complexity, the number of gradient evaluations needed to reach a given accuracy, can be bounded independently of the dimension. For a merely Lipschitz convex function the projected subgradient method needs on the order of 1/ε21/\varepsilon^21/ε2 steps to reach accuracy ε\varepsilonε (Theorem 3.2 of the book). Under a smoothness assumption gradient descent does much better, because the gradients shrink near the optimum and the steps adapt automatically.

This mission formalizes the basic result of that kind: Theorem 3.3 of S. Bubeck, Convex Optimization: Algorithms and Complexity (Foundations and Trends in Machine Learning 8(3–4), 2015; arXiv:1405.4980v2). It states that gradient descent with step size 1/β1/\beta1/β on a convex β\betaβ-smooth function on Rn\mathbb R^nRn has optimality gap O(1/t)O(1/t)O(1/t) after ttt steps. The result and its proof are standard; versions appear in Nesterov's Introductory Lectures on Convex Optimization (2004, §2.1.5). It is the fourth mission in a series that formalizes the capstone results of Bubeck's monograph.

Setting

Write Rn\mathbb R^nRn for Euclidean space with inner product x⊤yx^\top yx⊤y and norm ∥⋅∥\|\cdot\|∥⋅∥. Let f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R be differentiable with gradient ∇f\nabla f∇f.

  • fff is convex if f((1−λ)x+λy)≤(1−λ)f(x)+λf(y)f((1-\lambda)x+\lambda y)\le(1-\lambda)f(x)+\lambda f(y)f((1−λ)x+λy)≤(1−λ)f(x)+λf(y) for all x,yx,yx,y and λ∈[0,1]\lambda\in[0,1]λ∈[0,1].
  • For β≥0\beta\ge0β≥0, fff is β\betaβ-smooth if its gradient is β\betaβ-Lipschitz:
∥∇f(x)−∇f(y)∥≤β∥x−y∥for all x,y∈Rn.\|\nabla f(x)-\nabla f(y)\|\le\beta\|x-y\|\qquad\text{for all }x,y\in\mathbb R^n.∥∇f(x)−∇f(y)∥≤β∥x−y∥for all x,y∈Rn.
  • A minimizer is a point x∗x^*x∗ with f(x∗)≤f(y)f(x^*)\le f(y)f(x∗)≤f(y) for every yyy. Throughout the book a minimizer is assumed to exist.
  • Gradient descent with step size η>0\eta>0η>0, started at x1∈Rnx_1\in\mathbb R^nx1​∈Rn, is the sequence
xt+1=xt−η∇f(xt),t≥1.(3.1)x_{t+1}=x_t-\eta\nabla f(x_t),\qquad t\ge1. \tag{3.1}xt+1​=xt​−η∇f(xt​),t≥1.(3.1)

The optimality gaps are δs=f(xs)−f(x∗)≥0\delta_s=f(x_s)-f(x^*)\ge0δs​=f(xs​)−f(x∗)≥0.

Formalization targets

Goal: Theorem 3.3 (p. 267)

If fff is convex and β\betaβ-smooth with β>0\beta>0β>0, x∗x^*x∗ is a minimizer, and (xt)(x_t)(xt​) is gradient descent with η=1/β\eta=1/\betaη=1/β, then for every t≥2t\ge2t≥2

f(xt)−f(x∗)≤2β∥x1−x∗∥2t−1.f(x_t)-f(x^*)\le\frac{2\beta\|x_1-x^*\|^2}{t-1}.f(xt​)−f(x∗)≤t−12β∥x1​−x∗∥2​.

Milestones

These are the statements the book's proof uses, in the book's order:

  1. Lemma 3.4 (p. 267). For any β\betaβ-smooth fff, with no convexity: ∣f(x)−f(y)−∇f(y)⊤(x−y)∣≤β2∥x−y∥2|f(x)-f(y)-\nabla f(y)^\top(x-y)|\le\frac\beta2\|x-y\|^2∣f(x)−f(y)−∇f(y)⊤(x−y)∣≤2β​∥x−y∥2.
  2. (3.4) (p. 267). For convex β\betaβ-smooth fff: 0≤f(x)−f(y)−∇f(y)⊤(x−y)≤β2∥x−y∥20\le f(x)-f(y)-\nabla f(y)^\top(x-y)\le\frac\beta2\|x-y\|^20≤f(x)−f(y)−∇f(y)⊤(x−y)≤2β​∥x−y∥2.
  3. (3.5) (p. 267). For convex fff, one step of length 1/β1/\beta1/β decreases fff by at least 12β∥∇f(x)∥2\frac1{2\beta}\|\nabla f(x)\|^22β1​∥∇f(x)∥2.
  4. Lemma 3.5 (p. 268). If (3.4) holds, then f(x)−f(y)≤∇f(x)⊤(x−y)−12β∥∇f(x)−∇f(y)∥2f(x)-f(y)\le\nabla f(x)^\top(x-y)-\frac1{2\beta}\|\nabla f(x)-\nabla f(y)\|^2f(x)−f(y)≤∇f(x)⊤(x−y)−2β1​∥∇f(x)−∇f(y)∥2.
  5. (3.6) (p. 269). Co-coercivity: (∇f(x)−∇f(y))⊤(x−y)≥1β∥∇f(x)−∇f(y)∥2(\nabla f(x)-\nabla f(y))^\top(x-y)\ge\frac1\beta\|\nabla f(x)-\nabla f(y)\|^2(∇f(x)−∇f(y))⊤(x−y)≥β1​∥∇f(x)−∇f(y)∥2.
  6. Distances decrease (proof of Theorem 3.3, p. 269). ∥xs+1−x∗∥≤∥xs−x∗∥\|x_{s+1}-x^*\|\le\|x_s-x^*\|∥xs+1​−x∗∥≤∥xs​−x∗∥ for every s≥1s\ge1s≥1.
  7. The recursion (p. 268). δs+1≤δs−12β∥x1−x∗∥2δs2\delta_{s+1}\le\delta_s-\frac{1}{2\beta\|x_1-x^*\|^2}\delta_s^2δs+1​≤δs​−2β∥x1​−x∗∥21​δs2​.
  8. From the recursion to the rate (p. 269). For ω>0\omega>0ω>0 and non-negative reals, ωδs2+δs+1≤δs\omega\delta_s^2+\delta_{s+1}\le\delta_sωδs2​+δs+1​≤δs​ for all s≥1s\ge 1s≥1 implies 1/δt≥ω(t−1)1/\delta_t\ge\omega(t-1)1/δt​≥ω(t−1).

Stronger companion: footnote 4 (p. 269)

Under the same hypotheses, f(xt)−f(x∗)≤2β∥x1−x∗∥2/(t+3)f(x_t)-f(x^*)\le 2\beta\|x_1-x^*\|^2/(t+3)f(xt​)−f(x∗)≤2β∥x1​−x∗∥2/(t+3) for every t≥1t\ge1t≥1.

Significance

Theorem 3.3 is the reference rate for first-order methods on smooth convex problems. Several later results in the book are measured against it. Nesterov's accelerated gradient descent (§3.7) improves 1/t1/t1/t to 1/t21/t^21/t2, the lower bounds of §3.5 show that 1/t21/t^21/t2 cannot be beaten by any black-box first-order method, and adding strong convexity (§3.4) upgrades 1/t1/t1/t to a linear rate. Its ingredients are reused throughout the book and the optimization literature: the descent lemma (Lemma 3.4), the one-step improvement (3.5) and co-coercivity (3.6). Co-coercivity is the finite-dimensional case of the Baillon–Haddad theorem.

The result is classical and fully proved on paper. To our knowledge Mathlib does not contain this rate for gradient descent on convex smooth functions, and no published Prove2Me theorem states it. The mission provides it, together with Lemma 3.4 and co-coercivity as reusable statements on EuclideanSpace ℝ (Fin n). These are the facts that later missions of the series on projected gradient descent, strong convexity and acceleration need. Formalizing the improved constant of footnote 4 is a welcome addition.

Difficulty

Two steps are not routine. The first is Lemma 3.4, where the book integrates the gradient along a segment. In Lean this needs a mean-value or fundamental-theorem-of-calculus argument for a function on a Euclidean space, together with a Cauchy–Schwarz estimate, and Mathlib's HasGradientAt interface has to be connected to one-variable derivatives along lines.

The second is the monotonicity of ∥xs−x∗∥\|x_s-x^*\|∥xs​−x∗∥. The natural first attempt is to telescope the one-step improvement (3.5) together with the convexity bound δs≤∥xs−x∗∥∥∇f(xs)∥\delta_s\le\|x_s-x^*\|\|\nabla f(x_s)\|δs​≤∥xs​−x∗∥∥∇f(xs​)∥. That gives a recursion involving ∥xs−x∗∥\|x_s-x^*\|∥xs​−x∗∥, which is not controlled by ∥x1−x∗∥\|x_1-x^*\|∥x1​−x∗∥ without further work. Making the recursion uniform requires co-coercivity (3.6), which comes from Lemma 3.5. That lemma's hypothesis is the two-sided inequality (3.4), not smoothness directly. The final numerical step divides by the gaps δs\delta_sδs​, so zero gaps need separate handling.

Formalization scope

  • Rn\mathbb R^nRn is EuclideanSpace ℝ (Fin n), and x⊤yx^\top yx⊤y is ⟪x, y⟫_ℝ.
  • The gradient is an explicit map g:Rn→Rng:\mathbb R^n\to\mathbb R^ng:Rn→Rn with the hypothesis ∀ x, HasGradientAt f (g x) x.
  • β\betaβ-smoothness (IsBetaSmooth f g β) is the book's definition: β≥0\beta\ge0β≥0, the gradient-existence hypothesis, and the Lipschitz bound ∥g(x)−g(y)∥≤β∥x−y∥\|g(x)-g(y)\|\le\beta\|x-y\|∥g(x)−g(y)∥≤β∥x−y∥. The book's "continuously differentiable" follows from it.
  • Convexity is Mathlib's ConvexOn ℝ Set.univ f. A minimizer is a point xstar with ∀ y, f xstar ≤ f y; its existence is the book's standing assumption, and ∇f(x∗)=0\nabla f(x^*)=0∇f(x∗)=0 is derived, not assumed.
  • A gradient-descent run (IsGDRun g η x) is a sequence x : ℕ → ℝⁿ with η>0\eta>0η>0 and xt+1=xt−ηg(xt)x_{t+1}=x_t-\eta g(x_t)xt+1​=xt​−ηg(xt​) for every t≥1t\ge1t≥1. The book's x1x_1x1​ is x 1, and index 000 is unused. Every theorem quantifies over all runs with η=1/β\eta=1/\betaη=1/β.

Disclosed side conditions:

  • β>0\beta>0β>0 wherever the page divides by β\betaβ. Convexity is retained for (3.5), as in its source context.
  • t≥2t\ge2t≥2 in the goal, where the page's bound has denominator t−1t-1t−1.
  • Statements in which the page divides by δs\delta_sδs​ or by ∥x1−x∗∥2\|x_1-x^*\|^2∥x1​−x∗∥2 are multiplied through, so that they stay true and meaningful when those quantities vanish.

A trivializing formalization is ruled out. Smoothness is the Lipschitz condition on the gradient, so Lemma 3.4 and (3.4) are not restatements of the definition, as they would be if the quadratic upper bound (3.4) were taken as the definition of smoothness. The run predicate also fixes the step size 1/β1/\beta1/β.

A complete development needs:

  • the segment integral or mean-value estimate for HasGradientAt functions;
  • first-order characterizations of convexity for differentiable functions;
  • elementary inner-product algebra.

Lemma 3.4, Lemma 3.5 and (3.6) are reusable well beyond this mission. Proofs of any milestone are welcome independently.

Selected references

  • S. Bubeck, Convex Optimization: Algorithms and Complexity, Foundations and Trends in Machine Learning 8(3–4):231–357, 2015. arXiv:1405.4980v2; §3.2, pp. 266–269.
  • A. Cauchy, Méthode générale pour la résolution des systèmes d'équations simultanées, C. R. Acad. Sci. Paris 25:536–538, 1847.
  • Y. Nesterov, Introductory Lectures on Convex Optimization: A Basic Course, Kluwer, 2004. doi:10.1007/978-1-4419-8853-9
  • J.-B. Baillon and G. Haddad, Quelques propriétés des opérateurs angle-bornés et n-cycliquement monotones, Israel J. Math. 26:137–150, 1977. doi:10.1007/BF03007664
10 thms0 active usersReviewed
PreviousPage 11 of 11Next

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