Proof of Theorem 3.2, first display — one-step chain of projected subgradient descent
ProvedBubeckCO.PSGD.psgd_one_stepconvex-optimizationprojected-subgradient-descentsubgradient-method
Let , , a step size , a point with a subgradient (Definition 1.2), and as in (3.2). Then for every ,
This per-step estimate is the first step of the proof of Theorem 3.2; combined with Lemma 3.1 and summed over it gives the bound on .
Formalization Note The chain is stated as a conjunction of one inequality and three equalities. is the book's step-size convention (p. 262); the second link would be false at under Lean's convention .
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)