Localized-regime random-matrix model of single-mode delay times: Laguerre ensemble, spectral moments and the distributions of eqs. (13)-(20)
DefinitionArxivcond_mat_0004049_BasicObjects of Schomerus, van Bemmel and Beenakker (2000), eqs. (1)-(20).
- Localized-regime model (pp. 1-2). For modes and , the sample is with three independent parts. and are complex Gaussian vectors in with independent circular entries of variance . The rates follow the Laguerre ensemble, eq. (7): the probability density proportional to on .
- Observables. The incident-mode column of the Haar-distributed unitary is (uniform on the unit sphere of ). For the detected-mode column is , in the large- Gaussian form of p. 2. The Wigner-Smith delay times are . Eq. (6): , , (). Eq. (19): , , (). Eq. (11): .
- Closed forms. Eq. (13): . Eq. (16): . Eq. (15): with for . Eq. (17): . Eq. (20) at leading order in , in the variables , : the weight .
- Convergence in law. For observables of the model with parameter , " in law" means for every bounded continuous .
Formalization Note The paper takes and to be columns of a Haar unitary and replaces them, for large , by independent Gaussian vectors. The model keeps exactly on the unit sphere, as eq. (12) requires (), and uses the Gaussian form for . , which the paper leaves undefined, is taken as ; this only changes the densities on a null set.
import Mathlib
/-!
H. Schomerus, K. J. H. van Bemmel and C. W. J. Beenakker, *Coherent backscattering effect on wave
dynamics in a random medium*, arXiv:cond-mat/0004049v1 (2000): the random-matrix model of
single-mode delay times in reflection from a disordered waveguide in the localized regime
(eqs. (5)-(7), (11), (19)), and the closed-form distributions of eqs. (13), (15)-(17), (20).
-/
open MeasureTheory ProbabilityTheory
noncomputable section
namespace Arxivcond_mat_0004049
/-- The complex Gaussian vector of p. 2 ("independent Gaussian random numbers with vanishing mean
and variance `N⁻¹`"): `N` independent circular complex Gaussian entries with `E|z_i|² = 1/N`, i.e.
real and imaginary parts independent `N(0, 1/(2N))`. -/
def gaussVec (N : ℕ) : Measure (Fin N → ℂ) :=
(Measure.pi fun _ : Fin N =>
(gaussianReal 0 ((N : NNReal)⁻¹ / 2)).prod (gaussianReal 0 ((N : NNReal)⁻¹ / 2))).map
(fun x i => Complex.measurableEquivRealProd.symm (x i))
/-- The unnormalised weight of the Laguerre ensemble, eq. (7), for the rates `μ_i = 1/τ_i`:
`∏_{i<j} |μ_i - μ_j| ∏_k Θ(μ_k) exp(-γ (N+1) μ_k)`. -/
def laguerreWeight (N : ℕ) (γ : ℝ) (μ : Fin N → ℝ) : ENNReal :=
ENNReal.ofReal ((∏ i, ∏ j, if i < j then |μ i - μ j| else 1) *
∏ k, if 0 < μ k then Real.exp (-γ * ((N : ℝ) + 1) * μ k) else 0)
/-- The Laguerre ensemble, eq. (7): the probability law of the rates `μ_1, …, μ_N` with density
proportional to `laguerreWeight` with respect to Lebesgue measure on `ℝ^N`. -/
def laguerreEnsemble (N : ℕ) (γ : ℝ) : Measure (Fin N → ℝ) :=
(∫⁻ μ, laguerreWeight N γ μ)⁻¹ • (volume : Measure (Fin N → ℝ)).withDensity (laguerreWeight N γ)
/-- The sample space of the localized-regime model: `ω = (g, v, μ)`, where `g` generates the
incident-mode column `u` of `U`, `v` is the detected-mode column, and `μ` are the rates. -/
abbrev Sample (N : ℕ) : Type := (Fin N → ℂ) × (Fin N → ℂ) × (Fin N → ℝ)
/-- The localized-regime model of pp. 1-2: `g` and `v` independent complex Gaussian vectors
(`gaussVec N`), independent of the rates `μ` drawn from the Laguerre ensemble (eq. (7)). -/
def localizedModel (N : ℕ) (γ : ℝ) : Measure (Sample N) :=
(gaussVec N).prod ((gaussVec N).prod (laguerreEnsemble N γ))
/-- The column `u_i = U_{im}` of the matrix `U`, uniformly distributed in the unitary group
(p. 2): `u = g / ‖g‖₂`, which for a complex Gaussian `g` is uniform on the unit sphere of `ℂ^N`,
the law of a column of a Haar-distributed unitary matrix. -/
def uVec {N : ℕ} (ω : Sample N) : Fin N → ℂ :=
fun i => ω.1 i / ((Real.sqrt (∑ j, Complex.normSq (ω.1 j)) : ℝ) : ℂ)
/-- The detected-mode column `v_i = U_{in}` for `n ≠ m`, in the large-`N` Gaussian form of p. 2. -/
def vVec {N : ℕ} (ω : Sample N) : Fin N → ℂ := ω.2.1
/-- The Wigner-Smith delay times `τ_i = 1/μ_i` (eqs. (4), (7)). -/
def tau {N : ℕ} (ω : Sample N) : Fin N → ℝ := fun i => (ω.2.2 i)⁻¹
/-- Eq. (6): `A_k = ∑_i τ_i^k u_i v_i` (different incident and detected modes, `n ≠ m`). -/
def ampA {N : ℕ} (k : ℕ) (ω : Sample N) : ℂ :=
∑ i, ((tau ω i : ℂ)) ^ k * uVec ω i * vVec ω i
/-- Eq. (19): `C_k = ∑_i τ_i^k u_i²` (equal incident and detected modes, `n = m`). -/
def ampC {N : ℕ} (k : ℕ) (ω : Sample N) : ℂ :=
∑ i, ((tau ω i : ℂ)) ^ k * uVec ω i ^ 2
/-- Eq. (11): the spectral moments `B_k = ∑_i |u_i|² τ_i^k`. -/
def specMoment {N : ℕ} (k : ℕ) (ω : Sample N) : ℝ :=
∑ i, Complex.normSq (uVec ω i) * tau ω i ^ k
/-- Eq. (6): the single-mode delay time `φ' = Re (A_1/A_0)` for `n ≠ m`. -/
def delayNe {N : ℕ} (ω : Sample N) : ℝ := (ampA 1 ω / ampA 0 ω).re
/-- Eq. (6): the reflected intensity `I = |A_0|²` for `n ≠ m`. -/
def intensityNe {N : ℕ} (ω : Sample N) : ℝ := Complex.normSq (ampA 0 ω)
/-- Eq. (19): the single-mode delay time `φ' = Re (C_1/C_0)` for `n = m`. -/
def delayEq {N : ℕ} (ω : Sample N) : ℝ := (ampC 1 ω / ampC 0 ω).re
/-- Eq. (19): the reflected intensity `I = |C_0|²` for `n = m`. -/
def intensityEq {N : ℕ} (ω : Sample N) : ℝ := Complex.normSq (ampC 0 ω)
/-- The integrand of eq. (13): `Θ(I) (N³ I/π)^{1/2} e^{-NI} (B_2 - B_1²)^{-1/2}
exp(-N I (φ' - B_1)²/(B_2 - B_1²))`. -/
def eq13Kernel (N : ℕ) (B1 B2 I φ : ℝ) : ℝ :=
if 0 < I then
Real.sqrt ((N : ℝ) ^ 3 * I / Real.pi) * Real.exp (-(N : ℝ) * I) *
(Real.sqrt (B2 - B1 ^ 2))⁻¹ * Real.exp (-(N : ℝ) * I * (φ - B1) ^ 2 / (B2 - B1 ^ 2))
else 0
/-- The integrand of eq. (16): `(B_2 - B_1²) / (2 (B_2 + φ'² - 2 B_1 φ')^{3/2})`. -/
def eq16Kernel (B1 B2 φ : ℝ) : ℝ :=
(B2 - B1 ^ 2) / (2 * (B2 + φ ^ 2 - 2 * B1 * φ) ^ ((3 : ℝ) / 2))
/-- The exponential integral `Ei(x) = -∫_{-x}^∞ e^{-t}/t dt` for `x < 0` (used in eq. (15) only at
negative arguments; for `x ≥ 0` the integral is not convergent and the value is a junk value). -/
def expIntegralEi (x : ℝ) : ℝ := -∫ t in Set.Ioi (-x), Real.exp (-t) / t
/-- Eq. (15): the joint density of the spectral moments `B_1, B_2` (for `n ≠ m`, large `N`),
`Θ(B_1)Θ(B_2) e^{-N B_1²/B_2} [ (B_1² γ N³/B_2⁴)(B_2 + γ N² B_1) e^{-2γN/B_1}
- (γ³ N⁵/(4 B_2⁵))(2 B_2² - 4 B_1² B_2 N + B_1⁴ N²) Ei(-2γN/B_1) ]`. -/
def eq15Density (N : ℕ) (γ B1 B2 : ℝ) : ℝ :=
if 0 < B1 ∧ 0 < B2 then
Real.exp (-(N : ℝ) * B1 ^ 2 / B2) *
(B1 ^ 2 * γ * (N : ℝ) ^ 3 / B2 ^ 4 * (B2 + γ * (N : ℝ) ^ 2 * B1) *
Real.exp (-2 * γ * (N : ℝ) / B1) -
γ ^ 3 * (N : ℝ) ^ 5 / (4 * B2 ^ 5) *
(2 * B2 ^ 2 - 4 * B1 ^ 2 * B2 * (N : ℝ) + B1 ^ 4 * (N : ℝ) ^ 2) *
expIntegralEi (-2 * γ * (N : ℝ) / B1))
else 0
/-- Eq. (17): the diffusion-theory distribution of the single-mode delay time,
`P_diff(φ') = (Q/2φ̄') [Q + (φ'/φ̄' - 1)²]^{-3/2}`, with parameters `Q`, `φ̄'` (`phibar`). -/
def pDiff (Q phibar φ : ℝ) : ℝ :=
Q / (2 * phibar) * (Q + (φ / phibar - 1) ^ 2) ^ (-(3 : ℝ) / 2)
/-- Eq. (20) at leading order in `N`, in the rescaled variables `c_0 = N^{1/2} C_0`,
`c_1 = C_1/(γN)`: the unnormalised weight `exp(-|c_0|²/2) ∫_0^∞ x² e^{-x} (1 + |c_1|² x²)^{-5/2} dx`
(the cross term `(2x/γN) Re C_0 C_1^*` of eq. (20) equals `2x Re(c_0 c̄_1)/N^{1/2}`). -/
def eq20LimitWeight (c0 c1 : ℂ) : ℝ :=
Real.exp (-‖c0‖ ^ 2 / 2) *
∫ x in Set.Ioi (0 : ℝ), x ^ 2 * Real.exp (-x) * (1 + ‖c1‖ ^ 2 * x ^ 2) ^ (-(5 : ℝ) / 2)
/-- Convergence in distribution as `N → ∞` in the localized-regime model: the laws of the
observables `X N` under `localizedModel N γ` converge weakly to `ρ`, i.e. `E_N f(X_N) → ∫ f dρ`
for every bounded continuous `f`. -/
def LawTendsto {E : Type*} [TopologicalSpace E] [MeasurableSpace E] (γ : ℝ)
(X : ∀ N : ℕ, Sample N → E) (ρ : Measure E) : Prop :=
∀ f : BoundedContinuousFunction E ℝ,
Filter.Tendsto (fun N => ∫ ω, f (X N ω) ∂(localizedModel N γ)) Filter.atTop
(nhds (∫ x, f x ∂ρ))
end Arxivcond_mat_0004049
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Namespace and conventions. Every declaration lives in the namespace Arxivcond_mat_0004049. Throughout, is a natural number (so is allowed) and is an arbitrary real number (no sign condition). Division by zero evaluates to , so and . The square root of a negative real number is taken to be . Real powers with non-integer use the convention for . For and this convention gives whenever , and for every . An integral of a function that is not integrable is taken to be .
gaussVec. For each , is the probability measure on (vectors ) obtained as follows:
- For each index , independently draw as two independent real normal variables of mean and variance .
- Set .
So the coordinates are independent and identically distributed, each , and the coordinates are not normalized. When the space is a single point and is the unit point mass there.
laguerreWeight. For , the weight is the extended non-negative real
- The Vandermonde factor appears to the first power.
- The weight is zero as soon as some , and is otherwise finite and non-negative.
- For both products are empty and .
laguerreEnsemble. This is the measure on defined by
where is Lebesgue measure. It is a measure on labelled, unordered tuples with a symmetric density; there is no ordering of the .
- If and , the integral is finite and positive, so is a probability measure.
- If and , the integral is . Its inverse is then , so is the zero measure.
- For , is the unit point mass.
Sample. The sample space is
A sample point is written .
localizedModel. This is the product measure
on . Under it, , and are independent, and and are each distributed as . For and , is the zero measure, because its third factor is.
uVec. For , the vector has components
- It depends only on , and has unit Euclidean norm when .
- If the division is by zero and .
vVec. The vector is simply the second component of . It is the raw Gaussian vector:
- it is not normalized;
- it is not orthogonalized against ;
- under it is independent of .
tau. The delay times are for , with the convention when . Under with , all almost surely.
ampA. For a natural number ,
Neither factor is complex-conjugated. In particular .
ampC. For a natural number ,
Here is the complex square, not .
specMoment. For a natural number ,
So when , and when .
delayNe. The delay is . It equals whenever .
intensityNe. The intensity is .
delayEq. The delay is . It equals whenever .
intensityEq. The intensity is .
eq13Kernel. For real , if the kernel is
If , the kernel is . Because of the square-root and inverse conventions, the kernel is also in these cases:
- whenever ;
- when .
It is therefore nonzero only when , and . It is just a real function. No integration, normalization, or relation to the model is asserted.
eq16Kernel. For real ,
The base of the power equals . If this base is , the power evaluates to and the whole expression is .
- There is no positivity condition on or .
- The value is negative when but the base is still positive.
expIntegralEi. For real ,
- For the integral converges, giving the usual exponential integral at negative arguments.
- For the integrand is not integrable on , since it contains or abuts . Under the non-integrable convention the integral is , so for all .
eq15Density. For , if and ,
Otherwise is .
- When or , the argument of is , so the term is the junk value .
- No claim is made that is non-negative, normalized, or the law of under the model. It is only a real-valued function.
pDiff. For real ,
There are no constraints on the parameters, and the following degenerate cases apply:
- If , then and , so the value is .
- If the bracketed base is (possible only when ), the power is and the value is .
No normalization or link to the model is asserted.
eq20LimitWeight. For complex ,
- The integral always converges, since the integrand is between and .
- The value depends only on and ; no term couples and .
- It is not normalized, and no relation to , or the model is asserted here.
LawTendsto. The inputs are:
- a type carrying both a topology and a measurable structure, with no assumption that they are compatible (for instance, not assumed Borel);
- a real ;
- a family of maps , one for each , with no measurability assumed;
- a measure on , not required to be finite or a probability measure.
The proposition asserts that for every bounded continuous ,
Both integrals follow the non-integrable convention:
- On the left, if is not integrable (for instance, not measurable), its integral counts as .
- On the right, if is not -integrable, counts as .
Only the limit matters, so finitely many are irrelevant. If , then is the zero measure for all , so the left side is identically . The statement then reduces to for all bounded continuous , which holds for example when .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.