Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Second-order asymptotics for quantum hypothesis testing

Definition
QAlgorithms_Papers_Independent_Advance50_P01

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

prove2quantum

The objects the formalized statements of Second-order asymptotics for quantum hypothesis testing (arXiv:1208.1400) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • relativeEntropyNats: Relative entropy in nats (source p. 3), obtained by converting the accepted finite Umegaki expression in bits. On PSD, support-included pairs this equals Tr[rho(log rho-log sigma)]; the accepted formula assigns x log x = 0 at x = 0.
  • relativeVarianceNats: Quantum relative variance in nats squared, source p. 3, equation (1). The accepted centered operator-square variance is in bits squared, so its conversion factor is (ln 2)^2. For normalized, support-included states this is precisely Tr[rho(log rho-log sigma)^2] - D(rho||sigma)^2, including singular rho and V = 0.
  • iidMatrix: Tensor power in the product basis (source pp. 4, 7). The zeroth tensor power is the scalar identity on the singleton empty-product index.
  • IIDTest: All binary POVMs on n copies (source p. 4), represented by their rho-accepting effect. This indexed effect subtype differs from accepted Dependency50.P32.Test, a predicate on a channel, a pure input and an effect with an error-tolerance constraint. IsEffect requires both A and I-A positive semidefinite.
  • iidTypeI: Type-I error on a bundled iid effect (source p. 4). This only adapts the accepted raw-matrix type-I primitive to the local effect subtype.
  • typeII: Type-II error Tr[sigma^n A] (source p. 4), without a prior or factor 1/2.
  • constrainedTypeI: Definition 1, source p. 5: minimum type-I error under the exponential type-II constraint. This iid state optimum differs from accepted Bridge50.P43.optimalAlpha, which optimizes adaptive channel strategies at a first-order rate in bits. On the density-matrix domain the set contains the zero effect, is contained in [0,1], and has a minimum by finite-dimensional compactness; hence its real infimum is that minimum.
  • iidOptimalBeta: Iid adapter to the accepted unrestricted testing optimum (source p. 14). For normalized rho, its condition 1-epsilon <= Tr[A rho^n] is equivalent to Tr[rho^n(I-A)] <= epsilon. The optimum is unnormalized, with no prior factor.
  • iidTestingDivergenceNats: Iid testing divergence in nats, source pp. 3, 14–17. Convert the accepted extended testing divergence in bits by the positive factor ln 2; zero optimal beta remains +infinity. No division by 1-epsilon is introduced.
  • normalQuantileReal: Real normal quantile on the interior (0,1), source pp. 3, 15. The defining set is nonempty and bounded below on that domain. The value outside the interior is explicitly set to zero and is never used as an endpoint quantile.
  • extendedNormalQuantile: Extended normal quantile: -infinity at 0 and +infinity at 1. This preserves the weak endpoint conditions in Theorem 5 (source p. 15). The same constants are used outside [0,1], where no theorem invokes this definition.
  • SpectralDecomposition: A complete spectral presentation of a density matrix (source p. 7). This is a genuine orthonormal eigenbasis and reconstruction, allowing degeneracies and zeros.
  • spectralLaw: The rho-weighted joint law lambda(x)|<b_y|a_x>|^2, source p. 7. The inner product is conjugate-linear in its first argument.
  • spectralLogRatio: Classical log likelihood on a spectral outcome (source pp. 7–8). The explicit zero extension has weight zero under spectralLaw when supports are nested. The sigma-kernel extension implements the p. 5 compression to supp(sigma).
  • spectralLogMean: Expectation of the log likelihood under the specific spectral law (source p. 8, Lemma 3). Accepted Gap20.P15.spectralMean is instead a nonnegative extended energy expectation on a trace-class state; it cannot replace this signed, finite log-likelihood mean.
  • spectralVariance: Classical variance centered at its own mean, not at an assumed quantum identity (source p. 8, Lemma 3).
  • spectralThirdMoment: T^3 in Theorem 5: the absolute third central moment of the classical spectral law (source pp. 14–15), centered at the constructed quantum D.
  • finiteLawMean: Mean of an explicitly weighted finite real law, auxiliary to the Berry–Esseen contract. Accepted Frontier18.P10.finiteMean takes a normalized FiniteEnsemble on a topological vector space; this raw-law helper is defined before imposing probability hypotheses (source p. 14).
  • finiteVariance: Central second moment of a finite real probability law (source p. 14).
  • finiteThirdMoment: Absolute third central moment of a finite real probability law (source p. 14).
  • finiteStandardizedCDF: CDF of the standardized iid sum, written as a finite product-law sum (source p. 14). Only n>=1, normalized p, and positive finiteVariance are used in the BE contract.
  • IsBerryEsseenConstant: A valid universal Berry–Esseen constant for all finite real laws (source p. 14, (43)). The constant is fixed before the alphabet, law, sample size, and threshold. This is an actual BE validity predicate; membership in the numerical interval alone is insufficient. Finite laws cover all spectral laws in this finite-dimensional paper.
  • secondOrderCenter: The two leading iid terms, with the source's plus sign (source pp. 3, 15).
  • beCorrection: Berry–Esseen correction CT^3/(sqrt(n)(sqrt(V))^3), source p. 15.
  • finiteLower: Lower bounding expression in Theorem 5, with its extended endpoint quantile (p. 15).
  • finiteUpper: Upper bounding expression in Theorem 5, including log(2^9 n^2), source pp. 15–16.
  • rankOneApply: Rank-one operator |phi><phi| applied to v (source p. 8, Lemma 4).
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_ExtendedQuantumEntropy
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P01
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P28
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P58
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P63
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P71

/-!
# Ke Li: second-order asymptotics for quantum hypothesis testing

Source: arXiv:1208.1400v3, PDF pp. 3–18 (printed pages agree).
Natural logarithms, unnormalized conditional testing errors, and all binary POVMs.
Pinned accepted definitions are imported unchanged; the new adapters below are local
to this paper. Unit conversions are explicit: entropy in nats, variance in nats squared.
The Gaussian assertions exclude the singular point V = 0, discussed on source p. 17;
the iid expansion and exact tradeoff include it.
-/

noncomputable section

open Filter
open scoped Topology

namespace QAlgorithms.Papers.Independent.Advance50.P01

-- These are pinned accepted modules from the supplied library catalogue.
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.

/-- Relative entropy in nats (source p. 3), obtained by converting the accepted
finite Umegaki expression in bits. On PSD, support-included pairs this equals
Tr[rho(log rho-log sigma)]; the accepted formula assigns x log x = 0 at x = 0. -/
def relativeEntropyNats (rho sigma : Matrix I I ℂ) : ℝ :=
  Real.log 2 * relativeEntropyFinite rho sigma

/-- Quantum relative variance in nats squared, source p. 3, equation (1).
The accepted centered operator-square variance is in bits squared, so its conversion
factor is (ln 2)^2. For normalized, support-included states this is precisely
Tr[rho(log rho-log sigma)^2] - D(rho||sigma)^2, including singular rho and V = 0. -/
def relativeVarianceNats (rho sigma : Matrix I I ℂ) : ℝ :=
  (Real.log 2) ^ 2 *
    QAlgorithms.Papers.Independent.Bridge50.P01.relativeVariance rho sigma

/-- Tensor power in the product basis (source pp. 4, 7).
The zeroth tensor power is the scalar identity on the singleton empty-product index. -/
def iidMatrix (M : Matrix I I ℂ) (n : ℕ) :
    Matrix (Fin n → I) (Fin n → I) ℂ :=
  tensorPower n M

/-- All binary POVMs on n copies (source p. 4), represented by their rho-accepting effect.
This indexed effect subtype differs from accepted Dependency50.P32.Test, a predicate
on a channel, a pure input and an effect with an error-tolerance constraint.
`IsEffect` requires both A and I-A positive semidefinite. -/
abbrev IIDTest (I : Type) [Fintype I] [DecidableEq I] (n : ℕ) :=
  {A : Matrix (Fin n → I) (Fin n → I) ℂ // IsEffect A}

/-- Type-I error on a bundled iid effect (source p. 4).
This only adapts the accepted raw-matrix type-I primitive to the local effect subtype. -/
def iidTypeI (rho : Matrix I I ℂ) {n : ℕ} (A : IIDTest I n) : ℝ :=
  QAlgorithms.Papers.Independent.Dependency50.P28.typeI rho n A.val

/-- Type-II error Tr[sigma^n A] (source p. 4), without a prior or factor 1/2. -/
def typeII (sigma : Matrix I I ℂ) {n : ℕ} (A : IIDTest I n) : ℝ :=
  (iidMatrix sigma n * A.val).trace.re

/-- Definition 1, source p. 5: minimum type-I error under the exponential type-II constraint.
This iid state optimum differs from accepted Bridge50.P43.optimalAlpha, which optimizes
adaptive channel strategies at a first-order rate in bits.
On the density-matrix domain the set contains the zero effect, is contained in [0,1],
and has a minimum by finite-dimensional compactness; hence its real infimum is that minimum. -/
def constrainedTypeI (rho sigma : Matrix I I ℂ) (E1 E2 : ℝ) (f : ℕ → ℝ) (n : ℕ) : ℝ :=
  sInf {a : ℝ | ∃ A : IIDTest I n, a = iidTypeI rho A ∧
    typeII sigma A ≤ Real.exp (-(E1 * n + E2 * Real.sqrt n + f n))}

/-- Iid adapter to the accepted unrestricted testing optimum (source p. 14).
For normalized rho, its condition 1-epsilon <= Tr[A rho^n] is equivalent to
Tr[rho^n(I-A)] <= epsilon. The optimum is unnormalized, with no prior factor. -/
def iidOptimalBeta (rho sigma : Matrix I I ℂ) (n : ℕ) (epsilon : ℝ) : ℝ :=
  testingBeta epsilon (iidMatrix rho n) (iidMatrix sigma n)

/-- Iid testing divergence in nats, source pp. 3, 14–17.
Convert the accepted extended testing divergence in bits by the positive factor ln 2;
zero optimal beta remains +infinity. No division by 1-epsilon is introduced. -/
def iidTestingDivergenceNats (rho sigma : Matrix I I ℂ) (n : ℕ) (epsilon : ℝ) : EReal :=
  ((Real.log 2 : ℝ) : EReal) * testingD epsilon (iidMatrix rho n) (iidMatrix sigma n)

-- normalCDF and the interior normalQuantile are opened from accepted Information100.P63.

/-- Real normal quantile on the interior (0,1), source pp. 3, 15.
The defining set is nonempty and bounded below on that domain. The value outside the
interior is explicitly set to zero and is never used as an endpoint quantile. -/
def normalQuantileReal (p : ℝ) : ℝ :=
  if 0 < p ∧ p < 1 then normalQuantile p else 0

/-- Extended normal quantile: -infinity at 0 and +infinity at 1.
This preserves the weak endpoint conditions in Theorem 5 (source p. 15).
The same constants are used outside [0,1], where no theorem invokes this definition. -/
def extendedNormalQuantile (p : ℝ) : EReal :=
  if p ≤ 0 then ⊥ else if 1 ≤ p then ⊤ else (normalQuantileReal p : EReal)

/-- A complete spectral presentation of a density matrix (source p. 7).
This is a genuine orthonormal eigenbasis and reconstruction, allowing degeneracies and zeros. -/
structure SpectralDecomposition (M : Matrix I I ℂ) where
  basis : OrthonormalBasis I ℂ (EuclideanSpace ℂ I)
  values : I → ℝ
  nonneg : ∀ x, 0 ≤ values x
  normalized : ∑ x, values x = 1
  reconstruct : M = ∑ x, (values x : ℂ) • pureDensity (basis x)

/-- The rho-weighted joint law lambda(x)|<b_y|a_x>|^2, source p. 7.
The inner product is conjugate-linear in its first argument. -/
def spectralLaw {rho sigma : Matrix I I ℂ}
    (r : SpectralDecomposition rho) (s : SpectralDecomposition sigma) (x y : I) : ℝ :=
  r.values x * ‖inner ℂ (s.basis y) (r.basis x)‖ ^ 2

/-- Classical log likelihood on a spectral outcome (source pp. 7–8).
The explicit zero extension has weight zero under spectralLaw when supports are nested.
The sigma-kernel extension implements the p. 5 compression to supp(sigma). -/
def spectralLogRatio {rho sigma : Matrix I I ℂ}
    (r : SpectralDecomposition rho) (s : SpectralDecomposition sigma) (x y : I) : ℝ :=
  if r.values x = 0 ∨ s.values y = 0 then 0 else Real.log (r.values x / s.values y)

/-- Expectation of the log likelihood under the specific spectral law (source p. 8, Lemma 3).
Accepted Gap20.P15.spectralMean is instead a nonnegative extended energy expectation
on a trace-class state; it cannot replace this signed, finite log-likelihood mean. -/
def spectralLogMean {rho sigma : Matrix I I ℂ}
    (r : SpectralDecomposition rho) (s : SpectralDecomposition sigma) : ℝ :=
  ∑ x, ∑ y, spectralLaw r s x y * spectralLogRatio r s x y

/-- Classical variance centered at its own mean, not at an assumed quantum identity
(source p. 8, Lemma 3). -/
def spectralVariance {rho sigma : Matrix I I ℂ}
    (r : SpectralDecomposition rho) (s : SpectralDecomposition sigma) : ℝ :=
  ∑ x, ∑ y, spectralLaw r s x y * (spectralLogRatio r s x y - spectralLogMean r s) ^ 2

/-- T^3 in Theorem 5: the absolute third central moment of the classical spectral law
(source pp. 14–15), centered at the constructed quantum D. -/
def spectralThirdMoment {rho sigma : Matrix I I ℂ}
    (r : SpectralDecomposition rho) (s : SpectralDecomposition sigma) : ℝ :=
  ∑ x, ∑ y, spectralLaw r s x y *
    |spectralLogRatio r s x y - relativeEntropyNats rho sigma| ^ 3

/-- Mean of an explicitly weighted finite real law, auxiliary to the Berry–Esseen contract.
Accepted Frontier18.P10.finiteMean takes a normalized FiniteEnsemble on a topological
vector space; this raw-law helper is defined before imposing probability hypotheses
(source p. 14). -/
def finiteLawMean {d : ℕ} (p z : Fin d → ℝ) : ℝ := ∑ i, p i * z i

/-- Central second moment of a finite real probability law (source p. 14). -/
def finiteVariance {d : ℕ} (p z : Fin d → ℝ) : ℝ :=
  ∑ i, p i * (z i - finiteLawMean p z) ^ 2

/-- Absolute third central moment of a finite real probability law (source p. 14). -/
def finiteThirdMoment {d : ℕ} (p z : Fin d → ℝ) : ℝ :=
  ∑ i, p i * |z i - finiteLawMean p z| ^ 3

/-- CDF of the standardized iid sum, written as a finite product-law sum (source p. 14).
Only n>=1, normalized p, and positive finiteVariance are used in the BE contract. -/
def finiteStandardizedCDF {d : ℕ} (p z : Fin d → ℝ) (n : ℕ) (t : ℝ) : ℝ :=
  ∑ x : Fin n → Fin d,
    if ((∑ j, z (x j)) - n * finiteLawMean p z) /
        (Real.sqrt n * Real.sqrt (finiteVariance p z)) ≤ t
    then ∏ j, p (x j) else 0

/-- A valid universal Berry–Esseen constant for all finite real laws (source p. 14, (43)).
The constant is fixed before the alphabet, law, sample size, and threshold. This is an
actual BE validity predicate; membership in the numerical interval alone is insufficient.
Finite laws cover all spectral laws in this finite-dimensional paper. -/
def IsBerryEsseenConstant (C : ℝ) : Prop :=
  0 < C ∧ ∀ (d : ℕ) (p z : Fin d → ℝ), (∀ i, 0 ≤ p i) → (∑ i, p i) = 1 →
    0 < finiteVariance p z → ∀ n : ℕ, 1 ≤ n → ∀ t : ℝ,
      |finiteStandardizedCDF p z n t - normalCDF t| ≤
        C * finiteThirdMoment p z / (Real.sqrt n * Real.sqrt (finiteVariance p z) ^ 3)

/-- The two leading iid terms, with the source's plus sign (source pp. 3, 15). -/
def secondOrderCenter (rho sigma : Matrix I I ℂ) (epsilon : ℝ) (n : ℕ) : ℝ :=
  n * relativeEntropyNats rho sigma +
    Real.sqrt n * Real.sqrt (relativeVarianceNats rho sigma) * normalQuantileReal epsilon

/-- Berry–Esseen correction CT^3/(sqrt(n)(sqrt(V))^3), source p. 15. -/
def beCorrection (C V T3 : ℝ) (n : ℕ) : ℝ :=
  C * T3 / (Real.sqrt n * Real.sqrt V ^ 3)

/-- Lower bounding expression in Theorem 5, with its extended endpoint quantile (p. 15). -/
def finiteLower (rho sigma : Matrix I I ℂ) (epsilon C T3 : ℝ) (n : ℕ) : EReal :=
  ((n * relativeEntropyNats rho sigma : ℝ) : EReal) +
    ((Real.sqrt n * Real.sqrt (relativeVarianceNats rho sigma) : ℝ) : EReal) *
      extendedNormalQuantile (epsilon - beCorrection C (relativeVarianceNats rho sigma) T3 n)

/-- Upper bounding expression in Theorem 5, including log(2^9 n^2), source pp. 15–16. -/
def finiteUpper (rho sigma : Matrix I I ℂ) (epsilon C T3 : ℝ) (n : ℕ) : EReal :=
  ((n * relativeEntropyNats rho sigma : ℝ) : EReal) +
    ((Real.sqrt n * Real.sqrt (relativeVarianceNats rho sigma) : ℝ) : EReal) *
      extendedNormalQuantile (epsilon + beCorrection C (relativeVarianceNats rho sigma) T3 n +
        2 / Real.sqrt n) + ((Real.log ((2 : ℝ) ^ 9 * (n : ℝ) ^ 2) : ℝ) : EReal)

/-- Rank-one operator |phi><phi| applied to v (source p. 8, Lemma 4). -/
def rankOneApply {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E]
    (phi v : E) : E := (inner ℂ phi v) • phi

/-! Sanity examples pin the tensor, logarithm, endpoint, error, and normalization conventions.
These are definition checks, not proofs of any source theorem. -/

example (rho : Matrix I I ℂ) : SupportIncluded rho rho := le_rfl

example (rho sigma : Matrix I I ℂ) :
    relativeEntropyNats rho sigma = Real.log 2 * relativeEntropyFinite rho sigma := rfl

example (rho sigma : Matrix I I ℂ) :
    relativeVarianceNats rho sigma = (Real.log 2) ^ 2 *
      QAlgorithms.Papers.Independent.Bridge50.P01.relativeVariance rho sigma := rfl

example (M : Matrix I I ℂ) (x y : Fin 0 → I) : iidMatrix M 0 x y = 1 := by
  simp [iidMatrix, tensorPower]

example (M : Matrix I I ℂ) (x y : Fin 1 → I) : iidMatrix M 1 x y = M (x 0) (y 0) := by
  simp [iidMatrix, tensorPower]

example (rho : Matrix I I ℂ) (n : ℕ) (h : IsEffect (0 : Matrix (Fin n → I) (Fin n → I) ℂ)) :
    typeII rho (⟨0, h⟩ : IIDTest I n) = 0 := by
  simp [typeII]

example (rho : Matrix I I ℂ) (n : ℕ) (h : IsEffect (1 : Matrix (Fin n → I) (Fin n → I) ℂ)) :
    iidTypeI rho (⟨1, h⟩ : IIDTest I n) = 0 := by
  simp [iidTypeI, QAlgorithms.Papers.Independent.Dependency50.P28.typeI,
    QAlgorithms.Papers.Independent.Dependency50.P28.tr]

example : extendedNormalQuantile 0 = ⊥ ∧ extendedNormalQuantile 1 = ⊤ := by
  norm_num [extendedNormalQuantile]

example {rho sigma : Matrix I I ℂ} (r : SpectralDecomposition rho)
    (s : SpectralDecomposition sigma) (x y : I) (h : r.values x = 0) :
    spectralLaw r s x y = 0 ∧ spectralLogRatio r s x y = 0 := by
  simp [spectralLaw, spectralLogRatio, h]

example (C V : ℝ) (n : ℕ) : beCorrection C V 0 n = 0 := by
  simp [beCorrection]

example {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] (phi : E) :
    rankOneApply phi (0 : E) = 0 := by
  simp [rankOneApply]

end QAlgorithms.Papers.Independent.Advance50.P01
Source
Second-order asymptotics for quantum hypothesis testing, arXiv:1208.1400v3, https://arxiv.org/abs/1208.1400v3
Read-back

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

QAlgorithms.Papers.Independent.Advance50.P01.IIDTest

For any finite index type III with decidable equality and any natural number nnn, this abbreviates the type of complex matrices AAA indexed by configurations {0,…,n−1}→I\{0,\ldots,n-1\}\to I{0,…,n−1}→I, together with proofs that both AAA and 1−A\mathbf 1-A1−A are positive semidefinite. Equivalently, its elements are effects 0≤A≤10\le A\le\mathbf 10≤A≤1 on that configuration space. The case n=0n=0n=0 is included and gives scalar effects A=[a]A=[a]A=[a] with real 0≤a≤10\le a\le10≤a≤1; if III is empty and n>0n>0n>0, the configuration space is empty.

QAlgorithms.Papers.Independent.Advance50.P01.IsBerryEsseenConstant

For a real number CCC, this property means that C>0C>0C>0 and the following bound holds for every natural number ddd, every pair of real functions p,zp,zp,z on {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} satisfying pi≥0p_i\ge0pi​≥0, ∑ipi=1\sum_i p_i=1∑i​pi​=1, and V>0V>0V>0, where m=∑ipizim=\sum_i p_i z_im=∑i​pi​zi​, V=∑ipi(zi−m)2V=\sum_i p_i(z_i-m)^2V=∑i​pi​(zi​−m)2, and T3=∑ipi∣zi−m∣3T_3=\sum_i p_i|z_i-m|^3T3​=∑i​pi​∣zi​−m∣3: for every natural number n≥1n\ge1n≥1 and every real ttt,

∣∑x:{0,…,n−1}→{0,…,d−1}(∑jzxj−nm)/(nV)≤t∏jpxj−Φ(t)∣≤C T3n (V)3,Φ(t)=∫(−∞,t]e−u2/22π du.\left| \sum_{\substack{x:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}\\ (\sum_jz_{x_j}-nm)/(\sqrt n\sqrt V)\le t}} \prod_jp_{x_j} -\Phi(t) \right| \le \frac{C\,T_3}{\sqrt n\,(\sqrt V)^3}, \qquad \Phi(t)=\int_{(-\infty,t]} \frac{e^{-u^2/2}}{\sqrt{2\pi}}\,du.​x:{0,…,n−1}→{0,…,d−1}(∑j​zxj​​−nm)/(n​V​)≤t​∑​j∏​pxj​​−Φ(t)​≤n​(V​)3CT3​​,Φ(t)=∫(−∞,t]​2π​e−u2/2​du.

The hypotheses exclude an empty alphabet, zero variance, and n=0n=0n=0.

QAlgorithms.Papers.Independent.Advance50.P01.SpectralDecomposition

For a finite index type III and a complex matrix MMM indexed by III, this structure consists of an orthonormal basis (ux)x∈I(u_x)_{x\in I}(ux​)x∈I​ of the complex Euclidean space CI\mathbb C^ICI, real numbers (λx)x∈I(\lambda_x)_{x\in I}(λx​)x∈I​, proofs that every λx≥0\lambda_x\ge0λx​≥0 and ∑xλx=1\sum_x\lambda_x=1∑x​λx​=1, and the reconstruction identity

M=∑x∈Iλx uxux†,(uxux†)i,j=ux(i) ux(j)‾.M=\sum_{x\in I}\lambda_x\,u_xu_x^\dagger, \qquad (u_xu_x^\dagger)_{i,j}=u_x(i)\,\overline{u_x(j)}.M=x∈I∑​λx​ux​ux†​,(ux​ux†​)i,j​=ux​(i)ux​(j)​.

Zero and repeated values are allowed, and no ordering of the values is required. For empty III, the normalization condition would assert 0=10=10=1, so no such structure exists.

QAlgorithms.Papers.Independent.Advance50.P01.beCorrection

For arbitrary real numbers C,V,T3C,V,T_3C,V,T3​ and every natural number nnn, the definition assigns

C T3n (V)3.\frac{C\,T_3}{\sqrt n\,(\sqrt V)^3}.n​(V​)3CT3​​.

There are no sign or positivity hypotheses. The real square root of a nonpositive number is 000, and division by zero is assigned 000; consequently, the value is 000 whenever n=0n=0n=0 or V≤0V\le0V≤0.

QAlgorithms.Papers.Independent.Advance50.P01.constrainedTypeI

For a finite index type III with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, arbitrary real numbers E1,E2E_1,E_2E1​,E2​, any function f:N→Rf:\mathbb N\to\mathbb Rf:N→R, and any natural number nnn, this defines the real infimum

inf⁡0≤A≤1Re⁡tr⁡(σ(n)A)≤exp⁡[−(E1n+E2n+f(n))]Re⁡tr⁡ ⁣(ρ(n)(1−A)),\inf_{\substack{0\le A\le\mathbf 1\\ \operatorname{Re}\operatorname{tr}(\sigma^{(n)}A) \le \exp[-(E_1n+E_2\sqrt n+f(n))]}} \operatorname{Re}\operatorname{tr}\!\left(\rho^{(n)}(\mathbf 1-A)\right),0≤A≤1Retr(σ(n)A)≤exp[−(E1​n+E2​n​+f(n))]​inf​Retr(ρ(n)(1−A)),

where AAA is a complex matrix on configurations of length nnn, 0≤A≤10\le A\le\mathbf 10≤A≤1 means that AAA and 1−A\mathbf 1-A1−A are positive semidefinite, and Mx,y(n)=∏j=0n−1Mxj,yjM^{(n)}_{x,y}=\prod_{j=0}^{n-1}M_{x_j,y_j}Mx,y(n)​=∏j=0n−1​Mxj​,yj​​. Neither input matrix is assumed to be a density matrix, and no sign or growth condition is imposed on E1,E2,fE_1,E_2,fE1​,E2​,f. The zero effect is always feasible. At n=0n=0n=0, both tensor matrices are [1][1][1], and the constraint is a≤e−f(0)a\le e^{-f(0)}a≤e−f(0) for a scalar effect 0≤a≤10\le a\le10≤a≤1.

QAlgorithms.Papers.Independent.Advance50.P01.extendedNormalQuantile

For every real number ppp, this defines the extended real number

Qext(p)={−∞,p≤0,+∞,p≥1,inf⁡{z∈R:p≤Φ(z)},0<p<1,Φ(z)=∫−∞ze−x2/22π dx,Q_{\mathrm{ext}}(p)= \begin{cases} -\infty,&p\le0,\\ +\infty,&p\ge1,\\ \inf\{z\in\mathbb R:p\le\Phi(z)\},&0<p<1, \end{cases} \qquad \Phi(z)=\int_{-\infty}^{z}\frac{e^{-x^2/2}}{\sqrt{2\pi}}\,dx,Qext​(p)=⎩⎨⎧​−∞,+∞,inf{z∈R:p≤Φ(z)},​p≤0,p≥1,0<p<1,​Φ(z)=∫−∞z​2π​e−x2/2​dx,

where the interior real infimum is embedded in the extended reals. In particular, p=0p=0p=0 gives −∞-\infty−∞ and p=1p=1p=1 gives +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P01.finiteLawMean

For every natural number ddd, including d=0d=0d=0, and arbitrary real functions p,zp,zp,z on {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, the definition assigns

∑i=0d−1pizi.\sum_{i=0}^{d-1}p_i z_i.i=0∑d−1​pi​zi​.

There is no assumption that pip_ipi​ is nonnegative or that the weights sum to 111. For d=0d=0d=0, the empty sum is 000.

QAlgorithms.Papers.Independent.Advance50.P01.finiteLower

For any finite type III with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, real numbers ϵ,C,T3\epsilon,C,T_3ϵ,C,T3​, and natural number nnn, this defines an extended real number as follows. Write ℓ(X)=cfc⁡(log⁡)X\ell(X)=\operatorname{cfc}(\log)Xℓ(X)=cfc(log)X, ℓ2(X)=cfc⁡(x↦log⁡x/log⁡2)X\ell_2(X)=\operatorname{cfc}(x\mapsto\log x/\log2)Xℓ2​(X)=cfc(x↦logx/log2)X, and

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

Here cfc⁡\operatorname{cfc}cfc denotes continuous functional calculus. Let Φ(z)=∫−∞ze−x2/2/2π dx\Phi(z)=\int_{-\infty}^{z}e^{-x^2/2}/\sqrt{2\pi}\,dxΦ(z)=∫−∞z​e−x2/2/2π​dx, and define Q(p)=−∞Q(p)=-\inftyQ(p)=−∞ for p≤0p\le0p≤0, Q(p)=+∞Q(p)=+\inftyQ(p)=+∞ for p≥1p\ge1p≥1, and Q(p)=inf⁡{z:p≤Φ(z)}Q(p)=\inf\{z:p\le\Phi(z)\}Q(p)=inf{z:p≤Φ(z)} otherwise. The definition is

finiteLower⁡(ρ,σ,ϵ,C,T3,n)=nD+n V Q ⁣(ϵ−CT3n (V)3),\operatorname{finiteLower}(\rho,\sigma,\epsilon,C,T_3,n) =nD+\sqrt n\,\sqrt V\, Q\!\left(\epsilon-\frac{CT_3}{\sqrt n\,(\sqrt V)^3}\right),finiteLower(ρ,σ,ϵ,C,T3​,n)=nD+n​V​Q(ϵ−n​(V​)3CT3​​),

with real terms embedded into the extended reals before addition and multiplication. No density, support, positivity, or parameter-range hypotheses are imposed; III may be empty. Real square roots of nonpositive numbers and division by zero are interpreted as zero. Extended-real multiplication satisfies 0(±∞)=00(\pm\infty)=00(±∞)=0, so the value at n=0n=0n=0 is zero.

QAlgorithms.Papers.Independent.Advance50.P01.finiteStandardizedCDF

For natural numbers d,nd,nd,n, arbitrary real functions p,zp,zp,z on {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, and a real threshold ttt, put m=∑ipizim=\sum_i p_i z_im=∑i​pi​zi​ and V=∑ipi(zi−m)2V=\sum_i p_i(z_i-m)^2V=∑i​pi​(zi​−m)2. The definition assigns

∑x:{0,…,n−1}→{0,…,d−1}{∏j=0n−1pxj,∑j=0n−1zxj−nmn V≤t,0,otherwise.\sum_{x:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}} \begin{cases} \displaystyle\prod_{j=0}^{n-1}p_{x_j}, &\displaystyle \frac{\sum_{j=0}^{n-1}z_{x_j}-nm}{\sqrt n\,\sqrt V}\le t,\\ 0,&\text{otherwise}. \end{cases}x:{0,…,n−1}→{0,…,d−1}∑​⎩⎨⎧​j=0∏n−1​pxj​​,0,​n​V​∑j=0n−1​zxj​​−nm​≤t,otherwise.​

The weights need not be nonnegative or normalized. Real square roots of nonpositive numbers are 000, and division by zero is assigned 000, so a zero denominator makes the comparison 0≤t0\le t0≤t. When n=0n=0n=0, the value is 111 if 0≤t0\le t0≤t and 000 otherwise, using the unique empty sequence and empty product 111. When d=0<nd=0<nd=0<n, there are no sequences and the value is 000.

QAlgorithms.Papers.Independent.Advance50.P01.finiteThirdMoment

For every natural number ddd, including d=0d=0d=0, and arbitrary real functions p,zp,zp,z on {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, set m=∑j=0d−1pjzjm=\sum_{j=0}^{d-1}p_jz_jm=∑j=0d−1​pj​zj​. The definition assigns

∑i=0d−1pi∣zi−m∣3.\sum_{i=0}^{d-1}p_i|z_i-m|^3.i=0∑d−1​pi​∣zi​−m∣3.

No nonnegativity or normalization assumption is imposed on ppp, so this value need not be nonnegative. For d=0d=0d=0, the empty sum is 000.

QAlgorithms.Papers.Independent.Advance50.P01.finiteUpper

For any finite type III with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, real numbers ϵ,C,T3\epsilon,C,T_3ϵ,C,T3​, and natural number nnn, 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).

Here cfc⁡\operatorname{cfc}cfc is continuous functional calculus. Let Φ(z)=∫−∞ze−x2/2/2π dx\Phi(z)=\int_{-\infty}^{z}e^{-x^2/2}/\sqrt{2\pi}\,dxΦ(z)=∫−∞z​e−x2/2/2π​dx, and let Q(p)Q(p)Q(p) be −∞-\infty−∞ for p≤0p\le0p≤0, +∞+\infty+∞ for p≥1p\ge1p≥1, and inf⁡{z:p≤Φ(z)}\inf\{z:p\le\Phi(z)\}inf{z:p≤Φ(z)} for 0<p<10<p<10<p<1. This defines

finiteUpper⁡(ρ,σ,ϵ,C,T3,n)=nD+n V Q ⁣(ϵ+CT3n (V)3+2n)+log⁡(29n2)\operatorname{finiteUpper}(\rho,\sigma,\epsilon,C,T_3,n) =nD+\sqrt n\,\sqrt V\, Q\!\left(\epsilon+\frac{CT_3}{\sqrt n\,(\sqrt V)^3}+\frac2{\sqrt n}\right) +\log(2^9n^2)finiteUpper(ρ,σ,ϵ,C,T3​,n)=nD+n​V​Q(ϵ+n​(V​)3CT3​​+n​2​)+log(29n2)

in the extended reals. There are no density, support, positivity, or range assumptions, and the index type may be empty. Real division by zero, log⁡0\log0log0, and square roots of nonpositive numbers are zero; 0(±∞)=00(\pm\infty)=00(±∞)=0 in the extended-real multiplication used here. In particular, the value at n=0n=0n=0 is zero.

QAlgorithms.Papers.Independent.Advance50.P01.finiteVariance

For every natural number ddd, including d=0d=0d=0, and arbitrary real functions p,zp,zp,z on {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, set m=∑j=0d−1pjzjm=\sum_{j=0}^{d-1}p_jz_jm=∑j=0d−1​pj​zj​. The definition assigns

∑i=0d−1pi(zi−m)2.\sum_{i=0}^{d-1}p_i(z_i-m)^2.i=0∑d−1​pi​(zi​−m)2.

The weights are not assumed nonnegative or normalized, so the assigned number is not required to be nonnegative. For d=0d=0d=0, both sums are 000.

QAlgorithms.Papers.Independent.Advance50.P01.iidMatrix

For any index type III, any complex matrix MMM indexed by III, and any natural number nnn, this defines a matrix indexed by configurations x,y:{0,…,n−1}→Ix,y:\{0,\ldots,n-1\}\to Ix,y:{0,…,n−1}→I, with entries

Mx,y(n)=∏j=0n−1Mxj,yj.M^{(n)}_{x,y}=\prod_{j=0}^{n-1}M_{x_j,y_j}.Mx,y(n)​=j=0∏n−1​Mxj​,yj​​.

No positivity or normalization is required. For n=0n=0n=0, the configuration type has one element and the empty product is 111, so the resulting matrix is the 1×11\times11×1 identity, even when III is empty.

QAlgorithms.Papers.Independent.Advance50.P01.iidOptimalBeta

For a finite index type III with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, any natural number nnn, and any real number ϵ\epsilonϵ, this defines

inf⁡{Re⁡tr⁡(Tσ(n)):T≥0, 1−T≥0, 1−ϵ≤Re⁡tr⁡(Tρ(n))},Mx,y(n)=∏j=0n−1Mxj,yj.\inf\left\{ \operatorname{Re}\operatorname{tr}(T\sigma^{(n)}): T\ge0,\ \mathbf 1-T\ge0,\ 1-\epsilon\le\operatorname{Re}\operatorname{tr}(T\rho^{(n)}) \right\}, \qquad M^{(n)}_{x,y}=\prod_{j=0}^{n-1}M_{x_j,y_j}.inf{Retr(Tσ(n)):T≥0, 1−T≥0, 1−ϵ≤Retr(Tρ(n))},Mx,y(n)​=j=0∏n−1​Mxj​,yj​​.

The infimum is real-valued; if its defining set is empty, its value is 000. No density-matrix assumptions or restriction on ϵ\epsilonϵ are present. The case n=0n=0n=0 uses ρ(0)=σ(0)=[1]\rho^{(0)}=\sigma^{(0)}=[1]ρ(0)=σ(0)=[1], regardless of the input matrices.

QAlgorithms.Papers.Independent.Advance50.P01.iidTestingDivergenceNats

For a finite index type III with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, any natural number nnn, and any real number ϵ\epsilonϵ, let

b=inf⁡{Re⁡tr⁡(Tσ(n)):T≥0, 1−T≥0, 1−ϵ≤Re⁡tr⁡(Tρ(n))},Mx,y(n)=∏j=0n−1Mxj,yj.b=\inf\left\{ \operatorname{Re}\operatorname{tr}(T\sigma^{(n)}): T\ge0,\ \mathbf 1-T\ge0,\ 1-\epsilon\le\operatorname{Re}\operatorname{tr}(T\rho^{(n)}) \right\}, \qquad M^{(n)}_{x,y}=\prod_{j=0}^{n-1}M_{x_j,y_j}.b=inf{Retr(Tσ(n)):T≥0, 1−T≥0, 1−ϵ≤Retr(Tρ(n))},Mx,y(n)​=j=0∏n−1​Mxj​,yj​​.

This defines an extended real number equal to +∞+\infty+∞ if b=0b=0b=0, and otherwise equal to (ln⁡2)(−log⁡2b)(\ln2)(-\log_2 b)(ln2)(−log2​b), with both real factors embedded in the extended reals. Here log⁡2b=ln⁡b/ln⁡2\log_2 b=\ln b/\ln2log2​b=lnb/ln2 uses the total real logarithm. An empty feasible set gives the real infimum b=0b=0b=0, hence +∞+\infty+∞. No positivity, normalization, or range restriction on ϵ\epsilonϵ is imposed; n=0n=0n=0 is included, with both tensor matrices equal to [1][1][1].

QAlgorithms.Papers.Independent.Advance50.P01.iidTypeI

For a finite index type III with decidable equality, an arbitrary complex matrix ρ\rhoρ indexed by III, an implicit natural number nnn, and an effect AAA on configurations {0,…,n−1}→I\{0,\ldots,n-1\}\to I{0,…,n−1}→I, meaning that AAA and 1−A\mathbf 1-A1−A are positive semidefinite, this defines

Re⁡tr⁡ ⁣(ρ(n)(1−A)),ρx,y(n)=∏j=0n−1ρxj,yj.\operatorname{Re}\operatorname{tr}\!\left(\rho^{(n)}(\mathbf 1-A)\right), \qquad \rho^{(n)}_{x,y}=\prod_{j=0}^{n-1}\rho_{x_j,y_j}.Retr(ρ(n)(1−A)),ρx,y(n)​=j=0∏n−1​ρxj​,yj​​.

There is no assumption that ρ\rhoρ is positive semidefinite or has trace 111. At n=0n=0n=0, ρ(0)=[1]\rho^{(0)}=[1]ρ(0)=[1], so the value is 1−a1-a1−a for the scalar effect A=[a]A=[a]A=[a].

QAlgorithms.Papers.Independent.Advance50.P01.normalQuantileReal

For every real number ppp, this defines

QR(p)={inf⁡{z∈R:p≤Φ(z)},0<p<1,0,otherwise,Φ(z)=∫−∞ze−x2/22π dx.Q_{\mathbb R}(p)= \begin{cases} \inf\{z\in\mathbb R:p\le\Phi(z)\},&0<p<1,\\ 0,&\text{otherwise}, \end{cases} \qquad \Phi(z)=\int_{-\infty}^{z}\frac{e^{-x^2/2}}{\sqrt{2\pi}}\,dx.QR​(p)={inf{z∈R:p≤Φ(z)},0,​0<p<1,otherwise,​Φ(z)=∫−∞z​2π​e−x2/2​dx.

Thus the interior value is the real infimum of the stated normal-CDF upper-level set, while both endpoints p=0,1p=0,1p=0,1, and every value outside (0,1)(0,1)(0,1), are assigned 000.

QAlgorithms.Papers.Independent.Advance50.P01.rankOneApply

For every normed additive commutative group EEE equipped with a complex inner-product-space structure, and every ϕ,v∈E\phi,v\in Eϕ,v∈E, this defines

rankOneApply⁡(ϕ,v)=⟨ϕ,v⟩ ϕ.\operatorname{rankOneApply}(\phi,v)=\langle\phi,v\rangle\,\phi.rankOneApply(ϕ,v)=⟨ϕ,v⟩ϕ.

The complex inner product is conjugate-linear in its first argument and linear in its second. Neither vector is required to be normalized or nonzero, and EEE need not be finite-dimensional or complete.

QAlgorithms.Papers.Independent.Advance50.P01.relativeEntropyNats

For a finite index type III with decidable equality and arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, this defines the real number

(ln⁡2) Re⁡tr⁡ ⁣(f(ρ)−ρ g(σ))ln⁡2,f(x)=xln⁡x,g(x)=ln⁡x,(\ln 2)\, \frac{\operatorname{Re}\operatorname{tr}\!\left(f(\rho)-\rho\,g(\sigma)\right)}{\ln 2}, \qquad f(x)=x\ln x,\quad g(x)=\ln x,(ln2)ln2Retr(f(ρ)−ρg(σ))​,f(x)=xlnx,g(x)=lnx,

where matrix functions use the real continuous functional calculus. Thus the value equals the real trace expression in the numerator. No positivity, trace normalization, or inclusion of supports is assumed or checked; in particular, failure of support inclusion does not produce +∞+\infty+∞. The real logarithm is total, with ln⁡0=0\ln 0=0ln0=0, and an empty index type is allowed.

QAlgorithms.Papers.Independent.Advance50.P01.relativeVarianceNats

For a finite index type III with decidable equality and arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, define

d=Re⁡tr⁡ ⁣(f(ρ)−ρ g(σ))ln⁡2,L=ℓ(ρ)−ℓ(σ)−d 1,d=\frac{\operatorname{Re}\operatorname{tr}\!\left(f(\rho)-\rho\,g(\sigma)\right)}{\ln 2}, \qquad L=\ell(\rho)-\ell(\sigma)-d\,\mathbf 1,d=ln2Retr(f(ρ)−ρg(σ))​,L=ℓ(ρ)−ℓ(σ)−d1,

where f(x)=xln⁡xf(x)=x\ln xf(x)=xlnx, g(x)=ln⁡xg(x)=\ln xg(x)=lnx, ℓ(x)=ln⁡x/ln⁡2\ell(x)=\ln x/\ln 2ℓ(x)=lnx/ln2, and matrix functions use the real continuous functional calculus. The declaration defines the real number

(ln⁡2)2 Re⁡tr⁡(ρL2).(\ln 2)^2\,\operatorname{Re}\operatorname{tr}(\rho L^2).(ln2)2Retr(ρL2).

Here L2L^2L2 is the matrix product LLLLLL. No density-matrix, support, or nonnegativity hypothesis is imposed on the inputs or the resulting number; the real logarithm has ln⁡0=0\ln 0=0ln0=0, and III may be empty.

QAlgorithms.Papers.Independent.Advance50.P01.secondOrderCenter

For a finite index set III with decidable equality, arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, a real number ϵ\epsilonϵ, and a natural number nnn, define

D=Re⁡tr⁡(f(ρ)−ρ g(σ)),L=h(ρ)−h(σ)−Dln⁡2 1,V=(ln⁡2)2Re⁡tr⁡(ρL2),D=\operatorname{Re}\operatorname{tr} \bigl(f(\rho)-\rho\,g(\sigma)\bigr),\qquad L=h(\rho)-h(\sigma)-\frac{D}{\ln2}\,\mathbf1,\qquad V=(\ln2)^2\operatorname{Re}\operatorname{tr}(\rho L^2),D=Retr(f(ρ)−ρg(σ)),L=h(ρ)−h(σ)−ln2D​1,V=(ln2)2Retr(ρL2),

where f(t)=tln⁡tf(t)=t\ln tf(t)=tlnt, g(t)=ln⁡tg(t)=\ln tg(t)=lnt, h(t)=ln⁡t/ln⁡2h(t)=\ln t/\ln2h(t)=lnt/ln2, and matrix functions use continuous functional calculus. Let q(ϵ)=inf⁡{u∈R:ϵ≤Φ(u)}q(\epsilon)=\inf\{u\in\mathbb R:\epsilon\le\Phi(u)\}q(ϵ)=inf{u∈R:ϵ≤Φ(u)} when 0<ϵ<10<\epsilon<10<ϵ<1, with Φ(u)=∫(−∞,u]e−v2/2/2π dv\Phi(u)=\int_{(-\infty,u]}e^{-v^2/2}/\sqrt{2\pi}\,dvΦ(u)=∫(−∞,u]​e−v2/2/2π​dv, and let q(ϵ)=0q(\epsilon)=0q(ϵ)=0 otherwise. The definition assigns

nD+n V q(ϵ).nD+\sqrt n\,\sqrt V\,q(\epsilon).nD+n​V​q(ϵ).

No density, Hermiticity, support inclusion, or positivity assumption on VVV is imposed. Real logarithms at zero are assigned 000, V=0\sqrt V=0V​=0 for V≤0V\le0V≤0, and n=0n=0n=0 gives 000; both endpoint values ϵ=0,1\epsilon=0,1ϵ=0,1 use q(ϵ)=0q(\epsilon)=0q(ϵ)=0.

QAlgorithms.Papers.Independent.Advance50.P01.spectralLaw

For a finite index set III with decidable equality, complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, and supplied spectral decompositions r,sr,sr,s, write their respective orthonormal bases as (ex)x∈I(e_x)_{x\in I}(ex​)x∈I​, (fy)y∈I(f_y)_{y\in I}(fy​)y∈I​ and their respective nonnegative weights as (λx)(\lambda_x)(λx​), (μy)(\mu_y)(μy​), where each weight family sums to 111 and ρ=∑xλxexex∗\rho=\sum_x\lambda_x e_xe_x^*ρ=∑x​λx​ex​ex∗​, σ=∑yμyfyfy∗\sigma=\sum_y\mu_y f_yf_y^*σ=∑y​μy​fy​fy∗​. For every x,y∈Ix,y\in Ix,y∈I, the definition assigns the real number

λx ∣⟨fy,ex⟩∣2.\lambda_x\,|\langle f_y,e_x\rangle|^2.λx​∣⟨fy​,ex​⟩∣2.

In particular, the weight μy\mu_yμy​ does not enter this expression. An empty III cannot admit the supplied decompositions, because their weights must sum to 111.

QAlgorithms.Papers.Independent.Advance50.P01.spectralLogMean

For a finite index set III with decidable equality and complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, let supplied decompositions consist of orthonormal bases (ex)(e_x)(ex​), (fy)(f_y)(fy​) and nonnegative weights (λx)(\lambda_x)(λx​), (μy)(\mu_y)(μy​), each summing to 111, reconstructing ρ=∑xλxexex∗\rho=\sum_x\lambda_xe_xe_x^*ρ=∑x​λx​ex​ex∗​ and σ=∑yμyfyfy∗\sigma=\sum_y\mu_yf_yf_y^*σ=∑y​μy​fy​fy∗​. Set ℓxy=0\ell_{xy}=0ℓxy​=0 if either λx=0\lambda_x=0λx​=0 or μy=0\mu_y=0μy​=0, and otherwise set ℓxy=ln⁡(λx/μy)\ell_{xy}=\ln(\lambda_x/\mu_y)ℓxy​=ln(λx​/μy​). The definition assigns

∑x∈I∑y∈Iλx∣⟨fy,ex⟩∣2 ℓxy.\sum_{x\in I}\sum_{y\in I} \lambda_x|\langle f_y,e_x\rangle|^2\,\ell_{xy}.x∈I∑​y∈I∑​λx​∣⟨fy​,ex​⟩∣2ℓxy​.

Terms with μy=0\mu_y=0μy​=0 therefore contribute zero even when λx>0\lambda_x>0λx​>0. No support inclusion assumption is required, and an empty III cannot admit the supplied decompositions.

QAlgorithms.Papers.Independent.Advance50.P01.spectralLogRatio

For a finite index set III with decidable equality and complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, suppose supplied decompositions give orthonormal bases (ex)(e_x)(ex​), (fy)(f_y)(fy​) and nonnegative weights (λx)(\lambda_x)(λx​), (μy)(\mu_y)(μy​), each summing to 111, with ρ=∑xλxexex∗\rho=\sum_x\lambda_xe_xe_x^*ρ=∑x​λx​ex​ex∗​ and σ=∑yμyfyfy∗\sigma=\sum_y\mu_yf_yf_y^*σ=∑y​μy​fy​fy∗​. For every x,y∈Ix,y\in Ix,y∈I, the definition assigns

ℓxy={0,λx=0 or μy=0,ln⁡(λx/μy),otherwise.\ell_{xy}= \begin{cases} 0,&\lambda_x=0\ \text{or}\ \mu_y=0,\\ \ln(\lambda_x/\mu_y),&\text{otherwise}. \end{cases}ℓxy​={0,ln(λx​/μy​),​λx​=0 or μy​=0,otherwise.​

Thus a zero denominator weight produces the assigned value 000, including when λx>0\lambda_x>0λx​>0; no support inclusion hypothesis is imposed. An empty III cannot admit these decompositions.

QAlgorithms.Papers.Independent.Advance50.P01.spectralThirdMoment

For a finite index set III with decidable equality and complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, let supplied decompositions give orthonormal bases (ex)(e_x)(ex​), (fy)(f_y)(fy​) and nonnegative weights (λx)(\lambda_x)(λx​), (μy)(\mu_y)(μy​), each summing to 111, with ρ=∑xλxexex∗\rho=\sum_x\lambda_xe_xe_x^*ρ=∑x​λx​ex​ex∗​ and σ=∑yμyfyfy∗\sigma=\sum_y\mu_yf_yf_y^*σ=∑y​μy​fy​fy∗​. Define ℓxy=0\ell_{xy}=0ℓxy​=0 if λx=0\lambda_x=0λx​=0 or μy=0\mu_y=0μy​=0, and otherwise ℓxy=ln⁡(λx/μy)\ell_{xy}=\ln(\lambda_x/\mu_y)ℓxy​=ln(λx​/μy​). Writing

D=Re⁡tr⁡(f(ρ)−ρ g(σ)),f(t)=tln⁡t,g(t)=ln⁡t,D=\operatorname{Re}\operatorname{tr} \left(f(\rho)-\rho\,g(\sigma)\right), \qquad f(t)=t\ln t,\quad g(t)=\ln t,D=Retr(f(ρ)−ρg(σ)),f(t)=tlnt,g(t)=lnt,

where matrix functions use continuous functional calculus and the real logarithm is assigned ln⁡0=0\ln0=0ln0=0, the definition assigns

∑x∈I∑y∈Iλx∣⟨fy,ex⟩∣2 ∣ℓxy−D∣3.\sum_{x\in I}\sum_{y\in I} \lambda_x|\langle f_y,e_x\rangle|^2\,|\ell_{xy}-D|^3.x∈I∑​y∈I∑​λx​∣⟨fy​,ex​⟩∣2∣ℓxy​−D∣3.

The center is this matrix expression DDD; no hypothesis identifies it with the mean of ℓxy\ell_{xy}ℓxy​, and no support inclusion hypothesis is required. An empty III cannot admit the supplied decompositions.

QAlgorithms.Papers.Independent.Advance50.P01.spectralVariance

For a finite index set III with decidable equality and complex matrices ρ,σ\rho,\sigmaρ,σ indexed by III, let supplied spectral decompositions give orthonormal bases (ex)(e_x)(ex​), (fy)(f_y)(fy​) and nonnegative weights (λx)(\lambda_x)(λx​), (μy)(\mu_y)(μy​), each summing to 111, reconstructing ρ=∑xλxexex∗\rho=\sum_x\lambda_xe_xe_x^*ρ=∑x​λx​ex​ex∗​ and σ=∑yμyfyfy∗\sigma=\sum_y\mu_yf_yf_y^*σ=∑y​μy​fy​fy∗​. Define wxy=λx∣⟨fy,ex⟩∣2w_{xy}=\lambda_x|\langle f_y,e_x\rangle|^2wxy​=λx​∣⟨fy​,ex​⟩∣2, define ℓxy=0\ell_{xy}=0ℓxy​=0 when either weight λx,μy\lambda_x,\mu_yλx​,μy​ is zero and ℓxy=ln⁡(λx/μy)\ell_{xy}=\ln(\lambda_x/\mu_y)ℓxy​=ln(λx​/μy​) otherwise, and put m=∑x,ywxyℓxym=\sum_{x,y}w_{xy}\ell_{xy}m=∑x,y​wxy​ℓxy​. The definition assigns

∑x∈I∑y∈Iwxy(ℓxy−m)2.\sum_{x\in I}\sum_{y\in I}w_{xy}(\ell_{xy}-m)^2.x∈I∑​y∈I∑​wxy​(ℓxy​−m)2.

In particular, a pair with λx>0\lambda_x>0λx​>0 and μy=0\mu_y=0μy​=0 uses ℓxy=0\ell_{xy}=0ℓxy​=0 in this centered expression. No support inclusion hypothesis is imposed; an empty III cannot admit the decompositions.

QAlgorithms.Papers.Independent.Advance50.P01.typeII

For a finite index type III with decidable equality, an arbitrary complex matrix σ\sigmaσ indexed by III, an implicit natural number nnn, and a matrix AAA on configurations {0,…,n−1}→I\{0,\ldots,n-1\}\to I{0,…,n−1}→I such that AAA and 1−A\mathbf 1-A1−A are positive semidefinite, this defines

Re⁡tr⁡(σ(n)A),σx,y(n)=∏j=0n−1σxj,yj.\operatorname{Re}\operatorname{tr}(\sigma^{(n)}A), \qquad \sigma^{(n)}_{x,y}=\prod_{j=0}^{n-1}\sigma_{x_j,y_j}.Retr(σ(n)A),σx,y(n)​=j=0∏n−1​σxj​,yj​​.

No positivity or normalization of σ\sigmaσ is assumed. For n=0n=0n=0, the value is aaa for the scalar effect A=[a]A=[a]A=[a], independently of σ\sigmaσ.

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