Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Cayley spectral variable, Padé-Fourier approximant and parallel-plate spectral Green's function

Definition
Arxiv2111_09089_Basic

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

cayley-transformgreen-functionlaurent-serieslayered-mediapade-approximation

Objects of Sections II and III-A-1 of Hadad (2021). Time dependence ejωte^{j\omega t}ejωt; jjj is the imaginary unit.

  1. Padé example (Section II-A). The Taylor polynomial of e−x2e^{-x^2}e−x2 about 000 is 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. The two Padé approximations are fP1(x)=1−x2/31+2x2/3+x4/6f_{P1}(x)=\dfrac{1-x^2/3}{1+2x^2/3+x^4/6}fP1​(x)=1+2x2/3+x4/61−x2/3​ and fP2(x)=11+x2+x4/2f_{P2}(x)=\dfrac{1}{1+x^2+x^4/2}fP2​(x)=1+x2+x4/21​.
  2. Tilted path (eq. 2). For α>0\alpha>0α>0, the normalised transverse wavenumber on the tilted path is ξ=(1+jα)μ\xi=(1+j\alpha)\muξ=(1+jα)μ. The map is defined for complex μ\muμ, so that it can be evaluated at μ=±j\mu=\pm jμ=±j.
  3. Cayley variable (eq. 3). μ=−j 1+η1−η\mu=-j\,\dfrac{1+\eta}{1-\eta}μ=−j1−η1+η​.
  4. Annulus and Laurent coefficients (eq. 5). Aδ={η:1−δ<∣η∣<1+δ}A_\delta=\{\eta:1-\delta<|\eta|<1+\delta\}Aδ​={η:1−δ<∣η∣<1+δ}. The Laurent coefficients of ggg on the unit circle are its Fourier coefficients there, cn=12π∫02πg(ejϕ)e−jnϕ dϕc_n=\dfrac1{2\pi}\displaystyle\int_0^{2\pi}g(e^{j\phi})e^{-jn\phi}\,d\phicn​=2π1​∫02π​g(ejϕ)e−jnϕdϕ.
  5. Padé-Fourier rational function (eq. 6). PL(η)=∑l=−LLalηlP_L(\eta)=\sum_{l=-L}^{L}a_l\eta^lPL​(η)=∑l=−LL​al​ηl, QM(η)=∑m=−MMbmηmQ_M(\eta)=\sum_{m=-M}^{M}b_m\eta^mQM​(η)=∑m=−MM​bm​ηm and the approximant PL/QMP_L/Q_MPL​/QM​.
  6. Parallel-plate waveguide (eq. 9). Two PEC plates are a distance ddd apart, filled with relative permittivity ϵr1\epsilon_{r1}ϵr1​; k0k_0k0​ is the vacuum wavenumber and Z0=120π ΩZ_0=120\pi\,\OmegaZ0​=120πΩ. With kz=k0ϵr1−ξ2k_z=k_0\sqrt{\epsilon_{r1}-\xi^2}kz​=k0​ϵr1​−ξ2​ and ZTM=Z0ϵr1−ξ2/ϵr1Z_{TM}=Z_0\sqrt{\epsilon_{r1}-\xi^2}/\epsilon_{r1}ZTM​=Z0​ϵr1​−ξ2​/ϵr1​,
g(ξ;z,z′)=−ZTM/21−e−2jkzd(e−jkzz1−e−jkzz2−e−jkzz3+e−jkzz4),g(\xi;z,z')=-\frac{Z_{TM}/2}{1-e^{-2jk_zd}}\big(e^{-jk_zz_1}-e^{-jk_zz_2}-e^{-jk_zz_3}+e^{-jk_zz_4}\big),g(ξ;z,z′)=−1−e−2jkz​dZTM​/2​(e−jkz​z1​−e−jkz​z2​−e−jkz​z3​+e−jkz​z4​),

where z1=∣z−z′∣z_1=|z-z'|z1​=∣z−z′∣, z2=z+z′z_2=z+z'z2​=z+z′, z3=2d−(z+z′)z_3=2d-(z+z')z3​=2d−(z+z′) and z4=2d−∣z−z′∣z_4=2d-|z-z'|z4​=2d−∣z−z′∣.

Formalization Note The paper does not define kzk_zkz​, and it writes ϵ\epsilonϵ in ZTMZ_{TM}ZTM​. Here kz=k0ϵr1−ξ2k_z=k_0\sqrt{\epsilon_{r1}-\xi^2}kz​=k0​ϵr1​−ξ2​, consistent with eq. (1) (ξ=kt/k0\xi=k_t/k_0ξ=kt​/k0​) and with the formula for ZTMZ_{TM}ZTM​, and ϵ=ϵr1\epsilon=\epsilon_{r1}ϵ=ϵr1​. The square root is the principal branch w1/2w^{1/2}w1/2. ggg is an even function of kzk_zkz​, so the choice of branch does not change it. A quotient whose denominator vanishes takes the value 000 in Lean; no statement depends on that value.

Definition code
import Mathlib

/-!
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): the Padé example of Section II-A, the
tilted integration path of Section II-B (eq. (2)), the Cayley spectral variable, the Laurent
coefficients and the Padé-Fourier rational function of Section II-C (eqs. (3), (5), (6)), and the
spectral Green's function of the lossy parallel-plate waveguide of Section III-A-1 (eq. (9)).
-/

open Complex

noncomputable section

namespace Arxiv2111_09089

/-- Section II-A, p. 2: the Taylor polynomial `f_T(x) = 1 - x² + x⁴/2 - x⁶/6` of `e^{-x²}`
about `x₀ = 0`. -/
def gaussTaylor (x : ℝ) : ℝ := 1 - x ^ 2 + x ^ 4 / 2 - x ^ 6 / 6

/-- Section II-A, p. 2: the first Padé approximation of `e^{-x²}`,
`f_P1(x) = (1 - x²/3) / (1 + 2x²/3 + x⁴/6)`. -/
def padeP1 (x : ℝ) : ℝ := (1 - x ^ 2 / 3) / (1 + 2 * x ^ 2 / 3 + x ^ 4 / 6)

/-- Section II-A, p. 2: the second Padé approximation of `e^{-x²}`,
`f_P2(x) = 1 / (1 + x² + x⁴/2)`. -/
def padeP2 (x : ℝ) : ℝ := 1 / (1 + x ^ 2 + x ^ 4 / 2)

/-- Section II-B, eq. (2), p. 3: the tilted integration path `ξ = (1 + jα) μ`. The variable `μ`
is complex so that the map can be evaluated at the points `μ = ± j` of Section II-C. -/
def xiOfMu (α : ℝ) (μ : ℂ) : ℂ := (1 + α * I) * μ

/-- Section II-C, eq. (3), p. 3: the Cayley transform `μ = -j (1 + η) / (1 - η)`. -/
def cayley (η : ℂ) : ℂ := -I * (1 + η) / (1 - η)

/-- Section II-C, eq. (5), p. 3: the annulus `1 - δ < |η| < 1 + δ` around the unit circle. -/
def annulus (δ : ℝ) : Set ℂ := {η | 1 - δ < ‖η‖ ∧ ‖η‖ < 1 + δ}

/-- Section II-C, eq. (5) and the text after it, p. 3: the `n`-th Laurent coefficient `c_n` of
`g` on the unit circle, i.e. the `n`-th Fourier coefficient of `φ ↦ g(e^{jφ})` on `[0, 2π]`,
`c_n = (1/2π) ∫₀^{2π} g(e^{jφ}) e^{-jnφ} dφ`. -/
def laurentCoeff (g : ℂ → ℂ) (n : ℤ) : ℂ :=
  fourierCoeffOn Real.two_pi_pos (fun φ : ℝ => g (exp (φ * I))) n

/-- Section II-C, eq. (6), p. 3: the Laurent polynomial `∑_{l=-L}^{L} a_l η^l`. -/
def laurentPoly (a : ℤ → ℂ) (L : ℕ) (η : ℂ) : ℂ :=
  ∑ l ∈ Finset.Icc (-(L : ℤ)) L, a l * η ^ l

/-- Section II-C, eq. (6), p. 3: the Padé-Fourier rational function
`P_L(η) / Q_M(η) = (∑_{l=-L}^{L} a_l η^l) / (∑_{m=-M}^{M} b_m η^m)`. -/
def padeFourier (a b : ℤ → ℂ) (L M : ℕ) (η : ℂ) : ℂ :=
  laurentPoly a L η / laurentPoly b M η

/-- Section III-A-1, p. 4: the free-space impedance `Z₀ = 120π Ω`. -/
def freeSpaceImpedance : ℝ := 120 * Real.pi

/-- Section III-A-1, eq. (9), p. 4: the longitudinal wavenumber `k_z = k₀ √(ε_{r1} - ξ²)` in the
filling of relative permittivity `ε_{r1}`, with `ξ` normalised by the vacuum wavenumber `k₀`
(eq. (1)). The paper uses `k_z` without defining it. -/
def ppwKz (k0 : ℝ) (ε ξ : ℂ) : ℂ := k0 * (ε - ξ ^ 2) ^ (1 / 2 : ℂ)

/-- Section III-A-1, p. 4: the TM wave impedance `Z_TM = Z₀ √(ε_{r1} - ξ²) / ε_{r1}` (the paper
writes `ε` in the denominator; it is the filling's `ε_{r1}`). -/
def ppwZTM (ε ξ : ℂ) : ℂ := freeSpaceImpedance * (ε - ξ ^ 2) ^ (1 / 2 : ℂ) / ε

/-- Section III-A-1, eq. (9), p. 4: the 1D spectral Green's function of the `x`-component of the
TM field of an `x`-polarised dipole in a parallel-plate waveguide of PEC plates at distance `d`
filled with relative permittivity `ε_{r1}`, source at `z'`, observer at `z`:
`g = -(Z_TM/2) / (1 - e^{-2j k_z d}) (e^{-j k_z z₁} - e^{-j k_z z₂} - e^{-j k_z z₃} + e^{-j k_z z₄})`,
with `z₁ = |z - z'|`, `z₂ = z + z'`, `z₃ = 2d - (z + z')`, `z₄ = 2d - |z - z'|`. -/
def ppwGreen (k0 d : ℝ) (ε : ℂ) (z z' : ℝ) (ξ : ℂ) : ℂ :=
  let kz := ppwKz k0 ε ξ;
  -(ppwZTM ε ξ / 2) / (1 - exp (-2 * I * kz * d)) *
    (exp (-I * kz * abs (z - z')) - exp (-I * kz * (z + z')) -
      exp (-I * kz * (2 * d - (z + z'))) + exp (-I * kz * (2 * d - abs (z - z'))))

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), Sections II-A, II-B (eq. (2)), II-C (eqs. (3), (5), (6)) and III-A-1 (eq. (9))
Read-back

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

Taylor polynomial (gaussTaylor). This is the real function fT:R→Rf_T : \mathbb{R} \to \mathbb{R}fT​:R→R defined for every real xxx by

fT(x)=1−x2+x42−x66.f_T(x) = 1 - x^2 + \frac{x^4}{2} - \frac{x^6}{6}.fT​(x)=1−x2+2x4​−6x6​.

It carries no hypotheses and is defined on all of R\mathbb{R}R.

First rational function (padeP1). This is the real function fP1:R→Rf_{P1} : \mathbb{R} \to \mathbb{R}fP1​:R→R defined for every real xxx by

fP1(x)=1−x231+2x23+x46.f_{P1}(x) = \frac{1 - \dfrac{x^2}{3}}{1 + \dfrac{2x^2}{3} + \dfrac{x^4}{6}}.fP1​(x)=1+32x2​+6x4​1−3x2​​.

The denominator is at least 111 for every real xxx, so the division never falls back on the convention that dividing by 000 gives 000.

Second rational function (padeP2). This is the real function fP2:R→Rf_{P2} : \mathbb{R} \to \mathbb{R}fP2​:R→R defined for every real xxx by

fP2(x)=11+x2+x42.f_{P2}(x) = \frac{1}{1 + x^2 + \dfrac{x^4}{2}}.fP2​(x)=1+x2+2x4​1​.

The denominator is at least 111 for every real xxx, so no division by zero occurs.

Tilted path map (xiOfMu). For a real parameter α\alphaα and a complex number μ\muμ, this is the complex number

ξα(μ)=(1+iα) μ,\xi_\alpha(\mu) = (1 + i\alpha)\,\mu,ξα​(μ)=(1+iα)μ,

where iii is the imaginary unit. There are no restrictions on α\alphaα, which may be any real number including 000 and negative values. There are also no restrictions on μ\muμ, which ranges over all of C\mathbb{C}C.

Cayley-type map (cayley). For a complex number η\etaη, this is the complex number

μ(η)=−i (1+η)1−η.\mu(\eta) = \frac{-i\,(1 + \eta)}{1 - \eta}.μ(η)=1−η−i(1+η)​.

Division is total, with the convention that dividing by 000 gives 000. Therefore at the single point η=1\eta = 1η=1 the value is defined to be μ(1)=0\mu(1) = 0μ(1)=0 rather than being undefined or infinite.

Annulus (annulus). For a real number δ\deltaδ, this is the set of complex numbers

Aδ={η∈C:1−δ<∣η∣<1+δ},A_\delta = \{\eta \in \mathbb{C} : 1 - \delta < |\eta| < 1 + \delta\},Aδ​={η∈C:1−δ<∣η∣<1+δ},

where ∣⋅∣|\cdot|∣⋅∣ is the complex modulus and both inequalities are strict. Nothing requires δ>0\delta > 0δ>0:

  • If δ≤0\delta \le 0δ≤0, the set is empty.
  • If 0<δ≤10 < \delta \le 10<δ≤1, it is a genuine open annulus around the unit circle.
  • If δ>1\delta > 1δ>1, the lower bound is negative, so the set is the open disc ∣η∣<1+δ|\eta| < 1 + \delta∣η∣<1+δ, which includes η=0\eta = 0η=0.

Laurent coefficients (laurentCoeff). For an arbitrary function g:C→Cg : \mathbb{C} \to \mathbb{C}g:C→C and an integer nnn (any sign), this is the nnn-th Fourier coefficient on the interval [0,2π][0, 2\pi][0,2π] of the real-variable function φ↦g(eiφ)\varphi \mapsto g(e^{i\varphi})φ↦g(eiφ):

cn(g)=12π∫02πe−inφ g ⁣(eiφ)dφ.c_n(g) = \frac{1}{2\pi} \int_0^{2\pi} e^{-in\varphi}\, g\!\left(e^{i\varphi}\right) d\varphi .cn​(g)=2π1​∫02π​e−inφg(eiφ)dφ.

Only the values of ggg on the unit circle ∣η∣=1|\eta| = 1∣η∣=1 enter. No continuity, analyticity, measurability, or integrability is assumed of ggg. If the integrand is not Lebesgue-integrable, the integral is assigned the junk value 000, so in that case cn(g)=0c_n(g) = 0cn​(g)=0 for every nnn.

Laurent polynomial (laurentPoly). Take a sequence of complex coefficients a:Z→Ca : \mathbb{Z} \to \mathbb{C}a:Z→C, l↦all \mapsto a_ll↦al​, a natural number L≥0L \ge 0L≥0, and a complex number η\etaη. This is the finite sum

PLa(η)=∑l=−LLal ηl,P_L^{a}(\eta) = \sum_{l=-L}^{L} a_l\, \eta^{l},PLa​(η)=l=−L∑L​al​ηl,

where ηl\eta^lηl is the integer power. Only the coefficients a−L,…,aLa_{-L}, \dots, a_La−L​,…,aL​ are used, and L=0L = 0L=0 gives the constant a0a_0a0​. At η=0\eta = 0η=0, negative powers are not undefined: they use the convention 0l=00^{l} = 00l=0 for l<0l < 0l<0 (and 00=10^0 = 100=1). Hence PLa(0)=a0P_L^{a}(0) = a_0PLa​(0)=a0​.

Rational function (padeFourier). Take two coefficient sequences a,b:Z→Ca, b : \mathbb{Z} \to \mathbb{C}a,b:Z→C, natural numbers L,ML, ML,M, and a complex number η\etaη. This is the quotient

RL,Ma,b(η)=PLa(η)PMb(η)=∑l=−LLalηl∑m=−MMbmηm,R_{L,M}^{a,b}(\eta) = \frac{P_L^{a}(\eta)}{P_M^{b}(\eta)} = \frac{\sum_{l=-L}^{L} a_l \eta^l}{\sum_{m=-M}^{M} b_m \eta^m},RL,Ma,b​(η)=PMb​(η)PLa​(η)​=∑m=−MM​bm​ηm∑l=−LL​al​ηl​,

with both sums as defined above, including the convention at η=0\eta = 0η=0. No condition relates aaa, bbb, LLL, MMM to any target function. Wherever the denominator vanishes, the quotient is defined to be 000; for example, if b−M=⋯=bM=0b_{-M} = \dots = b_M = 0b−M​=⋯=bM​=0, the quotient is 000 for every η\etaη.

Impedance constant (freeSpaceImpedance). This is the real number

Z0=120π.Z_0 = 120\pi .Z0​=120π.

It is a bare real number and carries no units.

Longitudinal wavenumber (ppwKz). For a real number k0k_0k0​ and complex numbers ε\varepsilonε and ξ\xiξ, this is the complex number

kz(k0,ε,ξ)=k0 (ε−ξ2)1/2.k_z(k_0, \varepsilon, \xi) = k_0\, (\varepsilon - \xi^2)^{1/2}.kz​(k0​,ε,ξ)=k0​(ε−ξ2)1/2.

Here w1/2w^{1/2}w1/2 is the principal complex power exp⁡ ⁣(12log⁡w)\exp\!\left(\tfrac12 \log w\right)exp(21​logw), using the principal logarithm with argument in (−π,π](-\pi, \pi](−π,π], and with the convention 01/2=00^{1/2} = 001/2=0. Consequently:

  • The result always has nonnegative real part.
  • For a negative real number w=−rw = -rw=−r, the result is iri\sqrt{r}ir​.
  • There is a branch cut along the negative real axis of ε−ξ2\varepsilon - \xi^2ε−ξ2.

There are no restrictions on k0k_0k0​: it may be zero or negative. There are also no restrictions on ε\varepsilonε or ξ\xiξ.

Wave impedance (ppwZTM). For complex numbers ε\varepsilonε and ξ\xiξ, this is the complex number

ZTM(ε,ξ)=120π (ε−ξ2)1/2ε,Z_{TM}(\varepsilon, \xi) = \frac{120\pi\, (\varepsilon - \xi^2)^{1/2}}{\varepsilon},ZTM​(ε,ξ)=ε120π(ε−ξ2)1/2​,

with the same principal square root as above. If ε=0\varepsilon = 0ε=0, the value is 000 by the division-by-zero convention.

Green's function (ppwGreen). The inputs are real numbers k0k_0k0​ and ddd, a complex number ε\varepsilonε, real numbers zzz and z′z'z′, and a complex number ξ\xiξ. Write kz=k0(ε−ξ2)1/2k_z = k_0 (\varepsilon - \xi^2)^{1/2}kz​=k0​(ε−ξ2)1/2, using the principal square root as above, and ZTM=120π(ε−ξ2)1/2/εZ_{TM} = 120\pi (\varepsilon - \xi^2)^{1/2} / \varepsilonZTM​=120π(ε−ξ2)1/2/ε. The definition is the complex number

g(k0,d,ε,z,z′,ξ)=− ZTM/21−e−2ikzd⋅(e−ikz∣z−z′∣−e−ikz(z+z′)−e−ikz(2d−(z+z′))+e−ikz(2d−∣z−z′∣)).g(k_0, d, \varepsilon, z, z', \xi) = \frac{-\,Z_{TM}/2}{1 - e^{-2 i k_z d}} \cdot \Big( e^{-i k_z |z - z'|} - e^{-i k_z (z + z')} - e^{-i k_z (2d - (z + z'))} + e^{-i k_z (2d - |z - z'|)} \Big).g(k0​,d,ε,z,z′,ξ)=1−e−2ikz​d−ZTM​/2​⋅(e−ikz​∣z−z′∣−e−ikz​(z+z′)−e−ikz​(2d−(z+z′))+e−ikz​(2d−∣z−z′∣)).

None of the following is assumed:

  • that d>0d > 0d>0;
  • that k0>0k_0 > 0k0​>0;
  • that zzz or z′z'z′ lie in [0,d][0, d][0,d];
  • any condition on ε\varepsilonε or ξ\xiξ.

Whenever e−2ikzd=1e^{-2 i k_z d} = 1e−2ikz​d=1, the leading fraction is defined to be 000, and so g=0g = 0g=0 identically. This happens in particular when d=0d = 0d=0, when k0=0k_0 = 0k0​=0, when ε=ξ2\varepsilon = \xi^2ε=ξ2, and more generally whenever kzd∈πZk_z d \in \pi\mathbb{Z}kz​d∈πZ. Likewise g=0g = 0g=0 when ε=0\varepsilon = 0ε=0, because then ZTM=0Z_{TM} = 0ZTM​=0.

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