NS moment and tensor identities
OpenQAlgorithms.Papers.Independent.Advance50.P02.ns_moments_tensorAll 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 . Choose arbitrary full orthonormal spectral decompositions and . Define and . With centered variances,
Using the product eigenbases for tensor powers, for every ,
Zero- entries carry no moment mass and need not normalize. This transfers the finite-likelihood quantum moments to a classical iid model.
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]
/-- Eq.(16), PDF p.14, and centered interpretation p.19. Tensor identities use
product eigenbases; no assertion of basis-independent arrays in degenerate spaces. Source correction. Printed: Definition 1 p.7 calls the raw second moment V; Eq.(16) matches the first two likelihood moments.
Changed: State the centered variance identity, subtracting D^2 on both sides.
Why: The first moments also agree, so centering both second moments gives precisely the variance used in Section VI p.19. -/
theorem ns_moments_tensor (rho sigma : Mat I) (hrho : QAlgorithms.IsDensityMatrix rho)
(hsigma : sigma.PosSemidef) (hsupport : SupportIncluded rho sigma)
(r : PositiveSpectralPresentation rho) (s : PositiveSpectralPresentation sigma) :
classicalMean (nsProbability r s) (nsReferenceWeight r s) = relativeMean rho sigma ∧
classicalVariance (nsProbability r s) (nsReferenceWeight r s) = centeredRelativeVariance rho sigma ∧
(∀ n, nsTensorP r s n = weightPower n (nsProbability r s)) ∧
(∀ n, nsTensorQ r s n = weightPower n (nsReferenceWeight r s)) := by sorry
end QAlgorithms.Papers.Independent.Advance50.P02
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For any finite type with decidable equality, let have trace , let satisfy , and choose spectral presentations , with nonnegative eigenvalues, , , and . Put
and let , , and . Scalar and matrix logarithms use the total convention . Then
and, for every natural and every ,
The tensor identities include , when both sides equal . Zero eigenvalues are permitted, and need not have trace .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.