Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (3.50)-(3.51): expansion of the Legendre product in Chebyshev polynomials of one argument (as proved)

Open
Arxiv2507_18491.legendre_product_single_chebyshev

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

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

Let k,k′>0k,k'>0k,k′>0 and kρ≥0k_\rho\ge0kρ​≥0. Let β,β′\beta,\beta'β,β′ 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′, and suppose the expansions (B.3) of P^nm(cos⁡β)\widehat P_n^m(\cos\beta)Pnm​(cosβ) and P^νμ(cos⁡β′)\widehat P_\nu^\mu(\cos\beta')Pνμ​(cosβ′) hold, as in eq. (3.49), with ∣m∣≤n|m|\le n∣m∣≤n, ∣μ∣≤ν|\mu|\le\nu∣μ∣≤ν. Write Q=P^nm(cos⁡β)P^νμ(cos⁡β′)Q=\widehat P_n^m(\cos\beta)\widehat P_\nu^\mu(\cos\beta')Q=Pnm​(cosβ)Pνμ​(cosβ′) and Π=smμ2τn,∣m∣(β)τν,∣μ∣(β′)\Pi=\frac{s_{m\mu}}2\tau_{n,|m|}(\beta)\tau_{\nu,|\mu|}(\beta')Π=2smμ​​τn,∣m∣​(β)τν,∣μ∣​(β′).

  1. (eq. 3.50) If k≤k′k\le k'k≤k′, then with a=(k/k′)2a=(k/k')^2a=(k/k′)2, b=1−ab=1-ab=1−a and l0=i−min⁡(i,j)l_0=i-\min(i,j)l0​=i−min(i,j),
Q=Π∑i=0Kn∑j=0KνBn,∣m∣iBν,∣μ∣j(∑l=ij+iCj,l−iabTl(cos⁡2β)+∑l=l0iCj,i−labTl(cos⁡2β)+∑l=1j−iCj,l+iabTl(cos⁡2β)).Q=\Pi\sum_{i=0}^{K_n}\sum_{j=0}^{K_\nu}B^i_{n,|m|}B^j_{\nu,|\mu|}\Big(\sum_{l=i}^{j+i}C^{ab}_{j,l-i}T_l(\cos2\beta)+\sum_{l=l_0}^{i}C^{ab}_{j,i-l}T_l(\cos2\beta)+\sum_{l=1}^{j-i}C^{ab}_{j,l+i}T_l(\cos2\beta)\Big).Q=Πi=0∑Kn​​j=0∑Kν​​Bn,∣m∣i​Bν,∣μ∣j​(l=i∑j+i​Cj,l−iab​Tl​(cos2β)+l=l0​∑i​Cj,i−lab​Tl​(cos2β)+l=1∑j−i​Cj,l+iab​Tl​(cos2β)).
  1. (eq. 3.51) If k>k′k>k'k>k′, then with a=(k′/k)2a=(k'/k)^2a=(k′/k)2, b=1−ab=1-ab=1−a and l0=j−min⁡(i,j)l_0=j-\min(i,j)l0​=j−min(i,j),
Q=Π∑i=0Kn∑j=0KνBn,∣m∣iBν,∣μ∣j(∑l=jj+iCi,l−jabTl(cos⁡2β′)+∑l=l0jCi,j−labTl(cos⁡2β′)+∑l=1i−jCi,l+jabTl(cos⁡2β′)).Q=\Pi\sum_{i=0}^{K_n}\sum_{j=0}^{K_\nu}B^i_{n,|m|}B^j_{\nu,|\mu|}\Big(\sum_{l=j}^{j+i}C^{ab}_{i,l-j}T_l(\cos2\beta')+\sum_{l=l_0}^{j}C^{ab}_{i,j-l}T_l(\cos2\beta')+\sum_{l=1}^{i-j}C^{ab}_{i,l+j}T_l(\cos2\beta')\Big).Q=Πi=0∑Kn​​j=0∑Kν​​Bn,∣m∣i​Bν,∣μ∣j​(l=j∑j+i​Ci,l−jab​Tl​(cos2β′)+l=l0​∑j​Ci,j−lab​Tl​(cos2β′)+l=1∑i−j​Ci,l+jab​Tl​(cos2β′)).

An empty range of summation contributes zero.

Formalization Note Stated as proved. For k>k′k>k'k>k′ the paper does not say what a,ba,ba,b are, and it reuses the symbol l0=i−min⁡(i,j)l_0=i-\min(i,j)l0​=i−min(i,j). The expansion holds with a=(k′/k)2a=(k'/k)^2a=(k′/k)2 and b=1−(k′/k)2b=1-(k'/k)^2b=1−(k′/k)2, which come from cos⁡2β=1−a+acos⁡2β′\cos2\beta=1-a+a\cos2\beta'cos2β=1−a+acos2β′, and with l0=j−min⁡(i,j)l_0=j-\min(i,j)l0​=j−min(i,j). With l0=i−min⁡(i,j)l_0=i-\min(i,j)l0​=i−min(i,j) the formula is false, for example for i=2i=2i=2, j=0j=0j=0. The expansions (B.3) enter as hypotheses, as in (3.49).

Preamble
import Mathlib
import Definitions.Def_Arxiv2507_18491_Basic

open MeasureTheory Filter Topology
Formal statement
namespace Arxiv2507_18491

theorem legendre_product_single_chebyshev (k k' : ℝ) (hk : 0 < k) (hk' : 0 < 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')
    (n nu : ℕ) (m mu : ℤ) (hm : |m| ≤ n) (hmu : |mu| ≤ nu) (B1 B2 : ℕ → ℂ) (p1 p2 : ℂ)
    (hp1 : p1 = sgnPow m * tauLeg n m.natAbs beta *
      ∑ i ∈ Finset.range (Kn n m.natAbs + 1), B1 i * chebT i (Complex.cos (2 * beta)))
    (hp2 : p2 = sgnPow mu * tauLeg nu mu.natAbs beta' *
      ∑ j ∈ Finset.range (Kn nu mu.natAbs + 1), B2 j * chebT j (Complex.cos (2 * beta'))) :
    (k ≤ k' →
      p1 * p2 = sgnPow m * sgnPow mu / 2 * 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 *
            ((∑ l ∈ Finset.Icc i (j + i),
                chebShiftCoeff (((k / k' : ℝ) : ℂ) ^ 2) (1 - ((k / k' : ℝ) : ℂ) ^ 2) j (l - i) *
                  chebT l (Complex.cos (2 * beta)))
              + (∑ l ∈ Finset.Icc (i - min i j) i,
                chebShiftCoeff (((k / k' : ℝ) : ℂ) ^ 2) (1 - ((k / k' : ℝ) : ℂ) ^ 2) j (i - l) *
                  chebT l (Complex.cos (2 * beta)))
              + (∑ l ∈ Finset.Icc 1 (j - i),
                chebShiftCoeff (((k / k' : ℝ) : ℂ) ^ 2) (1 - ((k / k' : ℝ) : ℂ) ^ 2) j (l + i) *
                  chebT l (Complex.cos (2 * beta))))) ∧
    (k' < k →
      p1 * p2 = sgnPow m * sgnPow mu / 2 * 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 *
            ((∑ l ∈ Finset.Icc j (j + i),
                chebShiftCoeff (((k' / k : ℝ) : ℂ) ^ 2) (1 - ((k' / k : ℝ) : ℂ) ^ 2) i (l - j) *
                  chebT l (Complex.cos (2 * beta')))
              + (∑ l ∈ Finset.Icc (j - min i j) j,
                chebShiftCoeff (((k' / k : ℝ) : ℂ) ^ 2) (1 - ((k' / k : ℝ) : ℂ) ^ 2) i (j - l) *
                  chebT l (Complex.cos (2 * beta')))
              + (∑ l ∈ Finset.Icc 1 (i - j),
                chebShiftCoeff (((k' / k : ℝ) : ℂ) ^ 2) (1 - ((k' / k : ℝ) : ℂ) ^ 2) i (l + j) *
                  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 c021; Section 3.4.3, eqs. (3.50)-(3.51), with eqs. (3.47)-(3.49), (A.1) and (B.3), PDF p. 19
Read-back

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

Throughout, let k,k′k, k'k,k′ be real numbers with k>0k > 0k>0 and k′>0k' > 0k′>0, and let kρk_\rhokρ​ be a real number with kρ≥0k_\rho \ge 0kρ​≥0.

For a real κ\kappaκ, the vertical wave number is the complex number

κz(kρ)={κ2−kρ2if kρ2≤κ2,i kρ2−κ2otherwise,\kappa_z(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}κz​(kρ​)=⎩⎨⎧​κ2−kρ2​​ikρ2​−κ2​​if kρ2​≤κ2,otherwise,​

where ⋅\sqrt{\cdot}⋅​ is the nonnegative real square root. Write kzk_zkz​ and kz′k'_zkz′​ for this quantity with κ=k\kappa = kκ=k and κ=k′\kappa = k'κ=k′.

Let β,β′∈C\beta, \beta' \in \mathbb{C}β,β′∈C be arbitrary complex numbers satisfying

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

Here sin⁡\sinsin and cos⁡\coscos are the complex functions. These hypotheses are always jointly satisfiable, because (kρ/k)2+(kz/k)2=1(k_\rho/k)^2 + (k_z/k)^2 = 1(kρ​/k)2+(kz​/k)2=1 in both branches. They force, for example, cos⁡2β=1−2kρ2/k2\cos 2\beta = 1 - 2k_\rho^2/k^2cos2β=1−2kρ2​/k2 and cos⁡2β′=1−2kρ2/k′2\cos 2\beta' = 1 - 2k_\rho^2/k'^2cos2β′=1−2kρ2​/k′2.

The remaining data are:

  • natural numbers n,νn, \nun,ν;
  • integers m,μm, \mum,μ with ∣m∣≤n|m| \le n∣m∣≤n and ∣μ∣≤ν|\mu| \le \nu∣μ∣≤ν;
  • two completely arbitrary sequences of complex numbers B0(1),B1(1),…B^{(1)}_0, B^{(1)}_1, \dotsB0(1)​,B1(1)​,… and B0(2),B1(2),…B^{(2)}_0, B^{(2)}_1, \dotsB0(2)​,B1(2)​,….

No relation to Legendre functions or any other constraint is imposed on these sequences.

Auxiliary notation.

  • Sign factor. 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 \ge 0m≥0 and (−1)m(-1)^m(−1)m for m<0m < 0m<0.

  • Prefactor. For natural numbers n,mn, mn,m and a complex θ\thetaθ:

    • τnm(θ)=1\tau_{nm}(\theta) = 1τnm​(θ)=1 if nnn and mmm are both even;
    • τnm(θ)=(cos⁡θ)−1\tau_{nm}(\theta) = (\cos\theta)^{-1}τnm​(θ)=(cosθ)−1 if mmm is even and nnn is odd;
    • τnm(θ)=sin⁡θ\tau_{nm}(\theta) = \sin\thetaτnm​(θ)=sinθ if mmm and nnn are both odd;
    • τnm(θ)=tan⁡θ\tau_{nm}(\theta) = \tan\thetaτnm​(θ)=tanθ if mmm is odd and nnn is even.

    By convention 0−1=00^{-1} = 00−1=0, so (cos⁡θ)−1(\cos\theta)^{-1}(cosθ)−1 and tan⁡θ=sin⁡θ/cos⁡θ\tan\theta = \sin\theta/\cos\thetatanθ=sinθ/cosθ are both taken to be 000 when cos⁡θ=0\cos\theta = 0cosθ=0. This happens for β\betaβ exactly when kρ=kk_\rho = kkρ​=k.

  • Number of terms. Kn,mK_{n,m}Kn,m​ is:

    • ⌊n/2⌋\lfloor n/2 \rfloor⌊n/2⌋ if nnn is even;
    • (n+1)/2(n+1)/2(n+1)/2 if nnn is odd and mmm is even;
    • (n−1)/2(n-1)/2(n−1)/2 if nnn and mmm are both odd.

    It is always used with mmm replaced by ∣m∣|m|∣m∣ (respectively ∣μ∣|\mu|∣μ∣).

  • Chebyshev polynomials. TlT_lTl​ is the Chebyshev polynomial of the first kind of degree lll, evaluated at a complex argument.

  • Coefficient array. For complex a,ba, ba,b, the array Cj,sa,bC^{a,b}_{j,s}Cj,sa,b​ (j,s∈Nj, s \in \mathbb{N}j,s∈N) is defined purely by the following recursion. For j=0j = 0j=0 and j=1j = 1j=1:

    • C0,0=1C_{0,0} = 1C0,0​=1 and C0,s=0C_{0,s} = 0C0,s​=0 for s≥1s \ge 1s≥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 \ge 2s≥2.

    For j≥2j \ge 2j≥2, in order of precedence:

    • 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 \ge 3j≥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 \ge 3j≥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.

Define

p1=sgn⁡(m) τn∣m∣(β)∑i=0Kn,∣m∣Bi(1) Ti(cos⁡2β),p2=sgn⁡(μ) τν∣μ∣(β′)∑j=0Kν,∣μ∣Bj(2) Tj(cos⁡2β′).p_1 = \operatorname{sgn}(m)\,\tau_{n|m|}(\beta)\sum_{i=0}^{K_{n,|m|}} B^{(1)}_i\,T_i(\cos 2\beta), \qquad p_2 = \operatorname{sgn}(\mu)\,\tau_{\nu|\mu|}(\beta')\sum_{j=0}^{K_{\nu,|\mu|}} B^{(2)}_j\,T_j(\cos 2\beta').p1​=sgn(m)τn∣m∣​(β)i=0∑Kn,∣m∣​​Bi(1)​Ti​(cos2β),p2​=sgn(μ)τν∣μ∣​(β′)j=0∑Kν,∣μ∣​​Bj(2)​Tj​(cos2β′).

Also write

P=sgn⁡(m)sgn⁡(μ)2 τn∣m∣(β) τν∣μ∣(β′).P = \frac{\operatorname{sgn}(m)\operatorname{sgn}(\mu)}{2}\,\tau_{n|m|}(\beta)\,\tau_{\nu|\mu|}(\beta').P=2sgn(m)sgn(μ)​τn∣m∣​(β)τν∣μ∣​(β′).

Both prefactors τn∣m∣(β)\tau_{n|m|}(\beta)τn∣m∣​(β) and τν∣μ∣(β′)\tau_{\nu|\mu|}(\beta')τν∣μ∣​(β′) appear in PPP in both cases below.

Claim, case k≤k′k \le k'k≤k′. Put a=(k/k′)2a = (k/k')^2a=(k/k′)2, b=1−ab = 1 - ab=1−a, x=cos⁡2βx = \cos 2\betax=cos2β, and C=Ca,bC = C^{a,b}C=Ca,b. Then

p1p2=P∑i=0Kn,∣m∣∑j=0Kν,∣μ∣Bi(1)Bj(2)(∑l=ii+jCj, l−i Tl(x)+∑l=i−min⁡(i,j)iCj, i−l Tl(x)+∑l=1j −˙ iCj, l+i Tl(x)).p_1 p_2 = P \sum_{i=0}^{K_{n,|m|}} \sum_{j=0}^{K_{\nu,|\mu|}} B^{(1)}_i B^{(2)}_j \left( \sum_{l=i}^{i+j} C_{j,\,l-i}\,T_l(x) + \sum_{l=i-\min(i,j)}^{i} C_{j,\,i-l}\,T_l(x) + \sum_{l=1}^{j \,\dot-\, i} C_{j,\,l+i}\,T_l(x) \right).p1​p2​=Pi=0∑Kn,∣m∣​​j=0∑Kν,∣μ∣​​Bi(1)​Bj(2)​​l=i∑i+j​Cj,l−i​Tl​(x)+l=i−min(i,j)∑i​Cj,i−l​Tl​(x)+l=1∑j−˙​i​Cj,l+i​Tl​(x)​.

Here j −˙ i=max⁡(j−i,0)j \,\dot-\, i = \max(j-i, 0)j−˙​i=max(j−i,0), so the third inner sum is empty when j≤ij \le ij≤i. In this case the right-hand side involves β′\beta'β′ only through τν∣μ∣(β′)\tau_{\nu|\mu|}(\beta')τν∣μ∣​(β′); no Chebyshev polynomial is evaluated at cos⁡2β′\cos 2\beta'cos2β′.

Claim, case k′<kk' < kk′<k. Put a=(k′/k)2a = (k'/k)^2a=(k′/k)2, b=1−ab = 1 - ab=1−a, x′=cos⁡2β′x' = \cos 2\beta'x′=cos2β′, and C=Ca,bC = C^{a,b}C=Ca,b. Then

p1p2=P∑i=0Kn,∣m∣∑j=0Kν,∣μ∣Bi(1)Bj(2)(∑l=jj+iCi, l−j Tl(x′)+∑l=j−min⁡(i,j)jCi, j−l Tl(x′)+∑l=1i −˙ jCi, l+j Tl(x′)).p_1 p_2 = P \sum_{i=0}^{K_{n,|m|}} \sum_{j=0}^{K_{\nu,|\mu|}} B^{(1)}_i B^{(2)}_j \left( \sum_{l=j}^{j+i} C_{i,\,l-j}\,T_l(x') + \sum_{l=j-\min(i,j)}^{j} C_{i,\,j-l}\,T_l(x') + \sum_{l=1}^{i \,\dot-\, j} C_{i,\,l+j}\,T_l(x') \right).p1​p2​=Pi=0∑Kn,∣m∣​​j=0∑Kν,∣μ∣​​Bi(1)​Bj(2)​​l=j∑j+i​Ci,l−j​Tl​(x′)+l=j−min(i,j)∑j​Ci,j−l​Tl​(x′)+l=1∑i−˙​j​Ci,l+j​Tl​(x′)​.

Here the third inner sum is empty when i≤ji \le ji≤j. In this case β\betaβ enters the right-hand side only through τn∣m∣(β)\tau_{n|m|}(\beta)τn∣m∣​(β).

The theorem asserts both implications. Exactly one of the two cases applies for any given k,k′k, k'k,k′.

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