Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 5, case b.1, eqs. (25)-(26): spectral decomposition of the filtered matrix for q = 3, r = 4

Proved
Arxiv1605_04704.case_b1_spectral_decomposition

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

hermitian-matricesmueller-matricesnoise-filteringpolarimetryspectral-decomposition

Let Mexp⁡M_{\exp}Mexp​ be a real 4×44\times44×4 matrix and H(Mexp⁡)=Udiag⁡(λexp⁡,0,…,λexp⁡,3)U†H(M_{\exp})=U\operatorname{diag}(\lambda_{\exp,0},\dots,\lambda_{\exp,3})U^\daggerH(Mexp​)=Udiag(λexp,0​,…,λexp,3​)U† with UUU unitary and λexp⁡,0≥⋯≥λexp⁡,3\lambda_{\exp,0}\ge\dots\ge\lambda_{\exp,3}λexp,0​≥⋯≥λexp,3​, λexp⁡,0>0\lambda_{\exp,0}>0λexp,0​>0. Let HcovH_{\mathrm{cov}}Hcov​, McovM_{\mathrm{cov}}Mcov​, its normalized eigenvalues λ^i\hat\lambda_iλ^i​, its indices of purity PiP_iPi​, its m00m_{00}m00​ and its components MUi,M2,M3,MΔ0M_{Ui},M_2,M_3,M_{\Delta0}MUi​,M2​,M3​,MΔ0​ be those of the covariance filtering (eq. 23), and let r=rank⁡Hcovr=\operatorname{rank}H_{\mathrm{cov}}r=rankHcov​. Assume r=4r=4r=4 and P3>0P_3>0P3​>0, and let Mf=[Mcov−(1−P3)MΔ0]/P3M_f=[M_{\mathrm{cov}}-(1-P_3)M_{\Delta0}]/P_3Mf​=[Mcov​−(1−P3​)MΔ0​]/P3​ (eq. 24). Put

pi=λ^i−λ^31−4λ^3(i=0,1,2).p_i=\frac{\hat\lambda_i-\hat\lambda_3}{1-4\hat\lambda_3}\quad(i=0,1,2).pi​=1−4λ^3​λ^i​−λ^3​​(i=0,1,2).

Then

Mf=p0MU0+p1MU1+p2MU2,M_f=p_0M_{U0}+p_1M_{U1}+p_2M_{U2},Mf​=p0​MU0​+p1​MU1​+p2​MU2​,

where MUiM_{Ui}MUi​ are the spectral components of McovM_{\mathrm{cov}}Mcov​, and

p0=13(1+P22P3+3P12P3),p1=13(1+P22P3−3P12P3),p2=13(1−P2P3).p_0=\tfrac13\Big(1+\tfrac{P_2}{2P_3}+\tfrac{3P_1}{2P_3}\Big),\quad p_1=\tfrac13\Big(1+\tfrac{P_2}{2P_3}-\tfrac{3P_1}{2P_3}\Big),\quad p_2=\tfrac13\Big(1-\tfrac{P_2}{P_3}\Big).p0​=31​(1+2P3​P2​​+2P3​3P1​​),p1​=31​(1+2P3​P2​​−2P3​3P1​​),p2​=31​(1−P3​P2​​).

The sum is convex (pi≥0p_i\ge0pi​≥0, p0+p1+p2=1p_0+p_1+p_2=1p0​+p1​+p2​=1), and it is the spectral decomposition of MfM_fMf​. That is, MfM_fMf​ has the same m00m_{00}m00​ as McovM_{\mathrm{cov}}Mcov​, and H(Mf)=m00Udiag⁡(p0,p1,p2,0)U†H(M_f)=m_{00}U\operatorname{diag}(p_0,p_1,p_2,0)U^\daggerH(Mf​)=m00​Udiag(p0​,p1​,p2​,0)U† with p0≥p1≥p2≥0p_0\ge p_1\ge p_2\ge0p0​≥p1​≥p2​≥0.

This is eqs. (25)-(26), the filtered estimate of a sample hypothesized to have three components.

Formalization Note The hypothesis P3>0P_3>0P3​>0 is not written in the paper. It makes the division in (24) and (26) meaningful. "Spectral decomposition of MfM_fMf​" is stated as: (U,(p0,p1,p2,0))(U,(p_0,p_1,p_2,0))(U,(p0​,p1​,p2​,0)) is ordered spectral data for MfM_fMf​ in the sense of eqs. (3)-(4).

Formalization Note The paper asks for λcov,0=λ0\lambda_{\mathrm{cov},0}=\lambda_0λcov,0​=λ0​ (the largest eigenvalue is not replaced), otherwise the measurement is rejected. The statement assumes λexp⁡,0>0\lambda_{\exp,0}>0λexp,0​>0, which also excludes Hcov=0H_{\mathrm{cov}}=0Hcov​=0, where the normalization λ^i=λcov,i/tr⁡Hcov\hat\lambda_i=\lambda_{\mathrm{cov},i}/\operatorname{tr}H_{\mathrm{cov}}λ^i​=λcov,i​/trHcov​ is undefined.

Preamble
import Mathlib
import Definitions.Def_Arxiv1605_04704_Basic

open Matrix
open scoped ComplexOrder
Formal statement
namespace Arxiv1605_04704

theorem case_b1_spectral_decomposition (Mexp : Matrix (Fin 4) (Fin 4) ℝ) (U : Matrix.unitaryGroup (Fin 4) ℂ) (lam : Fin 4 → ℝ)
    (hdat : IsCovFilterData Mexp U lam) (hlam0 : 0 < lam 0)
    (hr : (covH U lam).rank = 4) (hP3 : 0 < ipp3 (covLhat lam)) :
    let l := covLhat lam
    let c := covMueller U lam 0 0
    let p : Fin 4 → ℝ := ![(l 0 - l 3) / (1 - 4 * l 3), (l 1 - l 3) / (1 - 4 * l 3),
      (l 2 - l 3) / (1 - 4 * l 3), 0]
    filt3 U lam = p 0 • specComp U c 0 + p 1 • specComp U c 1 + p 2 • specComp U c 2 ∧
    p 0 = (1 / 3) * (1 + ipp2 l / (2 * ipp3 l) + 3 * ipp1 l / (2 * ipp3 l)) ∧
    p 1 = (1 / 3) * (1 + ipp2 l / (2 * ipp3 l) - 3 * ipp1 l / (2 * ipp3 l)) ∧
    p 2 = (1 / 3) * (1 - ipp2 l / ipp3 l) ∧
    (∀ i, 0 ≤ p i) ∧ p 0 + p 1 + p 2 = 1 ∧
    filt3 U lam 0 0 = c ∧ IsSpectralData (filt3 U lam) U p := by sorry

end Arxiv1605_04704
Source
J. J. Gil, On optimal filtering of measured Mueller matrices, arXiv:1605.04704v3 (2016), claim c019; Section 5, case b.1 (q = 3, r = 4), eqs. (24)-(26), right column of PDF p. 4
Read-back

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

Throughout, matrices are indexed by {0,1,2,3}\{0,1,2,3\}{0,1,2,3}, A†A^\daggerA† is the conjugate transpose, and for a real 4×44\times 44×4 matrix M=(mkl)M=(m_{kl})M=(mkl​) the covariance 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​​​.

For a complex 4×44\times44×4 matrix KKK, M(K)\mathcal M(K)M(K) denotes some real 4×44\times44×4 matrix MMM with H(M)=KH(M)=KH(M)=K if one exists, chosen arbitrarily if there are several. If none exists, it is a fixed but unspecified real matrix, a junk value.

Data. Let:

  • MexpM_{\mathrm{exp}}Mexp​ be any real 4×44\times 44×4 matrix;
  • UUU be any 4×44\times44×4 complex unitary matrix with columns u0,…,u3u_0,\dots,u_3u0​,…,u3​;
  • λ=(λ0,λ1,λ2,λ3)\lambda=(\lambda_0,\lambda_1,\lambda_2,\lambda_3)λ=(λ0​,λ1​,λ2​,λ3​) be any real 4-tuple.

Hypotheses.

  1. λ0≥λ1≥λ2≥λ3\lambda_0\ge\lambda_1\ge\lambda_2\ge\lambda_3λ0​≥λ1​≥λ2​≥λ3​.
  2. H(Mexp)=U diag(λ0,λ1,λ2,λ3) U†H(M_{\mathrm{exp}})=U\,\mathrm{diag}(\lambda_0,\lambda_1,\lambda_2,\lambda_3)\,U^\daggerH(Mexp​)=Udiag(λ0​,λ1​,λ2​,λ3​)U†.
  3. λ0>0\lambda_0>0λ0​>0.
  4. The complex rank of HcovH_{\mathrm{cov}}Hcov​ is 444. Here λicov=max⁡(λi,0)\lambda^{\mathrm{cov}}_i=\max(\lambda_i,0)λicov​=max(λi​,0) and
Hcov=U diag(λ0cov,…,λ3cov) U†.H_{\mathrm{cov}}=U\,\mathrm{diag}(\lambda^{\mathrm{cov}}_0,\dots,\lambda^{\mathrm{cov}}_3)\,U^\dagger.Hcov​=Udiag(λ0cov​,…,λ3cov​)U†.

Since UUU is unitary, this amounts to λicov≠0\lambda^{\mathrm{cov}}_i\neq 0λicov​=0 for all iii, i.e. λ3>0\lambda_3>0λ3​>0; this makes hypothesis 3 redundant. 5. P3>0P_3>0P3​>0, where the normalized eigenvalues are

λ^i=λicov∑jλjcov,\hat\lambda_i=\frac{\lambda^{\mathrm{cov}}_i}{\sum_j\lambda^{\mathrm{cov}}_j},λ^i​=∑j​λjcov​λicov​​,

and the indices of purity are

P1=λ^0−λ^1,P2=λ^0+λ^1−2λ^2,P3=λ^0+λ^1+λ^2−3λ^3.P_1=\hat\lambda_0-\hat\lambda_1,\qquad P_2=\hat\lambda_0+\hat\lambda_1-2\hat\lambda_2,\qquad P_3=\hat\lambda_0+\hat\lambda_1+\hat\lambda_2-3\hat\lambda_3.P1​=λ^0​−λ^1​,P2​=λ^0​+λ^1​−2λ^2​,P3​=λ^0​+λ^1​+λ^2​−3λ^3​.

Under these hypotheses the λ^i\hat\lambda_iλ^i​ sum to 111, so P3=1−4λ^3P_3=1-4\hat\lambda_3P3​=1−4λ^3​.

The matrix MexpM_{\mathrm{exp}}Mexp​ enters only through hypothesis 2.

Derived objects. Put:

  • Mcov=M(Hcov)M_{\mathrm{cov}}=\mathcal M(H_{\mathrm{cov}})Mcov​=M(Hcov​), and let ccc be its (0,0)(0,0)(0,0) entry;
  • MUi=M(c uiui†)M_{U_i}=\mathcal M\big(c\,u_iu_i^\dagger\big)MUi​​=M(cui​ui†​) for each iii;
  • the matrix
Mf=1P3(Mcov−(1−P3) c diag(1,0,0,0));M_f=\frac1{P_3}\Big(M_{\mathrm{cov}}-(1-P_3)\,c\,\mathrm{diag}(1,0,0,0)\Big);Mf​=P3​1​(Mcov​−(1−P3​)cdiag(1,0,0,0));
  • the coefficients
p=(λ^0−λ^31−4λ^3, λ^1−λ^31−4λ^3, λ^2−λ^31−4λ^3, 0).p=\Big(\tfrac{\hat\lambda_0-\hat\lambda_3}{1-4\hat\lambda_3},\ \tfrac{\hat\lambda_1-\hat\lambda_3}{1-4\hat\lambda_3},\ \tfrac{\hat\lambda_2-\hat\lambda_3}{1-4\hat\lambda_3},\ 0\Big).p=(1−4λ^3​λ^0​−λ^3​​, 1−4λ^3​λ^1​−λ^3​​, 1−4λ^3​λ^2​−λ^3​​, 0).

Conclusions. The theorem asserts all of the following simultaneously:

  1. The decomposition
Mf=p0MU0+p1MU1+p2MU2.M_f=p_0M_{U_0}+p_1M_{U_1}+p_2M_{U_2}.Mf​=p0​MU0​​+p1​MU1​​+p2​MU2​​.
  1. The three coefficient identities
p0=13(1+P22P3+3P12P3),p1=13(1+P22P3−3P12P3),p2=13(1−P2P3).p_0=\tfrac13\Big(1+\tfrac{P_2}{2P_3}+\tfrac{3P_1}{2P_3}\Big),\quad p_1=\tfrac13\Big(1+\tfrac{P_2}{2P_3}-\tfrac{3P_1}{2P_3}\Big),\quad p_2=\tfrac13\Big(1-\tfrac{P_2}{P_3}\Big).p0​=31​(1+2P3​P2​​+2P3​3P1​​),p1​=31​(1+2P3​P2​​−2P3​3P1​​),p2​=31​(1−P3​P2​​).
  1. pi≥0p_i\ge 0pi​≥0 for all four iii, including p3=0p_3=0p3​=0.
  2. p0+p1+p2=1p_0+p_1+p_2=1p0​+p1​+p2​=1.
  3. The (0,0)(0,0)(0,0) entry of MfM_fMf​ equals ccc.
  4. p0≥p1≥p2≥p3=0p_0\ge p_1\ge p_2\ge p_3=0p0​≥p1​≥p2​≥p3​=0, and
H(Mf)=(Mf)00 U diag(p0,p1,p2,0) U†.H(M_f)=(M_f)_{00}\,U\,\mathrm{diag}(p_0,p_1,p_2,0)\,U^\dagger.H(Mf​)=(Mf​)00​Udiag(p0​,p1​,p2​,0)U†.
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