Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Mueller matrices: covariance matrix, parallel decompositions, indices of polarimetric purity and covariance/noise filtering

Definition
Arxiv1605_04704_Basic

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

hermitian-matricesmueller-matricesnoise-filteringpolarimetryspectral-decomposition

Objects of Sections 2, 4 and 5 of Gil, On optimal filtering of measured Mueller matrices (arXiv:1605.04704v3).

  1. Covariance matrix (eq. 2). To a real 4×44\times44×4 matrix M=(mkl)k,l=03M=(m_{kl})_{k,l=0}^{3}M=(mkl​)k,l=03​ is associated the Hermitian 4×44\times44×4 matrix H(M)H(M)H(M) of eq. (2), whose trace is m00m_{00}m00​. The map M↦H(M)M\mapsto H(M)M↦H(M) is a linear bijection onto the Hermitian matrices, and M(H)M(H)M(H) denotes its inverse. MMM satisfies the covariance criterion when H(M)H(M)H(M) is positive semidefinite.
  2. Spectral data (eqs. 3-4). UUU is a unitary matrix with columns u0,…,u3u_0,\dots,u_3u0​,…,u3​, and λ^0≥λ^1≥λ^2≥λ^3\hat\lambda_0\ge\hat\lambda_1\ge\hat\lambda_2\ge\hat\lambda_3λ^0​≥λ^1​≥λ^2​≥λ^3​ are numbers such that H(M)=m00 Udiag⁡(λ^0,λ^1,λ^2,λ^3)U†H(M)=m_{00}\,U\operatorname{diag}(\hat\lambda_0,\hat\lambda_1,\hat\lambda_2,\hat\lambda_3)U^\daggerH(M)=m00​Udiag(λ^0​,λ^1​,λ^2​,λ^3​)U†. These are the normalized eigenvalues λ^i=λi/tr⁡H\hat\lambda_i=\lambda_i/\operatorname{tr}Hλ^i​=λi​/trH and the eigenvectors of HHH.
  3. Pure parallel decompositions (eqs. 6, 13). A decomposition of MMM into nnn pure components is H(M)=∑i<npi m00 wi⊗wi†H(M)=\sum_{i<n}p_i\,m_{00}\,w_i\otimes w_i^\daggerH(M)=∑i<n​pi​m00​wi​⊗wi†​ with pi≥0p_i\ge0pi​≥0, ∑ipi=1\sum_ip_i=1∑i​pi​=1, and wiw_iwi​ linearly independent unit vectors of C4\mathbb{C}^4C4 in Range⁡H(M)\operatorname{Range}H(M)RangeH(M). An arbitrary decomposition is such a decomposition with n=r=rank⁡H(M)n=r=\operatorname{rank}H(M)n=r=rankH(M).
  4. Components (eqs. 8, 10, 14, 15). The spectral components are MUi=M(m00 ui⊗ui†)M_{Ui}=M(m_{00}\,u_i\otimes u_i^\dagger)MUi​=M(m00​ui​⊗ui†​). The 2D and 3D depolarizers are M2=M(12m00Udiag⁡(1,1,0,0)U†)M_2=M\big(\tfrac12m_{00}U\operatorname{diag}(1,1,0,0)U^\dagger\big)M2​=M(21​m00​Udiag(1,1,0,0)U†) and M3=M(13m00Udiag⁡(1,1,1,0)U†)M_3=M\big(\tfrac13m_{00}U\operatorname{diag}(1,1,1,0)U^\dagger\big)M3​=M(31​m00​Udiag(1,1,1,0)U†). The ideal depolarizer is MΔ0=m00diag⁡(1,0,0,0)M_{\Delta0}=m_{00}\operatorname{diag}(1,0,0,0)MΔ0​=m00​diag(1,0,0,0).
  5. Indices of polarimetric purity (eq. 11). P1=λ^0−λ^1P_1=\hat\lambda_0-\hat\lambda_1P1​=λ^0​−λ^1​, P2=λ^0+λ^1−2λ^2P_2=\hat\lambda_0+\hat\lambda_1-2\hat\lambda_2P2​=λ^0​+λ^1​−2λ^2​ and P3=λ^0+λ^1+λ^2−3λ^3P_3=\hat\lambda_0+\hat\lambda_1+\hat\lambda_2-3\hat\lambda_3P3​=λ^0​+λ^1​+λ^2​−3λ^3​.
  6. Covariance filtering (Section 4, eq. 23). For a measured Mexp⁡M_{\exp}Mexp​, UUU diagonalizes Hexp⁡=H(Mexp⁡)=Udiag⁡(λexp⁡,0,…,λexp⁡,3)U†H_{\exp}=H(M_{\exp})=U\operatorname{diag}(\lambda_{\exp,0},\dots,\lambda_{\exp,3})U^\daggerHexp​=H(Mexp​)=Udiag(λexp,0​,…,λexp,3​)U† with λexp⁡,0≥⋯≥λexp⁡,3\lambda_{\exp,0}\ge\dots\ge\lambda_{\exp,3}λexp,0​≥⋯≥λexp,3​. The filtered eigenvalues are λcov,i=max⁡(λexp⁡,i,0)\lambda_{\mathrm{cov},i}=\max(\lambda_{\exp,i},0)λcov,i​=max(λexp,i​,0), and Hcov=Udiag⁡(λcov,i)U†H_{\mathrm{cov}}=U\operatorname{diag}(\lambda_{\mathrm{cov},i})U^\daggerHcov​=Udiag(λcov,i​)U†, Mcov=M(Hcov)M_{\mathrm{cov}}=M(H_{\mathrm{cov}})Mcov​=M(Hcov​). The normalized eigenvalues of McovM_{\mathrm{cov}}Mcov​ are λ^i=λcov,i/∑jλcov,j\hat\lambda_i=\lambda_{\mathrm{cov},i}/\sum_j\lambda_{\mathrm{cov},j}λ^i​=λcov,i​/∑j​λcov,j​.
  7. Noise filtering (Section 5, eqs. 24, 27). With PiP_iPi​, m00m_{00}m00​, MΔ0M_{\Delta0}MΔ0​ and M3M_3M3​ those of McovM_{\mathrm{cov}}Mcov​: Mf(3)=[Mcov−(1−P3)MΔ0]/P3M_f^{(3)}=[M_{\mathrm{cov}}-(1-P_3)M_{\Delta0}]/P_3Mf(3)​=[Mcov​−(1−P3​)MΔ0​]/P3​ (case q=3q=3q=3) and Mf(2)=[Mcov−(1−P3)MΔ0−(P3−P2)M3]/P2M_f^{(2)}=[M_{\mathrm{cov}}-(1-P_3)M_{\Delta0}-(P_3-P_2)M_3]/P_2Mf(2)​=[Mcov​−(1−P3​)MΔ0​−(P3​−P2​)M3​]/P2​ (case q=2q=2q=2).

Formalization Note M(H)M(H)M(H) is defined as the inverse function of M↦H(M)M\mapsto H(M)M↦H(M) (Lean's Function.invFun). It is the paper's M(H)M(H)M(H) on Hermitian matrices, which are the only matrices it is applied to; the paper does not print the explicit inverse (it cites Ref. [28]). The eigen-decomposition is taken as data (U,λ^)(U,\hat\lambda)(U,λ^) in each statement, so every statement holds for every admissible choice of UUU. Unit vectors are expressed as ∑j∣wj∣2=1\sum_j|w_j|^2=1∑j​∣wj​∣2=1. Division by P3P_3P3​ or P2P_2P2​ is written as multiplication by 1/P31/P_31/P3​ or 1/P21/P_21/P2​.

Definition code
import Mathlib

/-!
J. J. Gil, *On optimal filtering of measured Mueller matrices*, arXiv:1605.04704v3 (2016):
the covariance (coherency) matrix of a Mueller matrix (Section 2, eqs. (2)-(4)), arbitrary and
spectral parallel decompositions (eqs. (6), (8), (13), (14)), the characteristic decomposition and
the indices of polarimetric purity (eqs. (9)-(11), (15)), the covariance filtering of a measured
Mueller matrix (Section 4, eq. (23)) and the noise-filtered matrices of Section 5 (eqs. (24), (27)).
-/

noncomputable section

namespace Arxiv1605_04704

open Matrix

/-- Eq. (2), PDF p. 1: the covariance (coherency) matrix `H(M)` of a real `4 × 4` matrix `M`
(indices `0..3` as in the paper, `m_kl = M k l`). -/
def cohMat (M : Matrix (Fin 4) (Fin 4) ℝ) : Matrix (Fin 4) (Fin 4) ℂ :=
  (1 / 4 : ℂ) • !![
    Complex.mk (M 0 0 + M 0 1 + M 1 0 + M 1 1) 0,
    Complex.mk (M 0 2 + M 1 2) (M 0 3 + M 1 3),
    Complex.mk (M 2 0 + M 2 1) (-(M 3 0 + M 3 1)),
    Complex.mk (M 2 2 + M 3 3) (M 2 3 - M 3 2);
    Complex.mk (M 0 2 + M 1 2) (-(M 0 3 + M 1 3)),
    Complex.mk (M 0 0 - M 0 1 + M 1 0 - M 1 1) 0,
    Complex.mk (M 2 2 - M 3 3) (-(M 2 3 + M 3 2)),
    Complex.mk (M 2 0 - M 2 1) (-(M 3 0 - M 3 1));
    Complex.mk (M 2 0 + M 2 1) (M 3 0 + M 3 1),
    Complex.mk (M 2 2 - M 3 3) (M 2 3 + M 3 2),
    Complex.mk (M 0 0 + M 0 1 - M 1 0 - M 1 1) 0,
    Complex.mk (M 0 2 - M 1 2) (M 0 3 - M 1 3);
    Complex.mk (M 2 2 + M 3 3) (-(M 2 3 - M 3 2)),
    Complex.mk (M 2 0 - M 2 1) (M 3 0 - M 3 1),
    Complex.mk (M 0 2 - M 1 2) (-(M 0 3 - M 1 3)),
    Complex.mk (M 0 0 - M 0 1 - M 1 0 + M 1 1) 0]

/-- Section 2 ("Due to the biunivocal relation between H and M", PDF p. 2) and Section 4, step 5
(`M_cov = M(H_cov)`, PDF p. 4): the real `4 × 4` matrix `M(H)` whose covariance matrix is `H`.
Eq. (2) is a linear bijection from real `4 × 4` matrices onto `4 × 4` Hermitian matrices, so this
is its inverse on Hermitian matrices (the paper refers to Ref. [28] for the explicit formula). -/
def muellerOf (H : Matrix (Fin 4) (Fin 4) ℂ) : Matrix (Fin 4) (Fin 4) ℝ :=
  Function.invFun cohMat H

/-- Eqs. (3)-(4), PDF pp. 1-2: `U` is a unitary matrix and `l = (λ̂₀, λ̂₁, λ̂₂, λ̂₃)` are the
normalized eigenvalues of `H(M)`, taken in decreasing order, with
`H(M) = m₀₀ U diag(λ̂₀, λ̂₁, λ̂₂, λ̂₃) U†` (`m₀₀ = M 0 0`). The columns `u_i` of `U` are the
eigenvectors. -/
def IsSpectralData (M : Matrix (Fin 4) (Fin 4) ℝ) (U : Matrix.unitaryGroup (Fin 4) ℂ)
    (l : Fin 4 → ℝ) : Prop :=
  Antitone l ∧
    cohMat M = ((M 0 0 : ℝ) : ℂ) •
      ((U : Matrix (Fin 4) (Fin 4) ℂ) * Matrix.diagonal (fun i => (l i : ℂ)) *
        star (U : Matrix (Fin 4) (Fin 4) ℂ))

/-- Eq. (6) (and its Mueller form (13)), PDF p. 2: a parallel decomposition of `M` into `n` pure
components, `H(M) = ∑ᵢ pᵢ m₀₀ (wᵢ ⊗ wᵢ†)` with nonnegative coefficients summing to one and
linearly independent unit covariance vectors `wᵢ` in `Range H(M)`. -/
def IsPureDecomp (M : Matrix (Fin 4) (Fin 4) ℝ) (n : ℕ) (p : Fin n → ℝ)
    (w : Fin n → Fin 4 → ℂ) : Prop :=
  (∀ i, 0 ≤ p i) ∧ (∑ i, p i = 1) ∧ (∀ i, ∑ j, Complex.normSq (w i j) = 1) ∧
    (∀ i, w i ∈ LinearMap.range (Matrix.mulVecLin (cohMat M))) ∧ LinearIndependent ℂ w ∧
    cohMat M = ∑ i, ((p i * M 0 0 : ℝ) : ℂ) • Matrix.vecMulVec (w i) (star (w i))

/-- Eqs. (6)-(7) and (13), PDF p. 2: an arbitrary decomposition of `M` is a pure parallel
decomposition with exactly `r = rank H(M)` components. -/
abbrev IsArbitraryDecomp (M : Matrix (Fin 4) (Fin 4) ℝ) (p : Fin (cohMat M).rank → ℝ)
    (w : Fin (cohMat M).rank → Fin 4 → ℂ) : Prop :=
  IsPureDecomp M (cohMat M).rank p w

/-- Eqs. (8), (14), PDF p. 2: the `i`-th spectral component `M_Ui = m₀₀ M̂_Ui`, the Mueller matrix
with covariance matrix `H_Ui = m₀₀ (uᵢ ⊗ uᵢ†)`, `uᵢ` the `i`-th column of `U` (`c = m₀₀`). -/
def specComp (U : Matrix.unitaryGroup (Fin 4) ℂ) (c : ℝ) (i : Fin 4) :
    Matrix (Fin 4) (Fin 4) ℝ :=
  muellerOf (((c : ℝ) : ℂ) • Matrix.vecMulVec (fun a => (U : Matrix (Fin 4) (Fin 4) ℂ) a i)
    (star (fun a => (U : Matrix (Fin 4) (Fin 4) ℂ) a i)))

/-- Eqs. (10), (15), PDF p. 2-3: the 2D depolarizer `M_2`, with covariance matrix
`H_2 = (1/2) m₀₀ U diag(1,1,0,0) U†` (`c = m₀₀`). -/
def depol2 (U : Matrix.unitaryGroup (Fin 4) ℂ) (c : ℝ) : Matrix (Fin 4) (Fin 4) ℝ :=
  muellerOf (((c / 2 : ℝ) : ℂ) • ((U : Matrix (Fin 4) (Fin 4) ℂ) *
    Matrix.diagonal ![(1 : ℂ), 1, 0, 0] * star (U : Matrix (Fin 4) (Fin 4) ℂ)))

/-- Eqs. (10), (15), PDF p. 2-3: the 3D depolarizer `M_3`, with covariance matrix
`H_3 = (1/3) m₀₀ U diag(1,1,1,0) U†` (`c = m₀₀`). -/
def depol3 (U : Matrix.unitaryGroup (Fin 4) ℂ) (c : ℝ) : Matrix (Fin 4) (Fin 4) ℝ :=
  muellerOf (((c / 3 : ℝ) : ℂ) • ((U : Matrix (Fin 4) (Fin 4) ℂ) *
    Matrix.diagonal ![(1 : ℂ), 1, 1, 0] * star (U : Matrix (Fin 4) (Fin 4) ℂ)))

/-- Eq. (15) and the list after it, PDF p. 3: the ideal depolarizer `M_Δ0 = m₀₀ diag(1,0,0,0)`
(`c = m₀₀`); its covariance matrix is `H_Δ0 = (1/4) m₀₀ I₄` (eq. (10)). -/
def idealDepol (c : ℝ) : Matrix (Fin 4) (Fin 4) ℝ :=
  c • Matrix.diagonal ![(1 : ℝ), 0, 0, 0]

/-- Eq. (11), PDF p. 2: first index of polarimetric purity `P₁ = λ̂₀ - λ̂₁`. -/
def ipp1 (l : Fin 4 → ℝ) : ℝ := l 0 - l 1

/-- Eq. (11), PDF p. 2: second index of polarimetric purity `P₂ = λ̂₀ + λ̂₁ - 2λ̂₂`. -/
def ipp2 (l : Fin 4 → ℝ) : ℝ := l 0 + l 1 - 2 * l 2

/-- Eq. (11), PDF p. 2: third index of polarimetric purity `P₃ = λ̂₀ + λ̂₁ + λ̂₂ - 3λ̂₃`. -/
def ipp3 (l : Fin 4 → ℝ) : ℝ := l 0 + l 1 + l 2 - 3 * l 3

/-- Section 4, steps 1-2, PDF p. 4: `U` is a unitary matrix whose columns are orthonormal
eigenvectors of the Hermitian matrix `H_exp = H(M_exp)`, with eigenvalues `λ_exp,i = lam i` in
decreasing order: `H_exp = U diag(λ_exp,0, …, λ_exp,3) U†`. -/
def IsCovFilterData (Mexp : Matrix (Fin 4) (Fin 4) ℝ) (U : Matrix.unitaryGroup (Fin 4) ℂ)
    (lam : Fin 4 → ℝ) : Prop :=
  Antitone lam ∧
    cohMat Mexp = (U : Matrix (Fin 4) (Fin 4) ℂ) * Matrix.diagonal (fun i => (lam i : ℂ)) *
      star (U : Matrix (Fin 4) (Fin 4) ℂ)

/-- Section 4, step 3, PDF p. 4: the covariance-filtered eigenvalues `λ_cov,i`, obtained by
replacing every negative `λ_exp,i` by zero. -/
def covEig (lam : Fin 4 → ℝ) (i : Fin 4) : ℝ := max (lam i) 0

/-- Section 4, step 4, eq. (23), PDF p. 4: `H_cov = U diag(λ_cov,0, …, λ_cov,3) U†`. -/
def covH (U : Matrix.unitaryGroup (Fin 4) ℂ) (lam : Fin 4 → ℝ) : Matrix (Fin 4) (Fin 4) ℂ :=
  (U : Matrix (Fin 4) (Fin 4) ℂ) * Matrix.diagonal (fun i => (covEig lam i : ℂ)) *
    star (U : Matrix (Fin 4) (Fin 4) ℂ)

/-- Section 4, step 5, PDF p. 4: the covariance-filtered Mueller matrix `M_cov = M(H_cov)`. -/
def covMueller (U : Matrix.unitaryGroup (Fin 4) ℂ) (lam : Fin 4 → ℝ) :
    Matrix (Fin 4) (Fin 4) ℝ :=
  muellerOf (covH U lam)

/-- Eq. (4) applied to `H_cov`, PDF pp. 2, 4: the normalized eigenvalues
`λ̂_i = λ_cov,i / tr H_cov` of `M_cov`, in decreasing order. -/
def covLhat (lam : Fin 4 → ℝ) (i : Fin 4) : ℝ := covEig lam i / ∑ j, covEig lam j

/-- Section 5, case b.1, eq. (24), PDF p. 4: the noise-filtered matrix
`M_f = [M_cov - (1 - P₃) M_Δ0] / P₃`, with `P_i` the indices of polarimetric purity of `M_cov`
and `M_Δ0` built with the `m₀₀` of `M_cov`. -/
def filt3 (U : Matrix.unitaryGroup (Fin 4) ℂ) (lam : Fin 4 → ℝ) : Matrix (Fin 4) (Fin 4) ℝ :=
  (1 / ipp3 (covLhat lam)) •
    (covMueller U lam - (1 - ipp3 (covLhat lam)) • idealDepol (covMueller U lam 0 0))

/-- Section 5, case c.1, eq. (27), PDF p. 5: the noise-filtered matrix
`M_f = [M_cov - (1 - P₃) M_Δ0 - (P₃ - P₂) M_3] / P₂`, with `P_i`, `M_Δ0` and `M_3` those of
`M_cov`. -/
def filt2 (U : Matrix.unitaryGroup (Fin 4) ℂ) (lam : Fin 4 → ℝ) : Matrix (Fin 4) (Fin 4) ℝ :=
  (1 / ipp2 (covLhat lam)) •
    (covMueller U lam - (1 - ipp3 (covLhat lam)) • idealDepol (covMueller U lam 0 0) -
      (ipp3 (covLhat lam) - ipp2 (covLhat lam)) • depol3 U (covMueller U lam 0 0))

end Arxiv1605_04704
Source
J. J. Gil, On optimal filtering of measured Mueller matrices, arXiv:1605.04704v3 (2016), Section 2 (eqs. (2)-(4), (6)-(15)), Section 4 (eq. (23)), Section 5 (eqs. (24), (27)), PDF pp. 1-5
Read-back

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

Covariance matrix H(M)H(M)H(M). For any real 4×44\times 44×4 matrix M=(mkl)k,l=03M=(m_{kl})_{k,l=0}^{3}M=(mkl​)k,l=03​, with no further conditions such as MMM being a physical Mueller matrix, H(M)H(M)H(M) is the complex 4×44\times44×4 matrix

H(M)=14(m00+m01+m10+m11(m02+m12)+i(m03+m13)(m20+m21)−i(m30+m31)(m22+m33)+i(m23−m32)(m02+m12)−i(m03+m13)m00−m01+m10−m11(m22−m33)−i(m23+m32)(m20−m21)−i(m30−m31)(m20+m21)+i(m30+m31)(m22−m33)+i(m23+m32)m00+m01−m10−m11(m02−m12)+i(m03−m13)(m22+m33)−i(m23−m32)(m20−m21)+i(m30−m31)(m02−m12)−i(m03−m13)m00−m01−m10+m11).H(M)=\frac14\begin{pmatrix} m_{00}+m_{01}+m_{10}+m_{11} & (m_{02}+m_{12})+i(m_{03}+m_{13}) & (m_{20}+m_{21})-i(m_{30}+m_{31}) & (m_{22}+m_{33})+i(m_{23}-m_{32})\\ (m_{02}+m_{12})-i(m_{03}+m_{13}) & m_{00}-m_{01}+m_{10}-m_{11} & (m_{22}-m_{33})-i(m_{23}+m_{32}) & (m_{20}-m_{21})-i(m_{30}-m_{31})\\ (m_{20}+m_{21})+i(m_{30}+m_{31}) & (m_{22}-m_{33})+i(m_{23}+m_{32}) & m_{00}+m_{01}-m_{10}-m_{11} & (m_{02}-m_{12})+i(m_{03}-m_{13})\\ (m_{22}+m_{33})-i(m_{23}-m_{32}) & (m_{20}-m_{21})+i(m_{30}-m_{31}) & (m_{02}-m_{12})-i(m_{03}-m_{13}) & m_{00}-m_{01}-m_{10}+m_{11} \end{pmatrix}.H(M)=41​​m00​+m01​+m10​+m11​(m02​+m12​)−i(m03​+m13​)(m20​+m21​)+i(m30​+m31​)(m22​+m33​)−i(m23​−m32​)​(m02​+m12​)+i(m03​+m13​)m00​−m01​+m10​−m11​(m22​−m33​)+i(m23​+m32​)(m20​−m21​)+i(m30​−m31​)​(m20​+m21​)−i(m30​+m31​)(m22​−m33​)−i(m23​+m32​)m00​+m01​−m10​−m11​(m02​−m12​)−i(m03​−m13​)​(m22​+m33​)+i(m23​−m32​)(m20​−m21​)−i(m30​−m31​)(m02​−m12​)+i(m03​−m13​)m00​−m01​−m10​+m11​​​.

By inspection, every entry below the diagonal is the complex conjugate of its mirror entry, so H(M)H(M)H(M) is always Hermitian. Its diagonal sums to 4m004m_{00}4m00​, so tr⁡H(M)=m00\operatorname{tr}H(M)=m_{00}trH(M)=m00​.

Inverse map M(H)\mathcal M(H)M(H). For an arbitrary complex 4×44\times44×4 matrix HHH, M(H)\mathcal M(H)M(H) is a real 4×44\times44×4 matrix chosen as follows:

  • If some real MMM satisfies H(M)=HH(M)=HH(M)=H, then M(H)\mathcal M(H)M(H) is one such MMM.
  • If several such MMM exist, the choice among them is unspecified. The definition itself does not assert that the preimage is unique.
  • If no such MMM exists (for instance, if HHH is not Hermitian), then M(H)\mathcal M(H)M(H) is some fixed but unspecified real matrix with no stated relation to HHH.

No explicit formula is given.

Spectral data of MMM. For a real 4×44\times44×4 matrix MMM, a 4×44\times44×4 complex unitary matrix UUU (UU†=IUU^\dagger=IUU†=I), and a real 444-tuple λ=(λ0,λ1,λ2,λ3)\lambda=(\lambda_0,\lambda_1,\lambda_2,\lambda_3)λ=(λ0​,λ1​,λ2​,λ3​), the triple (M,U,λ)(M,U,\lambda)(M,U,λ) is called spectral data when both of the following hold:

λ0≥λ1≥λ2≥λ3,H(M)=m00 U diag⁡(λ0,λ1,λ2,λ3) U†.\lambda_0\ge\lambda_1\ge\lambda_2\ge\lambda_3, \qquad H(M)=m_{00}\,U\,\operatorname{diag}(\lambda_0,\lambda_1,\lambda_2,\lambda_3)\,U^\dagger.λ0​≥λ1​≥λ2​≥λ3​,H(M)=m00​Udiag(λ0​,λ1​,λ2​,λ3​)U†.

The definition does not directly require the λi\lambda_iλi​ to be nonnegative or to sum to 111. Because tr⁡H(M)=m00\operatorname{tr}H(M)=m_{00}trH(M)=m00​, the sum ∑iλi=1\sum_i\lambda_i=1∑i​λi​=1 follows whenever m00≠0m_{00}\neq0m00​=0. In the degenerate case m00=0m_{00}=0m00​=0, the condition reduces to H(M)=0H(M)=0H(M)=0, and then any unitary UUU and any non-increasing λ\lambdaλ qualify.

Pure parallel decomposition with nnn components. For a real 4×44\times44×4 matrix MMM, a natural number nnn, real weights p1,…,pnp_1,\dots,p_np1​,…,pn​, and vectors w1,…,wn∈C4w_1,\dots,w_n\in\mathbb C^4w1​,…,wn​∈C4, the data (n,p,w)(n,p,w)(n,p,w) is called a pure decomposition of MMM when all of the following hold:

  1. pi≥0p_i\ge 0pi​≥0 for every iii.
  2. ∑ipi=1\sum_i p_i=1∑i​pi​=1.
  3. Each wiw_iwi​ has unit Euclidean norm: ∑j=03∣wi,j∣2=1\sum_{j=0}^3|w_{i,j}|^2=1∑j=03​∣wi,j​∣2=1.
  4. Each wiw_iwi​ lies in the column space (range) of H(M)H(M)H(M).
  5. The family w1,…,wnw_1,\dots,w_nw1​,…,wn​ is linearly independent over C\mathbb CC. In particular the wiw_iwi​ are pairwise distinct.
  6. The decomposition identity holds:
H(M)=∑i=1npi m00  wi wi†,H(M)=\sum_{i=1}^{n} p_i\,m_{00}\;w_i\,w_i^\dagger,H(M)=i=1∑n​pi​m00​wi​wi†​,

where wiwi†w_iw_i^\daggerwi​wi†​ is the outer-product matrix with (j,k)(j,k)(j,k) entry wi,jwi,k‾w_{i,j}\overline{w_{i,k}}wi,j​wi,k​​.

Some consequences of these conditions:

  • n=0n=0n=0 is impossible, because the empty sum of weights is 0≠10\neq10=1.
  • Linear independence inside the range forces n≤rank⁡H(M)n\le\operatorname{rank}H(M)n≤rankH(M).
  • Individual weights pip_ipi​ may be zero.
  • The wiw_iwi​ are not required to be orthogonal.
  • nnn is not otherwise tied to the rank.

Arbitrary decomposition. This is a pure decomposition of MMM in the sense just described, with the number of components nnn fixed to be exactly r=rank⁡H(M)r=\operatorname{rank}H(M)r=rankH(M), the complex rank. So p=(p1,…,pr)p=(p_1,\dots,p_r)p=(p1​,…,pr​) and w=(w1,…,wr)w=(w_1,\dots,w_r)w=(w1​,…,wr​) must satisfy all six conditions above with n=rn=rn=r. If H(M)=0H(M)=0H(M)=0, then r=0r=0r=0 and no arbitrary decomposition exists.

Spectral component MU,iM_{U,i}MU,i​. For a unitary UUU, a real number ccc, and an index i∈{0,1,2,3}i\in\{0,1,2,3\}i∈{0,1,2,3}, let uiu_iui​ be the iii-th column of UUU. Then

MU,i(c)=M(c uiui†),M_{U,i}(c)=\mathcal M\big(c\,u_i u_i^\dagger\big),MU,i​(c)=M(cui​ui†​),

the real matrix returned by the inverse map M\mathcal MM described above, applied to ccc times the outer product of uiu_iui​ with itself. The number ccc is a free parameter with no link to any particular MMM in this definition.

Two-dimensional depolarizer M2M_2M2​. For a unitary UUU and a real ccc,

M2(U,c)=M ⁣(c2 U diag⁡(1,1,0,0) U†).M_2(U,c)=\mathcal M\!\left(\tfrac{c}{2}\,U\,\operatorname{diag}(1,1,0,0)\,U^\dagger\right).M2​(U,c)=M(2c​Udiag(1,1,0,0)U†).

Three-dimensional depolarizer M3M_3M3​. For a unitary UUU and a real ccc,

M3(U,c)=M ⁣(c3 U diag⁡(1,1,1,0) U†).M_3(U,c)=\mathcal M\!\left(\tfrac{c}{3}\,U\,\operatorname{diag}(1,1,1,0)\,U^\dagger\right).M3​(U,c)=M(3c​Udiag(1,1,1,0)U†).

Ideal depolarizer MΔ0M_{\Delta0}MΔ0​. For a real ccc, MΔ0(c)M_{\Delta0}(c)MΔ0​(c) is the real 4×44\times44×4 matrix

MΔ0(c)=c diag⁡(1,0,0,0).M_{\Delta0}(c)=c\,\operatorname{diag}(1,0,0,0).MΔ0​(c)=cdiag(1,0,0,0).

Its only nonzero entry is ccc in position (0,0)(0,0)(0,0). It is defined directly, not via the inverse map M\mathcal MM.

First index of polarimetric purity. For any real 444-tuple λ\lambdaλ, with no ordering, sign, or normalization assumption,

P1(λ)=λ0−λ1.P_1(\lambda)=\lambda_0-\lambda_1.P1​(λ)=λ0​−λ1​.

Second index of polarimetric purity. For any real 444-tuple λ\lambdaλ, with no assumptions,

P2(λ)=λ0+λ1−2λ2.P_2(\lambda)=\lambda_0+\lambda_1-2\lambda_2.P2​(λ)=λ0​+λ1​−2λ2​.

Third index of polarimetric purity. For any real 444-tuple λ\lambdaλ, with no assumptions,

P3(λ)=λ0+λ1+λ2−3λ3.P_3(\lambda)=\lambda_0+\lambda_1+\lambda_2-3\lambda_3.P3​(λ)=λ0​+λ1​+λ2​−3λ3​.

Covariance-filter data. For a real 4×44\times44×4 matrix Mexp⁡M_{\exp}Mexp​, a unitary UUU, and a real 444-tuple λ=(λ0,…,λ3)\lambda=(\lambda_0,\dots,\lambda_3)λ=(λ0​,…,λ3​), the triple (Mexp⁡,U,λ)(M_{\exp},U,\lambda)(Mexp​,U,λ) is called covariance-filter data when both of the following hold:

λ0≥λ1≥λ2≥λ3,H(Mexp⁡)=U diag⁡(λ0,λ1,λ2,λ3) U†.\lambda_0\ge\lambda_1\ge\lambda_2\ge\lambda_3, \qquad H(M_{\exp})=U\,\operatorname{diag}(\lambda_0,\lambda_1,\lambda_2,\lambda_3)\,U^\dagger.λ0​≥λ1​≥λ2​≥λ3​,H(Mexp​)=Udiag(λ0​,λ1​,λ2​,λ3​)U†.

There is no m00m_{00}m00​ factor here, unlike in the spectral data. The λi\lambda_iλi​ may be negative.

Filtered eigenvalues. For a real 444-tuple λ\lambdaλ and an index iii,

λicov=max⁡(λi,0),\lambda^{\mathrm{cov}}_i=\max(\lambda_i,0),λicov​=max(λi​,0),

so negative entries are replaced by 000 and nonnegative entries are kept.

Filtered covariance matrix HcovH_{\mathrm{cov}}Hcov​. For a unitary UUU and a real 444-tuple λ\lambdaλ,

Hcov(U,λ)=U diag⁡(max⁡(λ0,0),…,max⁡(λ3,0)) U†.H_{\mathrm{cov}}(U,\lambda)=U\,\operatorname{diag}\big(\max(\lambda_0,0),\dots,\max(\lambda_3,0)\big)\,U^\dagger.Hcov​(U,λ)=Udiag(max(λ0​,0),…,max(λ3​,0))U†.

This definition takes UUU and λ\lambdaλ as arbitrary inputs. It does not refer to any measured matrix and does not require λ\lambdaλ to be ordered.

Filtered Mueller matrix McovM_{\mathrm{cov}}Mcov​. For a unitary UUU and a real 444-tuple λ\lambdaλ,

Mcov(U,λ)=M(Hcov(U,λ)),M_{\mathrm{cov}}(U,\lambda)=\mathcal M\big(H_{\mathrm{cov}}(U,\lambda)\big),Mcov​(U,λ)=M(Hcov​(U,λ)),

the real matrix produced by the inverse map M\mathcal MM applied to the filtered covariance matrix.

Normalized filtered eigenvalues λ^\hat\lambdaλ^. For a real 444-tuple λ\lambdaλ and an index iii,

λ^i=max⁡(λi,0)∑j=03max⁡(λj,0).\hat\lambda_i=\frac{\max(\lambda_i,0)}{\sum_{j=0}^{3}\max(\lambda_j,0)}.λ^i​=∑j=03​max(λj​,0)max(λi​,0)​.

The denominator equals the trace of Hcov(U,λ)H_{\mathrm{cov}}(U,\lambda)Hcov​(U,λ) for any unitary UUU. Edge cases:

  • If every λj≤0\lambda_j\le0λj​≤0, the denominator is 000, and division by zero is taken to give 000. In that case every λ^i=0\hat\lambda_i=0λ^i​=0.
  • The λ^i\hat\lambda_iλ^i​ are non-increasing in iii only if λ\lambdaλ is. This definition itself imposes no ordering.

Noise-filtered matrix Mf(3)M_f^{(3)}Mf(3)​. For a unitary UUU and a real 444-tuple λ\lambdaλ, write:

  • Mcov=Mcov(U,λ)M_{\mathrm{cov}}=M_{\mathrm{cov}}(U,\lambda)Mcov​=Mcov​(U,λ);
  • ccc for the (0,0)(0,0)(0,0) entry of McovM_{\mathrm{cov}}Mcov​;
  • P3=P3(λ^)P_3=P_3(\hat\lambda)P3​=P3​(λ^), with λ^\hat\lambdaλ^ the normalized filtered eigenvalues defined above.

Then

Mf(3)(U,λ)=1P3(Mcov−(1−P3) MΔ0(c)),M_f^{(3)}(U,\lambda)=\frac{1}{P_3}\Big(M_{\mathrm{cov}}-(1-P_3)\,M_{\Delta0}(c)\Big),Mf(3)​(U,λ)=P3​1​(Mcov​−(1−P3​)MΔ0​(c)),

where MΔ0(c)=c diag⁡(1,0,0,0)M_{\Delta0}(c)=c\,\operatorname{diag}(1,0,0,0)MΔ0​(c)=cdiag(1,0,0,0). If P3=0P_3=0P3​=0, then 1/P31/P_31/P3​ is taken to be 000 and Mf(3)M_f^{(3)}Mf(3)​ is the zero matrix. No hypothesis on UUU or λ\lambdaλ beyond their types is imposed.

Noise-filtered matrix Mf(2)M_f^{(2)}Mf(2)​. For a unitary UUU and a real 444-tuple λ\lambdaλ, write:

  • Mcov=Mcov(U,λ)M_{\mathrm{cov}}=M_{\mathrm{cov}}(U,\lambda)Mcov​=Mcov​(U,λ);
  • ccc for the (0,0)(0,0)(0,0) entry of McovM_{\mathrm{cov}}Mcov​;
  • P2=P2(λ^)P_2=P_2(\hat\lambda)P2​=P2​(λ^) and P3=P3(λ^)P_3=P_3(\hat\lambda)P3​=P3​(λ^), with λ^\hat\lambdaλ^ the normalized filtered eigenvalues.

Then

Mf(2)(U,λ)=1P2(Mcov−(1−P3) MΔ0(c)−(P3−P2) M3(U,c)).M_f^{(2)}(U,\lambda)=\frac{1}{P_2}\Big(M_{\mathrm{cov}}-(1-P_3)\,M_{\Delta0}(c)-(P_3-P_2)\,M_3(U,c)\Big).Mf(2)​(U,λ)=P2​1​(Mcov​−(1−P3​)MΔ0​(c)−(P3​−P2​)M3​(U,c)).

Here MΔ0(c)=c diag⁡(1,0,0,0)M_{\Delta0}(c)=c\,\operatorname{diag}(1,0,0,0)MΔ0​(c)=cdiag(1,0,0,0), and M3(U,c)=M(c3 Udiag⁡(1,1,1,0)U†)M_3(U,c)=\mathcal M\big(\tfrac c3\,U\operatorname{diag}(1,1,1,0)U^\dagger\big)M3​(U,c)=M(3c​Udiag(1,1,1,0)U†) uses the same UUU as McovM_{\mathrm{cov}}Mcov​. If P2=0P_2=0P2​=0, then 1/P21/P_21/P2​ is taken to be 000 and Mf(2)M_f^{(2)}Mf(2)​ is the zero matrix. No hypothesis on UUU or λ\lambdaλ beyond their types is imposed.

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