Lemma 3: classical spectral mean and variance identities
OpenQAlgorithms.Papers.Independent.Advance50.P01.lemma3_spectralMomentsLet and be positive semidefinite complex matrices of trace one on a common nonzero finite-dimensional Hilbert space, with . All logarithms are natural. Write and , with zero kernel contributions. Tests are all binary POVMs on the -fold tensor product; their conditional errors are and . Let denote the standard normal cumulative distribution function.
Work on the support of , so its eigenvalues are strictly positive. Choose complete orthonormal eigenbases and with eigenvalues and . Let and , assigned value zero on zero-probability outcomes with . Then
These identities connect the operator-defined quantities to a finite classical law; no positive-variance assumption is imposed.
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P01
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.
/-- Lemma 3, source PDF pp. 7–8, (14)–(15); appendix pp. 17–18.
The supplied eigenbases reconstruct the two states. Sigma has strictly positive eigenvalues,
as in the source's compressed-space convention. No positive-variance assumption is needed. -/
theorem lemma3_spectralMoments [Nonempty I] (rho sigma : Matrix I I ℂ)
(hrho : IsDensityMatrix rho) (hsigma : IsDensityMatrix sigma)
(hsupport : SupportIncluded rho sigma)
(r : SpectralDecomposition rho) (s : SpectralDecomposition sigma)
(hmu : ∀ y, 0 < s.values y) :
relativeEntropyNats rho sigma = spectralLogMean r s ∧
relativeVarianceNats rho sigma = spectralVariance r s := by sorry
end QAlgorithms.Papers.Independent.Advance50.P01
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be a nonempty finite type with decidable equality, and let be positive semidefinite complex matrices of trace one satisfying . Let , each family summing to one, and let , be orthonormal bases such that and ; assume additionally that for every . Define , and define if or , and otherwise. With
the theorem asserts
Zero eigenvalues of are allowed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.