Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4 — the merit function W decreases along NASA up to the remainders r^{k+1}

Proved
NestedSA.NASA.lemma_4

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

lyapunov-functionp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-approximation

Let f,gf,gf,g satisfy Assumption 2, let XXX be closed and convex with F=f∘gF=f\circ gF=f∘g bounded below on XXX, and let xk,zk,ukx^k,z^k,u^kxk,zk,uk be generated by Algorithm 1 with constant βk≡β>0\beta_k\equiv\beta>0βk​≡β>0 from arbitrary oracle outputs Gk+1,sk+1,Jk+1G^{k+1},s^{k+1},J^{k+1}Gk+1,sk+1,Jk+1 (no probability is involved). Let c,γ>0c,\gamma>0c,γ>0 satisfy (3.16),

2(aβ−c)(γb−2c)≥Lg2(aL∇f+γ)2,aβ−c≥0,γb−2c≥0,2(a\beta-c)(\gamma b-2c)\ge L_g^2(aL_{\nabla f}+\gamma)^2,\qquad a\beta-c\ge0,\quad \gamma b-2c\ge0,2(aβ−c)(γb−2c)≥Lg2​(aL∇f​+γ)2,aβ−c≥0,γb−2c≥0,

and let τk≤1\tau_k\le1τk​≤1 and bτk≤1b\tau_k\le1bτk​≤1 for all kkk. With dk=yk−xkd^k=y^k-x^kdk=yk−xk and the remainder rk+1r^{k+1}rk+1 of (3.18) (with the factor γ\gammaγ on the noise term, see below), for every N≥1N\ge1N≥1

c∑k=0N−1τk(∥dk∥2+∥g(xk)−uk∥2)≤W(x0,z0,u0)+∑k=0N−1rk+1.c\sum_{k=0}^{N-1}\tau_k\big(\|d^k\|^2+\|g(x^k)-u^k\|^2\big)\le W(x^0,z^0,u^0)+\sum_{k=0}^{N-1}r^{k+1}.ck=0∑N−1​τk​(∥dk∥2+∥g(xk)−uk∥2)≤W(x0,z0,u0)+k=0∑N−1​rk+1.

This is the deterministic core of the analysis: the merit function WWW decreases by a multiple of the step and tracking errors, up to second-order and martingale-type remainders whose expectations Proposition 1 bounds.

Formalization Note The paper prints b2∥g(xk+1)−Gk+1∥2b^2\|g(x^{k+1})-G^{k+1}\|^2b2∥g(xk+1)−Gk+1∥2 in rk+1r^{k+1}rk+1; its proof establishes γb2∥g(xk+1)−Gk+1∥2\gamma b^2\|g(x^{k+1})-G^{k+1}\|^2γb2∥g(xk+1)−Gk+1∥2, and the printed version is false (with f≡g≡0f\equiv g\equiv0f≡g≡0, z0=0z^0=0z0=0, u0=0u^0=0u0=0, sk≡0s^{k}\equiv0sk≡0, γ=2\gamma=2γ=2, c=1c=1c=1, a=b=β=1a=b=\beta=1a=b=β=1, N=2N=2N=2, τ1=1\tau_1=1τ1​=1, G1≠0G^1\ne0G1=0, G2=0G^2=0G2=0 the left side is twice the printed right side). The hypotheses τk≤1\tau_k\le1τk​≤1 (so that xk∈Xx^k\in Xxk∈X), bτk≤1b\tau_k\le1bτk​≤1, and the nonnegativity of both factors in (3.16) are used by the proof but not printed in the lemma.

Preamble
import Mathlib
import Definitions.Def_SpectralProjGrad_Shared_IsProjOnto
import Definitions.Def_NestedSA_NASA_Basic
import Definitions.Def_NestedSA_NASA_Model
Formal statement
namespace NestedSA.NASA

/-- Lemma 4, (3.17) (p. 10), pathwise and with the corrected remainder `r^{k+1}` (`rTerm`, factor `γb²` on the
noise term). Let `x, z, u` be generated by Algorithm 1 from any oracle outputs `G, s, J`, with constant `β_k ≡ β`,
under Assumption 2, with `F = f ∘ g` bounded below on `X` and `F* = inf_X F`. If `c, γ > 0` satisfy (3.16)
`2(aβ − c)(γb − 2c) ≥ L_g²(aL_∇f + γ)²` with both factors nonnegative, and `τ_k ≤ 1`, `bτ_k ≤ 1` for all `k`, then
for every `N ≥ 1`, `c Σ_{k<N} τ_k(‖d^k‖² + ‖g(x^k) − u^k‖²) ≤ W(x⁰, z⁰, u⁰) + Σ_{k<N} r^{k+1}`. -/
theorem lemma_4 {n m : ℕ} (X : Set (EuclideanSpace ℝ (Fin n))) (hX_cl : IsClosed X) (hX_cvx : Convex ℝ X)
    (P : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n))
    (hP : SpectralProjGrad.Shared.IsProjOnto X P)
    (f : EuclideanSpace ℝ (Fin m) → ℝ) (g : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin m))
    (Lf Lg Ldf Ldg : ℝ) (hA2 : Assumption2 f g Lf Lg Ldf Ldg)
    (hF_bdd : BddBelow ((fun x => f (g x)) '' X))
    (a b β : ℝ) (τ : ℕ → ℝ) (x0 z0 : EuclideanSpace ℝ (Fin n)) (u0 : EuclideanSpace ℝ (Fin m))
    (x z : ℕ → EuclideanSpace ℝ (Fin n)) (u G s : ℕ → EuclideanSpace ℝ (Fin m))
    (J : ℕ → (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin m)))
    (hrun : IsRun X P a b β τ x0 z0 u0 x z u G s J)
    (c γ : ℝ) (hc : 0 < c) (hγ : 0 < γ) (hcβ : c ≤ a * β) (hcγ : 2 * c ≤ γ * b)
    (h316 : Lg ^ 2 * (a * Ldf + γ) ^ 2 ≤ 2 * (a * β - c) * (γ * b - 2 * c))
    (hτ_one : ∀ k, τ k ≤ 1) (hbτ : ∀ k, b * τ k ≤ 1) :
    ∀ N : ℕ, 1 ≤ N →
      c * ∑ k ∈ Finset.range N, τ k * (‖ybar P (x k) (z k) β - x k‖ ^ 2 + ‖g (x k) - u k‖ ^ 2) ≤
        W P f g X a γ β x0 z0 u0 +
          ∑ k ∈ Finset.range N, rTerm P f g a b γ β Lf Lg Ldf Ldg τ x z u G s J k := by sorry

end NestedSA.NASA
Source
Ghadimi, Ruszczyński, Wang, A Single Time-Scale Stochastic Approximation Method for Nested Stochastic Optimization, arXiv:1812.01094v2, p. 10, Lemma 4, (3.16)–(3.18)
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

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