Classical iid spectrum expansion including zero variance
OpenQAlgorithms.Papers.Independent.Advance50.P02.iid_classicalSpectrumAll Hilbert spaces are finite dimensional and complex; all logarithms are binary. Positive-operator inequalities use the identity when comparing with a scalar. Let be normalized and with support inclusion, and let be their NS distributions. Write , let be the centered information variance, and fix . For under independent samples and every positive ,
If , for every positive and every , including zero. For every fixed real ,
The last equality is two-sided with constants before ; its threshold ensures the shifted error lies in its true domain. This includes both signs in (33).
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P02
noncomputable section
open Filter
open scoped BigOperators Matrix ComplexOrder ComplexConjugate Matrix.Norms.L2Operator Topology
namespace QAlgorithms.Papers.Independent.Advance50.P02
attribute [local instance] Classical.propDecidable Classical.decEq
open QAlgorithms.Papers.Independent.Information100.P63
(Mat tensorPower logTwo normalQuantile testingBeta)
open QAlgorithms.Papers.Independent.Information100.P71 (SupportIncluded supportPower)
open QAlgorithms (effectProb)
open QAlgorithms.Papers.Independent.Information100.P06 (Below)
open QAlgorithms.Papers.Independent.Information100.P30 (tensorMap)
open QAlgorithms.Papers.Independent.Information100.P67 (purifiedDistance)
open QAlgorithms.Papers.Independent.Dependency50.P26 (TracePreserving)
open QAlgorithms.Papers.Independent.Dependency50.P28 (pinch)
variable {I J A B X Z : Type} [Fintype I] [DecidableEq I]
[Fintype J] [DecidableEq J] [Fintype A] [DecidableEq A]
[Fintype B] [DecidableEq B] [Fintype X] [DecidableEq X]
[Fintype Z] [DecidableEq Z]
/-- Eqs.(31),(33), PDF pp.18--19: both signs of c/sqrt(n), and the explicit
V=0 identity for every error in [0,1), including zero. The zero shift is permitted. Constants may depend on c and epsilon. Source correction. Printed: Definition 1 p.7 prints V=Tr rho(log rho-log sigma)^2; p.19 prints Gaussian density exp(+x^2/2).
Changed: Use centered V=Tr rho(log rho-log sigma)^2-D^2 and the standard normal density exp(-x^2/2).
Why: Section VI identifies s^2 as Var(Z) and uses the standard normal Berry–Esseen theorem. For pure rho and sigma=I/d the likelihood is constant, hence V=0 even when D=log2(d) is nonzero. -/
theorem iid_classicalSpectrum (rho sigma : Mat I) (hrho : QAlgorithms.IsDensityMatrix rho)
(hsigma : sigma.PosSemidef) (hsupport : SupportIncluded rho sigma)
(r : PositiveSpectralPresentation rho) (s : PositiveSpectralPresentation sigma)
(e : ℝ) (he : 0 < e ∧ e < 1) :
(centeredRelativeVariance rho sigma = 0 → ∀ a : ℝ, 0 ≤ a → a < 1 → ∀ n : ℕ, 1 ≤ n →
classicalSpectrumDivergence a (weightPower n (nsProbability r s)) (weightPower n (nsReferenceWeight r s)) =
((n * relativeMean rho sigma : ℝ) : EReal)) ∧
(∀ n : ℕ, 1 ≤ n →
classicalSpectrumDivergence e (weightPower n (nsProbability r s)) (weightPower n (nsReferenceWeight r s)) =
(n : EReal) * sSup {v : EReal | ∃ R : ℝ,
empiricalMeanMass n (nsProbability r s) (nsReferenceWeight r s) R ≤ e ∧ v = (R : EReal)}) ∧
(∀ c : ℝ, ConstantRemainder
(fun n => classicalSpectrumDivergence (e + c / Real.sqrt n)
(weightPower n (nsProbability r s)) (weightPower n (nsReferenceWeight r s)))
(fun n => gaussianCenter n (relativeMean rho sigma) (centeredRelativeVariance rho sigma) e)) := by sorry
end QAlgorithms.Papers.Independent.Advance50.P02
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be any finite type with decidable equality, let be complex matrices indexed by , and suppose that is positive semidefinite with , that is positive semidefinite, and that . These hypotheses exclude an empty ; no trace normalization is imposed on . Let be any supplied spectral presentations: they give nonnegative numbers and square matrices , respectively, such that , , and . Define weights on by
and, for , put and . Write , with the total real logarithm convention , and apply scalar functions to matrices by continuous functional calculus. Set
For any real and finite weights , define the extended-real threshold quantity
where the supremum is taken in , so an empty set has supremum . Also define
For every real with , three assertions hold simultaneously: if , then for every , including , and every integer , one has ; for every integer , one has the exact extended-real identity
and for every real , there exist a real and an integer such that, for every integer ,
Here , with . All threshold comparisons include equality, zero weights remain included in the sums with the stated logarithm convention, and the perturbed parameter is used directly without clipping.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.