Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — the expected dual increase of one SDCA step is at least s/ns/ns/n times the duality gap, minus a variance term

Proved
SDCA.Smooth.lemma_1

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

coordinate-ascentdualityp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-optimization

Let x1,…,xn∈Rdx_1,\dots,x_n\in\mathbb R^dx1​,…,xn​∈Rd with n≥1n\ge1n≥1, convex losses φ1,…,φn\varphi_1,\dots,\varphi_nφ1​,…,φn​, and λ>0\lambda>0λ>0. Assume every conjugate φi∗\varphi_i^*φi∗​ is γ\gammaγ-strongly convex for some γ≥0\gamma\ge0γ≥0 (γ=0\gamma=0γ=0 is allowed). Let Δ\DeltaΔ be an SDCA step, and for every iii and a∈Ra\in\mathbb Ra∈R let ui(a)u_i(a)ui​(a) be a number with −ui(a)∈∂φi(a)-u_i(a)\in\partial\varphi_i(a)−ui​(a)∈∂φi​(a).

Let α∈Rn\alpha\in\mathbb R^nα∈Rn be a dual-feasible point (φi∗(−αi)<+∞\varphi_i^*(-\alpha_i)<+\inftyφi∗​(−αi​)<+∞ for all iii), w=w(α)w=w(\alpha)w=w(α), and let one SDCA iteration from α\alphaα pick the coordinate iii uniformly from {1,…,n}\{1,\dots,n\}{1,…,n} and move to α+=α+Δ(α,i)ei\alpha^+=\alpha+\Delta(\alpha,i)e_iα+=α+Δ(α,i)ei​. Then every D(α+Δ(α,i)ei)D(\alpha+\Delta(\alpha,i)e_i)D(α+Δ(α,i)ei​) is finite and, for every s∈(0,1]s\in(0,1]s∈(0,1],

Ei[D(α+)]−D(α) ≥ sn(P(w)−D(α))−(sn)2G2λ,G=1n∑i=1n(∥xi∥2−γ(1−s)λns)(ui(w⊤xi)−αi)2.\mathbb E_i\big[D(\alpha^+)\big]-D(\alpha)\ \ge\ \frac sn\big(P(w)-D(\alpha)\big)-\Big(\frac sn\Big)^2\frac{G}{2\lambda},\qquad G=\frac1n\sum_{i=1}^n\Big(\|x_i\|^2-\frac{\gamma(1-s)\lambda n}{s}\Big)\big(u_i(w^\top x_i)-\alpha_i\big)^2 .Ei​[D(α+)]−D(α) ≥ ns​(P(w)−D(α))−(ns​)22λG​,G=n1​i=1∑n​(∥xi​∥2−sγ(1−s)λn​)(ui​(w⊤xi​)−αi​)2.

This is the key estimate of the paper: the expected increase of the dual objective in one step is bounded below by a fraction of the duality gap. With α=α(t−1)\alpha=\alpha^{(t-1)}α=α(t−1) and an outer expectation over the history it is the paper's Lemma 1.

Formalization Note The statement is the one-step (conditional) form: it holds at every feasible dual point, and averaging over the history gives the printed form with E[⋅]\mathbb E[\cdot]E[⋅] over the run. Ei\mathbb E_iEi​ is 1n∑i\frac1n\sum_in1​∑i​. Dual values are EReal and are converted to reals only where finite (the input point by feasibility, the updated points by the first conjunct). The range s∈(0,1]s\in(0,1]s∈(0,1] excludes s=0s=0s=0, where GGG divides by sss. −u∈∂φi(a)-u\in\partial\varphi_i(a)−u∈∂φi​(a) is the subgradient inequality.

Preamble
import Mathlib
import Definitions.Def_SDCA_Smooth_Model
open scoped InnerProductSpace
Formal statement
namespace SDCA.Smooth

/-- Lemma 1, p. 12 (Shalev-Shwartz–Zhang, arXiv:1209.1873v2), in conditional one-step form.
Assume every `φᵢ*` is `γ`-strongly convex (`γ ≥ 0`), `Δ` is an SDCA step, and `u i a` is a choice
with `−u i a ∈ ∂φᵢ(a)`. Then at every dual-feasible point `α` (all `φᵢ*(−αᵢ) < ∞`), for a coordinate
`i` drawn uniformly from `{1, …, n}` and every `s ∈ (0, 1]`:
the updated dual values are finite, and
`E_i[D(α + Δαᵢ eᵢ)] − D(α) ≥ (s/n)(P(w(α)) − D(α)) − (s/n)² G/(2λ)`, where
`G = (1/n) ∑ᵢ (‖xᵢ‖² − γ(1 − s)λn/s) (uᵢ − αᵢ)²` and `uᵢ = u i (w(α)ᵀ xᵢ)`. -/
theorem lemma_1 {d n : ℕ} (hn : 0 < n) (x : Fin n → EuclideanSpace ℝ (Fin d))
    (φ : Fin n → ℝ → ℝ) (hconv : ∀ i, ConvexOn ℝ Set.univ (φ i))
    (lam : ℝ) (hlam : 0 < lam)
    (γ : ℝ) (hγ : 0 ≤ γ) (hsc : ∀ i, ConjStronglyConvex (φ i) γ)
    (Δ : (Fin n → ℝ) → Fin n → ℝ) (hΔ : IsSDCAStep lam x φ Δ)
    (u : Fin n → ℝ → ℝ) (hu : ∀ i a z, φ i a + (-(u i a)) * (z - a) ≤ φ i z)
    (α : Fin n → ℝ) (hfeas : ∀ i, SDCA.Lipschitz.conj (φ i) (-α i) ≠ ⊤)
    (s : ℝ) (hs0 : 0 < s) (hs1 : s ≤ 1) :
    (∀ i, dual lam x φ (SDCA.Lipschitz.sdcaStep Δ α i) ≠ ⊥) ∧
    (1 / (n : ℝ)) * ∑ i, (dual lam x φ (SDCA.Lipschitz.sdcaStep Δ α i)).toReal - (dual lam x φ α).toReal ≥
      s / n * (primal lam x φ (wOf lam x α) - (dual lam x φ α).toReal) -
        (s / n) ^ 2 *
          ((1 / (n : ℝ)) * ∑ i, (‖x i‖ ^ 2 - γ * (1 - s) * lam * n / s) *
            (u i ⟪wOf lam x α, x i⟫_ℝ - α i) ^ 2) / (2 * lam) := by sorry

end SDCA.Smooth
Source
Shalev-Shwartz and Zhang, Stochastic Dual Coordinate Ascent Methods for Regularized Loss Minimization, arXiv:1209.1873v2, §7.1, p. 12, Lemma 1
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me