Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.1 — second moment of the directional-derivative oracle, Eu∥g0(x)∥∗2≤(n+4)∥∇f(x)∥∗2\mathbb E_u\|g_0(x)\|_*^2 \le (n+4)\|\nabla f(x)\|_*^2Eu​∥g0​(x)∥∗2​≤(n+4)∥∇f(x)∥∗2​ (Eq. (32))

Proved
RandomGradFree.Accelerated.directional_oracle_second_moment

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

gaussian-momentsp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1zeroth-order

Let EEE be a real inner product space of dimension nnn, uuu a standard Gaussian vector in EEE, and f:E→Rf : E \to \mathbb Rf:E→R differentiable at the point xxx. The limiting oracle B−1g0(x)=⟨∇f(x),u⟩ uB^{-1}g_0(x) = \langle \nabla f(x), u\rangle\, uB−1g0​(x)=⟨∇f(x),u⟩u satisfies

Eu(∥g0(x)∥∗2)=Eu(⟨∇f(x),u⟩2∥u∥2)≤(n+4) ∥∇f(x)∥∗2.\mathbb E_u\big(\|g_0(x)\|_*^2\big) = \mathbb E_u\big(\langle \nabla f(x), u\rangle^2 \|u\|^2\big) \le (n+4)\,\|\nabla f(x)\|_*^2 .Eu​(∥g0​(x)∥∗2​)=Eu​(⟨∇f(x),u⟩2∥u∥2)≤(n+4)∥∇f(x)∥∗2​.

Applied to the Gaussian approximation fμf_\mufμ​, this is the step of the proof of Lemma 5 that controls the variance of the oracle.

Formalization Note The directional derivative is fderiv ℝ f x u, and ∥∇f(x)∥∗\|\nabla f(x)\|_*∥∇f(x)∥∗​ is the norm of Mathlib's gradient f x (Riesz identification).

Preamble
import Mathlib

open MeasureTheory ProbabilityTheory
Formal statement
namespace RandomGradFree.Accelerated

theorem directional_oracle_second_moment {E : Type*} [NormedAddCommGroup E]
    [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
    (f : E → ℝ) (x : E) (hfx : DifferentiableAt ℝ f x) :
    ∫ u, ‖fderiv ℝ f x u • u‖ ^ 2 ∂(stdGaussian E)
      ≤ ((Module.finrank ℝ E : ℝ) + 4) * ‖gradient f x‖ ^ 2 := by sorry

end RandomGradFree.Accelerated
Source
Nesterov, Spokoiny, Random Gradient-Free Minimization of Convex Functions, Found. Comput. Math. 17 (2017), p. 537, Theorem 3, part 1, Eq. (32)
Read-back

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

Setting:

  • EEE: a finite-dimensional real inner product space with its Borel σ-algebra, of dimension nnn, carrying the standard Gaussian probability measure NE\mathcal N_ENE​ (Mathlib's stdGaussian).
  • f:E→Rf : E \to \mathbb Rf:E→R: any function.
  • x∈Ex \in Ex∈E: a point at which fff is assumed to be (Fréchet) differentiable. Nothing is assumed about fff elsewhere.

Df(x)Df(x)Df(x) denotes the derivative of fff at xxx and ∇f(x)\nabla f(x)∇f(x) its gradient, so Df(x)[u]=⟨∇f(x),u⟩Df(x)[u] = \langle \nabla f(x), u\rangleDf(x)[u]=⟨∇f(x),u⟩. The theorem asserts

∫E∥Df(x)[u]  u∥2 dNE(u)  ≤  (n+4) ∥∇f(x)∥2.\int_E \big\| Df(x)[u]\; u \big\|^2 \, d\mathcal N_E(u) \;\le\; (n+4)\,\|\nabla f(x)\|^2 .∫E​​Df(x)[u]u​2dNE​(u)≤(n+4)∥∇f(x)∥2.

The integral is a Lebesgue (Bochner) integral of a nonnegative real function. If that function were not integrable, the integral would be assigned the value 000.

Degenerate cases: for n=0n = 0n=0, u=0u = 0u=0 and ∇f(x)=0\nabla f(x) = 0∇f(x)=0, so both sides are 000. If ∇f(x)=0\nabla f(x) = 0∇f(x)=0, the claim says the left-hand integral is ≤0\le 0≤0.

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