Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 22, (23), p. 28 — |f′(0)δ − f_(2m)(δ)| ≤ e^{−m/2} ‖f^{(2m+1)}‖∞ |δ|^{2m+1}

Proved
QGradGAW.Smooth.lemma_22

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

central-differencefinite-differencep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1taylor-remainder

Let δ>0\delta>0δ>0, let m≥1m\ge1m≥1 be an integer, and let fff be (2m+1)(2m+1)(2m+1) times differentiable on the interval I=[−mδ,mδ]I=[-m\delta,m\delta]I=[−mδ,mδ]. Let BBB be a bound for the (2m+1)(2m+1)(2m+1)-st derivative on III, ∣f(2m+1)(ξ)∣≤B|f^{(2m+1)}(\xi)|\le B∣f(2m+1)(ξ)∣≤B for all ξ∈I\xi\in Iξ∈I. Then the degree-2m2m2m central difference approximation of f′(0)δf'(0)\deltaf′(0)δ satisfies

∣f′(0) δ−∑ℓ=−mmaℓ(2m) f(ℓδ)∣  ≤  e−m/2 B ∣δ∣2m+1.\Big|f'(0)\,\delta-\sum_{\ell=-m}^{m}a_\ell^{(2m)}\,f(\ell\delta)\Big|\;\le\;e^{-m/2}\,B\,|\delta|^{2m+1}.​f′(0)δ−ℓ=−m∑m​aℓ(2m)​f(ℓδ)​≤e−m/2B∣δ∣2m+1.

Taking B=∥f(2m+1)∥∞=sup⁡ξ∈I∣f(2m+1)(ξ)∣B=\|f^{(2m+1)}\|_\infty=\sup_{\xi\in I}|f^{(2m+1)}(\xi)|B=∥f(2m+1)∥∞​=supξ∈I​∣f(2m+1)(ξ)∣ gives display (23) of the paper. The error therefore decays like δ2m+1\delta^{2m+1}δ2m+1, which is what makes higher-degree central differences useful in the gradient algorithm.

Formalization Note "(2m+1)(2m+1)(2m+1) times differentiable on III" means that the derivatives of order 0,…,2m0,\dots,2m0,…,2m within III are differentiable on III; derivatives are taken within III. The supremum is replaced by an arbitrary upper bound BBB, which is equivalent and avoids the default value of a supremum over an unbounded set. Since 000 is interior to III, f′(0)f'(0)f′(0) is the ordinary derivative. m≥1m\ge1m≥1 because the paper's N\mathbb NN starts at 111.

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

/-- arXiv:1711.00465v3, p. 28 (restated p. 49), Lemma 22, display (23): for `δ > 0`, `m ∈ ℕ₊`
and `f` `(2m+1)`-times differentiable on `I = [−mδ, mδ]` with `|f^{(2m+1)}| ≤ B` on `I`,
`|f′(0)δ − Σ_{ℓ=−m}^{m} a_ℓ^(2m) f(ℓδ)| ≤ e^{−m/2} B |δ|^{2m+1}`. The bound `B` stands for
`‖f^{(2m+1)}‖∞ = sup_{ξ∈I} |f^{(2m+1)}(ξ)|`. -/
theorem lemma_22 (m : ℕ) (hm : 1 ≤ m) (δ : ℝ) (hδ : 0 < δ) (f : ℝ → ℝ)
    (hf : ∀ j < 2 * m + 1, DifferentiableOn ℝ
      (iteratedDerivWithin j f (Set.Icc (-((m : ℝ) * δ)) ((m : ℝ) * δ)))
      (Set.Icc (-((m : ℝ) * δ)) ((m : ℝ) * δ)))
    (B : ℝ)
    (hB : ∀ ξ ∈ Set.Icc (-((m : ℝ) * δ)) ((m : ℝ) * δ),
      |iteratedDerivWithin (2 * m + 1) f (Set.Icc (-((m : ℝ) * δ)) ((m : ℝ) * δ)) ξ| ≤ B) :
    |deriv f 0 * δ - ∑ ℓ ∈ Finset.Icc (-(m : ℤ)) m, centralCoeff m ℓ * f ((ℓ : ℝ) * δ)| ≤
      Real.exp (-((m : ℝ) / 2)) * B * |δ| ^ (2 * m + 1) := by sorry

end QGradGAW.Smooth
Source
Gilyén, Arunachalam, Wiebe, Optimizing quantum optimization algorithms via faster quantum gradient computation, arXiv:1711.00465v3, p. 28, Lemma 22, display (23) (restated with proof p. 49)
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