Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 2, Eq. (25) — Eu⟨∇f(x),u⟩u=∇f(x)\mathbb E_u \langle\nabla f(x), u\rangle u = \nabla f(x)Eu​⟨∇f(x),u⟩u=∇f(x)

Proved
RandomGradFree.Smooth.directional_oracle_mean

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

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

Let EEE be a finite-dimensional real inner product space, uuu a standard Gaussian vector in EEE, and f:E→Rf : E \to \mathbb Rf:E→R differentiable at xxx. Then

∇f0(x)=Eu[⟨∇f(x),u⟩ u]=∇f(x).\nabla f_0(x) = \mathbb E_u\big[\langle \nabla f(x), u\rangle\, u\big] = \nabla f(x).∇f0​(x)=Eu​[⟨∇f(x),u⟩u]=∇f(x).

Thus the limiting oracle g0(x)=f′(x,u)Bug_0(x) = f'(x,u)Bug0​(x)=f′(x,u)Bu is an unbiased estimate of the gradient at points of differentiability; this is the μ=0\mu = 0μ=0 counterpart of Eq. (21) and is what the analysis of RG0\mathcal{RG}_0RG0​ uses.

Formalization Note f′(x,u)=⟨∇f(x),u⟩f'(x,u) = \langle\nabla f(x), u\ranglef′(x,u)=⟨∇f(x),u⟩ is written as fderiv ℝ f x u; the integrand is exactly oracle f 0 x u.

Preamble
import Mathlib

open MeasureTheory ProbabilityTheory
Formal statement
namespace RandomGradFree.Smooth

theorem directional_oracle_mean {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 ∂(stdGaussian E) = gradient f x := by sorry

end RandomGradFree.Smooth
Source
Nesterov, Spokoiny, Random Gradient-Free Minimization of Convex Functions, Found. Comput. Math. 17 (2017), p. 535, Section 2, Eq. (25)
Read-back

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

Setting.

  • EEE is a finite-dimensional real inner product space with its Borel σ-algebra, and γE\gamma_EγE​ is the standard Gaussian measure on EEE.
  • f:E→Rf : E \to \mathbb{R}f:E→R is any function and x∈Ex \in Ex∈E.

Hypothesis. fff is (Fréchet) differentiable at xxx. Df(x)Df(x)Df(x) is its derivative and ∇f(x)\nabla f(x)∇f(x) its gradient, the vector with Df(x)[v]=⟨∇f(x),v⟩Df(x)[v] = \langle \nabla f(x), v\rangleDf(x)[v]=⟨∇f(x),v⟩.

Claim. The EEE-valued Bochner integral satisfies

∫EDf(x)[u]  u  dγE(u)  =  ∇f(x).\int_E Df(x)[u]\; u \; d\gamma_E(u) \;=\; \nabla f(x).∫E​Df(x)[u]udγE​(u)=∇f(x).

Nothing else is assumed about fff.

Degenerate cases.

  • Integral convention. If the integrand were not integrable, the left side would be defined as 000. The claim would then say ∇f(x)=0\nabla f(x) = 0∇f(x)=0.
  • E={0}E = \{0\}E={0}. Both sides are 000.
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