Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (3.8): the reaction decomposition of ψ~ℓ\tilde\psi_\ellψ~​ℓ​

Open
Arxiv2507_18491.psi_tilde_reaction_decomposition

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

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

Let the layered medium have L+1L+1L+1 layers with interfaces d0>⋯>dL−1d_0>\dots>d_{L-1}d0​>⋯>dL−1​, frequency ω>0\omega>0ω>0, and εj,μj>0\varepsilon_j,\mu_j>0εj​,μj​>0. Let the target height zzz lie in layer ℓ\ellℓ and the source height z′z'z′ lie in layer ℓ′\ell'ℓ′. Fix kρ≥0k_\rho\ge0kρ​≥0 with kℓ′z≠0k_{\ell'z}\neq0kℓ′z​=0. Take density values ψℓℓ′∗⋆(kρ)\psi^{\ast\star}_{\ell\ell'}(k_\rho)ψℓℓ′∗⋆​(kρ​) and a free-space part ψf(z,⋅)\psi^f(z,\cdot)ψf(z,⋅), differentiable at z′z'z′ when ℓ=ℓ′\ell=\ell'ℓ=ℓ′, and let

ψℓ(kρ,z,z′)=δℓℓ′ψf(z,z′)−12ωμℓ′kℓ′z∑∗,⋆∈{↑,↓}ψℓℓ′∗⋆(kρ)Zℓℓ′∗⋆(kρ,z,z′).\psi_\ell(k_\rho,z,z')=\delta_{\ell\ell'}\psi^f(z,z')-\frac{1}{2\omega\mu_{\ell'}k_{\ell'z}}\sum_{\ast,\star\in\{\uparrow,\downarrow\}}\psi^{\ast\star}_{\ell\ell'}(k_\rho)Z^{\ast\star}_{\ell\ell'}(k_\rho,z,z').ψℓ​(kρ​,z,z′)=δℓℓ′​ψf(z,z′)−2ωμℓ′​kℓ′z​1​∗,⋆∈{↑,↓}∑​ψℓℓ′∗⋆​(kρ​)Zℓℓ′∗⋆​(kρ​,z,z′).

Then ψ~ℓ=−∂z′ψℓ\tilde\psi_\ell=-\partial_{z'}\psi_\ellψ~​ℓ​=−∂z′​ψℓ​ is given by the third line of (3.8):

ψ~ℓ(kρ,z,z′)=−δℓℓ′∂z′ψf(z,z′)+i2ωμℓ′∑∗,⋆sℓ′ℓ′⋆⋆ψℓℓ′∗⋆(kρ)Zℓℓ′∗⋆(kρ,z,z′).\tilde\psi_\ell(k_\rho,z,z')=-\delta_{\ell\ell'}\partial_{z'}\psi^f(z,z')+\frac{\mathrm i}{2\omega\mu_{\ell'}}\sum_{\ast,\star}s^{\star\star}_{\ell'\ell'}\psi^{\ast\star}_{\ell\ell'}(k_\rho)Z^{\ast\star}_{\ell\ell'}(k_\rho,z,z').ψ~​ℓ​(kρ​,z,z′)=−δℓℓ′​∂z′​ψf(z,z′)+2ωμℓ′​i​∗,⋆∑​sℓ′ℓ′⋆⋆​ψℓℓ′∗⋆​(kρ​)Zℓℓ′∗⋆​(kρ​,z,z′).

The sign sℓ′ℓ′⋆⋆s^{\star\star}_{\ell'\ell'}sℓ′ℓ′⋆⋆​ is +1+1+1 for ⋆=↓\star=\downarrow⋆=↓ and −1-1−1 for ⋆=↑\star=\uparrow⋆=↑, whatever ℓ\ellℓ and ℓ′\ell'ℓ′ are.

Formalization Note The free-space function ψf\psi^fψf, which the paper omits, and the densities are arbitrary. The decomposition of the first two lines of (3.8) is taken from the paper's references; only its consequence for ψ~\tilde\psiψ~​ is stated. The hypothesis kℓ′z≠0k_{\ell'z}\neq0kℓ′z​=0 (that is, kρ≠kℓ′k_\rho\neq k_{\ell'}kρ​=kℓ′​) excludes the point where (3.8) divides by zero.

Preamble
import Mathlib
import Definitions.Def_Arxiv2507_18491_Basic

open MeasureTheory Filter Topology
Formal statement
namespace Arxiv2507_18491

theorem psi_tilde_reaction_decomposition (omega : ℝ) (epsL muL : ℕ → ℝ) (homega : 0 < omega)
    (heps : ∀ j, 0 < epsL j) (hmu : ∀ j, 0 < muL j) (L : ℕ) (d : ℕ → ℝ)
    (hd : IsInterfaces L d) (l l' : ℕ) (krho : ℝ) (hkrho : 0 ≤ krho)
    (hkz : vkz (waveNum omega epsL muL l') krho ≠ 0)
    (psiD : Dir → Dir → ℝ → ℂ) (psiF : ℝ → ℝ → ℂ) (z z' : ℝ)
    (hz : InLayer L d l z) (hz' : InLayer L d l' z')
    (hF : l = l' → DifferentiableAt ℝ (fun w => psiF z w) z') :
    -deriv (fun w => (if l = l' then (1 : ℂ) else 0) * psiF z w
        + psiReac omega (waveNum omega epsL muL) muL d l l' psiD krho z w) z' =
      -(if l = l' then (1 : ℂ) else 0) * deriv (fun w => psiF z w) z'
        + Complex.I / (2 * (omega : ℂ) * (muL l' : ℂ)) *
          ∑ a : Dir, ∑ b : Dir, (sgnS l' l' b : ℂ) * psiD a b krho *
            Zfun (waveNum omega epsL muL) d l l' a b krho 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 c031; Section 3.1, eq. (3.8) third line (from the second line and ψ~=−∂z′ψ\tilde\psi=-\partial_{z'}\psiψ~​=−∂z′​ψ), with eqs. (3.9)-(3.11), PDF pp. 6-7
Read-back

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

Setting. Fix the following data:

  • a real frequency ω>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 strictly positive reals, for every index j∈Nj \in \mathbb Nj∈N, not only j≤Lj \le Lj≤L;
  • a natural number LLL (which may be 000);
  • a real sequence (dj)j∈N(d_j)_{j\in\mathbb N}(dj​)j∈N​ such that dj<did_j < d_idj​<di​ whenever i<j<Li < j < Li<j<L. Only d0>d1>⋯>dL−1d_0 > d_1 > \dots > d_{L-1}d0​>d1​>⋯>dL−1​ are constrained. All other values, such as dLd_LdL​, are arbitrary. For L≤1L \le 1L≤1 the condition is vacuous.

The wave number of layer jjj is

kj=ωεjμj>0.k_j = \omega\sqrt{\varepsilon_j\mu_j} > 0.kj​=ωεj​μj​​>0.

For real kkk and kρk_\rhokρ​, the "vertical wave number" is

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

We write kℓz=kz(kℓ,kρ)k_{\ell z} = k_z(k_\ell,k_\rho)kℓz​=kz​(kℓ​,kρ​) and kℓ′z=kz(kℓ′,kρ)k_{\ell' z} = k_z(k_{\ell'},k_\rho)kℓ′z​=kz​(kℓ′​,kρ​).

Further assumptions.

  • ℓ,ℓ′∈N\ell, \ell' \in \mathbb Nℓ,ℓ′∈N are layer indices.

  • kρ≥0k_\rho \ge 0kρ​≥0 is a real number with kℓ′z≠0k_{\ell' z} \neq 0kℓ′z​=0. Since kℓ′>0k_{\ell'}>0kℓ′​>0, this amounts to kρ≠kℓ′k_\rho \ne k_{\ell'}kρ​=kℓ′​.

  • ψab:R→C\psi^{ab} : \mathbb R \to \mathbb Cψab:R→C is an arbitrary complex function for each pair of directions a,b∈{↑,↓}a, b \in \{\uparrow,\downarrow\}a,b∈{↑,↓}.

  • ψF:R×R→C\psi_F : \mathbb R\times\mathbb R \to \mathbb CψF​:R×R→C is an arbitrary function.

  • zzz lies strictly inside layer ℓ\ellℓ and z′z'z′ strictly inside layer ℓ′\ell'ℓ′. "zzz in layer ℓ\ellℓ" means:

    • ℓ≤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.

    So layer 000 is unbounded above, layer LLL is unbounded below, and for L=0L=0L=0 layer 000 is all of R\mathbb RR.

  • If ℓ=ℓ′\ell = \ell'ℓ=ℓ′, the map w↦ψF(z,w)w \mapsto \psi_F(z,w)w↦ψF​(z,w) is differentiable at w=z′w = z'w=z′. No differentiability is assumed when ℓ≠ℓ′\ell \neq \ell'ℓ=ℓ′.

The exponentials. For each pair of directions, Zℓℓ′ab(kρ,z,w)Z^{ab}_{\ell\ell'}(k_\rho,z,w)Zℓℓ′ab​(kρ​,z,w) is defined as follows. Here "ℓ−1\ell-1ℓ−1" and "ℓ′−1\ell'-1ℓ′−1" are truncated natural-number subtraction, so they equal 000 when the index is 000. No restriction is imposed that the interface indices used lie in {0,…,L−1}\{0,\dots,L-1\}{0,…,L−1}.

  • ↑↑\uparrow\uparrow↑↑: ei(kℓzz−kℓ′zw)e^{i(k_{\ell z}z - k_{\ell' z}w)}ei(kℓz​z−kℓ′z​w) if ℓ<ℓ′\ell<\ell'ℓ<ℓ′; otherwise ei(kℓ′z(2dℓ′−1−w)−kℓz(2dℓ−z))e^{i(k_{\ell' z}(2d_{\ell'-1}-w) - k_{\ell z}(2d_\ell - z))}ei(kℓ′z​(2dℓ′−1​−w)−kℓz​(2dℓ​−z)).
  • ↑↓\uparrow\downarrow↑↓: ei(kℓzz−kℓ′z(2dℓ′−w))e^{i(k_{\ell z}z - k_{\ell' z}(2d_{\ell'}-w))}ei(kℓz​z−kℓ′z​(2dℓ′​−w)) if ℓ≤ℓ′\ell\le\ell'ℓ≤ℓ′; otherwise ei(kℓ′zw−kℓz(2dℓ−z))e^{i(k_{\ell' z}w - k_{\ell z}(2d_\ell - z))}ei(kℓ′z​w−kℓz​(2dℓ​−z)).
  • ↓↑\downarrow\uparrow↓↑: ei(kℓz(2dℓ−1−z)−kℓ′zw)e^{i(k_{\ell z}(2d_{\ell-1}-z) - k_{\ell' z}w)}ei(kℓz​(2dℓ−1​−z)−kℓ′z​w) if ℓ<ℓ′\ell<\ell'ℓ<ℓ′; otherwise ei(kℓ′z(2dℓ′−1−w)−kℓzz)e^{i(k_{\ell' z}(2d_{\ell'-1}-w) - k_{\ell z}z)}ei(kℓ′z​(2dℓ′−1​−w)−kℓz​z).
  • ↓↓\downarrow\downarrow↓↓: ei(kℓz(2dℓ−1−z)−kℓ′z(2dℓ′−w))e^{i(k_{\ell z}(2d_{\ell-1}-z) - k_{\ell' z}(2d_{\ell'}-w))}ei(kℓz​(2dℓ−1​−z)−kℓ′z​(2dℓ′​−w)) if ℓ≤ℓ′\ell\le\ell'ℓ≤ℓ′; otherwise ei(kℓ′zw−kℓzz)e^{i(k_{\ell' z}w - k_{\ell z}z)}ei(kℓ′z​w−kℓz​z).

The function being differentiated. The "reaction part" is

ψreac(w)=−12ωμℓ′kℓ′z∑a∈{↑,↓}∑b∈{↑,↓}ψab(kρ) Zℓℓ′ab(kρ,z,w).\psi^{\mathrm{reac}}(w) = -\frac{1}{2\omega\mu_{\ell'}k_{\ell' z}}\sum_{a\in\{\uparrow,\downarrow\}}\sum_{b\in\{\uparrow,\downarrow\}}\psi^{ab}(k_\rho)\,Z^{ab}_{\ell\ell'}(k_\rho,z,w).ψreac(w)=−2ωμℓ′​kℓ′z​1​a∈{↑,↓}∑​b∈{↑,↓}∑​ψab(kρ​)Zℓℓ′ab​(kρ​,z,w).

The sum runs over all four direction pairs. Let δℓℓ′\delta_{\ell\ell'}δℓℓ′​ be 111 if ℓ=ℓ′\ell=\ell'ℓ=ℓ′ and 000 otherwise. When ℓ≠ℓ′\ell \ne \ell'ℓ=ℓ′, the first term below is the zero function.

Claim. The theorem asserts

−ddw[δℓℓ′ ψF(z,w)+ψreac(w)]w=z′=−δℓℓ′ ddwψF(z,w)∣w=z′+i2ωμℓ′∑a∑bsb ψab(kρ) Zℓℓ′ab(kρ,z,z′).-\frac{d}{dw}\Big[\delta_{\ell\ell'}\,\psi_F(z,w) + \psi^{\mathrm{reac}}(w)\Big]_{w=z'} = -\delta_{\ell\ell'}\,\frac{d}{dw}\psi_F(z,w)\Big|_{w=z'} + \frac{i}{2\omega\mu_{\ell'}}\sum_{a}\sum_{b} s_b\,\psi^{ab}(k_\rho)\,Z^{ab}_{\ell\ell'}(k_\rho,z,z').−dwd​[δℓℓ′​ψF​(z,w)+ψreac(w)]w=z′​=−δℓℓ′​dwd​ψF​(z,w)​w=z′​+2ωμℓ′​i​a∑​b∑​sb​ψab(kρ​)Zℓℓ′ab​(kρ​,z,z′).

Here sbs_bsb​ is the sign sℓ′ℓ′∗bs^{\ast b}_{\ell'\ell'}sℓ′ℓ′∗b​, evaluated with both layer indices equal to ℓ′\ell'ℓ′:

  • s↓=+1s_\downarrow = +1s↓​=+1;
  • s↑=−1s_\uparrow = -1s↑​=−1.

Derivative convention. Each ddw\frac{d}{dw}dwd​ denotes the ordinary derivative of a function R→C\mathbb R\to\mathbb CR→C at the indicated point. By convention it is taken to be 000 wherever the function is not differentiable there.

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