Gaussian random-mode model of passive coherent backscattering
DefinitionArxiv0709_3003_BasicObjects of the first experiment of Larose, Lobkis and Weaver (2007), Eqs. (2)-(5).
- Bessel function. .
- One mode. The values of a mode at the two sources and at the receiver form a centred Gaussian vector with covariance matrix
where is the common mean modal intensity, , and the distant receiver is uncorrelated with both sources. 3. Eq. (3). The contribution of one mode is . For modes, all with intensity and with source-source correlation coefficient at frequency , source separation and wave speed , the model mean squared correlation is
- Eq. (2). .
- Band average. .
Formalization Note The paper writes and keeps general. These agree only if . The definitions read as the correlation coefficient, so the covariance is ; for this is the paper's literal statement. The denominator of Eq. (2) is the limit as . The Lean name of is bw.
import Mathlib
/-!
Larose, Lobkis and Weaver, *Coherent backscattering of ultrasound without a source*,
arXiv:0709.3003v1 (2007): the Gaussian random-mode model of the first experiment
(Eqs. (2)-(5), PDF pp. 3-4) behind the passive spatial coherent backscattering enhancement.
-/
open MeasureTheory ProbabilityTheory Filter
noncomputable section
namespace Arxiv0709_3003
/-- The Bessel function of the first kind of order zero, `J_0(x) = (1/π) ∫_0^π cos(x sin θ) dθ`
(Bessel's integral). The paper uses `J_0` as the spatial correlation of the modes
(first experiment, text after Eq. (3), PDF p. 4) without defining it. -/
def besselJ0 (x : ℝ) : ℝ :=
(1 / Real.pi) * ∫ θ in (0 : ℝ)..Real.pi, Real.cos (x * Real.sin θ)
/-- Covariance matrix of one mode `u_n` sampled at the two sources and at the receiver,
coordinates `0 ↦ u_n(S_i)`, `1 ↦ u_n(S_j)`, `2 ↦ u_n(R)` (text after Eq. (3), PDF p. 4):
every coordinate has mean intensity `⟨u²⟩ = s`, the two sources have covariance
`⟨u_n(S_i) u_n(S_j)⟩ = ρ`, and the distant receiver is uncorrelated with both sources,
`⟨u_n(R) u_n(S_i)⟩ = ⟨u_n(R) u_n(S_j)⟩ = 0`. -/
def modeCov (s ρ : ℝ) : Matrix (Fin 3) (Fin 3) ℝ :=
!![s, ρ, 0; ρ, s, 0; 0, 0, s]
/-- The law of one mode `(u_n(S_i), u_n(S_j), u_n(R))`: a centred Gaussian vector ("the modes are
random gaussian variables", text after Eq. (3), PDF p. 4) with covariance `modeCov s ρ`. -/
def modeLaw (s ρ : ℝ) : Measure (EuclideanSpace ℝ (Fin 3)) :=
multivariateGaussian 0 (modeCov s ρ)
/-- The ensemble average `⟨u_n(S_i)² u_n(S_j)² u_n(R)⁴⟩` of the contribution of one mode to
Eq. (3) (PDF p. 3), for a mode with law `modeLaw s ρ`. -/
def modeTerm (s ρ : ℝ) : ℝ :=
∫ x, x 0 ^ 2 * x 1 ^ 2 * x 2 ^ 4 ∂(modeLaw s ρ)
/-- The model mean squared correlation `⟨C_ij²⟩` of Eq. (3) (PDF p. 3) at frequency `f` and source
separation `r`, for `N` modes each of mean intensity `s`, whose source-source correlation is
`J_0(2π f r / c)` (text after Eq. (3), PDF p. 4), read as the correlation coefficient, i.e.
covariance `s · J_0(2π f r / c)`; `c` is the wave speed. -/
def meanSqCorr (N : ℕ) (s c f r : ℝ) : ℝ :=
∑ _n : Fin N, modeTerm s (s * besselJ0 (2 * Real.pi * f * r / c))
/-- Eq. (2) (PDF p. 3), in the model at frequency `f`: the spatial enhancement
`CBE_spatial(r) = ⟨C_ij²(r)⟩ / ⟨C_ij²(r ≫ λ)⟩`, the denominator being the limit of
`⟨C_ij²(r')⟩` as `r' → ∞`. -/
def cbeSpatial (N : ℕ) (s c f r : ℝ) : ℝ :=
meanSqCorr N s c f r / limUnder atTop (fun r' => meanSqCorr N s c f r')
/-- The normalized CBE averaged over the frequency band `[f - bw/2, f + bw/2]` of width `bw = Δf`
(text before Eq. (5), PDF p. 4): `(1/bw) ∫_{f-bw/2}^{f+bw/2} CBE_spatial(r) at f' df'`. -/
def cbeBandAvg (N : ℕ) (s c f bw r : ℝ) : ℝ :=
(1 / bw) * ∫ f' in (f - bw / 2)..(f + bw / 2), cbeSpatial N s c f' r
end Arxiv0709_3003
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Bessel function . For every real , the bundle defines
This is Bessel's integral for the Bessel function of the first kind of order zero. It is defined for all real , and .
Mode covariance matrix. For any real numbers and , with no restrictions, is the real matrix indexed by :
This matrix is symmetric. It is positive semidefinite exactly when and . The definition itself imposes neither condition.
Mode law. For any real and , is the measure on (Euclidean 3-space, coordinates ) produced by the library's multivariate Gaussian construction with mean and covariance matrix .
- When is positive semidefinite, this is the centred Gaussian law with that covariance. In that case:
- each coordinate has variance ;
- and have covariance ;
- is uncorrelated with, and hence independent of, .
- When is not positive semidefinite (for example , or ), no Gaussian with that covariance exists. The measure is then whatever the library construction returns for such an input, and it does not have covariance .
Mode term. For any real and , the bundle defines the integral
If the integrand is not integrable against , the integral is taken to be by convention. In the positive semidefinite Gaussian case it is integrable, and the standard Gaussian moment formulas give
This closed form is a computed consequence; the code does not state it.
Mean squared correlation. For a natural number and reals , the bundle defines
Points to note about this definition:
- All summands are identical, and no joint law of different modes is involved.
- When the sum is .
- When , division by zero is taken to be , so the Bessel argument is and . The argument is also whenever or .
- There are no constraints on the signs of , , , .
- Since , the covariance is positive semidefinite exactly when . In that case
(again a computed consequence). For , the value depends on the library's fallback measure.
Spatial enhancement. For as above, the bundle defines
The limit is taken as the real variable tends to , with held fixed.
- If the limit does not exist, is an unspecified (arbitrarily chosen) real number.
- If , the quotient is by the division-by-zero convention. This happens, for example, when or .
- If , , and , then and , so
This equals at .
- If or , the function does not depend on , so whenever .
(These evaluations are computed consequences.)
Band-averaged enhancement. For and a real (the bandwidth), the bundle defines
This is an oriented integral over the frequency variable .
- If the integrand is not integrable on that interval, the integral is .
- If , the factor is , so the whole value is .
- If , the reversed orientation and the negative factor cancel, so the result is the average over the interval .
- No sign or positivity conditions are imposed on , , , or .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.