Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (3.47)-(3.49): Chebyshev expansion of the product of associated Legendre functions for k≤k′k\le k'k≤k′

Open
Arxiv2507_18491.legendre_product_chebyshev

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

chebyshev-polynomialsdyadic-greens-functionfast-multipole-methodlayered-mediasommerfeld-integrals

Let 0<k≤k′0<k\le k'0<k≤k′, write γ=k/k′≤1\gamma=k/k'\le1γ=k/k′≤1, and let kρ≥0k_\rho\ge0kρ​≥0. Let β,β′∈C\beta,\beta'\in\mathbb Cβ,β′∈C satisfy sin⁡β=kρ/k\sin\beta=k_\rho/ksinβ=kρ​/k, cos⁡β=kz/k\cos\beta=k_z/kcosβ=kz​/k, sin⁡β′=kρ/k′\sin\beta'=k_\rho/k'sinβ′=kρ​/k′ and cos⁡β′=kz′/k′\cos\beta'=k'_z/k'cosβ′=kz′​/k′. Then:

  1. cos⁡2β=1−2kρ2/k2\cos2\beta=1-2k_\rho^2/k^2cos2β=1−2kρ2​/k2, and cos⁡2β′=1−2kρ2/k′2=1−γ2+γ2cos⁡2β\cos2\beta'=1-2k_\rho^2/k'^2=1-\gamma^2+\gamma^2\cos2\betacos2β′=1−2kρ2​/k′2=1−γ2+γ2cos2β.
  2. For every j≥0j\ge0j≥0, Tj(cos⁡2β′)=∑s=0jCjsabTs(cos⁡2β)T_j(\cos2\beta')=\sum_{s=0}^jC^{ab}_{js}T_s(\cos2\beta)Tj​(cos2β′)=∑s=0j​Cjsab​Ts​(cos2β) with a=γ2a=\gamma^2a=γ2, b=1−γ2b=1-\gamma^2b=1−γ2 (eq. 3.48).
  3. Let ∣m∣≤n|m|\le n∣m∣≤n, ∣μ∣≤ν|\mu|\le\nu∣μ∣≤ν, and suppose the Chebyshev expansions (B.3) hold at β\betaβ and β′\beta'β′:
P^nm(cos⁡β)=sgn(m)τn,∣m∣(β)∑i=0KnBn,∣m∣iTi(cos⁡2β),P^νμ(cos⁡β′)=sgn(μ)τν,∣μ∣(β′)∑j=0KνBν,∣μ∣jTj(cos⁡2β′).\widehat P_n^m(\cos\beta)=\mathrm{sgn}(m)\tau_{n,|m|}(\beta)\sum_{i=0}^{K_n}B^i_{n,|m|}T_i(\cos2\beta),\qquad\widehat P_\nu^\mu(\cos\beta')=\mathrm{sgn}(\mu)\tau_{\nu,|\mu|}(\beta')\sum_{j=0}^{K_\nu}B^j_{\nu,|\mu|}T_j(\cos2\beta').Pnm​(cosβ)=sgn(m)τn,∣m∣​(β)i=0∑Kn​​Bn,∣m∣i​Ti​(cos2β),Pνμ​(cosβ′)=sgn(μ)τν,∣μ∣​(β′)j=0∑Kν​​Bν,∣μ∣j​Tj​(cos2β′).

Then the product of these two values, Qnmνμ=P^nm(cos⁡β)P^νμ(cos⁡β′)Q^{\nu\mu}_{nm}=\widehat P_n^m(\cos\beta)\widehat P_\nu^\mu(\cos\beta')Qnmνμ​=Pnm​(cosβ)Pνμ​(cosβ′) (eq. 3.47), where P^nm(cos⁡β)\widehat P_n^m(\cos\beta)Pnm​(cosβ) and P^νμ(cos⁡β′)\widehat P_\nu^\mu(\cos\beta')Pνμ​(cosβ′) denote any two numbers satisfying the expansions above, equals

smμτn,∣m∣(β)τν,∣μ∣(β′)∑i=0Kn∑j=0KνBn,∣m∣iBν,∣μ∣jTi(cos⁡2β)Tj(cos⁡2β′)s_{m\mu}\tau_{n,|m|}(\beta)\tau_{\nu,|\mu|}(\beta')\sum_{i=0}^{K_n}\sum_{j=0}^{K_\nu}B^i_{n,|m|}B^j_{\nu,|\mu|}T_i(\cos2\beta)T_j(\cos2\beta')smμ​τn,∣m∣​(β)τν,∣μ∣​(β′)i=0∑Kn​​j=0∑Kν​​Bn,∣m∣i​Bν,∣μ∣j​Ti​(cos2β)Tj​(cos2β′) =smμτn,∣m∣(β)τν,∣μ∣(β′)∑i=0Kn∑j=0Kν∑l=0jBn,∣m∣iBν,∣μ∣jCjlabTi(cos⁡2β)Tl(cos⁡2β),=s_{m\mu}\tau_{n,|m|}(\beta)\tau_{\nu,|\mu|}(\beta')\sum_{i=0}^{K_n}\sum_{j=0}^{K_\nu}\sum_{l=0}^jB^i_{n,|m|}B^j_{\nu,|\mu|}C^{ab}_{jl}T_i(\cos2\beta)T_l(\cos2\beta),=smμ​τn,∣m∣​(β)τν,∣μ∣​(β′)i=0∑Kn​​j=0∑Kν​​l=0∑j​Bn,∣m∣i​Bν,∣μ∣j​Cjlab​Ti​(cos2β)Tl​(cos2β),

where smμ=sgn(m)sgn(μ)s_{m\mu}=\mathrm{sgn}(m)\mathrm{sgn}(\mu)smμ​=sgn(m)sgn(μ) and sgn(x)=(−1)min⁡(0,x)\mathrm{sgn}(x)=(-1)^{\min(0,x)}sgn(x)=(−1)min(0,x) (eq. 3.49).

Formalization Note The printed cos⁡β′=kz′/k\cos\beta'=k_z'/kcosβ′=kz′​/k is read as cos⁡β′=kz′/k′\cos\beta'=k_z'/k'cosβ′=kz′​/k′: the printed version contradicts sin⁡β′=kρ/k′\sin\beta'=k_\rho/k'sinβ′=kρ​/k′ unless k=k′k=k'k=k′, and (3.47) uses P^νμ(kz′/k′)=P^νμ(cos⁡β′)\widehat P_\nu^\mu(k_z'/k')=\widehat P_\nu^\mu(\cos\beta')Pνμ​(kz′​/k′)=Pνμ​(cosβ′). The paper's recursion for the coefficients BBB uses constants it does not define, so the expansions (B.3) at the two points enter as hypotheses, with the values P^\widehat PP, BBB arbitrary and τnm\tau_{nm}τnm​, KnK_nKn​ as defined in (B.1).

Preamble
import Mathlib
import Definitions.Def_Arxiv2507_18491_Basic

open MeasureTheory Filter Topology
Formal statement
namespace Arxiv2507_18491

theorem legendre_product_chebyshev (k k' : ℝ) (hk : 0 < k) (hk' : 0 < k') (hkk : k ≤ k')
    (krho : ℝ) (hkrho : 0 ≤ krho) (beta beta' : ℂ)
    (hsb : Complex.sin beta = (krho : ℂ) / k) (hcb : Complex.cos beta = vkz k krho / k)
    (hsb' : Complex.sin beta' = (krho : ℂ) / k') (hcb' : Complex.cos beta' = vkz k' krho / k') :
    Complex.cos (2 * beta) = 1 - 2 * (krho : ℂ) ^ 2 / (k : ℂ) ^ 2 ∧
    Complex.cos (2 * beta') = 1 - 2 * (krho : ℂ) ^ 2 / (k' : ℂ) ^ 2 ∧
    Complex.cos (2 * beta') =
      1 - ((k / k' : ℝ) : ℂ) ^ 2 + ((k / k' : ℝ) : ℂ) ^ 2 * Complex.cos (2 * beta) ∧
    (∀ j : ℕ, chebT j (Complex.cos (2 * beta')) =
      ∑ s ∈ Finset.range (j + 1),
        chebShiftCoeff (((k / k' : ℝ) : ℂ) ^ 2) (1 - ((k / k' : ℝ) : ℂ) ^ 2) j s *
          chebT s (Complex.cos (2 * beta))) ∧
    (∀ (n nu : ℕ) (m mu : ℤ), |m| ≤ n → |mu| ≤ nu → ∀ (B1 B2 : ℕ → ℂ) (p1 p2 : ℂ),
      p1 = sgnPow m * tauLeg n m.natAbs beta *
        ∑ i ∈ Finset.range (Kn n m.natAbs + 1), B1 i * chebT i (Complex.cos (2 * beta)) →
      p2 = sgnPow mu * tauLeg nu mu.natAbs beta' *
        ∑ j ∈ Finset.range (Kn nu mu.natAbs + 1), B2 j * chebT j (Complex.cos (2 * beta')) →
      p1 * p2 = sgnPow m * sgnPow mu * tauLeg n m.natAbs beta * tauLeg nu mu.natAbs beta' *
        ∑ i ∈ Finset.range (Kn n m.natAbs + 1), ∑ j ∈ Finset.range (Kn nu mu.natAbs + 1),
          B1 i * B2 j * chebT i (Complex.cos (2 * beta)) * chebT j (Complex.cos (2 * beta')) ∧
      p1 * p2 = sgnPow m * sgnPow mu * tauLeg n m.natAbs beta * tauLeg nu mu.natAbs beta' *
        ∑ i ∈ Finset.range (Kn n m.natAbs + 1), ∑ j ∈ Finset.range (Kn nu mu.natAbs + 1),
          ∑ l ∈ Finset.range (j + 1),
            B1 i * B2 j *
              chebShiftCoeff (((k / k' : ℝ) : ℂ) ^ 2) (1 - ((k / k' : ℝ) : ℂ) ^ 2) j l *
                chebT i (Complex.cos (2 * beta)) * chebT l (Complex.cos (2 * beta))) := by sorry

end Arxiv2507_18491
Source
Yuan, Wang, Zhang and Cai, Fast multipole method for Maxwell's equations in layered media, arXiv:2507.18491v1 (2025), claim c039; Section 3.4.3, the displays after (3.46), eqs. (3.47)-(3.49), with eqs. (A.1) and (B.3), PDF p. 19
Read-back

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

Fix real numbers k,k′k, k'k,k′ with

0<k≤k′,0 < k \le k',0<k≤k′,

a real number kρ≥0k_\rho \ge 0kρ​≥0, and complex numbers β,β′\beta, \beta'β,β′. No upper bound on kρk_\rhokρ​ is imposed, so it may exceed kkk and/or k′k'k′.

For a real κ\kappaκ, the vertical wave number v(κ,kρ)∈Cv(\kappa, k_\rho) \in \mathbb{C}v(κ,kρ​)∈C is defined by

v(κ,kρ)={κ2−kρ2if kρ2≤κ2,ikρ2−κ2otherwise,v(\kappa,k_\rho)=\begin{cases}\sqrt{\kappa^2-k_\rho^2} & \text{if } k_\rho^2\le \kappa^2,\\[2pt] i\sqrt{k_\rho^2-\kappa^2} & \text{otherwise,}\end{cases}v(κ,kρ​)=⎩⎨⎧​κ2−kρ2​​ikρ2​−κ2​​if kρ2​≤κ2,otherwise,​

with nonnegative real square roots. Write kz=v(k,kρ)k_z = v(k,k_\rho)kz​=v(k,kρ​) and kz′=v(k′,kρ)k'_z = v(k',k_\rho)kz′​=v(k′,kρ​).

The hypotheses on β,β′\beta, \beta'β,β′ are

sin⁡β=kρk,cos⁡β=kzk,sin⁡β′=kρk′,cos⁡β′=kz′k′,\sin\beta=\frac{k_\rho}{k},\quad \cos\beta=\frac{k_z}{k},\qquad \sin\beta'=\frac{k_\rho}{k'},\quad \cos\beta'=\frac{k'_z}{k'},sinβ=kkρ​​,cosβ=kkz​​,sinβ′=k′kρ​​,cosβ′=k′kz′​​,

using complex sine and cosine. In both branches of vvv, these prescribed values satisfy sin⁡2+cos⁡2=1\sin^2+\cos^2=1sin2+cos2=1, so such β,β′\beta, \beta'β,β′ exist. The hypotheses fix eiβe^{i\beta}eiβ and eiβ′e^{i\beta'}eiβ′, so β\betaβ and β′\beta'β′ are determined only modulo 2π2\pi2π. Note that cos⁡β=0\cos\beta = 0cosβ=0 exactly when kρ=kk_\rho = kkρ​=k, and cos⁡β′=0\cos\beta' = 0cosβ′=0 exactly when kρ=k′k_\rho = k'kρ​=k′.

Set

a=(k/k′)2,b=1−(k/k′)2,X=cos⁡2β,X′=cos⁡2β′,a = (k/k')^2,\qquad b = 1-(k/k')^2,\qquad X=\cos 2\beta,\qquad X'=\cos 2\beta',a=(k/k′)2,b=1−(k/k′)2,X=cos2β,X′=cos2β′,

and let TjT_jTj​ denote the Chebyshev polynomial of the first kind, evaluated at complex arguments.

The coefficients CjsC_{js}Cjs​. These are defined for j,s∈Nj, s \in \mathbb{N}j,s∈N (depending on a,ba, ba,b) by the following recursion:

  • C0,0=1C_{0,0}=1C0,0​=1, and C0,s=0C_{0,s}=0C0,s​=0 for s≥1s\ge1s≥1.
  • C1,0=bC_{1,0}=bC1,0​=b, C1,1=aC_{1,1}=aC1,1​=a, and C1,s=0C_{1,s}=0C1,s​=0 for s≥2s\ge2s≥2.
  • For J≥2J\ge2J≥2:
    • CJ,0=a CJ−1,1+2b CJ−1,0−CJ−2,0C_{J,0}=a\,C_{J-1,1}+2b\,C_{J-1,0}-C_{J-2,0}CJ,0​=aCJ−1,1​+2bCJ−1,0​−CJ−2,0​.
    • C2,1=4abC_{2,1}=4abC2,1​=4ab.
    • For J≥3J\ge3J≥3: CJ,1=2a CJ−1,0+a CJ−1,2+2b CJ−1,1−CJ−2,1C_{J,1}=2a\,C_{J-1,0}+a\,C_{J-1,2}+2b\,C_{J-1,1}-C_{J-2,1}CJ,1​=2aCJ−1,0​+aCJ−1,2​+2bCJ−1,1​−CJ−2,1​.
    • CJ,J=a CJ−1,J−1C_{J,J}=a\,C_{J-1,J-1}CJ,J​=aCJ−1,J−1​.
    • For J≥3J\ge3J≥3: CJ,J−1=a CJ−1,J−2+2b CJ−1,J−1C_{J,J-1}=a\,C_{J-1,J-2}+2b\,C_{J-1,J-1}CJ,J−1​=aCJ−1,J−2​+2bCJ−1,J−1​.
    • For 2≤s≤J−22\le s\le J-22≤s≤J−2: CJ,s=a (CJ−1,s−1+CJ−1,s+1)+2b CJ−1,s−CJ−2,sC_{J,s}=a\,(C_{J-1,s-1}+C_{J-1,s+1})+2b\,C_{J-1,s}-C_{J-2,s}CJ,s​=a(CJ−1,s−1​+CJ−1,s+1​)+2bCJ−1,s​−CJ−2,s​.
    • CJ,s=0C_{J,s}=0CJ,s​=0 for s>Js>Js>J.

The auxiliary quantities. For an integer mmm, set sgn⁡(m)=(−1)min⁡(0,m)\operatorname{sgn}(m)=(-1)^{\min(0,m)}sgn(m)=(−1)min(0,m). This equals 111 for m≥0m\ge0m≥0 and (−1)m(-1)^m(−1)m for m<0m<0m<0.

For n,m′∈Nn, m' \in \mathbb{N}n,m′∈N and complex θ\thetaθ, define τn,m′(θ)\tau_{n,m'}(\theta)τn,m′​(θ) as:

  • 111 if nnn and m′m'm′ are both even;
  • (cos⁡θ)−1(\cos\theta)^{-1}(cosθ)−1 if nnn is odd and m′m'm′ is even;
  • sin⁡θ\sin\thetasinθ if nnn and m′m'm′ are both odd;
  • tan⁡θ=sin⁡θ/cos⁡θ\tan\theta=\sin\theta/\cos\thetatanθ=sinθ/cosθ if nnn is even and m′m'm′ is odd.

In the second and fourth cases, the value is taken to be 000 when cos⁡θ=0\cos\theta=0cosθ=0. This happens for θ=β\theta=\betaθ=β when kρ=kk_\rho=kkρ​=k, and for θ=β′\theta=\beta'θ=β′ when kρ=k′k_\rho=k'kρ​=k′.

Also define Kn,m′K_{n,m'}Kn,m′​ as:

  • n/2n/2n/2 if nnn is even;
  • (n+1)/2(n+1)/2(n+1)/2 if nnn is odd and m′m'm′ is even;
  • (n−1)/2(n-1)/2(n−1)/2 if nnn and m′m'm′ are both odd.

The statement. The theorem asserts the conjunction of the following five claims.

  1. X=1−2kρ2/k2X = 1 - 2k_\rho^2/k^2X=1−2kρ2​/k2.

  2. X′=1−2kρ2/k′2X' = 1 - 2k_\rho^2/k'^2X′=1−2kρ2​/k′2.

  3. The two are related by

X′=1−(k/k′)2+(k/k′)2 X.X' = 1-(k/k')^2+(k/k')^2\,X.X′=1−(k/k′)2+(k/k′)2X.
  1. For every j∈Nj\in\mathbb{N}j∈N,
Tj(X′)=∑s=0jCjs Ts(X).T_j(X')=\sum_{s=0}^{j} C_{js}\,T_s(X).Tj​(X′)=s=0∑j​Cjs​Ts​(X).
  1. Let n,ν∈Nn,\nu\in\mathbb{N}n,ν∈N and m,μ∈Zm,\mu\in\mathbb{Z}m,μ∈Z with ∣m∣≤n|m|\le n∣m∣≤n and ∣μ∣≤ν|\mu|\le\nu∣μ∣≤ν. Let B1,B2:N→CB^1, B^2:\mathbb{N}\to\mathbb{C}B1,B2:N→C be arbitrary sequences; they are not tied to any Legendre function. Let p1,p2∈Cp_1, p_2 \in \mathbb{C}p1​,p2​∈C satisfy
p1=sgn⁡(m) τn,∣m∣(β)∑i=0Kn,∣m∣Bi1 Ti(X),p2=sgn⁡(μ) τν,∣μ∣(β′)∑j=0Kν,∣μ∣Bj2 Tj(X′).p_1=\operatorname{sgn}(m)\,\tau_{n,|m|}(\beta)\sum_{i=0}^{K_{n,|m|}} B^1_i\,T_i(X),\qquad p_2=\operatorname{sgn}(\mu)\,\tau_{\nu,|\mu|}(\beta')\sum_{j=0}^{K_{\nu,|\mu|}} B^2_j\,T_j(X').p1​=sgn(m)τn,∣m∣​(β)i=0∑Kn,∣m∣​​Bi1​Ti​(X),p2​=sgn(μ)τν,∣μ∣​(β′)j=0∑Kν,∣μ∣​​Bj2​Tj​(X′).

Then both of the following hold:

p1p2=sgn⁡(m)sgn⁡(μ) τn,∣m∣(β) τν,∣μ∣(β′)∑i=0Kn,∣m∣∑j=0Kν,∣μ∣Bi1Bj2 Ti(X) Tj(X′),p_1p_2=\operatorname{sgn}(m)\operatorname{sgn}(\mu)\,\tau_{n,|m|}(\beta)\,\tau_{\nu,|\mu|}(\beta')\sum_{i=0}^{K_{n,|m|}}\sum_{j=0}^{K_{\nu,|\mu|}} B^1_iB^2_j\,T_i(X)\,T_j(X'),p1​p2​=sgn(m)sgn(μ)τn,∣m∣​(β)τν,∣μ∣​(β′)i=0∑Kn,∣m∣​​j=0∑Kν,∣μ∣​​Bi1​Bj2​Ti​(X)Tj​(X′), p1p2=sgn⁡(m)sgn⁡(μ) τn,∣m∣(β) τν,∣μ∣(β′)∑i=0Kn,∣m∣∑j=0Kν,∣μ∣∑l=0jBi1Bj2 Cjl Ti(X) Tl(X).p_1p_2=\operatorname{sgn}(m)\operatorname{sgn}(\mu)\,\tau_{n,|m|}(\beta)\,\tau_{\nu,|\mu|}(\beta')\sum_{i=0}^{K_{n,|m|}}\sum_{j=0}^{K_{\nu,|\mu|}}\sum_{l=0}^{j} B^1_iB^2_j\,C_{jl}\,T_i(X)\,T_l(X).p1​p2​=sgn(m)sgn(μ)τn,∣m∣​(β)τν,∣μ∣​(β′)i=0∑Kn,∣m∣​​j=0∑Kν,∣μ∣​​l=0∑j​Bi1​Bj2​Cjl​Ti​(X)Tl​(X).

In the second identity, the factor τν,∣μ∣(β′)\tau_{\nu,|\mu|}(\beta')τν,∣μ∣​(β′) is still evaluated at β′\beta'β′, while every Chebyshev polynomial is evaluated at X=cos⁡2βX=\cos2\betaX=cos2β.

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

    Confirmed by the moderator at approval.

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