Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.1 (34) — Eu∥gμ(x)∥∗2≤L02(f)(n+4)2\mathbb E_u \|g_\mu(x)\|_*^2 \le L_0^2(f)(n+4)^2Eu​∥gμ​(x)∥∗2​≤L02​(f)(n+4)2

Proved
RandomGradFree.Nonsmooth.oracle_second_moment

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

p2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1random-oraclevariance-boundzeroth-order

Let EEE be a real inner product space of dimension nnn, let f:E→Rf : E \to \mathbb Rf:E→R be convex and Lipschitz continuous with constant L0≥0L_0 \ge 0L0​≥0, and let μ>0\mu > 0μ>0. For a standard Gaussian direction uuu, the random gradient-free oracle gμ(x)=f(x+μu)−f(x)μBug_\mu(x) = \frac{f(x+\mu u)-f(x)}{\mu} Bugμ​(x)=μf(x+μu)−f(x)​Bu satisfies, for every x∈Ex \in Ex∈E,

Eu∥gμ(x)∥∗2≤L02(n+4)2.\mathbb E_u \|g_\mu(x)\|_*^2 \le L_0^2 (n+4)^2 .Eu​∥gμ​(x)∥∗2​≤L02​(n+4)2.

This second-moment bound is the variance term in the convergence analysis of the random search method: it replaces the squared norm of a subgradient in the classical projected subgradient analysis, at the price of the factor (n+4)2(n+4)^2(n+4)2.

Formalization Note With the inner product ⟨B⋅,⋅⟩\langle B\cdot,\cdot\rangle⟨B⋅,⋅⟩, ∥gμ(x)∥∗\|g_\mu(x)\|_*∥gμ​(x)∥∗​ equals the norm of B−1gμ(x)=f(x+μu)−f(x)μuB^{-1}g_\mu(x) = \frac{f(x+\mu u)-f(x)}{\mu}uB−1gμ​(x)=μf(x+μu)−f(x)​u, which is what is integrated. Convexity is kept because it is a hypothesis of the paper's Theorem 4.

Preamble
import Mathlib
import Definitions.Def_RandomGradFree_Nonsmooth_oracle

open MeasureTheory ProbabilityTheory
Formal statement
namespace RandomGradFree.Nonsmooth

theorem oracle_second_moment {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
    (f : E → ℝ) (hf : ConvexOn ℝ Set.univ f)
    (L₀ : ℝ) (hL₀ : 0 ≤ L₀) (hLip : ∀ x y, |f x - f y| ≤ L₀ * ‖x - y‖)
    (μ : ℝ) (hμ : 0 < μ) (x : E) :
    ∫ u, ‖oracle f μ x u‖ ^ 2 ∂(stdGaussian E)
      ≤ L₀ ^ 2 * ((Module.finrank ℝ E : ℝ) + 4) ^ 2 := by sorry

end RandomGradFree.Nonsmooth
Source
Nesterov, Spokoiny, Random Gradient-Free Minimization of Convex Functions, Found. Comput. Math. 17 (2017), p. 538, Theorem 4, part 1, Eq. (34)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The setting is:

  • EEE is a finite-dimensional real inner product space with its Borel σ-algebra, and n=dim⁡REn = \dim_{\mathbb{R}} En=dimR​E.
  • γE\gamma_EγE​ is the standard Gaussian measure on EEE.
  • f:E→Rf : E \to \mathbb{R}f:E→R is convex on all of EEE.
  • For a real L0≥0L_0 \ge 0L0​≥0, fff satisfies ∣f(x)−f(y)∣≤L0∥x−y∥|f(x)-f(y)| \le L_0\|x-y\|∣f(x)−f(y)∣≤L0​∥x−y∥ for all x,yx, yx,y.
  • μ>0\mu > 0μ>0 (strictly) is a real number and x∈Ex \in Ex∈E is a point.

The statement asserts

∫E∥f(x+μu)−f(x)μ u∥2dγE(u)  =  ∫E(f(x+μu)−f(x)μ) ⁣2∥u∥2 dγE(u)  ≤  L02 (n+4)2.\int_E \left\| \frac{f(x+\mu u)-f(x)}{\mu}\, u \right\|^2 d\gamma_E(u) \;=\; \int_E \left(\frac{f(x+\mu u)-f(x)}{\mu}\right)^{\!2} \|u\|^2 \, d\gamma_E(u) \;\le\; L_0^2\,(n+4)^2 .∫E​​μf(x+μu)−f(x)​u​2dγE​(u)=∫E​(μf(x+μu)−f(x)​)2∥u∥2dγE​(u)≤L02​(n+4)2.

The bound does not depend on μ\muμ or xxx. The statement does not assert that the integrand is integrable. By convention, a non-integrable integrand would have integral 000, and the inequality would then hold trivially because the right-hand side is nonnegative.

Degenerate cases:

  • L0=0L_0 = 0L0​=0: fff is constant, and both sides are 000.
  • n=0n = 0n=0: the left side is 000 and the bound is 16L0216 L_0^216L02​.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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