Ns Identities: ns identities
OpenQAlgorithms.Papers.Independent.Bridge50.P50.ns_identitiesLet be the density operators on a nonzero, finite-dimensional complex Hilbert space of dimension . Logarithms are in bits, is support-aware Umegaki relative entropy, and is relative entropy variance in bits squared. Choose spectral decompositions and in orthonormal eigenbases. Define
These are probability mass functions and satisfy
On this support-dominated domain, also . For two pairs of states, use the tensor products of the chosen eigenbases. Their resulting NS laws are exactly and , under the canonical regrouping of the two label pairs.
This summarizes (B1)–(B3) while retaining basis choices in degenerate eigenspaces and the source domain of finite variance.
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P50
noncomputable section
open scoped Topology BigOperators ComplexConjugate ComplexOrder ENNReal Matrix.Norms.L2Operator
open MeasureTheory Filter Set
namespace QAlgorithms.Papers.Independent.Bridge50.P50
attribute [local instance] Classical.propDecidable Classical.decEq
-- Exact accepted primitives; these names do not create local declarations.
open QAlgorithms.Papers.Independent.Information100.P63 (Mat logTwo testingBeta normalCDF normalQuantile)
open QAlgorithms.Papers.Independent.Information100.P08 (Ensemble ensembleAverage)
open QAlgorithms.Papers.Independent.Information100.P69 (entropy)
open QAlgorithms.Papers.Independent.Dependency50.P35 (Dominates)
open QAlgorithms.Papers.Independent.Dependency50.P36 (pairInformationVariance)
open QAlgorithms (vnEntropy traceDistance minEigenvalue)
attribute [local instance] QAlgorithms.Papers.Independent.Bridge50.P50.matrixBorelMeasurable
attribute [local instance] QAlgorithms.Papers.Independent.Bridge50.P50.matrixBorelSpace
/-- Appendix B, PDF pp.25–26, (B1)–(B3): normalized NS laws, entropy and variance
identities, support equivalence and literal product laws in the PRODUCT eigenbasis.
Variance is stated on its source domain, sigma dominating rho. -/
theorem ns_identities {I : Type} {J : Type*} [Fintype I] [DecidableEq I] [Nonempty I]
[Fintype J] [DecidableEq J] [Nonempty J]
(rho sigma : Mat I) (hrho : QAlgorithms.IsDensityMatrix rho)
(hsigma : QAlgorithms.IsDensityMatrix sigma)
(r s : NSSpectralData I) (hr : IsSpectral rho r) (hs : IsSpectral sigma s) :
((∀ a, 0 ≤ nsP r s a ∧ 0 ≤ nsQ r s a) ∧
(∑ a, nsP r s a) = 1 ∧ (∑ a, nsQ r s a) = 1) ∧
entropy rho sigma = nsClassicalD (nsP r s) (nsQ r s) ∧
(Dominates sigma rho → pairInformationVariance rho sigma = classicalV (nsP r s) (nsQ r s)) ∧
(Dominates sigma rho ↔ ∀ a, nsQ r s a = 0 → nsP r s a = 0) ∧
(∀ rho2 sigma2 : Mat J, QAlgorithms.IsDensityMatrix rho2 → QAlgorithms.IsDensityMatrix sigma2 →
∀ r2 s2 : NSSpectralData J, IsSpectral rho2 r2 → IsSpectral sigma2 s2 →
IsSpectral (Matrix.kronecker rho rho2) (productSpectral r r2) ∧
IsSpectral (Matrix.kronecker sigma sigma2) (productSpectral s s2) ∧
∀ (a : I × I) (b : J × J),
nsP (productSpectral r r2) (productSpectral s s2) ((a.1,b.1),(a.2,b.2)) =
nsP r s a * nsP r2 s2 b ∧
nsQ (productSpectral r r2) (productSpectral s s2) ((a.1,b.1),(a.2,b.2)) =
nsQ r s a * nsQ r2 s2 b) := by sorry
end QAlgorithms.Papers.Independent.Bridge50.P50
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be finite, nonempty types with decidable equality. Let be density matrices on , and let and be spectral data satisfying ,
For , put
Define if and for some , and otherwise define it as . Define unless are density matrices and , and otherwise define it as , with and matrix functions given by continuous functional calculus. Define
where conversion to a real number sends to , and total division and logarithms give and . The conclusions are that every is nonnegative, , , and implies ; moreover,
Finally, for every pair of density matrices on and every spectral data , satisfying the same nonnegativity, orthonormality, and reconstruction requirements, the data with eigenvalues and vectors are spectral data for , and the analogous data from are spectral data for ; their associated arrays satisfy, for every and ,
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.