Dipolar self-energies, Green's-function components and scattering vertices in disordered media
DefinitionArxiv2003_13288_BasicObjects of Sections 2.3, 3.2, 3.4.2 and 4.2 of Wang and Zhao (2020), for electromagnetic waves of background wavenumber in a random medium of particles with number density .
- Scattering mean free path. For monodisperse randomly placed scatterers with scattering cross section , .
- Effective permittivity and wavenumber (Sec. 3.2.1). A self-energy determines (eq. 35). The effective transverse wavenumber is , with the principal complex square root.
- Dipoles. A point electric dipole of polarizability has T-operator (eq. 39). The Lorenz-Lorentz self-energy is (eq. 65). A sphere of radius and permittivity has electrostatic polarizability and volume fraction .
- Green's function (eqs. 73-74). and . The regular part of the dyadic Green's function is for . The spherical Bessel functions are and .
- Pair correlations. is the pair correlation function of a statistically homogeneous and isotropic medium, a function of the distance . Its three-dimensional Fourier transform is (eq. 78). The correlation integral is .
- Principal-value integrals. (eq. 79) is the limit as of the integral over , taken entry by entry. The Keller correlation integral of eq. (71) is , the transverse component along a unit vector at momentum .
- QCA self-energy (eq. 80). .
- Differential scattering coefficient (eqs. 41-42). For an on-shell irreducible vertex , the scattering direction at polar angle and azimuth about is in an orthonormal frame , and
The ISA vertex of point dipoles has (eq. 44), and the on-shell QCA vertex has (eq. 83). 9. Ohm's law (eqs. 58-59). A nonabsorbing diffusive slab of thickness has total transmittance with extrapolation length .
Formalization Note The scalar is the transverse part of (eq. 41) for unpolarized light: the average over the two incident polarizations of the sum over the scattered ones. The paper does not write this contraction out; it is the reading under which eq. (45) follows from eq. (42). The Green's-function components are those printed in eqs. (73)-(74). They are the negatives of the components of the real-space Green's function printed in eq. (53).
import Mathlib
/-!
B. X. Wang and C. Y. Zhao, *The dependent scattering effect on radiative properties of
micro/nanoscale discrete disordered media*, arXiv:2003.13288v1 (2020): the scattering mean free
path and order-of-magnitude criteria of Sections 2.3 and 3, the effective permittivity and
wavenumber of Section 3.2.1, the transverse irreducible vertex of Section 3.2.2, and the dipolar
self-energies, Green's-function components, pair-correlation integrals and vertices of
Sections 4.2.2-4.2.4, and Ohm's law of Section 3.4.2.
-/
open MeasureTheory
noncomputable section
namespace Arxiv2003_13288
/-- Real three-dimensional space, used for positions `r` and momentum directions `p̂`. -/
abbrev E3 := EuclideanSpace ℝ (Fin 3)
/-- Sec. 2.3, footnote 5 (PDF p. 14): the scattering mean free path `l_s = 1/(n₀ C_s)` of
monodisperse, randomly distributed scatterers with number density `n₀` and scattering cross
section `C_s`. -/
def scatMeanFreePath (n0 Cs : ℝ) : ℝ := 1 / (n0 * Cs)
/-- Eq. (35) (Sec. 3.2.1, PDF p. 27): the effective permittivity `ε_eff = 1 - Σ/k²` determined
by a (scalar, or transverse) self-energy `Σ` at background wavenumber `k`. -/
def effPermittivity (k : ℝ) (Sig : ℂ) : ℂ := 1 - Sig / (k : ℂ) ^ 2
/-- Sec. 3.2.1, after eq. (36) (PDF p. 27): the effective transverse wavenumber
`K^⊥ = √(ε^⊥) k`, with the principal complex square root. -/
def effWavenumber (k : ℝ) (eps : ℂ) : ℂ := eps ^ (1 / 2 : ℂ) * (k : ℂ)
/-- Eq. (39) (Sec. 3.2.1, PDF p. 28): the T-operator `t₀ = -k² α` of a single electric dipole of
polarizability `α`. -/
def dipoleT (k : ℝ) (alpha : ℂ) : ℂ := -(k : ℂ) ^ 2 * alpha
/-- Eq. (65) (Sec. 4.2.2, PDF p. 50): the Lorenz-Lorentz self-energy
`Σ_LLR = n₀ t₀ / (1 + n₀ t₀/(3k²))`. -/
def llrSelfEnergy (n0 k : ℝ) (t0 : ℂ) : ℂ := n0 * t0 / (1 + n0 * t0 / (3 * (k : ℂ) ^ 2))
/-- Sec. 4.2.2, before eq. (68) (PDF p. 51): the electrostatic polarizability
`α_ES = 4π a³ (ε_p - 1)/(ε_p + 2)` of a sphere of radius `a` and permittivity `ε_p`. -/
def alphaES (a : ℝ) (epsP : ℂ) : ℂ := 4 * Real.pi * a ^ 3 * (epsP - 1) / (epsP + 2)
/-- Eq. (68) (Sec. 4.2.2, PDF p. 51): the volume fraction `f_v = n₀ (4/3) π a³`. -/
def volFraction (n0 a : ℝ) : ℝ := n0 * (4 / 3) * Real.pi * a ^ 3
/-- Eq. (72) (Sec. 4.2.3, PDF p. 52): the spherical Bessel function `j₀(x) = sin x / x`. -/
def sphJ0 (x : ℝ) : ℝ := Real.sin x / x
/-- Eq. (72) (Sec. 4.2.3, PDF p. 52): the spherical Bessel function
`j₁(x) = sin x / x² - cos x / x`. -/
def sphJ1 (x : ℝ) : ℝ := Real.sin x / x ^ 2 - Real.cos x / x
/-- Eq. (73) (Sec. 4.2.3, PDF p. 52): the transverse component of the Green's function,
`G₀^⊥(r) = -(i/(kr) - 1/(kr)² + 1) e^{ikr}/(4π r)`. -/
def greenPerp (k r : ℝ) : ℂ :=
-(Complex.I / ((k * r : ℝ) : ℂ) - 1 / ((k * r : ℝ) : ℂ) ^ 2 + 1) *
Complex.exp (Complex.I * ((k * r : ℝ) : ℂ)) / (4 * Real.pi * r)
/-- Eq. (74) (Sec. 4.2.3, PDF p. 52): the longitudinal component of the Green's function,
`G₀^∥(r) = 2 (i/(kr) - 1/(kr)²) e^{ikr}/(4π r)`. -/
def greenPar (k r : ℝ) : ℂ :=
2 * (Complex.I / ((k * r : ℝ) : ℂ) - 1 / ((k * r : ℝ) : ℂ) ^ 2) *
Complex.exp (Complex.I * ((k * r : ℝ) : ℂ)) / (4 * Real.pi * r)
/-- The dyad `v vᵀ` of a vector `v ∈ ℝ³`, as a complex `3 × 3` matrix (`r̂ r̂`, `p̂ p̂` in the
paper). -/
def dyad (v : E3) : Matrix (Fin 3) (Fin 3) ℂ := fun i j => ((v i * v j : ℝ) : ℂ)
/-- Eqs. (73)-(74) (Sec. 4.2.3, PDF p. 52): the regular (principal-value) part of the dyadic
Green's function, `PV G₀(r) = G₀^⊥(r) (I - r̂ r̂) + G₀^∥(r) r̂ r̂` for `r ≠ 0`. -/
def greenReg (k : ℝ) (r : E3) : Matrix (Fin 3) (Fin 3) ℂ :=
greenPerp k ‖r‖ • (1 - dyad (‖r‖⁻¹ • r)) + greenPar k ‖r‖ • dyad (‖r‖⁻¹ • r)
/-- The component `e · M · e` of a `3 × 3` matrix along a unit vector `e`; for `e ⊥ p̂` this is
the transverse component of a tensor `M = M^⊥ (I - p̂ p̂) + M^∥ p̂ p̂`. -/
def quadForm (M : Matrix (Fin 3) (Fin 3) ℂ) (e : E3) : ℂ :=
∑ i, ∑ j, (e i : ℂ) * M i j * (e j : ℂ)
/-- Eqs. (71)-(72) (Sec. 4.2.3, PDF p. 52): the transverse component, along `e ⊥ p̂ = u`, of the
correlation integral `∫ d³r G₀(r) h₂(r) e^{i p·r}` at `p = K u`, with the regular part of `G₀`
and the ball `|r| ≤ ε` removed. -/
def kellerTrunc (k K : ℝ) (h2 : ℝ → ℝ) (u e : E3) (ε : ℝ) : ℂ :=
∫ r in {r : E3 | ε < ‖r‖},
quadForm (greenReg k r) e * (h2 ‖r‖ : ℂ) * Complex.exp (Complex.I * ((K * inner ℝ u r : ℝ) : ℂ))
/-- Eq. (79) (Sec. 4.2.4, PDF p. 54): the integral `∫ d³r PV G₀(r) h₂(r)` with the ball
`|r| ≤ ε` removed, entry by entry. -/
def pvTrunc (k : ℝ) (h2 : ℝ → ℝ) (ε : ℝ) : Matrix (Fin 3) (Fin 3) ℂ :=
fun i j => ∫ r in {r : E3 | ε < ‖r‖}, greenReg k r i j * (h2 ‖r‖ : ℂ)
/-- Eq. (79) (Sec. 4.2.4, PDF p. 54): the principal-value integral `∫ d³r PV G₀(r) h₂(r)`, the
limit of `pvTrunc k h2 ε` as `ε → 0⁺`. -/
def pvGreenIntegral (k : ℝ) (h2 : ℝ → ℝ) : Matrix (Fin 3) (Fin 3) ℂ :=
Filter.limUnder (nhdsWithin 0 (Set.Ioi 0)) (pvTrunc k h2)
/-- Eq. (80) (Sec. 4.2.4, PDF p. 55): the pair-correlation integral
`∫₀^∞ dr r e^{ikr} [g₂(r) - 1]`, written with `h₂ = g₂ - 1`. -/
def corrIntegral (k : ℝ) (h2 : ℝ → ℝ) : ℂ :=
∫ r in Set.Ioi (0 : ℝ), (r : ℂ) * Complex.exp (Complex.I * ((k * r : ℝ) : ℂ)) * (h2 r : ℂ)
/-- Eq. (80) (Sec. 4.2.4, PDF p. 55): the QCA self-energy of electric dipoles,
`Σ = n₀ t₀ / (1 + n₀ t₀/(3k²) + 2 n₀ t₀ ∫₀^∞ dr r e^{ikr} [g₂(r) - 1] / 3)`. -/
def qcaSelfEnergy (n0 k : ℝ) (t0 : ℂ) (h2 : ℝ → ℝ) : ℂ :=
n0 * t0 / (1 + n0 * t0 / (3 * (k : ℂ) ^ 2) + 2 * n0 * t0 * corrIntegral k h2 / 3)
/-- Eq. (78) (Sec. 4.2.4, PDF p. 54): the Fourier transform of the pair correlation function,
`H₂(q) = ∫ d³r h₂(r) e^{-i q·r}`. -/
def pairCorrFT (h2 : ℝ → ℝ) (q : E3) : ℂ :=
∫ r : E3, (h2 ‖r‖ : ℂ) * Complex.exp (-(Complex.I * ((inner ℝ q r : ℝ) : ℂ)))
/-- Sec. 3.2.2 (PDF p. 29): the scattering direction `p̂` at polar angle `θ` and azimuth `φ`
about the incident direction `p̂' = u`, in an orthonormal frame `(u, e₁, e₂)`. -/
def scatDir (u e1 e2 : E3) (θ φ : ℝ) : E3 :=
Real.cos θ • u + Real.sin θ • (Real.cos φ • e1 + Real.sin φ • e2)
/-- Eq. (41) (Sec. 3.2.2, PDF p. 29): the transverse projector `I - p̂ p̂`. -/
def transProj (v : E3) : Matrix (Fin 3) (Fin 3) ℂ := 1 - dyad v
/-- Eq. (41) (Sec. 3.2.2, PDF p. 29): the transverse part `(I - p̂p̂) (I ⊗ I) (I - p̂'p̂')` of the
tensor `I ⊗ I`, contracted for unpolarized light, i.e. averaged over the two incident
polarizations and summed over the scattered ones: `½ tr[(I - p̂p̂)(I - p̂'p̂')]`. -/
def unpolTransverse (v w : E3) : ℂ := (1 / 2) * Matrix.trace (transProj v * transProj w)
/-- Eq. (42) and the sentence before eq. (45) (Sec. 3.2.2, PDF pp. 29-30): the differential
scattering coefficient with respect to the polar angle, `dκ_s/dθ_s`, of an irreducible vertex
`Γ(Kp̂, Kp̂') = γ(p̂, p̂') I ⊗ I`: the transverse unpolarized part of `Γ/(2π)²`, integrated over
the azimuth `φ_s ∈ [0, 2π]` with the incident direction `p̂' = u` fixed. -/
def diffScatPolar (γ : E3 → E3 → ℂ) (u e1 e2 : E3) (θ : ℝ) : ℂ :=
∫ φ in (0 : ℝ)..(2 * Real.pi),
((2 * Real.pi : ℂ) ^ 2)⁻¹ * γ (scatDir u e1 e2 θ φ) u * unpolTransverse (scatDir u e1 e2 θ φ) u
/-- Eq. (44) (Sec. 3.2.2, PDF p. 29): the scalar coefficient `n₀ |t₀|²` of the ISA irreducible
vertex `Γ = n₀ |t₀|² I ⊗ I` of point dipoles. -/
def isaDipoleVertex (n0 : ℝ) (t0 : ℂ) (_v _w : E3) : ℂ := ((n0 * ‖t0‖ ^ 2 : ℝ) : ℂ)
/-- Eq. (83) (Sec. 4.2.4, PDF p. 55): the scalar coefficient
`n₀ |C|² + n₀² |C|² H₂(K p̂ - K p̂')` of the on-shell QCA irreducible vertex. -/
def qcaVertex (n0 K : ℝ) (C : ℂ) (h2 : ℝ → ℝ) (v w : E3) : ℂ :=
((n0 * ‖C‖ ^ 2 : ℝ) : ℂ) + ((n0 ^ 2 * ‖C‖ ^ 2 : ℝ) : ℂ) * pairCorrFT h2 (K • v - K • w)
/-- Eq. (58) (Sec. 3.4.2, PDF p. 40): Ohm's law for the total transmittance of a nonabsorbing
diffusive slab of thickness `L`, `T = (l_tr + z_e)/(L + 2 z_e)`. -/
def ohmTransmittance (ltr ze L : ℝ) : ℝ := (ltr + ze) / (L + 2 * ze)
/-- Eq. (59) (Sec. 3.4.2, PDF p. 40): the extrapolation length `z_e = (2/3) R̄ l_tr`. -/
def extrapLength (Rbar ltr : ℝ) : ℝ := 2 / 3 * Rbar * ltr
end Arxiv2003_13288
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
(abbreviation). is real three-dimensional Euclidean space . Its norm is and its inner product is the dot product . Wherever an integral over appears below, it is taken with respect to the standard Lebesgue (volume) measure on . Vectors in are written with components .
Scattering mean free path. For arbitrary real numbers and , the value is
No sign or positivity is assumed on or . If , the division convention returns , not infinity.
Effective permittivity. For a real number and a complex number , the value is
No assumption on is made. When , the quotient is taken to be , so .
Effective wavenumber. For a real number and a complex number , the value is
Here is the principal complex power , where is the principal logarithm with argument in . So , and . No assumption is made on or .
Dipole T-operator. For a real number and a complex number , the value is
Lorenz–Lorentz self-energy. For real numbers , and a complex number , the value is
Two division-by-zero conventions apply:
- If , the inner fraction is taken to be , so .
- If the full denominator equals , the value is .
No sign assumptions are made on or .
Electrostatic polarizability. For a real number and a complex number , the value is
The radius may be any real number, including zero or negative. When , the value is .
Volume fraction. For real numbers and , the value is
No sign or range restriction is imposed.
Spherical Bessel . For real , the value is
At the value is , because the quotient is taken as . It is not the limiting value .
Spherical Bessel . For real , the value is
At both quotients are taken to be , so .
Transverse Green's function component. For real numbers and (no sign restriction on either), the value is
Division by zero is taken as . This gives the following degenerate cases:
- If but (that is, ), the two reciprocals vanish and .
- If , then .
Longitudinal Green's function component. For real numbers and , the value is
Division by zero is taken as , so whenever .
Dyad. For , is the complex matrix
Its entries are real numbers regarded as complex numbers.
Regular part of the dyadic Green's function. For real and , let . The value is
Here is the identity matrix and , are as above. At , the convention gives , and , so is the zero matrix. This is a pointwise matrix-valued function only; no delta-function or singular term is included.
Quadratic form. For a complex matrix and , the value is
No complex conjugation is involved, since is real. The vector is not required to be a unit vector or orthogonal to anything.
Truncated correlation integral (transverse component). The inputs are:
- real numbers , , ;
- an arbitrary function ;
- arbitrary vectors , with no unit-length or orthogonality requirement.
The value is the Lebesgue integral
If , the domain is all of . If the integrand is not Lebesgue-integrable on that domain, the value is by convention.
Truncated principal-value matrix integral. For real , a function , and real , this is the complex matrix whose entry is
Each entry is set to if its integrand is not Lebesgue-integrable on the domain.
Principal-value Green's integral. For real and , the value is
The limit is taken in , entrywise, as decreases to through positive values. If this limit exists, the value is that limit. If it does not exist, the value is some unspecified complex matrix, about which nothing is asserted.
Pair-correlation integral. For real and , the value is the Lebesgue integral over the open half-line
This is a Lebesgue integral, not an improper Riemann integral. If is not absolutely integrable on , the value is .
QCA self-energy. For real numbers , , a complex number , and , the value is
Here is the pair-correlation integral above, which inherits its " if not integrable" convention. Two division-by-zero conventions apply:
- If , the term is taken to be .
- If the full denominator is , the value is .
Fourier transform of the pair correlation. For and , the value is
It is set to if the integrand is not Lebesgue-integrable on .
Scattering direction. For and real , , the value is
No orthonormality or unit-length condition is imposed on .
Transverse projector. For , the value is the complex matrix
It is a projector only when ; no such condition is imposed.
Unpolarized transverse contraction. For , the value is
Expanded, this equals
For unit vectors this reduces to .
Differential scattering coefficient in the polar angle. The inputs are:
- an arbitrary function ;
- vectors ;
- a real number .
With the scattering direction above, the value is
The first argument of is the scattered direction and the second is the fixed vector . The integral is over the azimuth , and its value is if the integrand is not integrable on . No sine-of- Jacobian factor appears.
ISA dipole vertex. For real and complex , this is the function of two vectors given by
It is a constant: it does not depend on or . Here is the complex modulus.
QCA vertex. For real numbers , , a complex number , a function , and vectors , the value is
Here is the Fourier transform above, and it is when its integrand is not integrable.
Ohm's-law transmittance. For real numbers , , , the value is
No sign assumptions are made. If , then .
Extrapolation length. For real numbers and , the value is
No range restriction is placed on or .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.