Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 24, p. 29 — |∇f(0)y − f_(2m)(y)| ≤ Σ_{k≥2m+1} (8Rcm√d)ᵏ for all but a 1/1000 fraction of y ∈ R·G_nᵈ

Proved
QGradGAW.Smooth.theorem_24

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

analytic-functionapproximation-errorcentral-differencegevreyp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let R>0R>0R>0, m≥1m\ge1m≥1, n≥0n\ge0n≥0 and c∈Rc\in\mathbb Rc∈R, and let f:Rd→Rf:\mathbb R^d\to\mathbb Rf:Rd→R be smooth and analytic in the sense of Definition 5, with

∣∂αf(0)∣≤ck kk/2for all k≥1, α∈[d]k.|\partial_\alpha f(0)|\le c^k\,k^{k/2}\qquad\text{for all }k\ge1,\ \alpha\in[d]^k .∣∂α​f(0)∣≤ckkk/2for all k≥1, α∈[d]k.

Assume 8Rcmd<18Rcm\sqrt d<18Rcmd​<1. Then

∣∇f(0)⋅y−f(2m)(y)∣  ≤  ∑k=2m+1∞(8Rcmd)k\big|\nabla f(0)\cdot y-f_{(2m)}(y)\big|\;\le\;\sum_{k=2m+1}^{\infty}\big(8Rcm\sqrt d\big)^k​∇f(0)⋅y−f(2m)​(y)​≤k=2m+1∑∞​(8Rcmd​)k

for all but a 1/10001/10001/1000 fraction of the points y∈R⋅Gndy\in R\cdot G_n^dy∈R⋅Gnd​; that is, the number of grid labels for which the inequality fails is at most (2n)d/1000(2^n)^d/1000(2n)d/1000.

This is the approximation guarantee that lets Jordan's algorithm (Theorem 21) be run on the central difference f(2m)f_{(2m)}f(2m)​ instead of fff: on most of a hypercube of edge length RRR around 000, f(2m)f_{(2m)}f(2m)​ is very close to the linear function y↦∇f(0)⋅yy\mapsto\nabla f(0)\cdot yy↦∇f(0)⋅y.

Formalization Note N\mathbb NN starts at 111 in the paper, so the derivative bound is assumed for k≥1k\ge1k≥1 and m≥1m\ge1m≥1 (for m=0m=0m=0 the claim is false). The hypothesis 8Rcmd<18Rcm\sqrt d<18Rcmd​<1 is the condition under which the printed series is a finite number; without it the right-hand side is +∞+\infty+∞ and the paper's claim is empty, while the Lean tsum of a divergent series would be 000. "Analytic" is the Taylor representation (5) at 000 together with C∞C^\inftyC∞ smoothness (which Definition 5 presupposes). ∇f(0)⋅y\nabla f(0)\cdot y∇f(0)⋅y is the derivative of fff at 000 applied to yyy.

Preamble
import Mathlib
import Definitions.Def_QGradGAW_Smooth_Setting
Formal statement
namespace QGradGAW.Smooth

open QAlgorithms

/-- arXiv:1711.00465v3, p. 29 (restated with proof p. 54), Theorem 24: let `R > 0`, `m ∈ ℕ₊` and
let `f : ℝ^d → ℝ` be analytic (Definition 5) with `|∂_α f(0)| ≤ c^k k^{k/2}` for all `k ∈ ℕ₊`
and `α ∈ [d]^k`. Then `|∇f(0) y − f_(2m)(y)| ≤ Σ_{k=2m+1}^∞ (8Rcm√d)^k` for all but a `1/1000`
fraction of the points `y ∈ R · G_n^d`, i.e. the number of grid labels `x ∈ (Qubits n)^d` at
which the bound fails for `y = R · x̂` is at most `(2^n)^d / 1000`. The hypothesis
`8Rcm√d < 1` is the condition under which the printed series is a finite number. -/
theorem theorem_24 (d n m : ℕ) (hm : 1 ≤ m) (R c : ℝ) (hR : 0 < R)
    (f : (Fin d → ℝ) → ℝ) (hf : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) f) (han : IsTaylorRep f 0)
    (hder : ∀ k : ℕ, 1 ≤ k → ∀ α : Fin k → Fin d,
      |partialAlpha f k α 0| ≤ c ^ k * Real.sqrt k ^ k)
    (hq : 8 * R * c * m * Real.sqrt d < 1) :
    ((Finset.univ.filter fun x : Fin d → Qubits n =>
        ¬ |fderiv ℝ f 0 (R • gridVec x) - centralDiff m f (R • gridVec x)| ≤
          ∑' k : ℕ, (8 * R * c * m * Real.sqrt d) ^ (2 * m + 1 + k)).card : ℝ) ≤
      (2 ^ n : ℝ) ^ d / 1000 := by sorry

end QGradGAW.Smooth
Source
Gilyén, Arunachalam, Wiebe, Optimizing quantum optimization algorithms via faster quantum gradient computation, arXiv:1711.00465v3, p. 29, Theorem 24 (restated with proof p. 54)
Human review
  • Endorsed by Shuze Chen · Oct 18, 2026

    Confirmed by the moderator at approval.

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