Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Characterization of zero relative variance

Open
QAlgorithms.Papers.Independent.Advance50.P01.zeroVariance_characterization

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let ρ\rhoρ and σ\sigmaσ be positive semidefinite complex matrices of trace one on a common nonzero finite-dimensional Hilbert space, with supp⁡ρ⊆supp⁡σ\operatorname{supp}\rho\subseteq\operatorname{supp}\sigmasuppρ⊆suppσ. All logarithms are natural. Write D=Tr⁡[ρ(log⁡ρ−log⁡σ)]D=\operatorname{Tr}[\rho(\log\rho-\log\sigma)]D=Tr[ρ(logρ−logσ)] and V=Tr⁡[ρ(log⁡ρ−log⁡σ)2]−D2V=\operatorname{Tr}[\rho(\log\rho-\log\sigma)^2]-D^2V=Tr[ρ(logρ−logσ)2]−D2, with zero kernel contributions. Tests are all binary POVMs (A,I−A)(A,I-A)(A,I−A) on the nnn-fold tensor product; their conditional errors are αn(A)=Tr⁡[ρ⊗n(I−A)]\alpha_n(A)=\operatorname{Tr}[\rho^{\otimes n}(I-A)]αn​(A)=Tr[ρ⊗n(I−A)] and βn(A)=Tr⁡[σ⊗nA]\beta_n(A)=\operatorname{Tr}[\sigma^{\otimes n}A]βn​(A)=Tr[σ⊗nA]. Let Φ\PhiΦ denote the standard normal cumulative distribution function.

The equality V=0V=0V=0 holds if and only if ρ\rhoρ and σ\sigmaσ commute and admit a common complete orthonormal eigenbasis with eigenvalues λx,μx\lambda_x,\mu_xλx​,μx​ and a constant k>0k>0k>0 satisfying

λx≠0 ⟹ λx=kμx,log⁡k=D.\lambda_x\ne0\ \Longrightarrow\ \lambda_x=k\mu_x,\qquad \log k=D.λx​=0 ⟹ λx​=kμx​,logk=D.

The two conditions are joint conditions; commutation alone does not imply zero variance. The ratio condition is only on the support of ρ\rhoρ, and permits mass of σ\sigmaσ outside that support.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P01
Formal statement
noncomputable section

open Filter

open scoped Topology

namespace QAlgorithms.Papers.Independent.Advance50.P01

open QAlgorithms.Papers.Independent.Information100.P71 (SupportIncluded)

open QAlgorithms.Papers.Independent.Information100.P63 (normalCDF normalQuantile tensorPower)

open QAlgorithms.Papers.Independent.Information100.P58 (testingBeta testingD)

open QAlgorithms.Papers.Independent.Dependency50.P36 (relativeEntropyFinite)

attribute [local instance] Classical.propDecidable

-- Match the universe-zero matrix indices of the pinned accepted interfaces.

variable {I : Type} [Fintype I] [DecidableEq I]

-- SupportIncluded is opened directly from the accepted Information100.P71 module.

/-- Zero-variance characterization, source PDF p. 17, §5.
The two printed conditions are a conjunction: commutation AND a constant positive
likelihood ratio on supp(rho). A common eigenbasis is exhibited; sigma may have mass
outside supp(rho). Zero ambient eigenvalues are allowed by the p. 5 support compression. -/
theorem zeroVariance_characterization [Nonempty I] (rho sigma : Matrix I I ℂ)
    (hrho : IsDensityMatrix rho) (hsigma : IsDensityMatrix sigma)
    (hsupport : SupportIncluded rho sigma) :
    relativeVarianceNats rho sigma = 0 ↔
      rho * sigma = sigma * rho ∧
      ∃ r : SpectralDecomposition rho, ∃ s : SpectralDecomposition sigma,
        r.basis = s.basis ∧ ∃ k : ℝ, 0 < k ∧
          (∀ x, r.values x ≠ 0 → r.values x = k * s.values x) ∧
          Real.log k = relativeEntropyNats rho sigma := by sorry

end QAlgorithms.Papers.Independent.Advance50.P01

end
Source
Second-order asymptotics for quantum hypothesis testing, arXiv:1208.1400v3, PDF p. 17, Section 5: zero relative variance
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let III be a nonempty finite type with decidable equality, and let ρ,σ\rho,\sigmaρ,σ be positive semidefinite complex matrices of trace one satisfying ker⁡σ⊆ker⁡ρ\ker\sigma\subseteq\ker\rhokerσ⊆kerρ. Put

D=Re⁡tr⁡ ⁣(cfc⁡(x↦xlog⁡x)ρ−ρ cfc⁡(log⁡)σ),L=cfc⁡(x↦log⁡x/log⁡2)ρ−cfc⁡(x↦log⁡x/log⁡2)σ−Dlog⁡21,V=(log⁡2)2Re⁡tr⁡(ρL2).D=\operatorname{Re}\operatorname{tr}\!\left(\operatorname{cfc}(x\mapsto x\log x)\rho-\rho\,\operatorname{cfc}(\log)\sigma\right),\quad L=\operatorname{cfc}(x\mapsto\log x/\log2)\rho-\operatorname{cfc}(x\mapsto\log x/\log2)\sigma-\frac D{\log2}\mathbf1,\quad V=(\log2)^2\operatorname{Re}\operatorname{tr}(\rho L^2).D=Retr(cfc(x↦xlogx)ρ−ρcfc(log)σ),L=cfc(x↦logx/log2)ρ−cfc(x↦logx/log2)σ−log2D​1,V=(log2)2Retr(ρL2).

Then V=0V=0V=0 if and only if ρσ=σρ\rho\sigma=\sigma\rhoρσ=σρ and there exist spectral decompositions of ρ\rhoρ and σ\sigmaσ whose indexed orthonormal bases are exactly equal, with respective nonnegative eigenvalue families rx,sxr_x,s_xrx​,sx​ each summing to one, together with a real k>0k>0k>0, such that

ρ=∑xrxuxux∗,σ=∑xsxuxux∗,rx≠0 ⟹ rx=ksx,log⁡k=D.\rho=\sum_x r_xu_xu_x^*,\qquad \sigma=\sum_x s_xu_xu_x^*,\qquad r_x\ne0\ \Longrightarrow\ r_x=ks_x,\qquad \log k=D.ρ=x∑​rx​ux​ux∗​,σ=x∑​sx​ux​ux∗​,rx​=0 ⟹ rx​=ksx​,logk=D.

The proportionality condition imposes no requirement at indices where rx=0r_x=0rx​=0.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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