Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Corollary 3.3 — expected suboptimality Q(β)/k for the SQN method (corrected constant)

Proved
StochQuasiNewton.SQN.sqn_expected_suboptimality

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

convergence-ratel-bfgsp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1quasi-newtonstochastic-optimization

Let f1,…,fNf_1,\dots,f_Nf1​,…,fN​ be C2C^2C2 functions on Rn\mathbb R^nRn, F=1N∑ifiF=\frac1N\sum_if_iF=N1​∑i​fi​, and let w∗w^*w∗ minimize FFF. Let M,L≥1M,L\ge1M,L≥1, 1≤b≤N1\le b\le N1≤b≤N, 1≤bH≤N1\le b_H\le N1≤bH​≤N, 0<λ0<\lambda0<λ, 0<Λ0<\Lambda0<Λ, and assume λI≺∇2FSH(w)≺ΛI\lambda I\prec\nabla^2F_{\mathcal S_H}(w)\prec\Lambda IλI≺∇2FSH​​(w)≺ΛI for all www and all samples of size bHb_HbH​ (3.3). Then there are constants 0<μ1≤μ20<\mu_1\le\mu_20<μ1​≤μ2​, depending only on these data, such that:

  1. along every run of Algorithm 1 with gradient samples of size bbb and Hessian samples of size bHb_HbH​ whose correction vectors sts_tst​ (t≥1t\ge1t≥1) are nonzero, the matrix applied at every iteration k≥1k\ge1k≥1 (the identity for k≤2Lk\le2Lk≤2L, otherwise HtH_tHt​) lies strictly between μ1I\mu_1Iμ1​I and μ2I\mu_2Iμ2​I;
  2. for every β>1/(2μ1λ)\beta>1/(2\mu_1\lambda)β>1/(2μ1​λ), every γ\gammaγ and every w1w^1w1: if, on every sample history, the correction vectors are nonzero and 1N∑i=1N∥∇fi(wk)∥2≤γ2\frac1N\sum_{i=1}^N\|\nabla f_i(w^k)\|^2\le\gamma^2N1​∑i=1N​∥∇fi​(wk)∥2≤γ2 at every iterate, then Algorithm 1 with αk=β/k\alpha^k=\beta/kαk=β/k satisfies, for every k≥1k\ge1k≥1,
E[F(wk)−F(w∗)]≤Qc(β)k,Qc(β)=max⁡{Λμ22β2γ22(2μ1λβ−1), Λμ22β2γ2, F(w1)−F(w∗)},E[F(w^k)-F(w^*)]\le\frac{Q_c(\beta)}k,\qquad Q_c(\beta)=\max\Big\{\frac{\Lambda\mu_2^2\beta^2\gamma^2}{2(2\mu_1\lambda\beta-1)},\ \Lambda\mu_2^2\beta^2\gamma^2,\ F(w^1)-F(w^*)\Big\},E[F(wk)−F(w∗)]≤kQc​(β)​,Qc​(β)=max{2(2μ1​λβ−1)Λμ22​β2γ2​, Λμ22​β2γ2, F(w1)−F(w∗)},

where the expectation is over independent samples Sk\mathcal S_kSk​, uniform among the bbb-element subsets, and SH,t\mathcal S_{H,t}SH,t​, uniform among the bHb_HbH​-element subsets.

This is the paper's main convergence result: the SQN method attains the same O(1/k)O(1/k)O(1/k) expected suboptimality rate as stochastic gradient descent.

Formalization Note Corrected constant: the paper's Q(β)Q(\beta)Q(β) (3.24) lacks the middle entry and the bound is false with it (see Theorem 3.2). Assumption 1(3) is imposed at the iterates, with ξ\xiξ uniform over the training set as in (1.1)–(1.3). μ2\mu_2μ2​ is undefined in the paper's corollary; it is Lemma 3.1's constant, and both constants also cover the stochastic gradient steps (H=IH=IH=I) that Algorithm 1 takes for k≤2Lk\le2Lk≤2L; the paper's "∥Hk−1∥≤1/μ1\|H_k^{-1}\|\le1/\mu_1∥Hk−1​∥≤1/μ1​" is implied by clause 1. st≠0s_t\neq0st​=0 is assumed because Algorithm 2 is undefined otherwise. The proof in the paper refers to "step 10 of Algorithm 1"; the iteration is step 8.

Preamble
import Mathlib
import Definitions.Def_StochQuasiNewton_SQN_FiniteSum
import Definitions.Def_StochQuasiNewton_SQN_LBFGS
import Definitions.Def_StochQuasiNewton_SQN_Algorithm
import Definitions.Def_StochQuasiNewton_SQN_NewtonLike

open scoped RealInnerProductSpace
Formal statement
namespace StochQuasiNewton.SQN

/-- Corollary 3.3 (corrected constant): for the finite-sum problem (1.3) with `C²` losses whose
subsampled Hessians of size `b_H` satisfy `λ I ≺ ∇²F_{S_H}(w) ≺ Λ I` (3.3), and a minimizer `w*`
of `F`, there are constants `0 < μ₁ ≤ μ₂`, depending only on the problem data, such that
(a) along every run of Algorithm 1 whose correction vectors `s_t` (`t ≥ 1`) are nonzero, every
matrix applied at an iteration `k ≥ 1` (the identity or `H_t`) satisfies `μ₁ I ≺ · ≺ μ₂ I`; and
(b) for every `β > 1/(2 μ₁ λ)`, every `γ` and every `w¹`: if on every sample history the
correction vectors are nonzero and `(1/N) ∑_i ‖∇f_i(w^k)‖² ≤ γ²` at every iterate, then with
`α^k = β/k`, `E[F(w^k) − F(w*)] ≤ Q_c(β)/k` for every `k ≥ 1`, the expectation being over
independent uniform samples `S_k` of size `b` and `S_{H,t}` of size `b_H`. -/
theorem sqn_expected_suboptimality {n N : ℕ} (f : Fin N → EuclideanSpace ℝ (Fin n) → ℝ)
    (hf : ∀ i, ContDiff ℝ 2 (f i)) (lam Lam : ℝ) (hlam : 0 < lam) (hLam : 0 < Lam)
    (M L b bH : ℕ) (hM : 1 ≤ M) (hL : 1 ≤ L) (hb : 1 ≤ b) (hbN : b ≤ N) (hbH : 1 ≤ bH)
    (hbHN : bH ≤ N)
    (hHess : ∀ SH : Finset (Fin N), SH.card = bH → ∀ w : EuclideanSpace ℝ (Fin n),
      StrictLoewnerBounds lam Lam (subsampledHessian f SH w))
    (wstar : EuclideanSpace ℝ (Fin n)) (hwstar : IsMinOn (objective f) Set.univ wstar) :
    ∃ μ₁ μ₂ : ℝ, 0 < μ₁ ∧ μ₁ ≤ μ₂ ∧
      (∀ (α : ℕ → ℝ) (w1 : EuclideanSpace ℝ (Fin n)) (S SH : ℕ → Finset (Fin N)),
        (∀ k, (S k).card = b) → (∀ t, (SH t).card = bH) →
        (∀ t, 1 ≤ t → sqnPairS f M L α w1 S SH t ≠ 0) →
        ∀ k, 1 ≤ k →
          (sqnAppliedMatrix f M L α w1 S SH k -
              μ₁ • (1 : Matrix (Fin n) (Fin n) ℝ)).PosDef ∧
          (μ₂ • (1 : Matrix (Fin n) (Fin n) ℝ) -
              sqnAppliedMatrix f M L α w1 S SH k).PosDef) ∧
      (∀ (β γ : ℝ) (w1 : EuclideanSpace ℝ (Fin n)), 1 / (2 * μ₁ * lam) < β →
        (∀ S SH : ℕ → Finset (Fin N), (∀ k, (S k).card = b) → (∀ t, (SH t).card = bH) →
          ∀ t, 1 ≤ t → sqnPairS f M L (fun k => β / k) w1 S SH t ≠ 0) →
        (∀ S SH : ℕ → Finset (Fin N), (∀ k, (S k).card = b) → (∀ t, (SH t).card = bH) →
          ∀ k, 1 ≤ k →
            (1 / (N : ℝ)) * ∑ i, ‖gradient (f i) (sqnIterate f M L (fun k => β / k) w1 S SH k)‖ ^ 2
              ≤ γ ^ 2) →
        ∀ k, 1 ≤ k →
          sampleExpectation N b bH k (fun S SH =>
              objective f (sqnIterate f M L (fun k => β / k) w1 S SH k) - objective f wstar) ≤
            rateConstant Lam lam μ₁ μ₂ β γ (objective f w1 - objective f wstar) / k) := by sorry

end StochQuasiNewton.SQN
Source
Byrd, Hansen, Nocedal, Singer, A Stochastic Quasi-Newton Method for Large-Scale Optimization, SIAM J. Optim. 26(2) (2016), p. 1018, Corollary 3.3, Eqs. (3.23)–(3.24)
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 1, 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