Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Fields, Green function, planewave source field, Müller formulation and image/Mie construction for layered-media scattering

Definition
Arxiv2210_02565_Basic

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

electromagnetic-scatteringgreen-functionsintegral-equationslayered-mediamaxwell-equations

Objects of Sections II-IV and VI and Appendix A of Arrieta and Pérez-Arancibia (2022).

  1. Space and fields. Points of R3\mathbb{R}^3R3 are r=(x,y,z)\mathbf r=(x,y,z)r=(x,y,z); time-harmonic fields (time dependence e−iωte^{-i\omega t}e−iωt) take values in C3\mathbb{C}^3C3. ∂i\partial_i∂i​, ∇\nabla∇ and ∇×\nabla\times∇× are the usual partial derivative, gradient and curl of complex fields, and ×\times× is the cross product on C3\mathbb{C}^3C3. z^=(0,0,1)\hat{\mathbf z}=(0,0,1)z^=(0,0,1) is the normal of the plane Σ={z=0}\Sigma=\{z=0\}Σ={z=0}.
  2. Green function (eq. 9). G(r,r′)=eik∣r−r′∣4π∣r−r′∣G(\mathbf r,\mathbf r')=\dfrac{e^{ik|\mathbf r-\mathbf r'|}}{4\pi|\mathbf r-\mathbf r'|}G(r,r′)=4π∣r−r′∣eik∣r−r′∣​ for a wavenumber k∈Ck\in\mathbb{C}k∈C.
  3. Planewave source field (Section III). Data: ω\omegaω, ϵ1,μ1,ϵ2,μ2\epsilon_1,\mu_1,\epsilon_2,\mu_2ϵ1​,μ1​,ϵ2​,μ2​, real k1y,k1zk_{1y},k_{1z}k1y​,k1z​ with wave vector k=(0,k1y,−k1z)\mathbf k=(0,k_{1y},-k_{1z})k=(0,k1y​,−k1z​), and p∈C3\mathbf p\in\mathbb{C}^3p∈C3. Put k2y=k1yk_{2y}=k_{1y}k2y​=k1y​ and k2z=ω2μ2ϵ2−k1y2k_{2z}=\sqrt{\omega^2\mu_2\epsilon_2-k_{1y}^2}k2z​=ω2μ2​ϵ2​−k1y2​​ with Im⁡k2z≥0\operatorname{Im}k_{2z}\ge0Imk2z​≥0. The Fresnel coefficients are
RTE=μ2k1z−μ1k2zμ2k1z+μ1k2z,RTM=ϵ2k1z−ϵ1k2zϵ2k1z+ϵ1k2z,TTE=2μ2k1zμ2k1z+μ1k2z,TTM=2ϵ2k1zϵ2k1z+ϵ1k2z,R^{\rm TE}=\frac{\mu_2k_{1z}-\mu_1k_{2z}}{\mu_2k_{1z}+\mu_1k_{2z}},\quad R^{\rm TM}=\frac{\epsilon_2k_{1z}-\epsilon_1k_{2z}}{\epsilon_2k_{1z}+\epsilon_1k_{2z}},\quad T^{\rm TE}=\frac{2\mu_2k_{1z}}{\mu_2k_{1z}+\mu_1k_{2z}},\quad T^{\rm TM}=\frac{2\epsilon_2k_{1z}}{\epsilon_2k_{1z}+\epsilon_1k_{2z}},RTE=μ2​k1z​+μ1​k2z​μ2​k1z​−μ1​k2z​​,RTM=ϵ2​k1z​+ϵ1​k2z​ϵ2​k1z​−ϵ1​k2z​​,TTE=μ2​k1z​+μ1​k2z​2μ2​k1z​​,TTM=ϵ2​k1z​+ϵ1​k2z​2ϵ2​k1z​​,

and the amplitudes are E0=−pzk1y−pyk1zE_0=-p_zk_{1y}-p_yk_{1z}E0​=−pz​k1y​−py​k1z​ and H0=k12px/(ωμ1)H_0=k_1^2p_x/(\omega\mu_1)H0​=k12​px​/(ωμ1​) with k12=ω2μ1ϵ1k_1^2=\omega^2\mu_1\epsilon_1k12​=ω2μ1​ϵ1​. The transverse components are Ex=E0(ei(k1yy−k1zz)+RTEei(k1yy+k1zz))E_x=E_0(e^{i(k_{1y}y-k_{1z}z)}+R^{\rm TE}e^{i(k_{1y}y+k_{1z}z)})Ex​=E0​(ei(k1y​y−k1z​z)+RTEei(k1y​y+k1z​z)) and Hx=H0(ei(k1yy−k1zz)+RTMei(k1yy+k1zz))H_x=H_0(e^{i(k_{1y}y-k_{1z}z)}+R^{\rm TM}e^{i(k_{1y}y+k_{1z}z)})Hx​=H0​(ei(k1y​y−k1z​z)+RTMei(k1y​y+k1z​z)) for incident plus reflected, and Ex=E0TTEei(k2yy−k2zz)E_x=E_0T^{\rm TE}e^{i(k_{2y}y-k_{2z}z)}Ex​=E0​TTEei(k2y​y−k2z​z), Hx=H0TTMei(k2yy−k2zz)H_x=H_0T^{\rm TM}e^{i(k_{2y}y-k_{2z}z)}Hx​=H0​TTMei(k2y​y−k2z​z) for transmitted. The fields are

E=Exx^−1iωϵ∂zHx y^+1iωϵ∂yHx z^,H=Hxx^+1iωμ∂zEx y^−1iωμ∂yEx z^,\mathbf E=E_x\hat{\mathbf x}-\tfrac{1}{i\omega\epsilon}\partial_zH_x\,\hat{\mathbf y}+\tfrac{1}{i\omega\epsilon}\partial_yH_x\,\hat{\mathbf z},\qquad \mathbf H=H_x\hat{\mathbf x}+\tfrac{1}{i\omega\mu}\partial_zE_x\,\hat{\mathbf y}-\tfrac{1}{i\omega\mu}\partial_yE_x\,\hat{\mathbf z},E=Ex​x^−iωϵ1​∂z​Hx​y^​+iωϵ1​∂y​Hx​z^,H=Hx​x^+iωμ1​∂z​Ex​y^​−iωμ1​∂y​Ex​z^,

with (ϵ,μ)=(ϵ1,μ1)(\epsilon,\mu)=(\epsilon_1,\mu_1)(ϵ,μ)=(ϵ1​,μ1​) for the expression used in Ω1\Omega_1Ω1​ (incident plus reflected) and (ϵ2,μ2)(\epsilon_2,\mu_2)(ϵ2​,μ2​) for the expression used in Ω2\Omega_2Ω2​ (transmitted), as in eq. (7). The source currents of eq. (5) are Msrc=n^×(Esrc∣+−Esrc∣−)\mathbf M^{\rm src}=\hat{\mathbf n}\times(\mathbf E^{\rm src}|_+-\mathbf E^{\rm src}|_-)Msrc=n^×(Esrc∣+​−Esrc∣−​) and Jsrc=n^×(Hsrc∣+−Hsrc∣−)\mathbf J^{\rm src}=\hat{\mathbf n}\times(\mathbf H^{\rm src}|_+-\mathbf H^{\rm src}|_-)Jsrc=n^×(Hsrc∣+​−Hsrc∣−​), where the +++ side is Ω1\Omega_1Ω1​. 4. Müller formulation (Section IV). For tangential currents u,v\mathbf u,\mathbf vu,v and potentials Sj,Dj\mathcal S_j,\mathcal D_jSj​,Dj​: Ej=kj2Sjv+iωμjDju\mathbf E_j=k_j^2\mathcal S_j\mathbf v+i\omega\mu_j\mathcal D_j\mathbf uEj​=kj2​Sj​v+iωμj​Dj​u and Hj=kj2Sju−iωϵjDjv\mathbf H_j=k_j^2\mathcal S_j\mathbf u-i\omega\epsilon_j\mathcal D_j\mathbf vHj​=kj2​Sj​u−iωϵj​Dj​v (eq. 13). Their traces are n^×Ej∣±=kj2(n^×Sjv)∣±+iωμj(n^×Dju)∣±\hat{\mathbf n}\times\mathbf E_j|_\pm=k_j^2(\hat{\mathbf n}\times\mathcal S_j\mathbf v)|_\pm+i\omega\mu_j(\hat{\mathbf n}\times\mathcal D_j\mathbf u)|_\pmn^×Ej​∣±​=kj2​(n^×Sj​v)∣±​+iωμj​(n^×Dj​u)∣±​, and similarly for Hj\mathbf H_jHj​. The left-hand side of the integral equation (18)-(19) is

iω2[−(μ1+μ2)u(ϵ1+ϵ2)v]+[iω(μ2K2−μ1K1)k22T2−k12T1k22T2−k12T1−iω(ϵ2K2−ϵ1K1)][uv].\frac{i\omega}{2}\begin{bmatrix}-(\mu_1+\mu_2)\mathbf u\\(\epsilon_1+\epsilon_2)\mathbf v\end{bmatrix}+\begin{bmatrix}i\omega(\mu_2\mathcal K_2-\mu_1\mathcal K_1)&k_2^2\mathcal T_2-k_1^2\mathcal T_1\\k_2^2\mathcal T_2-k_1^2\mathcal T_1&-i\omega(\epsilon_2\mathcal K_2-\epsilon_1\mathcal K_1)\end{bmatrix}\begin{bmatrix}\mathbf u\\\mathbf v\end{bmatrix}.2iω​[−(μ1​+μ2​)u(ϵ1​+ϵ2​)v​]+[iω(μ2​K2​−μ1​K1​)k22​T2​−k12​T1​​k22​T2​−k12​T1​−iω(ϵ2​K2​−ϵ1​K1​)​][uv​].
  1. Hemispherical bump (Appendix A). For k>0k>0k>0, amplitude E0E_0E0​ and grazing angle α\alphaα: Eαinc(r)=E0eik(ycos⁡α−zsin⁡α) q\mathbf E^{\rm inc}_\alpha(\mathbf r)=E_0e^{ik(y\cos\alpha-z\sin\alpha)}\,\mathbf qEαinc​(r)=E0​eik(ycosα−zsinα)q with q=x^\mathbf q=\hat{\mathbf x}q=x^ (TE) or q=y^sin⁡α+z^cos⁡α\mathbf q=\hat{\mathbf y}\sin\alpha+\hat{\mathbf z}\cos\alphaq=y^​sinα+z^cosα (TM). The image field is E~inc=−E−αinc\widetilde{\mathbf E}^{\rm inc}=-\mathbf E^{\rm inc}_{-\alpha}Einc=−E−αinc​ (TE) or E−αinc\mathbf E^{\rm inc}_{-\alpha}E−αinc​ (TM). For an incident field Einc\mathbf E^{\rm inc}Einc, the Mie field EMie\mathbf E^{\rm Mie}EMie of the PEC sphere ∣r∣≤a|\mathbf r|\le a∣r∣≤a is the field that is C2C^2C2 in ∣r∣>a|\mathbf r|>a∣r∣>a, is continuous up to ∣r∣=a|\mathbf r|=a∣r∣=a, and satisfies ∇×∇×EMie=k2EMie\nabla\times\nabla\times\mathbf E^{\rm Mie}=k^2\mathbf E^{\rm Mie}∇×∇×EMie=k2EMie, r×(Einc+EMie)=0\mathbf r\times(\mathbf E^{\rm inc}+\mathbf E^{\rm Mie})=\mathbf 0r×(Einc+EMie)=0 on ∣r∣=a|\mathbf r|=a∣r∣=a, and ∣r∣ ((∇×EMie)×r^−ikEMie)→0|\mathbf r|\,\big((\nabla\times\mathbf E^{\rm Mie})\times\hat{\mathbf r}-ik\mathbf E^{\rm Mie}\big)\to0∣r∣((∇×EMie)×r^−ikEMie)→0 uniformly as ∣r∣→∞|\mathbf r|\to\infty∣r∣→∞. The total field is Etot=Eαinc+EMie+E~inc+E~Mie\mathbf E^{\rm tot}=\mathbf E^{\rm inc}_\alpha+\mathbf E^{\rm Mie}+\widetilde{\mathbf E}^{\rm inc}+\widetilde{\mathbf E}^{\rm Mie}Etot=Eαinc​+EMie+Einc+EMie.

Formalization Note The integrals over the unbounded interface Γ\GammaΓ are only conditionally convergent (Section IV) and the paper gives no summation rule for them. So Sj,Dj,Tj,Kj\mathcal S_j,\mathcal D_j,\mathcal T_j,\mathcal K_jSj​,Dj​,Tj​,Kj​, the curl acting on the represented fields, and the one-sided traces are linear maps on abstract complex vector spaces of currents and fields. The Mie field is defined as the scattered field with the properties listed above (junk value 000 if none existed), not as the series. Its existence and uniqueness are classical. The radiation condition is written in terms of E\mathbf EE alone, which is eq. (3) after substituting H=∇×E/(iωμ)\mathbf H=\nabla\times\mathbf E/(i\omega\mu)H=∇×E/(iωμ). The Green function takes the junk value 000 at r=r′\mathbf r=\mathbf r'r=r′, a point no statement uses.

Definition code
import Mathlib

/-!
R. Arrieta and C. Pérez-Arancibia, *Windowed Green Function MoM for Second-Kind Surface Integral
Equation Formulations of Layered Media Electromagnetic Scattering Problems*, arXiv:2210.02565v1
(2022): the differential operators and Green function of Sections II-IV and VI, the planewave
source field of Section III, the indirect Müller representation and second-kind integral equation
of Section IV, and the image/Mie construction of Appendix A.
-/

open Filter Topology

noncomputable section

namespace Arxiv2210_02565

/-- Physical space `ℝ³` (Section II); the point `r` has coordinates `(x, y, z) = (r 0, r 1, r 2)`. -/
abbrev Space := EuclideanSpace ℝ (Fin 3)

/-- Complex vectors `ℂ³`, the values of the time-harmonic fields (Section II). -/
abbrev CVec := Fin 3 → ℂ

/-- A point (or real vector) of space viewed as a complex vector. -/
def toC (r : Space) : CVec := fun i => ((r i : ℝ) : ℂ)

/-- The unit vector `ẑ`, the normal `n̂` on the planar surface `Σ = {z = 0}` (Sections II-III). -/
def zhat : CVec := ![0, 0, 1]

/-- The partial derivative `∂f/∂x_i` of a complex scalar field at `r`. -/
def pd (i : Fin 3) (f : Space → ℂ) (r : Space) : ℂ :=
  fderiv ℝ f r (EuclideanSpace.single i 1)

/-- The gradient `∇f` of a complex scalar field (Section VI). -/
def grad (f : Space → ℂ) (r : Space) : CVec := ![pd 0 f r, pd 1 f r, pd 2 f r]

/-- The curl `∇ × F` of a complex vector field (eq. (2)). -/
def curl (F : Space → CVec) (r : Space) : CVec :=
  ![pd 1 (fun q => F q 2) r - pd 2 (fun q => F q 1) r,
    pd 2 (fun q => F q 0) r - pd 0 (fun q => F q 2) r,
    pd 0 (fun q => F q 1) r - pd 1 (fun q => F q 0) r]

/-- Eq. (9): the free-space Helmholtz Green function `G(r, r') = e^{ik|r-r'|} / (4π|r-r'|)`
(junk value `0` at `r = r'`, which no statement uses). -/
def greenFn (k : ℂ) (r r' : Space) : ℂ :=
  Complex.exp (Complex.I * k * (‖r - r'‖ : ℂ)) / (4 * Real.pi * (‖r - r'‖ : ℂ))

/-! ### Section III: the planewave source field -/

/-- Section III: the data of a planewave incident from `D₁ = {z > 0}` on the flat interface
`Σ = {z = 0}`: the angular frequency `ω`, the permittivities and permeabilities `ε_j, μ_j` of
`D₁` and `D₂ = {z < 0}`, the components of the wave vector `k = (0, k_{1y}, -k_{1z})` and the
vector `p` of eq. (6). -/
structure PlanewaveSetup where
  ω : ℝ
  ε1 : ℂ
  μ1 : ℂ
  ε2 : ℂ
  μ2 : ℂ
  k1y : ℝ
  k1z : ℝ
  p : CVec

namespace PlanewaveSetup

variable (s : PlanewaveSetup)

/-- Section III: `k_{2z} = √(k_2² - k_{2y}²)` with `k_2² = ω²μ₂ε₂`, `k_{2y} = k_{1y}`, and the
complex square root chosen so that `Im k_{2z} ≥ 0` (the principal root, negated if its imaginary
part is negative; for a positive radicand this is the positive root). -/
def k2z : ℂ :=
  let w : ℂ := ((s.ω : ℂ) ^ 2 * s.μ2 * s.ε2 - (s.k1y : ℂ) ^ 2) ^ (1 / 2 : ℂ)
  if 0 ≤ w.im then w else -w

/-- Section III: the reflection coefficient `R^TE = (μ₂k_{1z} - μ₁k_{2z}) / (μ₂k_{1z} + μ₁k_{2z})`. -/
def RTE : ℂ := (s.μ2 * s.k1z - s.μ1 * s.k2z) / (s.μ2 * s.k1z + s.μ1 * s.k2z)

/-- Section III: the reflection coefficient `R^TM = (ε₂k_{1z} - ε₁k_{2z}) / (ε₂k_{1z} + ε₁k_{2z})`. -/
def RTM : ℂ := (s.ε2 * s.k1z - s.ε1 * s.k2z) / (s.ε2 * s.k1z + s.ε1 * s.k2z)

/-- Section III: the transmission coefficient `T^TE = 2μ₂k_{1z} / (μ₂k_{1z} + μ₁k_{2z})`. -/
def TTE : ℂ := 2 * s.μ2 * s.k1z / (s.μ2 * s.k1z + s.μ1 * s.k2z)

/-- Section III: the transmission coefficient `T^TM = 2ε₂k_{1z} / (ε₂k_{1z} + ε₁k_{2z})`. -/
def TTM : ℂ := 2 * s.ε2 * s.k1z / (s.ε2 * s.k1z + s.ε1 * s.k2z)

/-- Section III: the amplitude `E₀ = -p_z k_{1y} - p_y k_{1z}`. -/
def E0 : ℂ := -s.p 2 * s.k1y - s.p 1 * s.k1z

/-- Section III: the amplitude `H₀ = k₁² p_x / (ωμ₁)`, with `k₁² = ω²μ₁ε₁`. -/
def H0 : ℂ := (s.ω : ℂ) ^ 2 * s.μ1 * s.ε1 / (s.ω * s.μ1) * s.p 0

/-- Section III: the transverse components `E_x^inc + E_x^ref` of the total field in `D₁`,
`E₀ e^{i(k_{1y}y - k_{1z}z)} + E₀ R^TE e^{i(k_{1y}y + k_{1z}z)}`, as a function of `(y, z)`. -/
def Ex1 (y z : ℝ) : ℂ :=
  s.E0 * Complex.exp (Complex.I * (s.k1y * y - s.k1z * z)) +
    s.E0 * s.RTE * Complex.exp (Complex.I * (s.k1y * y + s.k1z * z))

/-- Section III: `H_x^inc + H_x^ref = H₀ e^{i(k_{1y}y - k_{1z}z)} + H₀ R^TM e^{i(k_{1y}y + k_{1z}z)}`. -/
def Hx1 (y z : ℝ) : ℂ :=
  s.H0 * Complex.exp (Complex.I * (s.k1y * y - s.k1z * z)) +
    s.H0 * s.RTM * Complex.exp (Complex.I * (s.k1y * y + s.k1z * z))

/-- Section III: the transmitted transverse component `E_x^trs = E₀ T^TE e^{i(k_{2y}y - k_{2z}z)}`,
`k_{2y} = k_{1y}`. -/
def Ex2 (y z : ℝ) : ℂ := s.E0 * s.TTE * Complex.exp (Complex.I * (s.k1y * y - s.k2z * z))

/-- Section III: the transmitted transverse component `H_x^trs = H₀ T^TM e^{i(k_{2y}y - k_{2z}z)}`. -/
def Hx2 (y z : ℝ) : ℂ := s.H0 * s.TTM * Complex.exp (Complex.I * (s.k1y * y - s.k2z * z))

end PlanewaveSetup

/-- Section III: the `x`-independent electric field retrieved from its transverse components,
`E = E_x x̂ - (1/(iωε)) ∂_z H_x ŷ + (1/(iωε)) ∂_y H_x ẑ`. -/
def fieldE (ω : ℝ) (ε : ℂ) (Ex Hx : ℝ → ℝ → ℂ) (r : Space) : CVec :=
  ![Ex (r 1) (r 2),
    -(1 / (Complex.I * ω * ε)) * deriv (fun z => Hx (r 1) z) (r 2),
    (1 / (Complex.I * ω * ε)) * deriv (fun y => Hx y (r 2)) (r 1)]

/-- Section III: the `x`-independent magnetic field retrieved from its transverse components,
`H = H_x x̂ + (1/(iωμ)) ∂_z E_x ŷ - (1/(iωμ)) ∂_y E_x ẑ`. -/
def fieldH (ω : ℝ) (μ : ℂ) (Ex Hx : ℝ → ℝ → ℂ) (r : Space) : CVec :=
  ![Hx (r 1) (r 2),
    (1 / (Complex.I * ω * μ)) * deriv (fun z => Ex (r 1) z) (r 2),
    -(1 / (Complex.I * ω * μ)) * deriv (fun y => Ex y (r 2)) (r 1)]

/-- Eq. (7), the expression used in `Ω₁`: `E^src = E^inc + E^ref`. -/
def srcE1 (s : PlanewaveSetup) : Space → CVec := fieldE s.ω s.ε1 s.Ex1 s.Hx1

/-- Eq. (7), the expression used in `Ω₂`: `E^src = E^trs`. -/
def srcE2 (s : PlanewaveSetup) : Space → CVec := fieldE s.ω s.ε2 s.Ex2 s.Hx2

/-- Eq. (7), the expression used in `Ω₁`: `H^src = H^inc + H^ref`. -/
def srcH1 (s : PlanewaveSetup) : Space → CVec := fieldH s.ω s.μ1 s.Ex1 s.Hx1

/-- Eq. (7), the expression used in `Ω₂`: `H^src = H^trs`. -/
def srcH2 (s : PlanewaveSetup) : Space → CVec := fieldH s.ω s.μ2 s.Ex2 s.Hx2

/-- Eq. (5a) for the planewave source field (7): `M^src = n̂ × (E^src|₊ - E^src|₋)`, where the
`+` side is `Ω₁` and the `-` side is `Ω₂`; both expressions in (7) are smooth on all of space,
so the one-sided limits are their values at `r`. -/
def srcCurrentM (s : PlanewaveSetup) (n : CVec) (r : Space) : CVec :=
  crossProduct n (srcE1 s r - srcE2 s r)

/-- Eq. (5b) for the planewave source field (7): `J^src = n̂ × (H^src|₊ - H^src|₋)`. -/
def srcCurrentJ (s : PlanewaveSetup) (n : CVec) (r : Space) : CVec :=
  crossProduct n (srcH1 s r - srcH2 s r)

/-! ### Section IV: the indirect Müller formulation

The surface integrals over the unbounded interface `Γ` are only conditionally convergent
(Section IV), so the potentials `S_j, D_j` and the boundary operators `T_j, K_j` enter as linear
maps on a space `V` of tangential surface currents (values in a space `W` of fields), and the
one-sided traces `n̂ × (S_j φ)|_±`, `n̂ × (D_j φ)|_±` as linear maps `V → V`. -/

section Muller

variable {V W : Type*} [AddCommGroup V] [Module ℂ V] [AddCommGroup W] [Module ℂ W]

/-- Eq. (13a): `E_j = k_j² S_j v + iωμ_j D_j u`. -/
def mullerE (ω : ℝ) (μ k : ℂ) (S D : V →ₗ[ℂ] W) (u v : V) : W :=
  k ^ 2 • S v + (Complex.I * ω * μ) • D u

/-- Eq. (13b): `H_j = k_j² S_j u - iωε_j D_j v`. -/
def mullerH (ω : ℝ) (ε k : ℂ) (S D : V →ₗ[ℂ] W) (u v : V) : W :=
  k ^ 2 • S u - (Complex.I * ω * ε) • D v

/-- Eq. (17a) before using (14): the trace `n̂ × E_j|_±` of (13a), i.e.
`k_j² (n̂ × S_j v)|_± + iωμ_j (n̂ × D_j u)|_±`, given the trace maps
`trS φ = n̂ × (S_j φ)|_±` and `trD φ = n̂ × (D_j φ)|_±` of one side. -/
def mullerTraceE (ω : ℝ) (μ k : ℂ) (trS trD : V →ₗ[ℂ] V) (u v : V) : V :=
  k ^ 2 • trS v + (Complex.I * ω * μ) • trD u

/-- Eq. (17b) before using (14): the trace `n̂ × H_j|_±` of (13b),
`k_j² (n̂ × S_j u)|_± - iωε_j (n̂ × D_j v)|_±`. -/
def mullerTraceH (ω : ℝ) (ε k : ℂ) (trS trD : V →ₗ[ℂ] V) (u v : V) : V :=
  k ^ 2 • trS u - (Complex.I * ω * ε) • trD v

/-- Eqs. (18)-(19): the left-hand side of the second-kind integral equation,
`(iω/2) [-(μ₁+μ₂) u, (ε₁+ε₂) v] + 𝖳 [u, v]` with
`𝖳 = [[iω(μ₂K₂ - μ₁K₁), k₂²T₂ - k₁²T₁], [k₂²T₂ - k₁²T₁, -iω(ε₂K₂ - ε₁K₁)]]`. -/
def mullerSIE (ω : ℝ) (ε1 μ1 k1 ε2 μ2 k2 : ℂ) (T1 K1 T2 K2 : V →ₗ[ℂ] V) (u v : V) : V × V :=
  ((Complex.I * ω / 2) • ((-(μ1 + μ2)) • u) +
      ((Complex.I * ω) • (μ2 • K2 u - μ1 • K1 u) + (k2 ^ 2 • T2 v - k1 ^ 2 • T1 v)),
    (Complex.I * ω / 2) • ((ε1 + ε2) • v) +
      ((k2 ^ 2 • T2 u - k1 ^ 2 • T1 u) + (-(Complex.I * ω)) • (ε2 • K2 v - ε1 • K1 v)))

end Muller

/-! ### Appendix A: the hemispherical bump -/

/-- Appendix A: the polarization of `E^inc_α`: `x̂` if TE polarized (`te = true`), and
`ŷ sin α + ẑ cos α` if TM polarized (`te = false`). -/
def bumpPol (te : Bool) (α : ℝ) : CVec :=
  if te then ![1, 0, 0] else ![0, (Real.sin α : ℂ), (Real.cos α : ℂ)]

/-- Appendix A: the incident planewave with grazing angle `α`,
`E^inc_α(r) = E₀ e^{ik(y cos α - z sin α)} p_α`. -/
def incAlpha (k : ℝ) (E0 : ℂ) (te : Bool) (α : ℝ) (r : Space) : CVec :=
  (E0 * Complex.exp (Complex.I * k * (r 1 * Real.cos α - r 2 * Real.sin α))) • bumpPol te α

/-- Appendix A: the image incident field `Ẽ^inc = -E^inc_{-α}` (TE) or `E^inc_{-α}` (TM). -/
def imageInc (k : ℝ) (E0 : ℂ) (te : Bool) (α : ℝ) (r : Space) : CVec :=
  (if te then (-1 : ℂ) else 1) • incAlpha k E0 te (-α) r

/-- Appendix A (with eqs. (2)-(3)): `E^s` is a field scattered by the PEC sphere `|r| ≤ a`
(centred at the origin) under the incident field `E^inc`: `E^s` is `C²` in `|r| > a` and
continuous up to `|r| = a`, solves `∇ × ∇ × E^s = k² E^s` there (Maxwell's equations with
`H^s = ∇ × E^s / (iωμ)`), satisfies the PEC condition `n̂ × (E^inc + E^s) = 0` on `|r| = a`, and
the Silver-Müller radiation condition `|r| ((∇ × E^s) × r̂ - ik E^s) → 0` as `|r| → ∞`,
uniformly in all directions. -/
def IsPECSphereScattered (k a : ℝ) (Einc Es : Space → CVec) : Prop :=
  ContDiffOn ℝ 2 Es {r | a < ‖r‖} ∧ ContinuousOn Es {r | a ≤ ‖r‖} ∧
    (∀ r : Space, a < ‖r‖ → curl (curl Es) r = ((k : ℂ) ^ 2) • Es r) ∧
    (∀ r : Space, ‖r‖ = a → crossProduct (toC r) (Einc r + Es r) = 0) ∧
    Tendsto (fun r : Space => ((‖r‖ : ℝ) : ℂ) •
        (crossProduct (curl Es r) (toC (‖r‖⁻¹ • r)) - (Complex.I * k) • Es r))
      (Bornology.cobounded Space) (𝓝 0)

open Classical in
/-- Appendix A: the Mie solution `E^Mie` of scattering of `E^inc` by the entire PEC sphere of
radius `a` centred at the origin, as the scattered field characterised in
`IsPECSphereScattered` (junk value `0` if no such field exists). -/
def mieField (k a : ℝ) (Einc : Space → CVec) : Space → CVec :=
  if h : ∃ Es, IsPECSphereScattered k a Einc Es then h.choose else 0

/-- Appendix A: the image-method total field
`E^tot = E^inc_α + E^Mie + Ẽ^inc + Ẽ^Mie` for the hemispherical PEC bump of radius `a` on the PEC
half-space `{z < 0}`. -/
def bumpTotalField (k a : ℝ) (E0 : ℂ) (te : Bool) (α : ℝ) : Space → CVec :=
  incAlpha k E0 te α + mieField k a (incAlpha k E0 te α) + imageInc k E0 te α +
    mieField k a (imageInc k E0 te α)

end Arxiv2210_02565
Source
Arrieta and Pérez-Arancibia, Windowed Green Function MoM for Second-Kind Surface Integral Equation Formulations of Layered Media Electromagnetic Scattering Problems, arXiv:2210.02565v1 (2022), Sections II, III (eqs. (2)-(7)), IV (eqs. (11)-(19)), VI (eq. (9) and the I^(3) estimate) and Appendix A, PDF pp. 2-5, 11
Read-back

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

This bundle contains only definitions and states no theorem. Each paragraph below reads back one declaration.

Space and complex vectors. Points of space are elements r=(r0,r1,r2)r=(r_0,r_1,r_2)r=(r0​,r1​,r2​) of Euclidean R3\mathbb{R}^3R3. Field values are elements of C3\mathbb{C}^3C3, written as triples (v0,v1,v2)(v_0,v_1,v_2)(v0​,v1​,v2​). The map ι:R3→C3\iota:\mathbb{R}^3\to\mathbb{C}^3ι:R3→C3 sends rrr to (r0,r1,r2)(r_0,r_1,r_2)(r0​,r1​,r2​), each coordinate viewed as a complex number with zero imaginary part.

The vector z^\hat zz^. It is the fixed complex vector (0,0,1)∈C3(0,0,1)\in\mathbb{C}^3(0,0,1)∈C3. No other declaration in this bundle refers to it.

Partial derivative ∂if(r)\partial_i f(r)∂i​f(r). For f:R3→Cf:\mathbb{R}^3\to\mathbb{C}f:R3→C, i∈{0,1,2}i\in\{0,1,2\}i∈{0,1,2} and a point rrr, this is the (real) Fréchet derivative of fff at rrr applied to the iii-th standard basis vector eie_iei​:

∂if(r)=Df(r) ei.\partial_i f(r) = Df(r)\,e_i.∂i​f(r)=Df(r)ei​.

If fff is not Fréchet-differentiable at rrr, the value is 000. This applies even when the ordinary partial derivative in direction eie_iei​ exists.

Gradient. For f:R3→Cf:\mathbb{R}^3\to\mathbb{C}f:R3→C,

∇f(r)=(∂0f(r), ∂1f(r), ∂2f(r))∈C3,\nabla f(r) = (\partial_0 f(r),\ \partial_1 f(r),\ \partial_2 f(r))\in\mathbb{C}^3,∇f(r)=(∂0​f(r), ∂1​f(r), ∂2​f(r))∈C3,

with ∂i\partial_i∂i​ as above. In particular the gradient is 000 wherever fff is not Fréchet-differentiable.

Curl. For F:R3→C3F:\mathbb{R}^3\to\mathbb{C}^3F:R3→C3 with components F0,F1,F2F_0,F_1,F_2F0​,F1​,F2​,

∇×F(r)=(∂1F2−∂2F1, ∂2F0−∂0F2, ∂0F1−∂1F0)(r).\nabla\times F(r) = \big(\partial_1F_2-\partial_2F_1,\ \partial_2F_0-\partial_0F_2,\ \partial_0F_1-\partial_1F_0\big)(r).∇×F(r)=(∂1​F2​−∂2​F1​, ∂2​F0​−∂0​F2​, ∂0​F1​−∂1​F0​)(r).

Each ∂i\partial_i∂i​ is the Fréchet-based partial above and is taken as 000 at points where the relevant component is not Fréchet-differentiable.

Green function. For k∈Ck\in\mathbb{C}k∈C and r,r′∈R3r,r'\in\mathbb{R}^3r,r′∈R3,

Gk(r,r′)=e ik∣r−r′∣4π∣r−r′∣,G_k(r,r') = \frac{e^{\,i k |r-r'|}}{4\pi |r-r'|},Gk​(r,r′)=4π∣r−r′∣eik∣r−r′∣​,

where ∣⋅∣|\cdot|∣⋅∣ is the Euclidean norm. At r=r′r=r'r=r′ the denominator is zero and the value is defined to be 000.

Planewave setup. A setup sss is a bare record of data with no constraints linking the fields:

  • ω∈R\omega\in\mathbb{R}ω∈R;
  • ε1,μ1,ε2,μ2∈C\varepsilon_1,\mu_1,\varepsilon_2,\mu_2\in\mathbb{C}ε1​,μ1​,ε2​,μ2​∈C;
  • k1y,k1z∈Rk_{1y},k_{1z}\in\mathbb{R}k1y​,k1z​∈R;
  • p=(px,py,pz)∈C3p=(p_x,p_y,p_z)\in\mathbb{C}^3p=(px​,py​,pz​)∈C3.

Nothing requires ω≠0\omega\neq 0ω=0, nonzero material constants, or any dispersion relation such as k1y2+k1z2=ω2μ1ε1k_{1y}^2+k_{1z}^2=\omega^2\mu_1\varepsilon_1k1y2​+k1z2​=ω2μ1​ε1​. Nothing requires any relation between ppp and the wave vector.

k2zk_{2z}k2z​. Let www be the principal complex square root

w=(ω2μ2ε2−k1y2)1/2,w = \big(\omega^2\mu_2\varepsilon_2 - k_{1y}^2\big)^{1/2},w=(ω2μ2​ε2​−k1y2​)1/2,

computed as exp⁡(12Log⁡(⋅))\exp(\tfrac12\operatorname{Log}(\cdot))exp(21​Log(⋅)) with the principal logarithm, and with value 000 when the radicand is 000. Then k2z=wk_{2z}=wk2z​=w if Im⁡w≥0\operatorname{Im}w\ge 0Imw≥0, and k2z=−wk_{2z}=-wk2z​=−w otherwise.

Reflection and transmission coefficients. They are

RTE=μ2k1z−μ1k2zμ2k1z+μ1k2z,RTM=ε2k1z−ε1k2zε2k1z+ε1k2z,R^{TE}=\frac{\mu_2k_{1z}-\mu_1k_{2z}}{\mu_2k_{1z}+\mu_1k_{2z}},\quad R^{TM}=\frac{\varepsilon_2k_{1z}-\varepsilon_1k_{2z}}{\varepsilon_2k_{1z}+\varepsilon_1k_{2z}},RTE=μ2​k1z​+μ1​k2z​μ2​k1z​−μ1​k2z​​,RTM=ε2​k1z​+ε1​k2z​ε2​k1z​−ε1​k2z​​, TTE=2μ2k1zμ2k1z+μ1k2z,TTM=2ε2k1zε2k1z+ε1k2z.T^{TE}=\frac{2\mu_2k_{1z}}{\mu_2k_{1z}+\mu_1k_{2z}},\quad T^{TM}=\frac{2\varepsilon_2k_{1z}}{\varepsilon_2k_{1z}+\varepsilon_1k_{2z}}.TTE=μ2​k1z​+μ1​k2z​2μ2​k1z​​,TTM=ε2​k1z​+ε1​k2z​2ε2​k1z​​.

Each coefficient is defined to be 000 when its denominator vanishes.

Amplitudes. They are

E0=−pzk1y−pyk1z,H0=ω2μ1ε1ωμ1 px.E_0=-p_z k_{1y}-p_y k_{1z},\qquad H_0=\frac{\omega^2\mu_1\varepsilon_1}{\omega\mu_1}\,p_x.E0​=−pz​k1y​−py​k1z​,H0​=ωμ1​ω2μ1​ε1​​px​.

H0H_0H0​ is defined to be 000 when ωμ1=0\omega\mu_1=0ωμ1​=0; otherwise it equals ωε1px\omega\varepsilon_1 p_xωε1​px​.

Transverse components. These are functions of two reals (y,z)(y,z)(y,z):

Ex(1)(y,z)=E0ei(k1yy−k1zz)+E0RTEei(k1yy+k1zz),E_x^{(1)}(y,z)=E_0e^{i(k_{1y}y-k_{1z}z)}+E_0R^{TE}e^{i(k_{1y}y+k_{1z}z)},Ex(1)​(y,z)=E0​ei(k1y​y−k1z​z)+E0​RTEei(k1y​y+k1z​z), Hx(1)(y,z)=H0ei(k1yy−k1zz)+H0RTMei(k1yy+k1zz),H_x^{(1)}(y,z)=H_0e^{i(k_{1y}y-k_{1z}z)}+H_0R^{TM}e^{i(k_{1y}y+k_{1z}z)},Hx(1)​(y,z)=H0​ei(k1y​y−k1z​z)+H0​RTMei(k1y​y+k1z​z), Ex(2)(y,z)=E0TTEei(k1yy−k2zz),Hx(2)(y,z)=H0TTMei(k1yy−k2zz).E_x^{(2)}(y,z)=E_0T^{TE}e^{i(k_{1y}y-k_{2z}z)},\qquad H_x^{(2)}(y,z)=H_0T^{TM}e^{i(k_{1y}y-k_{2z}z)}.Ex(2)​(y,z)=E0​TTEei(k1y​y−k2z​z),Hx(2)​(y,z)=H0​TTMei(k1y​y−k2z​z).

Here k2zk_{2z}k2z​ may be complex. All four are defined for every (y,z)∈R2(y,z)\in\mathbb{R}^2(y,z)∈R2, with no restriction to a half-space.

Field retrieval. Given ω∈R\omega\in\mathbb{R}ω∈R, ε∈C\varepsilon\in\mathbb{C}ε∈C and arbitrary functions Ex,Hx:R2→CE_x,H_x:\mathbb{R}^2\to\mathbb{C}Ex​,Hx​:R2→C, define for r∈R3r\in\mathbb{R}^3r∈R3:

E[ω,ε,Ex,Hx](r)=(Ex(r1,r2), −1iωε ∂zHx(r1,r2), 1iωε ∂yHx(r1,r2)).\mathbf{E}[\omega,\varepsilon,E_x,H_x](r)=\Big(E_x(r_1,r_2),\ -\tfrac{1}{i\omega\varepsilon}\,\partial_zH_x(r_1,r_2),\ \tfrac{1}{i\omega\varepsilon}\,\partial_yH_x(r_1,r_2)\Big).E[ω,ε,Ex​,Hx​](r)=(Ex​(r1​,r2​), −iωε1​∂z​Hx​(r1​,r2​), iωε1​∂y​Hx​(r1​,r2​)).

Similarly, with μ\muμ in place of ε\varepsilonε,

H[ω,μ,Ex,Hx](r)=(Hx(r1,r2), 1iωμ ∂zEx(r1,r2), −1iωμ ∂yEx(r1,r2)).\mathbf{H}[\omega,\mu,E_x,H_x](r)=\Big(H_x(r_1,r_2),\ \tfrac{1}{i\omega\mu}\,\partial_zE_x(r_1,r_2),\ -\tfrac{1}{i\omega\mu}\,\partial_yE_x(r_1,r_2)\Big).H[ω,μ,Ex​,Hx​](r)=(Hx​(r1​,r2​), iωμ1​∂z​Ex​(r1​,r2​), −iωμ1​∂y​Ex​(r1​,r2​)).
  • The derivatives are one-variable derivatives in the second or first argument, taken as 000 where they do not exist.
  • The factor 1iωε\tfrac1{i\omega\varepsilon}iωε1​ (resp. 1iωμ\tfrac1{i\omega\mu}iωμ1​) is 000 when ωε=0\omega\varepsilon=0ωε=0 (resp. ωμ=0\omega\mu=0ωμ=0).
  • The coordinate r0r_0r0​ is ignored.

Source fields. They are

E1src=E[ω,ε1,Ex(1),Hx(1)],E2src=E[ω,ε2,Ex(2),Hx(2)],E^{src}_1=\mathbf{E}[\omega,\varepsilon_1,E_x^{(1)},H_x^{(1)}],\quad E^{src}_2=\mathbf{E}[\omega,\varepsilon_2,E_x^{(2)},H_x^{(2)}],E1src​=E[ω,ε1​,Ex(1)​,Hx(1)​],E2src​=E[ω,ε2​,Ex(2)​,Hx(2)​], H1src=H[ω,μ1,Ex(1),Hx(1)],H2src=H[ω,μ2,Ex(2),Hx(2)].H^{src}_1=\mathbf{H}[\omega,\mu_1,E_x^{(1)},H_x^{(1)}],\quad H^{src}_2=\mathbf{H}[\omega,\mu_2,E_x^{(2)},H_x^{(2)}].H1src​=H[ω,μ1​,Ex(1)​,Hx(1)​],H2src​=H[ω,μ2​,Ex(2)​,Hx(2)​].

Each is defined on all of R3\mathbb{R}^3R3.

Source currents. For an arbitrary n∈C3n\in\mathbb{C}^3n∈C3 and any r∈R3r\in\mathbb{R}^3r∈R3,

Msrc(r)=n×(E1src(r)−E2src(r)),Jsrc(r)=n×(H1src(r)−H2src(r)).M^{src}(r)=n\times\big(E^{src}_1(r)-E^{src}_2(r)\big),\qquad J^{src}(r)=n\times\big(H^{src}_1(r)-H^{src}_2(r)\big).Msrc(r)=n×(E1src​(r)−E2src​(r)),Jsrc(r)=n×(H1src​(r)−H2src​(r)).

The cross product is the algebraic formula on C3\mathbb{C}^3C3, with no complex conjugation. Neither nnn nor rrr is restricted: nnn need not be z^\hat zz^ or a unit vector, and rrr need not lie on {z=0}\{z=0\}{z=0}.

Müller potentials. Let V,WV,WV,W be arbitrary complex vector spaces, S,D:V→WS,D:V\to WS,D:V→W arbitrary C\mathbb{C}C-linear maps, ω∈R\omega\in\mathbb{R}ω∈R, μ,ε,k∈C\mu,\varepsilon,k\in\mathbb{C}μ,ε,k∈C, and u,v∈Vu,v\in Vu,v∈V. Define

E=k2 Sv+iωμ Du,H=k2 Su−iωε Dv.E=k^2\,S v+i\omega\mu\,D u,\qquad H=k^2\,S u-i\omega\varepsilon\,D v.E=k2Sv+iωμDu,H=k2Su−iωεDv.

No relation is imposed between kkk and ω,μ,ε\omega,\mu,\varepsilonω,μ,ε, and S,DS,DS,D carry no further structure.

Müller traces. For arbitrary C\mathbb{C}C-linear maps trS,trD:V→V\mathrm{tr}_S,\mathrm{tr}_D:V\to VtrS​,trD​:V→V,

trE=k2 trSv+iωμ trDu,trH=k2 trSu−iωε trDv.\mathrm{tr}E=k^2\,\mathrm{tr}_S v+i\omega\mu\,\mathrm{tr}_D u,\qquad \mathrm{tr}H=k^2\,\mathrm{tr}_S u-i\omega\varepsilon\,\mathrm{tr}_D v.trE=k2trS​v+iωμtrD​u,trH=k2trS​u−iωεtrD​v.

No connection between trS,trD\mathrm{tr}_S,\mathrm{tr}_DtrS​,trD​ and any S,DS,DS,D is imposed.

Second-kind integral equation operator. The inputs are:

  • ω∈R\omega\in\mathbb{R}ω∈R;
  • ε1,μ1,k1,ε2,μ2,k2∈C\varepsilon_1,\mu_1,k_1,\varepsilon_2,\mu_2,k_2\in\mathbb{C}ε1​,μ1​,k1​,ε2​,μ2​,k2​∈C, unconstrained;
  • arbitrary linear maps T1,K1,T2,K2:V→VT_1,K_1,T_2,K_2:V\to VT1​,K1​,T2​,K2​:V→V;
  • u,v∈Vu,v\in Vu,v∈V.

The output is the pair in V×VV\times VV×V

(−iω2(μ1+μ2) u+iω(μ2K2u−μ1K1u)+(k22T2v−k12T1v),  iω2(ε1+ε2) v+(k22T2u−k12T1u)−iω(ε2K2v−ε1K1v)).\begin{aligned} &\Big(-\tfrac{i\omega}{2}(\mu_1+\mu_2)\,u+i\omega(\mu_2K_2u-\mu_1K_1u)+(k_2^2T_2v-k_1^2T_1v),\\ &\ \ \tfrac{i\omega}{2}(\varepsilon_1+\varepsilon_2)\,v+(k_2^2T_2u-k_1^2T_1u)-i\omega(\varepsilon_2K_2v-\varepsilon_1K_1v)\Big). \end{aligned}​(−2iω​(μ1​+μ2​)u+iω(μ2​K2​u−μ1​K1​u)+(k22​T2​v−k12​T1​v),  2iω​(ε1​+ε2​)v+(k22​T2​u−k12​T1​u)−iω(ε2​K2​v−ε1​K1​v)).​

Bump polarization. For a flag tetete and α∈R\alpha\in\mathbb{R}α∈R, pα=(1,0,0)p_\alpha=(1,0,0)pα​=(1,0,0) if tetete is true, and pα=(0,sin⁡α,cos⁡α)p_\alpha=(0,\sin\alpha,\cos\alpha)pα​=(0,sinα,cosα) otherwise.

Incident field. For k∈Rk\in\mathbb{R}k∈R, E0∈CE_0\in\mathbb{C}E0​∈C (independent of the planewave E0E_0E0​ above), the flag tetete, α∈R\alpha\in\mathbb{R}α∈R and r∈R3r\in\mathbb{R}^3r∈R3,

Eαinc(r)=E0 e ik(r1cos⁡α−r2sin⁡α) pα.E^{inc}_\alpha(r)=E_0\,e^{\,ik(r_1\cos\alpha-r_2\sin\alpha)}\,p_\alpha.Eαinc​(r)=E0​eik(r1​cosα−r2​sinα)pα​.

Image incident field. It is

E~inc(r)={−E−αinc(r)te true,  E−αinc(r)te false.\tilde E^{inc}(r)=\begin{cases}-E^{inc}_{-\alpha}(r) & te \text{ true},\\ \ \ E^{inc}_{-\alpha}(r) & te\text{ false}.\end{cases}E~inc(r)={−E−αinc​(r)  E−αinc​(r)​te true,te false.​

Explicitly, E−αinc(r)=E0eik(r1cos⁡α+r2sin⁡α)p−αE^{inc}_{-\alpha}(r)=E_0e^{ik(r_1\cos\alpha+r_2\sin\alpha)}p_{-\alpha}E−αinc​(r)=E0​eik(r1​cosα+r2​sinα)p−α​, where p−α=(1,0,0)p_{-\alpha}=(1,0,0)p−α​=(1,0,0) for TE and (0,−sin⁡α,cos⁡α)(0,-\sin\alpha,\cos\alpha)(0,−sinα,cosα) for TM.

PEC-sphere scattered field predicate. Fix k,a∈Rk,a\in\mathbb{R}k,a∈R (any sign, possibly zero) and arbitrary Einc,Es:R3→C3E^{inc},E^s:\mathbb{R}^3\to\mathbb{C}^3Einc,Es:R3→C3. The predicate holds exactly when all five conditions below hold:

  1. EsE^sEs is twice continuously (real-)differentiable on {∣r∣>a}\{|r|>a\}{∣r∣>a}.
  2. EsE^sEs is continuous on {∣r∣≥a}\{|r|\ge a\}{∣r∣≥a}.
  3. For every rrr with ∣r∣>a|r|>a∣r∣>a, ∇×∇×Es(r)=k2Es(r)\nabla\times\nabla\times E^s(r)=k^2E^s(r)∇×∇×Es(r)=k2Es(r), with the Fréchet-based curl above.
  4. For every rrr with ∣r∣=a|r|=a∣r∣=a, ι(r)×(Einc(r)+Es(r))=0\iota(r)\times\big(E^{inc}(r)+E^s(r)\big)=0ι(r)×(Einc(r)+Es(r))=0. This uses rrr itself, not a normalized normal.
  5. As ∣r∣→∞|r|\to\infty∣r∣→∞ in all directions (along the filter of complements of bounded sets),
∣r∣((∇×Es(r))×ι(r/∣r∣)−ik Es(r))→0.|r|\Big(\big(\nabla\times E^s(r)\big)\times\iota\big(r/|r|\big)-ik\,E^s(r)\Big)\to 0.∣r∣((∇×Es(r))×ι(r/∣r∣)−ikEs(r))→0.

Edge cases of the predicate:

  • If a<0a<0a<0, the sphere {∣r∣=a}\{|r|=a\}{∣r∣=a} is empty, so condition 4 is vacuous, and conditions 1–3 apply on all of R3\mathbb{R}^3R3.
  • If a=0a=0a=0, the sphere is {0}\{0\}{0}, where ι(0)×(⋅)=0\iota(0)\times(\cdot)=0ι(0)×(⋅)=0 automatically, so condition 4 is again vacuous.
  • Nothing is required of EincE^{inc}Einc except through condition 4.
  • No magnetic field, ω\omegaω or μ\muμ appears.
  • No uniqueness is asserted.

Mie field. EMie[k,a,Einc]E^{Mie}[k,a,E^{inc}]EMie[k,a,Einc] is some function EsE^sEs satisfying the predicate above, if one exists. It is an arbitrary choice among all such functions when there are several. If none exists, it is the zero function. Its values inside {∣r∣<a}\{|r|<a\}{∣r∣<a} are whatever the chosen function happens to take there.

Bump total field. With EαincE^{inc}_\alphaEαinc​ and E~inc\tilde E^{inc}E~inc built from the same k,E0,te,αk,E_0,te,\alphak,E0​,te,α, it is the pointwise sum on all of R3\mathbb{R}^3R3

Etot=Eαinc+EMie[k,a,Eαinc]+E~inc+EMie[k,a,E~inc].E^{tot}=E^{inc}_\alpha+E^{Mie}[k,a,E^{inc}_\alpha]+\tilde E^{inc}+E^{Mie}[k,a,\tilde E^{inc}].Etot=Eαinc​+EMie[k,a,Eαinc​]+E~inc+EMie[k,a,E~inc].

The definition involves no half-space {z<0}\{z<0\}{z<0} and no restriction to z≥0z\ge0z≥0 or ∣r∣≥a|r|\ge a∣r∣≥a. Both Mie terms refer to the full sphere ∣r∣≤a|r|\le a∣r∣≤a centred at the origin.

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