Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Transmission matrix, observed transmission matrix and reference-amplitude estimate

Definition
Arxiv1904_10695_Basic

by Xeroth · Nov 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

scattering-mediaspeckletransmission-matrixwavefront-shaping

Objects of Section 1 (pp. 2-3) of Hofer and Brasselet (2019).

  1. Transmission matrix. A transmission matrix is a complex M×NM\times NM×N array t=(tmn)t=(t_{mn})t=(tmn​), where m∈{1,…,M}m\in\{1,\dots,M\}m∈{1,…,M} indexes the SLM input pixels (or input bases) and n∈{1,…,N}n\in\{1,\dots,N\}n∈{1,…,N} the camera output pixels, so that Eout,n=∑mtmnEin,mE_{out,n}=\sum_m t_{mn}E_{in,m}Eout,n​=∑m​tmn​Ein,m​.
  2. Observed transmission matrix. For an output reference field Eref=(Eref,n)∈CNE_{ref}=(E_{ref,n})\in\mathbb{C}^NEref​=(Eref,n​)∈CN, the measured elements are tobs,mn=tmnEref,nt_{obs,mn}=t_{mn}E_{ref,n}tobs,mn​=tmn​Eref,n​.
  3. Average over inputs. For real numbers a1,…,aMa_1,\dots,a_Ma1​,…,aM​, ⟨am⟩m=1M∑m=1Mam\langle a_m\rangle_m=\frac1M\sum_{m=1}^M a_m⟨am​⟩m​=M1​∑m=1M​am​. For a matrix TTT, the amplitude average at output pixel nnn is ⟨∣Tmn∣⟩m\langle|T_{mn}|\rangle_m⟨∣Tmn​∣⟩m​.
  4. Normalisation by the maximum. For real numbers a1,…,aNa_1,\dots,a_Na1​,…,aN​, the normalised profile is an/max⁡n′an′a_n/\max_{n'}a_{n'}an​/maxn′​an′​.

Formalization Note Indices run over Fin M\mathrm{Fin}\,MFinM and Fin N\mathrm{Fin}\,NFinN. The maximum is written as a supremum over the finite set of output pixels. Lean defines division by zero as 000. Where the statement normalises by a maximum, its hypotheses (t≠0t\ne0t=0 and Eref≠0E_{ref}\ne0Eref​=0) make that maximum positive, so no conclusion rests on dividing by zero.

Definition code
import Mathlib

/-!
Hofer and Brasselet, *Manipulating the transmission matrix of scattering media for nonlinear
imaging beyond the memory effect*, arXiv:1904.10695v1 (2019), Section 1 ("Introduction"),
pp. 2-3: the transmission matrix, the observed (reference-weighted) transmission matrix, the
average over input modes and the reference-amplitude estimate of eq. (2) with its normalisation
by the maximum.
-/

noncomputable section

namespace Arxiv1904_10695

/-- Section 1, p. 2: a transmission matrix `t_{mn}` from SLM input pixel (or basis element)
`m ∈ {1,…,M}` to camera output pixel `n ∈ {1,…,N}`, with complex entries, so that
`E_{out,n} = ∑_m t_{mn} E_{in,m}`. -/
abbrev TransmissionMatrix (M N : ℕ) : Type := Fin M → Fin N → ℂ

/-- Section 1, p. 3 (text before eq. (2)): the measured transmission-matrix elements
`t_{obs,mn} = t_{mn} E_{ref,n}`, the true elements weighted by the output reference field
`E_{ref,n}` at camera pixel `n`. -/
def obsTM {M N : ℕ} (t : TransmissionMatrix M N) (Eref : Fin N → ℂ) : TransmissionMatrix M N :=
  fun m n => t m n * Eref n

/-- Section 1, eq. (2), p. 3: the average `⟨a_m⟩_m = (1/M) ∑_{m=1}^M a_m` over the `M` input
pixels or bases. -/
def inputAvg {M : ℕ} (a : Fin M → ℝ) : ℝ := (∑ m, a m) / M

/-- Section 1, eq. (2), p. 3: the amplitude average `⟨|T_{mn}|⟩_m` over input modes of a
(transmission) matrix `T`, as a function of the output pixel `n`; applied to `T = t_obs` it is
the left-hand side of eq. (2). -/
def ampAvg {M N : ℕ} (T : TransmissionMatrix M N) (n : Fin N) : ℝ :=
  inputAvg (fun m => ‖T m n‖)

/-- Section 1, p. 3 (sentence after eq. (2)): "a normalization with its maximum value", i.e. the
profile `a_n / max_{n'} a_{n'}` of a nonnegative quantity `a` over the camera pixels. -/
def normalizeByMax {N : ℕ} (a : Fin N → ℝ) (n : Fin N) : ℝ := a n / ⨆ n', a n'

end Arxiv1904_10695
Source
Hofer and Brasselet, Manipulating the transmission matrix of scattering media for nonlinear imaging beyond the memory effect, arXiv:1904.10695v1 (2019), Section 1 (Introduction), eqs. (1)-(2), pp. 2-3
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Transmission matrix type. For natural numbers MMM and NNN, a transmission matrix of size M×NM \times NM×N is any function assigning a complex number tmn∈Ct_{mn} \in \mathbb{C}tmn​∈C to each pair (m,n)(m, n)(m,n), where mmm ranges over {0,1,…,M−1}\{0, 1, \dots, M-1\}{0,1,…,M−1} (input indices) and nnn ranges over {0,1,…,N−1}\{0, 1, \dots, N-1\}{0,1,…,N−1} (output indices). No other structure is imposed: there is no linearity, unitarity, normalisation or bound on the entries, and no relation between input and output fields is encoded in the type. MMM and NNN may be 000, in which case there are no entries.

Observed transmission matrix. Given M,N∈NM, N \in \mathbb{N}M,N∈N, a transmission matrix t=(tmn)t = (t_{mn})t=(tmn​) of size M×NM \times NM×N, and an arbitrary complex vector Eref=(Eref,n)n=0N−1∈CNE_{\mathrm{ref}} = (E_{\mathrm{ref},n})_{n=0}^{N-1} \in \mathbb{C}^NEref​=(Eref,n​)n=0N−1​∈CN, the observed matrix tobst_{\mathrm{obs}}tobs​ is the M×NM \times NM×N complex matrix with entries

(tobs)mn=tmn Eref,n.(t_{\mathrm{obs}})_{mn} = t_{mn}\, E_{\mathrm{ref},n}.(tobs​)mn​=tmn​Eref,n​.

Each column nnn is multiplied by the same complex number Eref,nE_{\mathrm{ref},n}Eref,n​. The vector ErefE_{\mathrm{ref}}Eref​ is unconstrained, so it may contain zeros, which zero out the corresponding columns.

Input average. For M∈NM \in \mathbb{N}M∈N and any real vector a=(am)m=0M−1∈RMa = (a_m)_{m=0}^{M-1} \in \mathbb{R}^Ma=(am​)m=0M−1​∈RM, the input average is

⟨a⟩=1M∑m=0M−1am,\langle a \rangle = \frac{1}{M} \sum_{m=0}^{M-1} a_m,⟨a⟩=M1​m=0∑M−1​am​,

computed in the real numbers. When M=0M = 0M=0 the sum is empty and the division is by zero, which under the convention x/0=0x/0 = 0x/0=0 gives the value 000.

Amplitude average. For M,N∈NM, N \in \mathbb{N}M,N∈N, an M×NM \times NM×N complex matrix T=(Tmn)T = (T_{mn})T=(Tmn​), and an output index n∈{0,…,N−1}n \in \{0, \dots, N-1\}n∈{0,…,N−1}, the amplitude average at nnn is the input average of the complex moduli of column nnn:

AT(n)=1M∑m=0M−1∣Tmn∣,A_T(n) = \frac{1}{M} \sum_{m=0}^{M-1} |T_{mn}|,AT​(n)=M1​m=0∑M−1​∣Tmn​∣,

where ∣⋅∣|\cdot|∣⋅∣ is the usual complex absolute value. This value is always ≥0\ge 0≥0. When M=0M = 0M=0 it equals 000 for every nnn by the division-by-zero convention. The definition applies to any matrix TTT, and nothing in it specialises TTT to an observed matrix.

Normalisation by the maximum. For N∈NN \in \mathbb{N}N∈N, a real vector a=(an)n=0N−1∈RNa = (a_n)_{n=0}^{N-1} \in \mathbb{R}^Na=(an​)n=0N−1​∈RN and an index nnn, the normalised value is

a^n=anS,S=sup⁡n′∈{0,…,N−1}an′.\widehat{a}_n = \frac{a_n}{S}, \qquad S = \sup_{n' \in \{0,\dots,N-1\}} a_{n'}.an​=San​​,S=n′∈{0,…,N−1}sup​an′​.

Here SSS is the supremum in R\mathbb{R}R of the finitely many values an′a_{n'}an′​, which equals their maximum when N≥1N \ge 1N≥1. No nonnegativity or other hypothesis on aaa is imposed, and the following cases are included:

  • If S=0S = 0S=0, for example when all an′≤0a_{n'} \le 0an′​≤0 with at least one equal to 000, then every a^n=0\widehat{a}_n = 0an​=0 by the convention x/0=0x/0 = 0x/0=0.
  • If all an′a_{n'}an′​ are negative, then S<0S < 0S<0 and the quotients may exceed 111 or change sign relative to ana_nan​.
  • When N=0N = 0N=0 there are no indices, so the function has no values.
Human review
  • Endorsed by Shuze Chen · Nov 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 25, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me