Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1 (19) — ∣fμ(x)−f(x)∣≤μ22L1(f) n|f_\mu(x) - f(x)| \le \frac{\mu^2}{2}L_1(f)\,n∣fμ​(x)−f(x)∣≤2μ2​L1​(f)n for f∈C1,1f\in C^{1,1}f∈C1,1

Proved
RandomGradFree.Smooth.smoothing_approx

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

gaussian-smoothinglipschitz-gradientp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let EEE be a real inner product space of finite dimension nnn and let f:E→Rf : E \to \mathbb Rf:E→R be differentiable with L1L_1L1​-Lipschitz gradient (f∈C1,1(E)f \in C^{1,1}(E)f∈C1,1(E)). Then for every μ≥0\mu \ge 0μ≥0 and every x∈Ex \in Ex∈E,

∣fμ(x)−f(x)∣≤μ22 L1 n.|f_\mu(x) - f(x)| \le \frac{\mu^2}{2}\, L_1\, n .∣fμ​(x)−f(x)∣≤2μ2​L1​n.

This is the quadratic-in-μ\muμ approximation guarantee for smooth functions; it is the source of the μ2\mu^2μ2 terms in the rates of the random gradient method.

Formalization Note L1L_1L1​ is any constant for which the gradient-Lipschitz inequality holds (the paper's L1(f)L_1(f)L1​(f) is the best one; the bound is monotone in it).

Preamble
import Mathlib
import Definitions.Def_RandomGradFree_Shared_smoothing

open MeasureTheory ProbabilityTheory
Formal statement
namespace RandomGradFree.Smooth

theorem smoothing_approx {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
    (f : E → ℝ)
    (L₁ : ℝ) (hL₁ : 0 ≤ L₁) (hdiff : Differentiable ℝ f)
    (hgrad : ∀ x y, ‖gradient f x - gradient f y‖ ≤ L₁ * ‖x - y‖)
    (μ : ℝ) (hμ : 0 ≤ μ) (x : E) :
    |RandomGradFree.Shared.smoothing f μ x - f x| ≤ μ ^ 2 / 2 * L₁ * Module.finrank ℝ E := by sorry

end RandomGradFree.Smooth
Source
Nesterov, Spokoiny, Random Gradient-Free Minimization of Convex Functions, Found. Comput. Math. 17 (2017), p. 534, Theorem 1, Eq. (19)
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 n=dim⁡REn = \dim_{\mathbb{R}} En=dimR​E.

Hypotheses.

  • f:E→Rf : E \to \mathbb{R}f:E→R is differentiable everywhere.
  • Its gradient is L1L_1L1​-Lipschitz for some L1≥0L_1 \ge 0L1​≥0: ∥∇f(x)−∇f(y)∥≤L1∥x−y∥\|\nabla f(x) - \nabla f(y)\| \le L_1\|x-y\|∥∇f(x)−∇f(y)∥≤L1​∥x−y∥ for all x,yx, yx,y.
  • μ≥0\mu \ge 0μ≥0.
  • x∈Ex \in Ex∈E is arbitrary.

Convexity is not assumed.

Claim.

∣ fμ(x)−f(x) ∣  ≤  μ22 L1 n,\big|\,f_\mu(x) - f(x)\,\big| \;\le\; \frac{\mu^2}{2}\,L_1\, n,​fμ​(x)−f(x)​≤2μ2​L1​n,

where fμ=smoothing(f,μ)f_\mu = \mathrm{smoothing}(f,\mu)fμ​=smoothing(f,μ) is the imported definition RandomGradFree.Shared.smoothing. Its body is not included in the code provided, so this read-back cannot unfold it.

Degenerate cases. In each of the following cases the right-hand side is 000, so the claim says fμ(x)=f(x)f_\mu(x) = f(x)fμ​(x)=f(x) exactly:

  • μ=0\mu = 0μ=0: the claim says smoothing(f,0)(x)=f(x)\mathrm{smoothing}(f,0)(x) = f(x)smoothing(f,0)(x)=f(x).
  • L1=0L_1 = 0L1​=0: this forces fff to be affine.
  • n=0n = 0n=0 (E={0}E = \{0\}E={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