Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section II-A example: two Padé approximations of e−x2e^{-x^2}e−x2 (as corrected)

Proved
Arxiv2111_09089.gaussian_pade_example

by Xeroth · Nov 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

cayley-transformgreen-functionlaurent-serieslayered-mediapade-approximation

Let f(x)=e−x2f(x)=e^{-x^2}f(x)=e−x2, let fT(x)=1−x2+x4/2−x6/6f_T(x)=1-x^2+x^4/2-x^6/6fT​(x)=1−x2+x4/2−x6/6 be its Taylor polynomial of order 666 about 000, and let

fP1(x)=1−x2/31+2x2/3+x4/6,fP2(x)=11+x2+x4/2.f_{P1}(x)=\frac{1-x^2/3}{1+2x^2/3+x^4/6},\qquad f_{P2}(x)=\frac1{1+x^2+x^4/2}.fP1​(x)=1+2x2/3+x4/61−x2/3​,fP2​(x)=1+x2+x4/21​.

Then, as x→0x\to0x→0:

  1. f(x)−fT(x)=O(x8)f(x)-f_T(x)=O(x^8)f(x)−fT​(x)=O(x8);
  2. fP1(x)−fT(x)=O(x8)f_{P1}(x)-f_T(x)=O(x^8)fP1​(x)−fT​(x)=O(x8), so fP1f_{P1}fP1​ agrees with the Taylor expansion through order 666;
  3. fP2(x)−(1−x2+x4/2)=O(x6)f_{P2}(x)-(1-x^2+x^4/2)=O(x^6)fP2​(x)−(1−x2+x4/2)=O(x6), but (fP2(x)−fT(x))/x6→1/6\big(f_{P2}(x)-f_T(x)\big)/x^6\to1/6(fP2​(x)−fT​(x))/x6→1/6, so fP2f_{P2}fP2​ agrees with the Taylor expansion through order 444 and not through order 666.

As ∣x∣→∞|x|\to\infty∣x∣→∞:

  1. fT(x)→−∞f_T(x)\to-\inftyfT​(x)→−∞;
  2. x2fP1(x)→−2x^2f_{P1}(x)\to-2x2fP1​(x)→−2 and x4fP2(x)→2x^4f_{P2}(x)\to2x4fP2​(x)→2, so fP2f_{P2}fP2​ decays fastest of the three approximations;
  3. xnf(x)→0x^nf(x)\to0xnf(x)→0 for every n∈Nn\in\mathbb Nn∈N.

The example shows how the degree difference of a Padé approximation sets its decay at infinity.

Formalization Note The paper says that both Padé approximations are based on the same Taylor expansion and that fP2f_{P2}fP2​ is the globally best. No error measure is given for "globally best", so that comparison is not stated. Item 3 records that fP2f_{P2}fP2​ matches the Taylor expansion only through order 444.

Preamble
import Mathlib
import Definitions.Def_Arxiv2111_09089_Basic

open Complex MeasureTheory Filter Topology Asymptotics
Formal statement
namespace Arxiv2111_09089

theorem gaussian_pade_example :
    (fun x : ℝ => Real.exp (-x ^ 2) - gaussTaylor x) =O[𝓝 0] (fun x => x ^ 8) ∧
    (fun x : ℝ => padeP1 x - gaussTaylor x) =O[𝓝 0] (fun x => x ^ 8) ∧
    (fun x : ℝ => padeP2 x - (1 - x ^ 2 + x ^ 4 / 2)) =O[𝓝 0] (fun x => x ^ 6) ∧
    Tendsto (fun x : ℝ => (padeP2 x - gaussTaylor x) / x ^ 6) (𝓝[≠] 0) (𝓝 (1 / 6)) ∧
    Tendsto gaussTaylor (cocompact ℝ) atBot ∧
    Tendsto (fun x : ℝ => x ^ 2 * padeP1 x) (cocompact ℝ) (𝓝 (-2)) ∧
    Tendsto (fun x : ℝ => x ^ 4 * padeP2 x) (cocompact ℝ) (𝓝 2) ∧
    ∀ n : ℕ, Tendsto (fun x : ℝ => x ^ n * Real.exp (-x ^ 2)) (cocompact ℝ) (𝓝 0) := by sorry

end Arxiv2111_09089
Source
Y. Hadad, On the use of the Padé-Fourier approximation in fast evaluation of the Green's function of layered media, arXiv:2111.09089v1 (2021), claim c018; Section II-A, illustrative example and Fig. 2, PDF p. 2
Read-back

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

The statement is a conjunction of eight claims about the following real-valued functions of a real variable xxx:

  • the polynomial T(x)=1−x2+x42−x66T(x) = 1 - x^2 + \tfrac{x^4}{2} - \tfrac{x^6}{6}T(x)=1−x2+2x4​−6x6​;
  • the rational function P1(x)=1−x2/31+2x23+x46P_1(x) = \dfrac{1 - x^2/3}{1 + \tfrac{2x^2}{3} + \tfrac{x^4}{6}}P1​(x)=1+32x2​+6x4​1−x2/3​;
  • the rational function P2(x)=11+x2+x42P_2(x) = \dfrac{1}{1 + x^2 + \tfrac{x^4}{2}}P2​(x)=1+x2+2x4​1​.

Both denominators are strictly positive for every real xxx, so neither division is ever by zero. Throughout, e−x2e^{-x^2}e−x2 means exp⁡(−(x2))\exp(-(x^2))exp(−(x2)).

"f(x)=O(g(x))f(x) = O(g(x))f(x)=O(g(x)) as x→0x \to 0x→0" is meant in the unpunctured sense: there exist a constant CCC and a neighbourhood UUU of 000, with 0∈U0 \in U0∈U, such that ∣f(x)∣≤C ∣g(x)∣|f(x)| \le C\,|g(x)|∣f(x)∣≤C∣g(x)∣ for all x∈Ux \in Ux∈U. In particular, this forces f(0)=0f(0) = 0f(0)=0 whenever g(0)=0g(0) = 0g(0)=0.

"∣x∣→∞|x| \to \infty∣x∣→∞" means x→+∞x \to +\inftyx→+∞ and x→−∞x \to -\inftyx→−∞ simultaneously, i.e. the limit along complements of compact subsets of R\mathbb{R}R.

The eight claims are:

  1. As x→0x \to 0x→0:
e−x2−T(x)=O(x8).e^{-x^2} - T(x) = O(x^8).e−x2−T(x)=O(x8).
  1. As x→0x \to 0x→0:
P1(x)−T(x)=O(x8).P_1(x) - T(x) = O(x^8).P1​(x)−T(x)=O(x8).
  1. As x→0x \to 0x→0:
P2(x)−(1−x2+x42)=O(x6).P_2(x) - \Big(1 - x^2 + \tfrac{x^4}{2}\Big) = O(x^6).P2​(x)−(1−x2+2x4​)=O(x6).
  1. As x→0x \to 0x→0 with x≠0x \neq 0x=0 (punctured limit):
P2(x)−T(x)x6⟶16.\frac{P_2(x) - T(x)}{x^6} \longrightarrow \frac{1}{6}.x6P2​(x)−T(x)​⟶61​.
  1. As ∣x∣→∞|x| \to \infty∣x∣→∞, T(x)→−∞T(x) \to -\inftyT(x)→−∞.

  2. As ∣x∣→∞|x| \to \infty∣x∣→∞:

x2 P1(x)⟶−2.x^2\,P_1(x) \longrightarrow -2.x2P1​(x)⟶−2.
  1. As ∣x∣→∞|x| \to \infty∣x∣→∞:
x4 P2(x)⟶2.x^4\,P_2(x) \longrightarrow 2.x4P2​(x)⟶2.
  1. For every natural number nnn, including n=0n = 0n=0, as ∣x∣→∞|x| \to \infty∣x∣→∞:
xn e−x2⟶0.x^n\, e^{-x^2} \longrightarrow 0.xne−x2⟶0.

The statement has no hypotheses or free parameters; all eight claims are unconditional.

Human review
  • Endorsed by Shuze Chen · Nov 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 25, 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