Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (3.12)-(3.14): the spectral reaction field components

Open
Arxiv2507_18491.reaction_components_spectral

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

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

Let the layered medium be as above, with zzz in layer ℓ\ellℓ and z′z'z′ in layer ℓ′\ell'ℓ′. Fix (kx,ky)(k_x,k_y)(kx​,ky​) with kρ=kx2+ky2>0k_\rho=\sqrt{k_x^2+k_y^2}>0kρ​=kx2​+ky2​​>0 and kℓ′z≠0k_{\ell'z}\neq0kℓ′z​=0. Take densities ϕℓℓ′∗⋆\phi^{\ast\star}_{\ell\ell'}ϕℓℓ′∗⋆​ and ψℓℓ′∗⋆\psi^{\ast\star}_{\ell\ell'}ψℓℓ′∗⋆​. Insert into the spectral formula (3.3) the reaction parts of (3.8):

ϕ=−12ωkℓ′z∑∗,⋆ϕℓℓ′∗⋆Zℓℓ′∗⋆,ψ=−12ωμℓ′kℓ′z∑∗,⋆ψℓℓ′∗⋆Zℓℓ′∗⋆,ψ~=−∂z′ψ.\phi=-\frac{1}{2\omega k_{\ell'z}}\sum_{\ast,\star}\phi^{\ast\star}_{\ell\ell'}Z^{\ast\star}_{\ell\ell'},\qquad\psi=-\frac{1}{2\omega\mu_{\ell'}k_{\ell'z}}\sum_{\ast,\star}\psi^{\ast\star}_{\ell\ell'}Z^{\ast\star}_{\ell\ell'},\qquad\tilde\psi=-\partial_{z'}\psi.ϕ=−2ωkℓ′z​1​∗,⋆∑​ϕℓℓ′∗⋆​Zℓℓ′∗⋆​,ψ=−2ωμℓ′​kℓ′z​1​∗,⋆∑​ψℓℓ′∗⋆​Zℓℓ′∗⋆​,ψ~​=−∂z′​ψ.

The result is the sum of the four reaction components (3.12)-(3.13):

G^Ereac=∑∗,⋆∈{↑,↓}iZℓℓ′∗⋆(kρ,z,z′)2kℓ′zΘℓℓ′∗⋆(kx,ky),\widehat{\boldsymbol G}_E^{\rm reac}=\sum_{\ast,\star\in\{\uparrow,\downarrow\}}\mathrm i\frac{Z^{\ast\star}_{\ell\ell'}(k_\rho,z,z')}{2k_{\ell'z}}\Theta^{\ast\star}_{\ell\ell'}(k_x,k_y),GEreac​=∗,⋆∈{↑,↓}∑​i2kℓ′z​Zℓℓ′∗⋆​(kρ​,z,z′)​Θℓℓ′∗⋆​(kx​,ky​),

where Θℓℓ′∗⋆\Theta^{\ast\star}_{\ell\ell'}Θℓℓ′∗⋆​ are the matrices (3.14).

Formalization Note By linearity, (3.3) splits into a free-space part and a reaction part. The paper identifies the free-space part with δℓℓ′G^Ef\delta_{\ell\ell'}\widehat{\boldsymbol G}^f_Eδℓℓ′​GEf​ without giving ϕf\phi^fϕf and ψf\psi^fψf, so only the reaction part is stated. The term δ\boldsymbol\deltaδ of (3.3) belongs to the free-space part and is omitted.

Preamble
import Mathlib
import Definitions.Def_Arxiv2507_18491_Basic

open MeasureTheory Filter Topology
Formal statement
namespace Arxiv2507_18491

theorem reaction_components_spectral (omega : ℝ) (epsL muL : ℕ → ℝ) (homega : 0 < omega)
    (heps : ∀ j, 0 < epsL j) (hmu : ∀ j, 0 < muL j) (L : ℕ) (d : ℕ → ℝ)
    (hd : IsInterfaces L d) (l l' : ℕ) (kx ky : ℝ) (hk0 : 0 < krhoOf kx ky)
    (hkz : vkz (waveNum omega epsL muL l') (krhoOf kx ky) ≠ 0)
    (phiD psiD : Dir → Dir → ℝ → ℂ) (z z' : ℝ)
    (hz : InLayer L d l z) (hz' : InLayer L d l' z') :
    specGE omega (waveNum omega epsL muL l) (muL l) kx ky
        (phiReac omega (waveNum omega epsL muL) d l l' phiD (krhoOf kx ky))
        (psiReac omega (waveNum omega epsL muL) muL d l l' psiD (krhoOf kx ky))
        (fun z₁ z₂ => -deriv (fun w =>
          psiReac omega (waveNum omega epsL muL) muL d l l' psiD (krhoOf kx ky) z₁ w) z₂)
        z z' =
      ∑ a : Dir, ∑ b : Dir,
        GhatReac (waveNum omega epsL muL) muL d l l' a b (phiD a b) (psiD a b) kx ky z z' := 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 c032; Section 3.1, eqs. (3.12)-(3.14) from eqs. (3.3) and (3.8), PDF pp. 7-8
Read-back

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

Setting and hypotheses. The statement is about the following data:

  • a real number ω>0\omega > 0ω>0;
  • sequences (εj)j∈N(\varepsilon_j)_{j \in \mathbb N}(εj​)j∈N​ and (μj)j∈N(\mu_j)_{j \in \mathbb N}(μj​)j∈N​ of real numbers with εj>0\varepsilon_j > 0εj​>0 and μj>0\mu_j > 0μj​>0 for every j∈Nj \in \mathbb Nj∈N;
  • a natural number LLL (possibly L=0L = 0L=0);
  • a real sequence (dj)j∈N(d_j)_{j \in \mathbb N}(dj​)j∈N​ that is strictly decreasing on the indices below LLL: dj<did_j < d_idj​<di​ whenever i<j<Li < j < Li<j<L. The values djd_jdj​ for j≥Lj \ge Lj≥L are unconstrained;
  • natural numbers ℓ,ℓ′\ell, \ell'ℓ,ℓ′;
  • real numbers kx,kyk_x, k_ykx​,ky​;
  • arbitrary functions ϕab,ψab:R→C\phi^{ab}, \psi^{ab} : \mathbb R \to \mathbb Cϕab,ψab:R→C, one pair for each a,b∈{↑,↓}a, b \in \{\uparrow, \downarrow\}a,b∈{↑,↓}. Only their values at kρk_\rhokρ​ (defined below) enter, so they are effectively eight arbitrary complex numbers;
  • real numbers z,z′z, z'z,z′.

The layer wave numbers are kj=ωεjμj>0k_j = \omega\sqrt{\varepsilon_j \mu_j} > 0kj​=ωεj​μj​​>0, and kρ=kx2+ky2k_\rho = \sqrt{k_x^2 + k_y^2}kρ​=kx2​+ky2​​. For a layer jjj, the vertical wave number is

kjz={kj2−kρ2if kρ2≤kj2,ikρ2−kj2otherwise.k_{jz} = \begin{cases} \sqrt{k_j^2 - k_\rho^2} & \text{if } k_\rho^2 \le k_j^2,\\ i\sqrt{k_\rho^2 - k_j^2} & \text{otherwise.}\end{cases}kjz​=⎩⎨⎧​kj2​−kρ2​​ikρ2​−kj2​​​if kρ2​≤kj2​,otherwise.​

The hypotheses are:

  1. kρ>0k_\rho > 0kρ​>0, that is, (kx,ky)≠(0,0)(k_x, k_y) \ne (0,0)(kx​,ky​)=(0,0).
  2. kℓ′z≠0k_{\ell' z} \ne 0kℓ′z​=0, which here is equivalent to kρ≠kℓ′k_\rho \ne k_{\ell'}kρ​=kℓ′​. No such assumption is made on kℓzk_{\ell z}kℓz​.
  3. zzz lies in layer ℓ\ellℓ, meaning:
    • ℓ≤L\ell \le Lℓ≤L;
    • either ℓ=0\ell = 0ℓ=0 or z<dℓ−1z < d_{\ell-1}z<dℓ−1​;
    • either ℓ=L\ell = Lℓ=L or dℓ<zd_\ell < zdℓ​<z.
  4. z′z'z′ lies in layer ℓ′\ell'ℓ′, with the same three conditions for ℓ′\ell'ℓ′ and z′z'z′.

No hypothesis requires that the individual components (a,b)(a,b)(a,b) be "defined", in the sense of only using interfaces with index in {0,…,L−1}\{0,\dots,L-1\}{0,…,L−1}. All four components are always summed.

Auxiliary objects. The reflection in interface jjj is τj(t)=2dj−t\tau_j(t) = 2d_j - tτj​(t)=2dj​−t. Indices use truncated natural-number subtraction, so ℓ−1\ell - 1ℓ−1 means 000 when ℓ=0\ell = 0ℓ=0, and likewise for ℓ′\ell'ℓ′. Hence τℓ−1\tau_{\ell-1}τℓ−1​ with ℓ=0\ell = 0ℓ=0 is τ0\tau_0τ0​. Also, τℓ\tau_\ellτℓ​ with ℓ=L\ell = Lℓ=L uses the unconstrained value dLd_LdL​.

For a,b∈{↑,↓}a, b \in \{\uparrow,\downarrow\}a,b∈{↑,↓} and heights t,t′t, t't,t′, the exponentials Zab(t,t′)Z^{ab}(t,t')Zab(t,t′) are:

  • Z↑↑(t,t′)Z^{\uparrow\uparrow}(t,t')Z↑↑(t,t′):
ei(kℓzt−kℓ′zt′) if ℓ<ℓ′,ei(kℓ′zτℓ′−1(t′)−kℓzτℓ(t)) otherwise;e^{i(k_{\ell z} t - k_{\ell' z} t')} \text{ if } \ell < \ell', \qquad e^{i(k_{\ell' z}\tau_{\ell'-1}(t') - k_{\ell z}\tau_\ell(t))} \text{ otherwise;}ei(kℓz​t−kℓ′z​t′) if ℓ<ℓ′,ei(kℓ′z​τℓ′−1​(t′)−kℓz​τℓ​(t)) otherwise;
  • Z↑↓(t,t′)Z^{\uparrow\downarrow}(t,t')Z↑↓(t,t′):
ei(kℓzt−kℓ′zτℓ′(t′)) if ℓ≤ℓ′,ei(kℓ′zt′−kℓzτℓ(t)) otherwise;e^{i(k_{\ell z} t - k_{\ell' z}\tau_{\ell'}(t'))} \text{ if } \ell \le \ell', \qquad e^{i(k_{\ell' z} t' - k_{\ell z}\tau_\ell(t))} \text{ otherwise;}ei(kℓz​t−kℓ′z​τℓ′​(t′)) if ℓ≤ℓ′,ei(kℓ′z​t′−kℓz​τℓ​(t)) otherwise;
  • Z↓↑(t,t′)Z^{\downarrow\uparrow}(t,t')Z↓↑(t,t′):
ei(kℓzτℓ−1(t)−kℓ′zt′) if ℓ<ℓ′,ei(kℓ′zτℓ′−1(t′)−kℓzt) otherwise;e^{i(k_{\ell z}\tau_{\ell-1}(t) - k_{\ell' z} t')} \text{ if } \ell < \ell', \qquad e^{i(k_{\ell' z}\tau_{\ell'-1}(t') - k_{\ell z} t)} \text{ otherwise;}ei(kℓz​τℓ−1​(t)−kℓ′z​t′) if ℓ<ℓ′,ei(kℓ′z​τℓ′−1​(t′)−kℓz​t) otherwise;
  • Z↓↓(t,t′)Z^{\downarrow\downarrow}(t,t')Z↓↓(t,t′):
ei(kℓzτℓ−1(t)−kℓ′zτℓ′(t′)) if ℓ≤ℓ′,ei(kℓ′zt′−kℓzt) otherwise.e^{i(k_{\ell z}\tau_{\ell-1}(t) - k_{\ell' z}\tau_{\ell'}(t'))} \text{ if } \ell \le \ell', \qquad e^{i(k_{\ell' z} t' - k_{\ell z} t)} \text{ otherwise.}ei(kℓz​τℓ−1​(t)−kℓ′z​τℓ′​(t′)) if ℓ≤ℓ′,ei(kℓ′z​t′−kℓz​t) otherwise.

From these, define three functions of (t,t′)(t,t')(t,t′):

Φ(t,t′)=−12ωkℓ′z∑a,bϕab(kρ) Zab(t,t′),\Phi(t,t') = -\frac{1}{2\omega k_{\ell' z}}\sum_{a,b}\phi^{ab}(k_\rho)\,Z^{ab}(t,t'),Φ(t,t′)=−2ωkℓ′z​1​a,b∑​ϕab(kρ​)Zab(t,t′), Ψ(t,t′)=−12ωμℓ′kℓ′z∑a,bψab(kρ) Zab(t,t′),\Psi(t,t') = -\frac{1}{2\omega\mu_{\ell'} k_{\ell' z}}\sum_{a,b}\psi^{ab}(k_\rho)\,Z^{ab}(t,t'),Ψ(t,t′)=−2ωμℓ′​kℓ′z​1​a,b∑​ψab(kρ​)Zab(t,t′), Ψ~(t,t′)=−∂Ψ∂t′(t,t′).\tilde\Psi(t,t') = -\frac{\partial \Psi}{\partial t'}(t,t').Ψ~(t,t′)=−∂t′∂Ψ​(t,t′).

All derivatives in this statement are ordinary one-variable derivatives at the indicated point. The convention is that a non-differentiable function has derivative 000. The functions involved here are finite sums of exponentials of affine functions, so they are differentiable.

The 3×33\times33×3 complex matrices used are:

J1=diag⁡(1,1,0),J2=diag⁡(0,0,1),J_1 = \operatorname{diag}(1,1,0), \qquad J_2 = \operatorname{diag}(0,0,1),J1​=diag(1,1,0),J2​=diag(0,0,1), J3=(00ikx00iky000),J4=(000000ikxiky0),J_3 = \begin{pmatrix}0&0&ik_x\\0&0&ik_y\\0&0&0\end{pmatrix}, \qquad J_4 = \begin{pmatrix}0&0&0\\0&0&0\\ik_x&ik_y&0\end{pmatrix},J3​=​000​000​ikx​iky​0​​,J4​=​00ikx​​00iky​​000​​, J5=−(kx2kxky0kxkyky20000).J_5 = -\begin{pmatrix}k_x^2&k_xk_y&0\\k_xk_y&k_y^2&0\\0&0&0\end{pmatrix}.J5​=−​kx2​kx​ky​0​kx​ky​ky2​0​000​​.

Claim. At the given (kx,ky,z,z′)(k_x,k_y,z,z')(kx​,ky​,z,z′), the following equality of 3×33\times 33×3 complex matrices holds:

−iωkℓ2(kℓ2 Φ J1+μℓkρ2 Ψ J2+μℓ ∂zΨ J3+μℓ Ψ~ J4+kℓ2Φ+μℓ ∂zΨ~kρ2 J5)=∑a,b∈{↑,↓}i Zab(z,z′)2kℓ′z Θab.-\frac{i\omega}{k_\ell^2}\Big(k_\ell^2\,\Phi\,J_1 + \mu_\ell k_\rho^2\,\Psi\,J_2 + \mu_\ell\,\partial_z\Psi\,J_3 + \mu_\ell\,\tilde\Psi\,J_4 + \frac{k_\ell^2\Phi + \mu_\ell\,\partial_z\tilde\Psi}{k_\rho^2}\,J_5\Big) = \sum_{a,b\in\{\uparrow,\downarrow\}} \frac{i\,Z^{ab}(z,z')}{2k_{\ell' z}}\,\Theta^{ab}.−kℓ2​iω​(kℓ2​ΦJ1​+μℓ​kρ2​ΨJ2​+μℓ​∂z​ΨJ3​+μℓ​Ψ~J4​+kρ2​kℓ2​Φ+μℓ​∂z​Ψ~​J5​)=a,b∈{↑,↓}∑​2kℓ′z​iZab(z,z′)​Θab.

On the left:

  • Φ\PhiΦ, Ψ\PsiΨ and Ψ~\tilde\PsiΨ~ are evaluated at (z,z′)(z,z')(z,z′);
  • ∂z\partial_z∂z​ denotes the derivative in the first variable, taken at zzz with the second variable fixed at z′z'z′;
  • consequently ∂zΨ~=−∂z∂z′Ψ\partial_z\tilde\Psi = -\partial_z\partial_{z'}\Psi∂z​Ψ~=−∂z​∂z′​Ψ.

On the right, with γ=μℓ/(μℓ′kℓ2)\gamma = \mu_\ell/(\mu_{\ell'}k_\ell^2)γ=μℓ​/(μℓ′​kℓ2​), each matrix Θab\Theta^{ab}Θab is

Θab=ϕab(kρ)(J1+J5kρ2)+γ ψab(kρ)(kρ2J2+c3 ikℓzJ3+c4 ikℓ′zJ4+c5 kℓzkℓ′zkρ2J5).\Theta^{ab} = \phi^{ab}(k_\rho)\Big(J_1 + \frac{J_5}{k_\rho^2}\Big) + \gamma\,\psi^{ab}(k_\rho)\Big(k_\rho^2 J_2 + c_3\,i k_{\ell z} J_3 + c_4\,i k_{\ell' z} J_4 + c_5\,\frac{k_{\ell z}k_{\ell' z}}{k_\rho^2}J_5\Big).Θab=ϕab(kρ​)(J1​+kρ2​J5​​)+γψab(kρ​)(kρ2​J2​+c3​ikℓz​J3​+c4​ikℓ′z​J4​+c5​kρ2​kℓz​kℓ′z​​J5​).

The signs (c3,c4,c5)(c_3, c_4, c_5)(c3​,c4​,c5​) depend on the component:

(a,b)(a,b)(a,b)(c3,c4,c5)(c_3, c_4, c_5)(c3​,c4​,c5​)
↑↓\uparrow\downarrow↑↓(+1,−1,+1)(+1,-1,+1)(+1,−1,+1)
↑↑\uparrow\uparrow↑↑(+1,+1,−1)(+1,+1,-1)(+1,+1,−1)
↓↓\downarrow\downarrow↓↓(−1,−1,−1)(-1,-1,-1)(−1,−1,−1)
↓↑\downarrow\uparrow↓↑(−1,+1,+1)(-1,+1,+1)(−1,+1,+1)

This is a pointwise algebraic identity at a single spectral point (kx,ky)(k_x,k_y)(kx​,ky​) and single heights z,z′z,z'z,z′. No integrals appear. The hypotheses that zzz and z′z'z′ lie in their layers constrain only those two points.

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