Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.1, p. 8 — E[⟨x,u⟩u] = x and E⟨x,u⟩² = ‖x‖² for u the projection of a standard Gaussian onto a subspace containing x

Proved
ZORiem.RGD.lemma_2_1

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

gaussian-identitiesgaussian-smoothingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1zeroth-order-optimization

Let EEE be a finite-dimensional real inner product space (the ambient Rn\mathbb R^nRn), let X⊆E\mathcal X\subseteq EX⊆E be a linear subspace of dimension ddd with orthogonal projection PPP, let u0∼N(0,In)u_0\sim N(0,I_n)u0​∼N(0,In​) be a standard Gaussian vector of EEE and u=Pu0u=Pu_0u=Pu0​. Then for every x∈Xx\in\mathcal Xx∈X the random vector ⟨x,u⟩u\langle x,u\rangle u⟨x,u⟩u is integrable and

Eu0[⟨x,u⟩ u]=x,Eu0[⟨x,u⟩2]=∥x∥2.\mathbb E_{u_0}\big[\langle x,u\rangle\,u\big]=x,\qquad \mathbb E_{u_0}\big[\langle x,u\rangle^2\big]=\|x\|^2 .Eu0​​[⟨x,u⟩u]=x,Eu0​​[⟨x,u⟩2]=∥x∥2.

In the paper both expectations are written as integrals against the Gaussian density κ−1e−∥u0∥2/2\kappa^{-1}e^{-\|u_0\|^2/2}κ−1e−∥u0​∥2/2, κ=(2π)n/2\kappa=(2\pi)^{n/2}κ=(2π)n/2. Applied with X=TxM\mathcal X=T_xMX=Tx​M and x=grad⁡f(x)x=\operatorname{grad}f(x)x=gradf(x), the identities say that the projected Gaussian direction is isotropic on the tangent space, which is the basis of every bias estimate for the estimator gμg_\mugμ​.

Formalization Note The standard Gaussian is Mathlib's stdGaussian E, so κ−1∫⋯e−∥u0∥2/2du0\kappa^{-1}\int\cdots e^{-\|u_0\|^2/2}du_0κ−1∫⋯e−∥u0​∥2/2du0​ is the integral against it. The dimension hypothesis dim⁡X=d\dim\mathcal X=ddimX=d is the page's "ddd-dimensional" and is not needed for the conclusion.

Preamble
import Mathlib

open MeasureTheory ProbabilityTheory
open scoped InnerProductSpace
Formal statement
namespace ZORiem.RGD

/-- Lemma 2.1, p. 8: for a `d`-dimensional subspace `X` of `E` with orthogonal projection `P`, a
standard Gaussian `u₀ ∼ N(0, I_n)` and `u = P u₀`, every `x ∈ X` satisfies `E[⟨x, u⟩ u] = x` and
`E[⟨x, u⟩²] = ‖x‖²` (the vector-valued integrand is integrable). -/
theorem lemma_2_1 {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
    (X : Submodule ℝ E) (d : ℕ) (hd : Module.finrank ℝ X = d) (x : E) (hx : x ∈ X) :
    Integrable (fun u₀ : E => ⟪x, X.starProjection u₀⟫_ℝ • X.starProjection u₀) (stdGaussian E) ∧
    ∫ u₀, ⟪x, X.starProjection u₀⟫_ℝ • X.starProjection u₀ ∂(stdGaussian E) = x ∧
    ∫ u₀, ⟪x, X.starProjection u₀⟫_ℝ ^ 2 ∂(stdGaussian E) = ‖x‖ ^ 2 := by sorry

end ZORiem.RGD
Source
Li, Balasubramanian and Ma, arXiv:2003.11238v3, Lemma 2.1, (2.6), p. 8
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

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