Scalar-wave power densities, ensemble-average splitting and slab absorption models
DefinitionArxiv2001_06227_BasicObjects of Sections II.A, IV and Appendices B and D of Sheremet, Pierrat and Carminati (2020).
- Space and derivatives. Fields live on . is the partial derivative along the -th axis, the Laplacian of a complex field and the divergence of a real vector field.
- Scalar wave model (eqs. 4-6). With , a scattered field of the incident field in a medium of permittivity satisfies , where . The induced current is .
- Power densities (eqs. 51-53, Appendix B). , , with .
- Ensemble averages (Section IV.A). Realizations of disorder are points of a probability space with law ; and . Then are the averages of the densities of item 3, , , is the scattered power density of , and .
- Scattering mean free path (eq. 77). , the integral taken with the surface measure of the unit sphere.
- Ballistic slab (eqs. 68, 78). For a slab of thickness and section with ballistic specific intensity at depth , .
- Single-scattering slab (Appendix D). is the Heaviside function. is the azimuth-integrated phase function; the slice is non-negative and integrable on with integral . With , is given by (D1), by (D2) with , the closed form of by (D3), with from (D3), and the left-hand side of (D5) is .
Formalization Note The energy current uses the sign of Appendix B, ; eq. (53) prints , which has the opposite sign. In (D2) the -integral runs over ; the printed limits to do not give (D3).
import Mathlib
/-!
A. Sheremet, R. Pierrat and R. Carminati, *Absorption of scalar waves in correlated disordered
media and its maximization using stealth hyperuniformity*, arXiv:2001.06227v2 (2020): the scalar
wave model of Section II.A, the power densities and their ensemble-average splitting of
Section IV.A and Appendix B, the structure-factor form of the scattering mean free path of
Section IV.B, the ballistic slab absorption of Section IV.C, and the single-scattering slab model
of Appendix D.
-/
open MeasureTheory
noncomputable section
namespace Arxiv2001_06227
/-- Physical space `ℝ³` (Section II.A). -/
abbrev Space := EuclideanSpace ℝ (Fin 3)
/-- The partial derivative `∂_i f(x)` along the `i`-th coordinate axis of `ℝ³`. -/
def pd {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] (f : Space → F) (i : Fin 3)
(x : Space) : F :=
fderiv ℝ f x (EuclideanSpace.single i 1)
/-- The Laplacian `Δ f = ∑_i ∂_i ∂_i f` of a complex field on `ℝ³` (eqs. (4)-(6)). -/
def lap (f : Space → ℂ) (x : Space) : ℂ :=
∑ i, pd (pd f i) i x
/-- The divergence `∇ · J = ∑_i ∂_i J_i` of a real vector field on `ℝ³` (eq. (53)). -/
def div3 (J : Space → Fin 3 → ℝ) (x : Space) : ℝ :=
∑ i, pd (fun y => J y i) i x
/-- Eq. (6): `E_s` is the scattered field of the incident field `E_0` in the medium with
permittivity `1 + δε`, i.e. `Δ E_s + k_0² E_s = -k_0² δε E` with `E = E_0 + E_s` and
`k_0 = ω / c` (eq. (4)). -/
def IsScatteredField (c omega : ℝ) (deps E0 Es : Space → ℂ) : Prop :=
∀ x, lap Es x + (((omega / c) ^ 2 : ℝ) : ℂ) * Es x =
-((((omega / c) ^ 2 : ℝ) : ℂ) * deps x * (E0 x + Es x))
/-- Section II.A (below eq. (2)) and Appendix B: the induced current density
`j = -i ω ε₀ δε E`. -/
def inducedCurrent (eps0 omega : ℝ) (deps E : Space → ℂ) (x : Space) : ℂ :=
-(Complex.I * (omega : ℂ) * (eps0 : ℂ) * deps x * E x)
/-- Eq. (51): the extinguished power density `P_e = ½ Re[j E_0^*]`. -/
def extPower (j E0 : Space → ℂ) (x : Space) : ℝ :=
(1 / 2 : ℝ) * (j x * (starRingEnd ℂ) (E0 x)).re
/-- Eq. (52): the absorbed power density `P_a = ½ Re[j E^*]`. -/
def absPower (j E : Space → ℂ) (x : Space) : ℝ :=
(1 / 2 : ℝ) * (j x * (starRingEnd ℂ) (E x)).re
/-- Appendix B: the energy current of the scattered field,
`J_s = (1 / (2 μ₀ ω)) Im(E_s^* ∇E_s)`. -/
def energyCurrent (mu0 omega : ℝ) (Es : Space → ℂ) (x : Space) : Fin 3 → ℝ :=
fun i => (1 / (2 * mu0 * omega)) * ((starRingEnd ℂ) (Es x) * pd Es i x).im
/-- Eq. (53): the scattered power density `P_s = ∇ · J_s`. -/
def scaPower (mu0 omega : ℝ) (Es : Space → ℂ) (x : Space) : ℝ :=
div3 (energyCurrent mu0 omega Es) x
section Average
variable {Ω : Type*} [MeasurableSpace Ω]
/-- Section IV.A: the ensemble average `⟨X⟩(r)` of a random field over the realizations of
disorder, with law `P`. -/
def ensAvg (P : Measure Ω) (X : Ω → Space → ℂ) (x : Space) : ℂ :=
∫ ξ, X ξ x ∂P
/-- Section IV.A: the fluctuation `δX = X - ⟨X⟩` of a random field. -/
def fluct (P : Measure Ω) (X : Ω → Space → ℂ) : Ω → Space → ℂ :=
fun ξ x => X ξ x - ensAvg P X x
/-- The random total field `E = E_0 + E_s` of each realization (Section II.A). -/
def totField (E0 : Space → ℂ) (Es : Ω → Space → ℂ) : Ω → Space → ℂ :=
fun ξ x => E0 x + Es ξ x
/-- The random induced current `j = -i ω ε₀ δε E` of each realization. -/
def randCurrent (eps0 omega : ℝ) (deps : Ω → Space → ℂ) (E0 : Space → ℂ)
(Es : Ω → Space → ℂ) : Ω → Space → ℂ :=
fun ξ => inducedCurrent eps0 omega (deps ξ) (totField E0 Es ξ)
/-- Section IV.A: the average extinguished power density `⟨P_e(r)⟩`. -/
def meanExtPower (P : Measure Ω) (eps0 omega : ℝ) (deps : Ω → Space → ℂ) (E0 : Space → ℂ)
(Es : Ω → Space → ℂ) (x : Space) : ℝ :=
∫ ξ, extPower (randCurrent eps0 omega deps E0 Es ξ) E0 x ∂P
/-- Section IV.A: the average absorbed power density `⟨P_a(r)⟩`. -/
def meanAbsPower (P : Measure Ω) (eps0 omega : ℝ) (deps : Ω → Space → ℂ) (E0 : Space → ℂ)
(Es : Ω → Space → ℂ) (x : Space) : ℝ :=
∫ ξ, absPower (randCurrent eps0 omega deps E0 Es ξ) (totField E0 Es ξ) x ∂P
/-- Section IV.A: the average scattered power density `⟨P_s(r)⟩`. -/
def meanScaPower (P : Measure Ω) (mu0 omega : ℝ) (Es : Ω → Space → ℂ) (x : Space) : ℝ :=
∫ ξ, scaPower mu0 omega (Es ξ) x ∂P
/-- Eq. (56): `P̄_e(r) = ½ Re[⟨j⟩ E_0^*]`, the part of `⟨P_e⟩` built from average quantities. -/
def barExtPower (P : Measure Ω) (eps0 omega : ℝ) (deps : Ω → Space → ℂ) (E0 : Space → ℂ)
(Es : Ω → Space → ℂ) (x : Space) : ℝ :=
extPower (ensAvg P (randCurrent eps0 omega deps E0 Es)) E0 x
/-- Eqs. (56) and (61): `P̄_a(r) = ½ Re[⟨j⟩ ⟨E^*⟩]`. -/
def barAbsPower (P : Measure Ω) (eps0 omega : ℝ) (deps : Ω → Space → ℂ) (E0 : Space → ℂ)
(Es : Ω → Space → ℂ) (x : Space) : ℝ :=
absPower (ensAvg P (randCurrent eps0 omega deps E0 Es)) (ensAvg P (totField E0 Es)) x
/-- Eq. (56): `P̄_s(r)`, the scattered power density of the average scattered field `⟨E_s⟩`. -/
def barScaPower (P : Measure Ω) (mu0 omega : ℝ) (Es : Ω → Space → ℂ) (x : Space) : ℝ :=
scaPower mu0 omega (ensAvg P Es) x
/-- Eq. (56): `P̃_a(r) = ⟨½ Re[δj δE^*]⟩`, the part of `⟨P_a⟩` built from the fluctuations. -/
def tildeAbsPower (P : Measure Ω) (eps0 omega : ℝ) (deps : Ω → Space → ℂ) (E0 : Space → ℂ)
(Es : Ω → Space → ℂ) (x : Space) : ℝ :=
∫ ξ, absPower (fluct P (randCurrent eps0 omega deps E0 Es) ξ)
(fluct P (totField E0 Es) ξ) x ∂P
/-- Eq. (56): `P̃_s(r)`, the average scattered power density of the fluctuation `δE_s`. -/
def tildeScaPower (P : Measure Ω) (mu0 omega : ℝ) (Es : Ω → Space → ℂ) (x : Space) : ℝ :=
∫ ξ, scaPower mu0 omega (fluct P Es ξ) x ∂P
end Average
/-- Eq. (77): the inverse scattering mean free path of identical scatterers in terms of the
corrected structure factor,
`1/ℓ_s = (ρ k_0⁴ |Δε|² / (16 π²)) ∫ |Θ[k_r(u' - u)]|² S̃[k_r(u' - u)] du'`,
the integral running over the unit sphere `u'` with its surface measure; `Θhat` is the Fourier
transform of the indicator of one particle and `u` the propagation direction. -/
def invScatLength (rho k0 kr : ℝ) (deltaEps : ℂ) (thetaHat : Space → ℂ) (sTilde : Space → ℝ)
(u : Space) : ℝ :=
rho * k0 ^ 4 * ‖deltaEps‖ ^ 2 / (16 * Real.pi ^ 2) *
∫ v : Metric.sphere (0 : Space) 1,
‖thetaHat (kr • ((v : Space) - u))‖ ^ 2 * sTilde (kr • ((v : Space) - u))
∂(volume : Measure Space).toSphere
/-- Eqs. (68) and (78), slab of thickness `L` and transverse section `S` at normal incidence:
`P̄_a = (v_E / ℓ_e) ∫ Ū d³r = (v_E S / ℓ_e) ∫_0^L I(s) / v_E ds`, where `I(s)` is the ballistic
specific intensity at depth `s` and `Ū = I / v_E` the ballistic energy density (eq. (49)). -/
def slabBallisticAbsorbed (vE S ellE L : ℝ) (I : ℝ → ℝ) : ℝ :=
vE * S / ellE * ∫ s in (0 : ℝ)..L, I s / vE
/-- Appendix D: the Heaviside step function `Θ` (its value at `0` is immaterial). -/
def heaviside (t : ℝ) : ℝ := if 0 ≤ t then 1 else 0
/-- Appendix D: `p(μ, μ')` is the phase function integrated over the azimuth, so that the slice
`μ ↦ p(μ, 1)` used in Appendix D is non-negative, integrable on `[-1, 1]` and of total mass `1`
(the phase function of eq. (47) is non-negative and normalised on the unit sphere). -/
def IsAzimuthalPhase (p : ℝ → ℝ → ℝ) : Prop :=
(∀ μ μ', 0 ≤ p μ μ') ∧ IntegrableOn (fun μ => p μ 1) (Set.Icc (-1) 1) ∧
∫ μ in (-1 : ℝ)..1, p μ 1 = 1
/-- Eq. (D1): the reflected power fraction `R` of the slab in the single-scattering
approximation, with `μ_s = 1/ℓ_s`, `μ_a = 1/ℓ_a`:
`R = ∫_0^∞ μ_s e^{-μ_s s} ∫_{-1}^0 p(μ,1) ∫_0^∞ μ_s e^{-μ_s s'} e^{-μ_a (s - s/μ)}
Θ[L - s] Θ[s' + s/μ] ds' dμ ds`. -/
def slabReflect (p : ℝ → ℝ → ℝ) (muS muA L : ℝ) : ℝ :=
∫ s in Set.Ioi (0 : ℝ), muS * Real.exp (-(muS * s)) *
∫ μ in Set.Ioo (-1 : ℝ) 0, p μ 1 *
∫ s' in Set.Ioi (0 : ℝ), muS * Real.exp (-(muS * s')) *
Real.exp (-(muA * (s - s / μ))) * heaviside (L - s) * heaviside (s' + s / μ)
/-- Eq. (D2), with the `μ`-integral over the forward hemisphere `0 < μ < 1` (the printed limits
`-1` to `0` are a misprint; see `REPORT.md`): the transmitted power fraction
`T = e^{-μ_e L} + ∫_0^∞ μ_s e^{-μ_s s} ∫_0^1 p(μ,1) ∫_0^∞ μ_s e^{-μ_s s'}
e^{-μ_a (s + (L - s)/μ)} Θ[L - s] Θ[s' - (L - s)/μ] ds' dμ ds`, with `μ_e = μ_a + μ_s`. -/
def slabTransmit (p : ℝ → ℝ → ℝ) (muS muA L : ℝ) : ℝ :=
Real.exp (-((muA + muS) * L)) +
∫ s in Set.Ioi (0 : ℝ), muS * Real.exp (-(muS * s)) *
∫ μ in Set.Ioo (0 : ℝ) 1, p μ 1 *
∫ s' in Set.Ioi (0 : ℝ), muS * Real.exp (-(muS * s')) *
Real.exp (-(muA * (s + (L - s) / μ))) * heaviside (L - s) *
heaviside (s' - (L - s) / μ)
/-- Eq. (D3): the closed form of `R + T` in the single-scattering approximation, with
`μ_e = μ_a + μ_s`:
`e^{-μ_e L} + ∫_0^1 (μ_s/μ_e) (μ/(μ+1)) p(-μ,1) {1 - e^{-μ_e L (μ+1)/μ}} dμ
+ ∫_0^1 (μ_s/μ_e) (μ/(μ-1)) p(μ,1) {1 - e^{-μ_e L (μ-1)/μ}} e^{-μ_e L/μ} dμ`. -/
def slabRT (p : ℝ → ℝ → ℝ) (muS muA L : ℝ) : ℝ :=
Real.exp (-((muA + muS) * L)) +
(∫ μ in Set.Ioo (0 : ℝ) 1, muS / (muA + muS) * (μ / (μ + 1)) * p (-μ) 1 *
(1 - Real.exp (-((muA + muS) * L * ((μ + 1) / μ))))) +
∫ μ in Set.Ioo (0 : ℝ) 1, muS / (muA + muS) * (μ / (μ - 1)) * p μ 1 *
(1 - Real.exp (-((muA + muS) * L * ((μ - 1) / μ)))) *
Real.exp (-((muA + muS) * L / μ))
/-- Appendix D: the average absorbed power `⟨P_a⟩ = P_0 [1 - (R + T)]` of the slab, with `R + T`
given by eq. (D3), as a function of `μ_s`, `μ_a` and `L`. -/
def slabAbsorbed (p : ℝ → ℝ → ℝ) (P0 muS muA L : ℝ) : ℝ :=
P0 * (1 - slabRT p muS muA L)
/-- Eq. (D5): the left-hand side of the equation for the critical absorption optical thickness,
`∫_0^1 [μ p(-μ,1)/(1+μ) {1 - e^{-b(1+μ)/μ}} + μ p(μ,1)/(1-μ) {e^{-b} - e^{-b/μ}}] dμ - b e^{-b}`. -/
def criticalLHS (p : ℝ → ℝ → ℝ) (b : ℝ) : ℝ :=
(∫ μ in Set.Ioo (0 : ℝ) 1,
(μ * p (-μ) 1 / (1 + μ) * (1 - Real.exp (-(b * (1 + μ) / μ))) +
μ * p μ 1 / (1 - μ) * (Real.exp (-b) - Real.exp (-(b / μ))))) - b * Real.exp (-b)
end Arxiv2001_06227
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Space. with its standard Euclidean structure: inner product, norm, and Lebesgue measure as volume. All fields below are functions on this space.
Partial derivative . Let be a real normed vector space, , and . The value is
where is the Fréchet (total) derivative of at and is the -th standard basis vector. If is not Fréchet-differentiable at , the value is . This holds even when the one-sided or directional partial derivative exists classically.
Laplacian . For and ,
Here is the function defined above, which equals at points where is not Fréchet-differentiable. That function is then differentiated again in direction at , giving wherever it is not Fréchet-differentiable. No smoothness of is assumed.
Divergence . For a real vector field , with components , and ,
Each is the Fréchet derivative of the scalar function at applied to , taken as where that function is not Fréchet-differentiable.
Scattered-field predicate. Given real numbers and complex fields , the predicate holds exactly when, for every ,
- is the Laplacian above, with derivatives taken as where they fail to exist.
- If , then is taken to be , and the condition reduces to .
- Nothing is required of : it need not satisfy any wave equation.
- No sign or nonzero conditions are imposed on or .
- There is no radiation, decay, or boundary condition on .
- No regularity of or is assumed.
Induced current. For real , fields and ,
Extinguished power density. For complex fields on and ,
Absorbed power density. For complex fields on and ,
This is the same formula as the extinguished power density, with the second field named .
Energy current. For real , a field and , this is the vector with components
- is the partial derivative above, with value where is not Fréchet-differentiable.
- If , the prefactor is taken to be , so .
Scattered power density. For real , a field and ,
where is the energy current of with parameters . The divergence is the one above, with for non-differentiable components.
Ensemble average . Let be an arbitrary measurable space and an arbitrary measure on it. is not required to be a probability measure, so it may be zero, infinite, or non-normalized. For a random field , written , and ,
This is a Bochner integral. It is whenever is not -integrable, including when it is not measurable.
Fluctuation . With as above and , the fluctuation is the random field
with the ensemble average above. In particular it uses the value for when is not integrable.
Random total field. For a fixed field and a random field ,
Random induced current. For real , random and fixed ,
No relation such as the scattered-field equation is imposed between , and .
Average extinguished power density. With , an arbitrary measure , real , random and fixed as above, and ,
Here is the random induced current. The value is if the integrand is not -integrable.
Average absorbed power density. With the same data,
Here is the random induced current and . The value is if the integrand is not -integrable.
Average scattered power density. For , an arbitrary measure , real , a random field and ,
is the scattered power density, the divergence of the energy current with parameters , of the single realization . The value is if the integrand is not -integrable.
. With as above and ,
is the random induced current. is if is not integrable.
. With the same data,
- .
- .
- Each average is when its integrand is not integrable.
- is not assumed to be a probability measure, so in general .
. For , , real , random and , is the scattered power density of the deterministic field :
- , taken as when the integrand is not integrable.
- Derivatives are where they fail to exist.
- is if .
. With as above and ,
- , where is the random induced current.
- , where .
- Averages are -integrals, set to when not integrable.
- The outer integral is likewise if its integrand is not -integrable.
. For , real , random and ,
- .
- is the scattered power density with parameters : the divergence of , with the conventions above.
- The integral is if the integrand is not -integrable.
Inverse scattering length. The inputs are real numbers , a complex number , functions and , and a vector . The value is
- is the unit sphere.
- is the measure induced on it from Lebesgue measure: . This is the standard surface-area measure, with total mass .
- The integral is if the integrand is not -integrable.
- is not required to be a unit vector.
- and are arbitrary functions. They are not required to be a Fourier transform of an indicator, or a structure factor.
- No sign conditions are imposed on .
Ballistic absorbed power in a slab. For real numbers and an arbitrary function , the value is
- The integral is oriented: for it equals .
- It is if the integrand is not integrable on the interval.
- Division by zero yields , so the whole value is when or .
- For and the value equals .
- No positivity is assumed for any parameter.
Heaviside function. For real ,
In particular .
Azimuthal phase-function predicate. A function satisfies the predicate exactly when all three of the following hold:
- for all real .
- is Lebesgue-integrable on .
- .
Apart from non-negativity, nothing is required of for . No symmetry or other structure is required.
Reflected fraction . For any and real , the value is
- The integrals are Lebesgue integrals over the open sets , , , nested from the inside out.
- Each one is if its integrand is not integrable.
- is the Heaviside function above, with .
- Since , exactly when , and .
- No sign conditions on are imposed, and no conditions on .
Transmitted fraction . For any and real , the value is
- The integrals are Lebesgue integrals over , (open interval), .
- Each one is if its integrand is not integrable.
- iff .
- No sign conditions on , and no conditions on .
Closed form of . For any and real , write . The value is
- Both integrals run over the open interval with Lebesgue measure.
- Each is if its integrand is not integrable.
- If , then is taken to be and both integrals vanish.
- This is a definition in its own right. It is not stated or proved to equal as defined above.
- No sign conditions on , and no conditions on .
Average absorbed power of the slab. For any and real , the value is
where is exactly the closed-form expression in the previous item, the one written for . It is not the integrals defining and . No sign conditions are imposed.
Critical-thickness left-hand side. For any and real , the value is
- The integral is a Lebesgue integral over the open interval .
- It is if the integrand is not integrable.
- No sign condition on , and no conditions on .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.