Broadband transmission matrix, exponential decay, Gaussian envelope and spectral degrees of freedom
DefinitionArxiv1707_02146_BasicObjects of the broadband-transmission-matrix model of Mounaix, de Aguiar and Gigan (2017).
- Spectral channels and fields (eq. 1). The pulse is split into uncorrelated spectral channels . At channel the monochromatic transmission matrix maps the field on the modulated SLM pixels to the modulated output field on the camera pixels. is the output field produced by the static reference part of the SLM.
- Broadband intensity (eq. 1). At camera pixel , the intensity is , and the static term is .
- Effective TM and BBTM. , i.e. row of multiplied by , and the Broadband Transmission Matrix is .
- Exponential decay. A profile decays with decay time if for all , for some constant .
- Traversal time. for a spectral correlation bandwidth and a fixed constant (the relation ).
- Gaussian envelope. is the Gaussian centred at with full width at half maximum . A function is a Gaussian of FWHM centred at if it equals for some and .
- Spectral degrees of freedom. for an envelope of width and correlation bandwidth .
Formalization Note Fields are complex vectors indexed by (SLM pixels) and (camera pixels); spectral channels are indexed by . The FWHM is built into the parametrisation of the Gaussian; the statement on the Gaussian cross product also states the half-maximum set explicitly.
import Mathlib
/-!
Mounaix, de Aguiar and Gigan, *Temporal recompression through a scattering medium via a broadband
transmission matrix*, arXiv:1707.02146v1 (2017): the broadband intensity model and Broadband
Transmission Matrix of eq. (1) (PDF p. 2), the exponential time-of-flight decay and the relation
`τ ∝ 1/δλ` (PDF pp. 2-3), the Gaussian spectral envelope (PDF pp. 3-4) and the number of spectral
degrees of freedom `N_λ = Δλ/δλ` (PDF p. 2).
-/
open Matrix ComplexConjugate
noncomputable section
namespace Arxiv1707_02146
section BBTM
variable {N m n : ℕ}
/-- Eq. (1), PDF p. 2: the modulated output fields `E^{out,M}(λ_i) = T(λ_i) E^{in}(λ_i)` at the `m`
camera pixels, for `N` spectral channels `λ_1, …, λ_N`, monochromatic transmission matrices
`T(λ_i)` (`m` output pixels × `n` modulated SLM pixels) and input fields `E^{in}(λ_i)` on the
modulated SLM pixels. -/
def modulatedField (T : Fin N → Matrix (Fin m) (Fin n) ℂ) (Ein : Fin N → Fin n → ℂ)
(i : Fin N) : Fin m → ℂ :=
T i *ᵥ Ein i
/-- Eq. (1), first line, PDF p. 2: the spectrally unresolved intensity at camera pixel `x`, the
incoherent sum over the `N` spectral channels of `|E^{out,R}(λ_i) + E^{out,M}(λ_i)|²`, where
`ER i x = E^{out,R}(λ_i)` at pixel `x` is the output field of the static reference part. -/
def broadbandIntensity (ER : Fin N → Fin m → ℂ) (T : Fin N → Matrix (Fin m) (Fin n) ℂ)
(Ein : Fin N → Fin n → ℂ) (x : Fin m) : ℝ :=
∑ i, Complex.normSq (ER i x + modulatedField T Ein i x)
/-- Eq. (1), second line, PDF p. 2: the static term `I_0` at pixel `x`, which contains all
field-squared terms `|E^{out,R}(λ_i)|² + |E^{out,M}(λ_i)|²`. -/
def staticTerm (ER : Fin N → Fin m → ℂ) (T : Fin N → Matrix (Fin m) (Fin n) ℂ)
(Ein : Fin N → Fin n → ℂ) (x : Fin m) : ℝ :=
∑ i, (Complex.normSq (ER i x) + Complex.normSq (modulatedField T Ein i x))
/-- Eq. (1), third line, PDF p. 2 (and the monochromatic case `T' = S_ref^* T`, PDF p. 2): the
effective transmission matrix `T'(λ_i) = (E^{out,R}(λ_i))^* T(λ_i)`, i.e. row `x` of `T(λ_i)`
multiplied by the complex conjugate of the reference field at pixel `x`. -/
def effectiveTM (ER : Fin N → Fin m → ℂ) (T : Fin N → Matrix (Fin m) (Fin n) ℂ) (i : Fin N) :
Matrix (Fin m) (Fin n) ℂ :=
Matrix.diagonal (fun x => conj (ER i x)) * T i
/-- PDF p. 2, paragraph after eq. (1): the Broadband Transmission Matrix
`B = ∑_{i=1}^{N_λ} T'(λ_i)`. -/
def bbtm (ER : Fin N → Fin m → ℂ) (T : Fin N → Matrix (Fin m) (Fin n) ℂ) :
Matrix (Fin m) (Fin n) ℂ :=
∑ i, effectiveTM ER T i
end BBTM
/-- PDF p. 3: a (time-of-flight) profile `f` decays for `t ≥ 0` in the form `∝ e^{-t/τ}`, with
decay time `τ > 0` and a nonzero proportionality constant. -/
def HasExpDecay (f : ℝ → ℝ) (τ : ℝ) : Prop :=
0 < τ ∧ ∃ C : ℝ, C ≠ 0 ∧ ∀ t : ℝ, 0 ≤ t → f t = C * Real.exp (-t / τ)
/-- PDF p. 2 (`τ_m ∝ 1/δλ_m`): the traversal time `κ / δλ` attached to a spectral correlation
bandwidth `δλ`, with a fixed proportionality constant `κ`. -/
def traversalTime (κ bw : ℝ) : ℝ := κ / bw
/-- PDF pp. 3-4: the Gaussian spectral profile of amplitude `A`, centred at `l0`, with full width
at half maximum `w`: `A · exp(-4 ln 2 · (λ - l0)² / w²)`. -/
def gaussianProfile (A l0 w : ℝ) (lam : ℝ) : ℝ :=
A * Real.exp (-(4 * Real.log 2) * (lam - l0) ^ 2 / w ^ 2)
/-- PDF pp. 3-4: `f` is a Gaussian centred at `l0` with FWHM `w > 0` and positive amplitude. -/
def IsGaussianFWHM (f : ℝ → ℝ) (l0 w : ℝ) : Prop :=
0 < w ∧ ∃ A : ℝ, 0 < A ∧ f = gaussianProfile A l0 w
/-- PDF p. 2: the number of spectral degrees of freedom `N_λ = Δλ / δλ` of a spectral envelope of
width `Δλ` and spectral correlation bandwidth `δλ`. -/
def numSpectralModes (width bw : ℝ) : ℝ := width / bw
end Arxiv1707_02146
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Modulated output field (modulatedField). Fix natural numbers (spectral channels), (output pixels) and (input pixels); each may be . The inputs are:
- a family of complex matrices, indexed by the channels ;
- a family of complex vectors in , one per channel;
- a channel index .
The output is the vector in given by the matrix–vector product
If , this is the zero vector. No conditions are imposed on or .
Broadband intensity (broadbandIntensity). The inputs are as above, plus:
- a family of vectors in , one per channel;
- the families and as above;
- a pixel index .
The output is the nonnegative real number
Here . When , the sum is empty and . Nothing in this definition relates to any other quantity defined here.
Static term (staticTerm). This takes the same inputs as the broadband intensity. Its output is the real number
which equals when . This is only a definition: no identity linking to (for example, ) is stated.
Effective transmission matrix (effectiveTM). The inputs are a family of vectors in , a family of complex matrices, and a channel index . The output is the complex matrix
In words, row of is multiplied by the complex conjugate of the reference field at pixel . The input fields play no role.
Broadband transmission matrix (bbtm). The inputs are and as above. The output is the complex matrix
When , is the zero matrix.
Exponential decay predicate (HasExpDecay). For a function and a real number , the statement " has exponential decay with time " means both of the following hold:
- ;
- there exists a real constant such that
Several things are left open:
- may be negative.
- Nothing is required of for .
- No normalization of is imposed.
Traversal time (traversalTime). For real numbers and , this is the real number . No sign or nonzero conditions are imposed on either argument. Division by zero is defined to give , so yields traversal time .
Gaussian profile (gaussianProfile). For real numbers , , and a real variable , this is the real number
There are no conditions on , or . As a result:
- may be zero or negative.
- and give the same function.
- If , division by zero is defined to give , so the exponent is and for every , a constant function.
Gaussian-with-FWHM predicate (IsGaussianFWHM). For a function and real numbers and , the statement means both of the following hold:
- ;
- there exists a real such that, for every real ,
an equality of functions on all of .
The centre is an arbitrary real number. The definition does not itself assert that is the full width at half maximum; it only fixes the formula above.
Number of spectral modes (numSpectralModes). For real numbers (width) and (bandwidth), this is the real number
It is not required to be an integer or positive, and no sign conditions are imposed. If , division by zero is defined to give , so . This real number has no stated link to the natural number of channels used in the matrix definitions above.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.