Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Correlation Detection and an Operational Interpretation of the Renyi Mutual Information

Definition
QAlgorithms_Papers_Independent_Intake100_P47

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

prove2quantum

The objects the formalized statements of Correlation Detection and an Operational Interpretation of the Renyi Mutual Information (arXiv:1408.6894) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • RenyiOrder
  • logMatrix: PDF p.6: logarithm on support. The kernel value 0 is used only inside traces whose first argument is supported by the reference.
  • rawRenyi: PDF p.6, (2.8)--(2.9): the finite, positive, nonunit-order formula. The Boolean selects sandwiched (true) or Petz (false). The raw function is used only on that domain, including when taking endpoint limits.
  • completedRenyiDivergence: PDF pp.6--7: endpoint-completed divergence. The source defines orders 0 and infinity by the corresponding one-sided limits; EReal liminf gives those values, including infinity, without a nonconstructive chosen limit. The unit-order value is (2.15). Negative orders have the unused value infinity.
  • spectrumCount: PDF p.7: number of distinct eigenvalues, including the zero eigenspace.
  • groupedCopies: PDF p.12, (4.9): copies regrouped as A^n:B^n.
  • generalizedInformation: PDF p.8, (3.3)--(3.4): infimum over ALL normalized B states. References tau are positive operators and need not be states. EReal preserves negative information values for unnormalized tau.
  • marginalReferenceInformation: PDF p.9, (3.6): the marginal-reference mutual information.
  • optimizedConditionalEntropy: PDF p.9, (3.7)--(3.8): optimized conditional entropy, identity reference.
  • informationOne: PDF p.9, (3.9): the order-one information as the explicit marginal formula.
  • relativeLogVariance: PDF p.7, (2.16): information variance, used only under support inclusion.
  • generalizedInformationVariance: PDF p.8, (3.5): generalized marginalReferenceInformation-information variance.
  • universalFactor: PDF p.5, (2.4): exact dimension of the symmetric purification register.
  • universal: PDF p.5, (2.7): the source's SPECIFIC universal state, as the trace-weighted permutation sum. For positive d the denominator is nonzero also when n=0.
  • StatePermutationInvariant: PDF p.5: invariance under the actual tensor permutation representation.
  • universalReference: PDF p.10: reference tau^n tensor the specific universal B-state.
  • classicalNull: PDF p.10: the constructed classical, pinched null state.
  • rejectionError: PDF p.12, (4.3): rejection probability of a joint effect.
  • compositeAcceptanceError: PDF p.12, (4.4): worst-case error over EVERY B-state, including correlated states when B itself is B^n. The range is nonempty and bounded on states/effects.
  • alphaHat: PDF p.12, (4.5): finite-block constrained type-I optimum. For mu>=0, states and nonempty systems the zero test is feasible, and the value set lies in [0,1].
  • exponentialCompositeError: PDF pp.12--20: finite-block error at an exponential type-II constraint.
  • normalizedErrorExponent: PDF pp.13,15: the extended error exponent, with strictly positive n.
  • hoeffdingValue: PDF p.13, (5.1): extended supremum over all strictly subunit positive orders.
  • strongValue: PDF p.15, (6.1): extended supremum over all finite orders strictly above one.
  • thresholdTest: PDF p.16, (6.4): acceptance includes the zero eigenspace of L-exp(mu)K.
  • basisLaw: PDF p.16, (6.5): distribution in the supplied common orthonormal eigenbasis.
  • pureAC: PDF p.9: the AC marginal of a pure state on AB:C, in A:C order.
  • inverseRenyiOrder: PDF p.9: reciprocal order with 1/0=infinity, rather than real division by zero.
  • HalfConvexlike: PDF p.22, (A.2): a single midpoint-convexlike witness y3 works for EVERY x.
  • attainedValueInfimum: PDF p.28: the constructed minimum-value function. It is used only where an interior global minimizer exists, making the real infimum nonempty and bounded.
  • minimizer: PDF p.28: the unique interior argmin, constructed from f and Gamma. The off-domain fallback 0 is never used in the theorem.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P28
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P22
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P49
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P12

/-! Hayashi--Tomamichel, arXiv:1408.6894v5. Natural logarithms throughout.
All page numbers are PDF pages. Exact accepted support, spectral-power, pinching,
tensor-power, trace, regrouping, mixed-state and diagonalization definitions are
imported. Distinct local concepts use specific names rather than colliding with
unrelated accepted short names. Orders zero and infinity are endpoint limits.
Source defects and cited background deferrals are recorded in HARD.md.
Compilation and independent moderation are pending the batch handoff. -/

noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P47

open scoped BigOperators Matrix ComplexOrder ComplexConjugate Topology
open Filter QAlgorithms
open QAlgorithms.Papers.Independent.Information100.P22 (Op mixed)
open QAlgorithms.Papers.Independent.Information100.P60 (copies)
open QAlgorithms.Papers.Independent.Information100.P71 (supportPower)
open QAlgorithms.Papers.Independent.Dependency50.P28 (SupportLE pinch logNonnegativeExtended)
open QAlgorithms.Papers.Independent.Dependency50.P21 (relativeEntropy IsSupported)
open QAlgorithms.Papers.Independent.Bridge50.P49 (groupedProduct)
open QAlgorithms.Papers.Independent.Claimed50.P12 (DiagonalIn)

attribute [local instance] Classical.propDecidable Classical.decEq

abbrev RenyiOrder := WithTop ℝ

variable {A B C D I J : Type}
variable [Fintype A] [Fintype B] [Fintype C] [Fintype D] [Fintype I] [Fintype J]
variable [DecidableEq A] [DecidableEq B] [DecidableEq C] [DecidableEq D]
variable [DecidableEq I] [DecidableEq J]

/-- PDF p.6: logarithm on support. The kernel value 0 is used only inside
traces whose first argument is supported by the reference. -/
def logMatrix (X : Op I) : Op I := cfc Real.log X

/-- PDF p.6, (2.8)--(2.9): the finite, positive, nonunit-order formula.
The Boolean selects sandwiched (true) or Petz (false). The raw function is
used only on that domain, including when taking endpoint limits. -/
def rawRenyi (sandwiched : Bool) (a : ℝ) (rho sigma : Op I) : EReal :=
  if (1 < a ∧ ¬ SupportLE rho sigma) ∨
      (a < 1 ∧ ¬ 0 < (rho * sigma).trace.re) then ⊤
  else
    let q := if sandwiched then
      let S := supportPower sigma ((1-a)/(2*a))
      (supportPower (S * rho * S) a).trace.re
    else (supportPower rho a * supportPower sigma (1-a)).trace.re
    (((a-1)⁻¹ : ℝ) : EReal) * logNonnegativeExtended q

/-- PDF pp.6--7: endpoint-completed divergence. The source defines orders
0 and infinity by the corresponding one-sided limits; EReal liminf gives
those values, including infinity, without a nonconstructive chosen limit.
The unit-order value is (2.15). Negative orders have the unused value infinity. -/
def completedRenyiDivergence (sandwiched : Bool) (a : RenyiOrder) (rho sigma : Op I) : EReal :=
  if a = ⊤ then Filter.liminf (fun t : ℝ => rawRenyi sandwiched t rho sigma) atTop
  else
    let t := a.untopD 0
    if t < 0 then ⊤ else if t = 0 then
      Filter.liminf (fun s : ℝ => rawRenyi sandwiched s rho sigma) (𝓝[>] (0 : ℝ))
    else if t = 1 then relativeEntropy rho sigma
    else rawRenyi sandwiched t rho sigma

/-- PDF p.7: number of distinct eigenvalues, including the zero eigenspace. -/
def spectrumCount (sigma : Op I) : ℕ :=
  if h : sigma.IsHermitian then (Finset.univ.image h.eigenvalues).card else 0

/-- PDF p.12, (4.9): copies regrouped as A^n:B^n. -/
def groupedCopies (n : ℕ) (rho : Op (A × B)) : Op ((Fin n → A) × (Fin n → B)) :=
  fun p q => ∏ k, rho (p.1 k,p.2 k) (q.1 k,q.2 k)

/-- PDF p.8, (3.3)--(3.4): infimum over ALL normalized B states.
References tau are positive operators and need not be states. EReal preserves
negative information values for unnormalized tau. -/
def generalizedInformation (sandwiched : Bool) (a : RenyiOrder) (rho : Op (A × B)) (tau : Op A) : EReal :=
  ⨅ sigma : {X : Op B // IsDensityMatrix X},
    completedRenyiDivergence sandwiched a rho (Matrix.kronecker tau sigma.val)

/-- PDF p.9, (3.6): the marginal-reference mutual information. -/
def marginalReferenceInformation (sandwiched : Bool) (a : RenyiOrder) (rho : Op (A × B)) : EReal :=
  generalizedInformation sandwiched a rho (traceRight rho)

/-- PDF p.9, (3.7)--(3.8): optimized conditional entropy, identity reference. -/
def optimizedConditionalEntropy (sandwiched : Bool) (a : RenyiOrder) (rho : Op (A × B)) : EReal :=
  -generalizedInformation sandwiched a rho 1

/-- PDF p.9, (3.9): the order-one information as the explicit marginal formula. -/
def informationOne (rho : Op (A × B)) (tau : Op A) : EReal :=
  relativeEntropy rho (Matrix.kronecker tau (traceLeft rho))

/-- PDF p.7, (2.16): information variance, used only under support inclusion. -/
def relativeLogVariance (rho sigma : Op I) : ℝ :=
  let L := logMatrix rho - logMatrix sigma - ((relativeEntropy rho sigma).toReal : ℂ) • 1
  (rho * (L * L)).trace.re

/-- PDF p.8, (3.5): generalized marginalReferenceInformation-information variance. -/
def generalizedInformationVariance (rho : Op (A × B)) (tau : Op A) : ℝ :=
  relativeLogVariance rho (Matrix.kronecker tau (traceLeft rho))

/-- PDF p.5, (2.4): exact dimension of the symmetric purification register. -/
def universalFactor (n d : ℕ) : ℕ := Nat.choose (n + d*d - 1) n

/-- PDF p.5, (2.7): the source's SPECIFIC universal state, as the trace-weighted
permutation sum. For positive d the denominator is nonzero also when n=0. -/
def universal (n d : ℕ) : Op (Fin n → Fin d) :=
  ((universalFactor n d * n.factorial : ℕ) : ℂ)⁻¹ •
    ∑ pi : Equiv.Perm (Fin n),
      (Schur.tensorPermutation d n pi).trace • Schur.tensorPermutation d n pi

/-- PDF p.5: invariance under the actual tensor permutation representation. -/
def StatePermutationInvariant (n d : ℕ) (X : Op (Fin n → Fin d)) : Prop :=
  ∀ pi : Equiv.Perm (Fin n),
    Schur.tensorPermutation d n pi * X * (Schur.tensorPermutation d n pi)ᴴ = X

/-- PDF p.10: reference tau^n tensor the specific universal B-state. -/
def universalReference {d : ℕ} (n : ℕ) (tau : Op A) : Op ((Fin n → A) × (Fin n → Fin d)) :=
  Matrix.kronecker (copies n tau) (universal n d)

/-- PDF p.10: the constructed classical, pinched null state. -/
def classicalNull {d : ℕ} (n : ℕ) (rho : Op (A × Fin d)) (tau : Op A) :=
  pinch (universalReference n tau) (groupedCopies n rho)

/-- PDF p.12, (4.3): rejection probability of a joint effect. -/
def rejectionError (rho Q : Op I) : ℝ := ((1-Q) * rho).trace.re

/-- PDF p.12, (4.4): worst-case error over EVERY B-state, including correlated
states when B itself is B^n. The range is nonempty and bounded on states/effects. -/
def compositeAcceptanceError (tau : Op A) (Q : Op (A × B)) : ℝ :=
  sSup {p : ℝ | ∃ sigma : Op B, IsDensityMatrix sigma ∧
    p = (Q * Matrix.kronecker tau sigma).trace.re}

/-- PDF p.12, (4.5): finite-block constrained type-I optimum. For mu>=0, states
and nonempty systems the zero test is feasible, and the value set lies in [0,1]. -/
def alphaHat (mu : ℝ) (rho : Op (A × B)) (tau : Op A) : ℝ :=
  sInf {p : ℝ | ∃ Q : Op (A × B), IsEffect Q ∧ compositeAcceptanceError tau Q ≤ mu ∧ p = rejectionError rho Q}

/-- PDF pp.12--20: finite-block error at an exponential type-II constraint. -/
def exponentialCompositeError (rho : Op (A × B)) (tau : Op A) (n : ℕ) (R : ℝ) : ℝ :=
  alphaHat (Real.exp (-(n : ℝ)*R)) (groupedCopies n rho) (copies n tau)

/-- PDF pp.13,15: the extended error exponent, with strictly positive n. -/
def normalizedErrorExponent (n : ℕ) (p : ℝ) : EReal :=
  (((n : ℝ)⁻¹ : ℝ) : EReal) * (-logNonnegativeExtended p)

/-- PDF p.13, (5.1): extended supremum over all strictly subunit positive orders. -/
def hoeffdingValue (rho : Op (A × B)) (tau : Op A) (R : ℝ) : EReal :=
  ⨆ s : {s : ℝ // 0 < s ∧ s < 1},
    (((1-s.val)/s.val : ℝ) : EReal) * (generalizedInformation false (s.val : RenyiOrder) rho tau - (R : EReal))

/-- PDF p.15, (6.1): extended supremum over all finite orders strictly above one. -/
def strongValue (rho : Op (A × B)) (tau : Op A) (R : ℝ) : EReal :=
  ⨆ s : {s : ℝ // 1 < s},
    (((s.val-1)/s.val : ℝ) : EReal) * ((R : EReal) - generalizedInformation true (s.val : RenyiOrder) rho tau)

/-- PDF p.16, (6.4): acceptance includes the zero eigenspace of L-exp(mu)K. -/
def thresholdTest (L K : Op I) (mu : ℝ) : Op I :=
  1 - cfc (fun x : ℝ => if 0 < x then 1 else 0) ((Real.exp mu : ℂ) • K - L)

/-- PDF p.16, (6.5): distribution in the supplied common orthonormal eigenbasis. -/
def basisLaw (X : Op I) (U : Matrix.unitaryGroup I ℂ) (i : I) : ℝ :=
  (((U : Op I)ᴴ * X * (U : Op I)) i i).re

/-- PDF p.9: the AC marginal of a pure state on AB:C, in A:C order. -/
def pureAC (psi : EuclideanSpace ℂ ((A × B) × C)) : Op (A × C) :=
  fun p q => ∑ b, pureDensity psi ((p.1,b),p.2) ((q.1,b),q.2)

/-- PDF p.9: reciprocal order with 1/0=infinity, rather than real division by zero. -/
def inverseRenyiOrder (a : ℝ) : RenyiOrder :=
  if a = 0 then ⊤ else (a⁻¹ : ℝ)

example : logNonnegativeExtended 0 = ⊥ := by simp [logNonnegativeExtended]

example (rho sigma : Op I) (h : ¬ SupportLE rho sigma) : relativeEntropy rho sigma = ⊤ := by
  simp [relativeEntropy, show ¬ IsSupported rho sigma from h]

example (X : Op I) (x y : Fin 0 → I) : copies 0 X x y = 1 := by simp [copies]

example (d : ℕ) : universalFactor 0 d = 1 := by simp [universalFactor]

example : inverseRenyiOrder 0 = ⊤ := by simp [inverseRenyiOrder]

example (rho : Op (A × B)) : optimizedConditionalEntropy true 1 rho = -generalizedInformation true 1 rho 1 := rfl

/-- PDF p.22, (A.2): a single midpoint-convexlike witness y3 works for EVERY x. -/
def HalfConvexlike {Y : Type} (X : Set ℝ) (f : ℝ → Y → ℝ) : Prop :=
  ∀ y1 y2, ∃ y3, ∀ x ∈ X, f x y3 ≤ (f x y1 + f x y2)/2

/-- PDF p.28: the constructed minimum-value function. It is used only where
an interior global minimizer exists, making the real infimum nonempty and bounded. -/
def attainedValueInfimum {X Y : Type} (f : X × Y → ℝ) (Gamma : Set Y) (x : X) : ℝ :=
  sInf ((fun y => f (x,y)) '' Gamma)

/-- PDF p.28: the unique interior argmin, constructed from f and Gamma.
The off-domain fallback 0 is never used in the theorem. -/
def minimizer {X Y : Type} [Zero Y] (f : X × Y → ℝ) (Gamma : Set Y) (x : X) : Y :=
  if h : ∃ y ∈ Gamma, ∀ z ∈ Gamma, f (x,y) ≤ f (x,z) then h.choose else 0

example {X Y : Type} (f : X × Y → ℝ) (x : X) (y : Y) :
    attainedValueInfimum f {y} x = f (x,y) := by simp [attainedValueInfimum]

end QAlgorithms.Papers.Independent.Intake100.P47
Source
Correlation Detection and an Operational Interpretation of the Renyi Mutual Information, arXiv:1408.6894v5, https://arxiv.org/abs/1408.6894v5
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P47.HalfConvexlike

For an arbitrary type YYY, a set X⊆RX\subseteq\mathbb RX⊆R, and a function f:R×Y→Rf:\mathbb R\times Y\to\mathbb Rf:R×Y→R, this property means that for every y1,y2∈Yy_1,y_2\in Yy1​,y2​∈Y there exists y3∈Yy_3\in Yy3​∈Y such that, simultaneously for every x∈Xx\in Xx∈X,

f(x,y3)≤f(x,y1)+f(x,y2)2.f(x,y_3)\le\frac{f(x,y_1)+f(x,y_2)}2.f(x,y3​)≤2f(x,y1​)+f(x,y2​)​.

The choice of y3y_3y3​ may depend on y1,y2y_1,y_2y1​,y2​, but must work for all x∈Xx\in Xx∈X. No topology or vector-space structure on YYY is required. If XXX is empty, the inequalities impose no restriction; if YYY is empty, the universally quantified condition is vacuous.

QAlgorithms.Papers.Independent.Intake100.P47.RenyiOrder

The type of orders is R∪{+∞}\mathbb R\cup\{+\infty\}R∪{+∞}: it contains every real number, including negative numbers, zero, and one, together with a single additional greatest element +∞+\infty+∞; it does not contain −∞-\infty−∞.

QAlgorithms.Papers.Independent.Intake100.P47.StatePermutationInvariant

For natural numbers n,dn,dn,d and any complex matrix XXX indexed by functions from the nnn positions to the ddd labels, this predicate means that TπXTπ†=XT_\pi X T_\pi^\dagger=XTπ​XTπ†​=X for every permutation π\piπ of the positions, where (Tπ)y,x=1(T_\pi)_{y,x}=1(Tπ​)y,x​=1 when y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1 and is zero otherwise, and †\dagger† denotes conjugate transpose. No positivity or trace condition is imposed on XXX. At n=0n=0n=0, this condition holds for every matrix on the singleton coordinate set; if d=0<nd=0<nd=0<n, it holds for the unique matrix on the empty coordinate set.

QAlgorithms.Papers.Independent.Intake100.P47.alphaHat

For finite types A,BA,BA,B with decidable equality, a real number μ\muμ, and arbitrary complex matrices ρ\rhoρ on A×BA\times BA×B and τ\tauτ on AAA, this defines

inf⁡{Re⁡Tr⁡((1−Q)ρ):Q⪰0, 1−Q⪰0, sup⁡σ⪰0Tr⁡σ=1Re⁡Tr⁡(Q(τ⊗σ))≤μ}.\inf\left\{ \operatorname{Re}\operatorname{Tr}((\mathbf1-Q)\rho): Q\succeq0,\ \mathbf1-Q\succeq0,\ \sup_{\substack{\sigma\succeq0\\\operatorname{Tr}\sigma=1}} \operatorname{Re}\operatorname{Tr}\bigl(Q(\tau\otimes\sigma)\bigr)\le\mu \right\}.inf⎩⎨⎧​ReTr((1−Q)ρ):Q⪰0, 1−Q⪰0, σ⪰0Trσ=1​sup​ReTr(Q(τ⊗σ))≤μ⎭⎬⎫​.

Both extrema are real extrema, and the inner supremum ranges over matrices on BBB. Neither ρ\rhoρ nor τ\tauτ is required to be positive or normalized, and μ\muμ may be any real number. If the outer feasible set is empty, its real infimum is zero; if BBB is empty, the inner supremum is zero.

QAlgorithms.Papers.Independent.Intake100.P47.attainedValueInfimum

For arbitrary types X,YX,YX,Y, a function f:X×Y→Rf:X\times Y\to\mathbb Rf:X×Y→R, a set Γ⊆Y\Gamma\subseteq YΓ⊆Y, and x∈Xx\in Xx∈X, this definition returns the real infimum

inf⁡{f(x,y):y∈Γ}.\inf\{f(x,y):y\in\Gamma\}.inf{f(x,y):y∈Γ}.

It imposes no assumption that Γ\GammaΓ is nonempty, that these values are bounded below, or that a minimum is attained. The infimum is the total real-valued infimum operation, which returns 000 for an empty set of values or one unbounded below.

QAlgorithms.Papers.Independent.Intake100.P47.basisLaw

For a finite index type III with decidable equality, any complex matrix XXX indexed by III, any unitary matrix UUU on that index type, and any i∈Ii\in Ii∈I, this defines the real number

b(X,U,i)=Re⁡(U†XU)ii.b(X,U,i)=\operatorname{Re}(U^\dagger XU)_{ii}.b(X,U,i)=Re(U†XU)ii​.

There is no assumption that XXX is Hermitian, positive semidefinite, or of trace one, so the definition itself asserts neither nonnegativity nor normalization of these numbers.

QAlgorithms.Papers.Independent.Intake100.P47.classicalNull

For a finite type AAA with decidable equality, natural numbers n,dn,dn,d, and arbitrary complex matrices ρ\rhoρ on A×{0,…,d−1}A\times\{0,\ldots,d-1\}A×{0,…,d−1} and τ\tauτ on AAA, set G(a,x),(b,y)=∏i=0n−1ρ(ai,xi),(bi,yi)G_{(a,x),(b,y)}=\prod_{i=0}^{n-1}\rho_{(a_i,x_i),(b_i,y_i)}G(a,x),(b,y)​=∏i=0n−1​ρ(ai​,xi​),(bi​,yi​)​. Let H=τ⊗n⊗Un,dH=\tau^{\otimes n}\otimes U_{n,d}H=τ⊗n⊗Un,d​, where (τ⊗n)a,b=∏iτai,bi(\tau^{\otimes n})_{a,b}=\prod_i\tau_{a_i,b_i}(τ⊗n)a,b​=∏i​τai​,bi​​ and

Un,d=((n+d2−1n) n!)−1∑πTr⁡(Tπ)Tπ,(Tπ)y,x=1{y=x∘π−1}.U_{n,d}= \left(\binom{n+d^2-1}{n}\,n!\right)^{-1} \sum_\pi\operatorname{Tr}(T_\pi)T_\pi, \qquad (T_\pi)_{y,x}=\mathbf1_{\{y=x\circ\pi^{-1}\}}.Un,d​=((nn+d2−1​)n!)−1π∑​Tr(Tπ​)Tπ​,(Tπ​)y,x​=1{y=x∘π−1}​.

This declaration returns 000 if HHH is not Hermitian; otherwise it returns ∑λPλGPλ\sum_{\lambda}P_\lambda G P_\lambda∑λ​Pλ​GPλ​, where the sum runs over the distinct eigenvalues of HHH and PλP_\lambdaPλ​ is obtained by applying the function t↦1{t=λ}t\mapsto\mathbf1_{\{t=\lambda\}}t↦1{t=λ}​ to HHH through functional calculus. No positivity or normalization is assumed of ρ\rhoρ or τ\tauτ. Natural subtraction in the binomial coefficient is truncated at zero, complex inversion sends zero to zero, and at n=0n=0n=0 the result is the 1×11\times11×1 identity.

QAlgorithms.Papers.Independent.Intake100.P47.completedRenyiDivergence

For any finite index type III with decidable equality, Boolean flag bbb, order a∈R∪{+∞}a\in\mathbb R\cup\{+\infty\}a∈R∪{+∞}, and arbitrary complex I×II\times II×I matrices ρ,σ\rho,\sigmaρ,σ, this defines

Db(a;ρ,σ)={lim inf⁡t→+∞Rb(t;ρ,σ),a=+∞,+∞,a∈R, a<0,lim inf⁡t↓0Rb(t;ρ,σ),a=0,E(ρ,σ),a=1,Rb(a;ρ,σ),a∈R, a>0, a≠1.D_b(a;\rho,\sigma)= \begin{cases} \displaystyle\liminf_{t\to+\infty}R_b(t;\rho,\sigma),&a=+\infty,\\ +\infty,&a\in\mathbb R,\ a<0,\\ \displaystyle\liminf_{t\downarrow0}R_b(t;\rho,\sigma),&a=0,\\ E(\rho,\sigma),&a=1,\\ R_b(a;\rho,\sigma),&a\in\mathbb R,\ a>0,\ a\ne1. \end{cases}Db​(a;ρ,σ)=⎩⎨⎧​t→+∞liminf​Rb​(t;ρ,σ),+∞,t↓0liminf​Rb​(t;ρ,σ),E(ρ,σ),Rb​(a;ρ,σ),​a=+∞,a∈R, a<0,a=0,a=1,a∈R, a>0, a=1.​

Here Pt(X)P_t(X)Pt​(X) is real functional calculus with scalar value 000 at zero and xtx^txt otherwise; ℓ(q)\ell(q)ℓ(q) is ln⁡q\ln qlnq for q>0q>0q>0 and −∞-\infty−∞ otherwise; and Rb(t;ρ,σ)R_b(t;\rho,\sigma)Rb​(t;ρ,σ) is +∞+\infty+∞ if either t>1t>1t>1 and ker⁡σ⊈ker⁡ρ\ker\sigma\nsubseteq\ker\rhokerσ⊈kerρ, or t<1t<1t<1 and Re⁡Tr⁡(ρσ)≤0\operatorname{Re}\operatorname{Tr}(\rho\sigma)\le0ReTr(ρσ)≤0, and otherwise equals (t−1)−1ℓ(q)(t-1)^{-1}\ell(q)(t−1)−1ℓ(q), with q=Re⁡Tr⁡(Pt(SρS))q=\operatorname{Re}\operatorname{Tr}(P_t(S\rho S))q=ReTr(Pt​(SρS)), S=P(1−t)/(2t)(σ)S=P_{(1-t)/(2t)}(\sigma)S=P(1−t)/(2t)​(σ), when bbb is true, and q=Re⁡Tr⁡(Pt(ρ)P1−t(σ))q=\operatorname{Re}\operatorname{Tr}(P_t(\rho)P_{1-t}(\sigma))q=ReTr(Pt​(ρ)P1−t​(σ)) when bbb is false. The order-one value is

E(ρ,σ)={Re⁡Tr⁡ ⁣(ρ(log⁡ρ−log⁡σ))Re⁡Tr⁡ρ,ker⁡σ⊆ker⁡ρ,+∞,otherwise,E(\rho,\sigma)= \begin{cases} \displaystyle \frac{\operatorname{Re}\operatorname{Tr}\!\left(\rho(\log\rho-\log\sigma)\right)} {\operatorname{Re}\operatorname{Tr}\rho}, &\ker\sigma\subseteq\ker\rho,\\ +\infty,&\text{otherwise}, \end{cases}E(ρ,σ)=⎩⎨⎧​ReTrρReTr(ρ(logρ−logσ))​,+∞,​kerσ⊆kerρ,otherwise,​

where log⁡X=cfc⁡(ln⁡,X)\log X=\operatorname{cfc}(\ln,X)logX=cfc(ln,X). The endpoint definitions use lower limits, without assuming ordinary limits exist. No positivity or normalization is required; empty index types and zero denominators are included, real division by zero is zero, and real functional calculus returns zero on non-Hermitian matrices.

QAlgorithms.Papers.Independent.Intake100.P47.compositeAcceptanceError

For finite types A,BA,BA,B, an arbitrary complex matrix τ\tauτ on AAA, and an arbitrary complex matrix QQQ on A×BA\times BA×B, this defines

sup⁡{Re⁡Tr⁡(Q(τ⊗σ)):σ is positive semidefinite and Tr⁡(σ)=1}.\sup\left\{ \operatorname{Re}\operatorname{Tr}\bigl(Q(\tau\otimes\sigma)\bigr): \sigma\text{ is positive semidefinite and }\operatorname{Tr}(\sigma)=1 \right\}.sup{ReTr(Q(τ⊗σ)):σ is positive semidefinite and Tr(σ)=1}.

The supremum is taken in R\mathbb RR, and no positivity or normalization is required of τ\tauτ, nor any effect condition of QQQ. If BBB is empty, there is no such σ\sigmaσ, and the real supremum of the empty set used here is zero.

QAlgorithms.Papers.Independent.Intake100.P47.exponentialCompositeError

For finite types A,BA,BA,B with decidable equality, arbitrary complex matrices ρ\rhoρ on A×BA\times BA×B and τ\tauτ on AAA, a natural number nnn, and a real number RRR, define matrices GnG_nGn​ and TnT_nTn​ by (Gn)(a,b),(a′,b′)=∏i=0n−1ρ(ai,bi),(ai′,bi′)(G_n)_{(a,b),(a',b')}=\prod_{i=0}^{n-1}\rho_{(a_i,b_i),(a'_i,b'_i)}(Gn​)(a,b),(a′,b′)​=∏i=0n−1​ρ(ai​,bi​),(ai′​,bi′​)​ and (Tn)a,a′=∏i=0n−1τai,ai′(T_n)_{a,a'}=\prod_{i=0}^{n-1}\tau_{a_i,a'_i}(Tn​)a,a′​=∏i=0n−1​τai​,ai′​​. This declaration is the real infimum of Re⁡Tr⁡((1−Q)Gn)\operatorname{Re}\operatorname{Tr}((\mathbf1-Q)G_n)ReTr((1−Q)Gn​) over matrices QQQ on An×BnA^n\times B^nAn×Bn satisfying Q⪰0Q\succeq0Q⪰0, 1−Q⪰0\mathbf1-Q\succeq01−Q⪰0, and

sup⁡σ on Bnσ⪰0, Tr⁡σ=1Re⁡Tr⁡(Q(Tn⊗σ))≤e−nR.\sup_{\substack{\sigma\text{ on }B^n\\\sigma\succeq0,\ \operatorname{Tr}\sigma=1}} \operatorname{Re}\operatorname{Tr}\bigl(Q(T_n\otimes\sigma)\bigr) \le e^{-nR}.σ on Bnσ⪰0, Trσ=1​sup​ReTr(Q(Tn​⊗σ))≤e−nR.

There are no positivity or normalization assumptions on ρ,τ\rho,\tauρ,τ, and no restriction on RRR. An empty feasible set has real infimum zero. The definition includes n=0n=0n=0, when the coordinate sets are singletons, both empty products equal 111, and the bound is 111.

QAlgorithms.Papers.Independent.Intake100.P47.generalizedInformation

For finite index types A,BA,BA,B with decidable equality, a Boolean flag bbb, an order a∈R∪{+∞}a\in\mathbb R\cup\{+\infty\}a∈R∪{+∞}, and arbitrary complex matrices ρ\rhoρ on A×BA\times BA×B and τ\tauτ on AAA, this defines

inf⁡σ on Bσ⪰0, Tr⁡σ=1Db(a;ρ,τ⊗σ).\inf_{\substack{\sigma\text{ on }B\\ \sigma\succeq0,\ \operatorname{Tr}\sigma=1}} D_b(a;\rho,\tau\otimes\sigma).σ on Bσ⪰0, Trσ=1​inf​Db​(a;ρ,τ⊗σ).

For completeness, Db(a;X,Y)D_b(a;X,Y)Db​(a;X,Y) is defined as follows. Write Pt(Z)=cfc⁡(x↦0 if x=0, else xt,Z)P_t(Z)=\operatorname{cfc}(x\mapsto 0\text{ if }x=0,\text{ else }x^t,Z)Pt​(Z)=cfc(x↦0 if x=0, else xt,Z) and ℓ(q)=ln⁡q\ell(q)=\ln qℓ(q)=lnq for q>0q>0q>0, −∞-\infty−∞ otherwise. Set Rb(t;X,Y)=+∞R_b(t;X,Y)=+\inftyRb​(t;X,Y)=+∞ if t>1t>1t>1 and ker⁡Y⊈ker⁡X\ker Y\nsubseteq\ker XkerY⊈kerX, or if t<1t<1t<1 and Re⁡Tr⁡(XY)≤0\operatorname{Re}\operatorname{Tr}(XY)\le0ReTr(XY)≤0; otherwise set it to (t−1)−1ℓ(q)(t-1)^{-1}\ell(q)(t−1)−1ℓ(q), where q=Re⁡Tr⁡(Pt(SXS))q=\operatorname{Re}\operatorname{Tr}(P_t(SXS))q=ReTr(Pt​(SXS)), S=P(1−t)/(2t)(Y)S=P_{(1-t)/(2t)}(Y)S=P(1−t)/(2t)​(Y), for true bbb, and q=Re⁡Tr⁡(Pt(X)P1−t(Y))q=\operatorname{Re}\operatorname{Tr}(P_t(X)P_{1-t}(Y))q=ReTr(Pt​(X)P1−t​(Y)) for false bbb. Then DbD_bDb​ is the lower limit of Rb(t)R_b(t)Rb​(t) as t→+∞t\to+\inftyt→+∞ at order +∞+\infty+∞, is +∞+\infty+∞ at negative orders, is the lower limit as t↓0t\downarrow0t↓0 at order zero, and equals Rb(a)R_b(a)Rb​(a) at positive orders other than one; at order one it is

{Re⁡Tr⁡ ⁣(X(log⁡X−log⁡Y))/Re⁡Tr⁡X,ker⁡Y⊆ker⁡X,+∞,otherwise,\begin{cases} \operatorname{Re}\operatorname{Tr}\!\left(X(\log X-\log Y)\right)/ \operatorname{Re}\operatorname{Tr}X,&\ker Y\subseteq\ker X,\\ +\infty,&\text{otherwise}, \end{cases}{ReTr(X(logX−logY))/ReTrX,+∞,​kerY⊆kerX,otherwise,​

with log⁡Z=cfc⁡(ln⁡,Z)\log Z=\operatorname{cfc}(\ln,Z)logZ=cfc(ln,Z). Neither ρ\rhoρ nor τ\tauτ is required to be positive or normalized. The infimum need not be attained; if BBB is empty, its feasible set is empty and its value is +∞+\infty+∞. Real division by zero is zero, and real functional calculus returns zero on non-Hermitian matrices.

QAlgorithms.Papers.Independent.Intake100.P47.generalizedInformationVariance

For finite index types A,BA,BA,B with decidable equality, an arbitrary complex matrix ρ\rhoρ on A×BA\times BA×B, and an arbitrary complex matrix τ\tauτ on AAA, let ρB\rho_BρB​ have entries (ρB)uv=∑i∈Aρ(i,u),(i,v)(\rho_B)_{uv}=\sum_{i\in A}\rho_{(i,u),(i,v)}(ρB​)uv​=∑i∈A​ρ(i,u),(i,v)​, put Y=τ⊗ρBY=\tau\otimes\rho_BY=τ⊗ρB​, and write log⁡X=cfc⁡(ln⁡,X)\log X=\operatorname{cfc}(\ln,X)logX=cfc(ln,X). Define

E={Re⁡Tr⁡ ⁣(ρ(log⁡ρ−log⁡Y))/Re⁡Tr⁡ρ,ker⁡Y⊆ker⁡ρ,+∞,otherwise,L=log⁡ρ−log⁡Y−ER 1A×B,E= \begin{cases} \operatorname{Re}\operatorname{Tr}\!\left(\rho(\log\rho-\log Y)\right)/ \operatorname{Re}\operatorname{Tr}\rho,&\ker Y\subseteq\ker\rho,\\ +\infty,&\text{otherwise}, \end{cases} \qquad L=\log\rho-\log Y-E_{\mathbb R}\,1_{A\times B},E={ReTr(ρ(logρ−logY))/ReTrρ,+∞,​kerY⊆kerρ,otherwise,​L=logρ−logY−ER​1A×B​,

where ERE_{\mathbb R}ER​ is the real conversion of EEE, sending either infinity to zero. The declared real value is Re⁡Tr⁡(ρLL)\operatorname{Re}\operatorname{Tr}(\rho L L)ReTr(ρLL). No positivity, normalization, support-inclusion, or nonzero-trace hypothesis is imposed on ρ\rhoρ or τ\tauτ. Empty index types are included, real division by zero is zero, the total real logarithm has ln⁡0=0\ln0=0ln0=0, and real functional calculus returns zero on non-Hermitian matrices.

QAlgorithms.Papers.Independent.Intake100.P47.groupedCopies

For arbitrary index types A,BA,BA,B, every natural number nnn, and every complex matrix ρ\rhoρ indexed by (A×B)×(A×B)(A\times B)\times(A\times B)(A×B)×(A×B), this defines a complex matrix on (An×Bn)×(An×Bn)(A^n\times B^n)\times(A^n\times B^n)(An×Bn)×(An×Bn) by

ρ[n]((x,u),(y,v))=∏k=0n−1ρ((xk,uk),(yk,vk)).\rho^{[n]}\bigl((x,u),(y,v)\bigr) =\prod_{k=0}^{n-1}\rho\bigl((x_k,u_k),(y_k,v_k)\bigr).ρ[n]((x,u),(y,v))=k=0∏n−1​ρ((xk​,uk​),(yk​,vk​)).

Here x,y:{0,…,n−1}→Ax,y:\{0,\ldots,n-1\}\to Ax,y:{0,…,n−1}→A and u,v:{0,…,n−1}→Bu,v:\{0,\ldots,n-1\}\to Bu,v:{0,…,n−1}→B. No positivity, normalization, finiteness, or decidable-equality assumption on AAA or BBB is needed. For n=0n=0n=0, the empty product is 111, so the resulting matrix has its sole entry equal to 111.

QAlgorithms.Papers.Independent.Intake100.P47.hoeffdingValue

For finite types A,BA,BA,B with decidable equality, arbitrary complex matrices ρ\rhoρ on A×BA\times BA×B and τ\tauτ on AAA, and any real RRR, this defines

sup⁡0<s<11−ss(inf⁡σ on Bσ⪰0, Tr⁡σ=1Ds(ρ,τ⊗σ)−R),\sup_{0<s<1}\frac{1-s}{s} \left( \inf_{\substack{\sigma\text{ on }B\\\sigma\succeq0,\ \operatorname{Tr}\sigma=1}} D_s(\rho,\tau\otimes\sigma)-R \right),0<s<1sup​s1−s​​σ on Bσ⪰0, Trσ=1​inf​Ds​(ρ,τ⊗σ)−R​,

with extrema and arithmetic in the extended reals. For a matrix YYY, the quantity used here is Ds(ρ,Y)=+∞D_s(\rho,Y)=+\inftyDs​(ρ,Y)=+∞ if Re⁡Tr⁡(ρY)≤0\operatorname{Re}\operatorname{Tr}(\rho Y)\le0ReTr(ρY)≤0; otherwise it is (s−1)−1L ⁣(Re⁡Tr⁡(ρ[s]Y[1−s]))(s-1)^{-1}L\!\left(\operatorname{Re}\operatorname{Tr}(\rho^{[s]}Y^{[1-s]})\right)(s−1)−1L(ReTr(ρ[s]Y[1−s])), where L(q)=ln⁡qL(q)=\ln qL(q)=lnq for q>0q>0q>0 and L(q)=−∞L(q)=-\inftyL(q)=−∞ otherwise, and X[t]X^{[t]}X[t] means functional calculus with the scalar function equal to 000 at x=0x=0x=0 and to xtx^txt elsewhere. No positivity, trace, or support assumptions are imposed on ρ,τ\rho,\tauρ,τ; the order endpoints 0,10,10,1 are excluded. If BBB is empty, the inner infimum is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Intake100.P47.informationOne

For finite index types A,BA,BA,B with decidable equality, any complex matrix ρ\rhoρ on A×BA\times BA×B, and any complex matrix τ\tauτ on AAA, let ρB\rho_BρB​ have entries (ρB)uv=∑i∈Aρ(i,u),(i,v)(\rho_B)_{uv}=\sum_{i\in A}\rho_{(i,u),(i,v)}(ρB​)uv​=∑i∈A​ρ(i,u),(i,v)​, and put Y=τ⊗ρBY=\tau\otimes\rho_BY=τ⊗ρB​. This defines

{Re⁡Tr⁡ ⁣(ρ(log⁡ρ−log⁡Y))Re⁡Tr⁡ρ,ker⁡Y⊆ker⁡ρ,+∞,otherwise,\begin{cases} \displaystyle \frac{\operatorname{Re}\operatorname{Tr}\!\left(\rho(\log\rho-\log Y)\right)} {\operatorname{Re}\operatorname{Tr}\rho}, &\ker Y\subseteq\ker\rho,\\ +\infty,&\text{otherwise}, \end{cases}⎩⎨⎧​ReTrρReTr(ρ(logρ−logY))​,+∞,​kerY⊆kerρ,otherwise,​

as an extended-real number, where log⁡X=cfc⁡(ln⁡,X)\log X=\operatorname{cfc}(\ln,X)logX=cfc(ln,X) and the kernels are those of matrix multiplication. Neither ρ\rhoρ nor τ\tauτ is assumed positive, normalized, or nonzero. Empty index types are allowed, real division by zero is zero, the total real logarithm has ln⁡0=0\ln0=0ln0=0, and real functional calculus returns zero on non-Hermitian matrices.

QAlgorithms.Papers.Independent.Intake100.P47.inverseRenyiOrder

For every real number aaa, this defines an element of R∪{+∞}\mathbb R\cup\{+\infty\}R∪{+∞} by

a♯={+∞,a=0,1/a,a≠0.a^\sharp= \begin{cases} +\infty,&a=0,\\ 1/a,&a\ne0. \end{cases}a♯={+∞,1/a,​a=0,a=0.​

Negative values of aaa are included and yield their ordinary negative reciprocals.

QAlgorithms.Papers.Independent.Intake100.P47.logMatrix

For any finite index type III with decidable equality and any complex matrix XXX indexed by I×II\times II×I, this defines log⁡X\log XlogX by applying the real natural logarithm through the real continuous functional calculus:

log⁡X=cfc⁡(ln⁡,X).\log X=\operatorname{cfc}(\ln,X).logX=cfc(ln,X).

There is no positivity, invertibility, Hermiticity, or normalization hypothesis on XXX. For Hermitian XXX, this applies Lean’s total real logarithm to its eigenvalues, with ln⁡0=0\ln 0=0ln0=0; for non-Hermitian XXX, this real functional calculus returns the zero matrix. The index type may be empty.

QAlgorithms.Papers.Independent.Intake100.P47.marginalReferenceInformation

For finite index types A,BA,BA,B with decidable equality, a Boolean flag bbb, an order a∈R∪{+∞}a\in\mathbb R\cup\{+\infty\}a∈R∪{+∞}, and an arbitrary complex matrix ρ\rhoρ on A×BA\times BA×B, let ρA\rho_AρA​ be the matrix with entries (ρA)ij=∑u∈Bρ(i,u),(j,u)(\rho_A)_{ij}=\sum_{u\in B}\rho_{(i,u),(j,u)}(ρA​)ij​=∑u∈B​ρ(i,u),(j,u)​. This defines

inf⁡σ on Bσ⪰0, Tr⁡σ=1Db(a;ρ,ρA⊗σ).\inf_{\substack{\sigma\text{ on }B\\ \sigma\succeq0,\ \operatorname{Tr}\sigma=1}} D_b(a;\rho,\rho_A\otimes\sigma).σ on Bσ⪰0, Trσ=1​inf​Db​(a;ρ,ρA​⊗σ).

Here, for arbitrary X,YX,YX,Y, let Pt(Z)P_t(Z)Pt​(Z) be real functional calculus with scalar value zero at zero and xtx^txt elsewhere, and let ℓ(q)=ln⁡q\ell(q)=\ln qℓ(q)=lnq for q>0q>0q>0, −∞-\infty−∞ otherwise. Define Rb(t;X,Y)R_b(t;X,Y)Rb​(t;X,Y) to be +∞+\infty+∞ when t>1t>1t>1 and ker⁡Y⊈ker⁡X\ker Y\nsubseteq\ker XkerY⊈kerX, or when t<1t<1t<1 and Re⁡Tr⁡(XY)≤0\operatorname{Re}\operatorname{Tr}(XY)\le0ReTr(XY)≤0; otherwise it is (t−1)−1ℓ(q)(t-1)^{-1}\ell(q)(t−1)−1ℓ(q), with q=Re⁡Tr⁡(Pt(SXS))q=\operatorname{Re}\operatorname{Tr}(P_t(SXS))q=ReTr(Pt​(SXS)), S=P(1−t)/(2t)(Y)S=P_{(1-t)/(2t)}(Y)S=P(1−t)/(2t)​(Y), for true bbb, and q=Re⁡Tr⁡(Pt(X)P1−t(Y))q=\operatorname{Re}\operatorname{Tr}(P_t(X)P_{1-t}(Y))q=ReTr(Pt​(X)P1−t​(Y)) for false bbb. The value DbD_bDb​ is lim inf⁡t→+∞Rb(t)\liminf_{t\to+\infty}R_b(t)liminft→+∞​Rb​(t) at a=+∞a=+\inftya=+∞, +∞+\infty+∞ at negative aaa, lim inf⁡t↓0Rb(t)\liminf_{t\downarrow0}R_b(t)liminft↓0​Rb​(t) at a=0a=0a=0, and Rb(a)R_b(a)Rb​(a) at positive a≠1a\ne1a=1; at a=1a=1a=1 it equals Re⁡Tr⁡(X(log⁡X−log⁡Y))/Re⁡Tr⁡X\operatorname{Re}\operatorname{Tr}(X(\log X-\log Y))/\operatorname{Re}\operatorname{Tr}XReTr(X(logX−logY))/ReTrX if ker⁡Y⊆ker⁡X\ker Y\subseteq\ker XkerY⊆kerX, and +∞+\infty+∞ otherwise, where log⁡Z=cfc⁡(ln⁡,Z)\log Z=\operatorname{cfc}(\ln,Z)logZ=cfc(ln,Z). No density-matrix hypothesis on ρ\rhoρ is imposed. Empty index types are allowed; if BBB is empty the infimum is +∞+\infty+∞. Zero denominators use total real division, and real functional calculus returns zero on non-Hermitian matrices.

QAlgorithms.Papers.Independent.Intake100.P47.minimizer

For arbitrary types X,YX,YX,Y, with a distinguished zero element 0∈Y0\in Y0∈Y, a function f:X×Y→Rf:X\times Y\to\mathbb Rf:X×Y→R, a set Γ⊆Y\Gamma\subseteq YΓ⊆Y, and x∈Xx\in Xx∈X, this definition selects some y∈Γy\in\Gammay∈Γ satisfying f(x,y)≤f(x,z)f(x,y)\le f(x,z)f(x,y)≤f(x,z) for every z∈Γz\in\Gammaz∈Γ, if such a yyy exists. Otherwise it returns 0∈Y0\in Y0∈Y. No uniqueness, continuity, or membership of the fallback zero in Γ\GammaΓ is required; in particular, an empty Γ\GammaΓ produces the fallback value.

QAlgorithms.Papers.Independent.Intake100.P47.normalizedErrorExponent

For a natural number nnn and any real number ppp, this defines the extended-real value n−1(−L(p))n^{-1}(-L(p))n−1(−L(p)), where L(p)=ln⁡pL(p)=\ln pL(p)=lnp for p>0p>0p>0 and L(p)=−∞L(p)=-\inftyL(p)=−∞ for p≤0p\le0p≤0, and n−1n^{-1}n−1 is computed in R\mathbb RR before embedding into the extended reals. Consequently, for n>0n>0n>0 the value is −ln⁡(p)/n-\ln(p)/n−ln(p)/n when p>0p>0p>0, and +∞+\infty+∞ when p≤0p\le0p≤0. At n=0n=0n=0, the value is zero for every ppp, using 0−1=00^{-1}=00−1=0 and the extended-real convention 0⋅(±∞)=00\cdot(\pm\infty)=00⋅(±∞)=0. The input ppp is not required to be a probability.

QAlgorithms.Papers.Independent.Intake100.P47.optimizedConditionalEntropy

For finite index types A,BA,BA,B with decidable equality, a Boolean flag bbb, an order a∈R∪{+∞}a\in\mathbb R\cup\{+\infty\}a∈R∪{+∞}, and an arbitrary complex matrix ρ\rhoρ on A×BA\times BA×B, this defines the extended-real value

−inf⁡σ on Bσ⪰0, Tr⁡σ=1Db(a;ρ,1A⊗σ).-\inf_{\substack{\sigma\text{ on }B\\ \sigma\succeq0,\ \operatorname{Tr}\sigma=1}} D_b(a;\rho,1_A\otimes\sigma).−σ on Bσ⪰0, Trσ=1​inf​Db​(a;ρ,1A​⊗σ).

To specify DbD_bDb​, let Pt(Z)P_t(Z)Pt​(Z) be real functional calculus applying zero at eigenvalue zero and xtx^txt elsewhere, and let ℓ(q)=ln⁡q\ell(q)=\ln qℓ(q)=lnq for q>0q>0q>0 and −∞-\infty−∞ otherwise. Define Rb(t;X,Y)=+∞R_b(t;X,Y)=+\inftyRb​(t;X,Y)=+∞ if t>1t>1t>1 and ker⁡Y⊈ker⁡X\ker Y\nsubseteq\ker XkerY⊈kerX, or if t<1t<1t<1 and Re⁡Tr⁡(XY)≤0\operatorname{Re}\operatorname{Tr}(XY)\le0ReTr(XY)≤0; otherwise define it as (t−1)−1ℓ(q)(t-1)^{-1}\ell(q)(t−1)−1ℓ(q), where q=Re⁡Tr⁡(Pt(SXS))q=\operatorname{Re}\operatorname{Tr}(P_t(SXS))q=ReTr(Pt​(SXS)), S=P(1−t)/(2t)(Y)S=P_{(1-t)/(2t)}(Y)S=P(1−t)/(2t)​(Y), for true bbb, and q=Re⁡Tr⁡(Pt(X)P1−t(Y))q=\operatorname{Re}\operatorname{Tr}(P_t(X)P_{1-t}(Y))q=ReTr(Pt​(X)P1−t​(Y)) for false bbb. Then DbD_bDb​ uses lim inf⁡t→+∞Rb(t)\liminf_{t\to+\infty}R_b(t)liminft→+∞​Rb​(t) at order +∞+\infty+∞, +∞+\infty+∞ at negative orders, lim inf⁡t↓0Rb(t)\liminf_{t\downarrow0}R_b(t)liminft↓0​Rb​(t) at zero, and Rb(a)R_b(a)Rb​(a) at positive orders other than one. At one it equals Re⁡Tr⁡(X(log⁡X−log⁡Y))/Re⁡Tr⁡X\operatorname{Re}\operatorname{Tr}(X(\log X-\log Y))/\operatorname{Re}\operatorname{Tr}XReTr(X(logX−logY))/ReTrX when ker⁡Y⊆ker⁡X\ker Y\subseteq\ker XkerY⊆kerX, and +∞+\infty+∞ otherwise, with log⁡Z=cfc⁡(ln⁡,Z)\log Z=\operatorname{cfc}(\ln,Z)logZ=cfc(ln,Z). There is no positivity or normalization requirement on ρ\rhoρ, and 1A1_A1A​ is the identity matrix without trace normalization. Empty index types are included; if BBB is empty, the infimum is +∞+\infty+∞ and its negative is −∞-\infty−∞. Real division by zero is zero, and real functional calculus returns zero on non-Hermitian matrices.

QAlgorithms.Papers.Independent.Intake100.P47.pureAC

For index types A,B,CA,B,CA,B,C, with BBB finite, and any complex Euclidean vector ψ\psiψ indexed by (A×B)×C(A\times B)\times C(A×B)×C, this defines a matrix on A×CA\times CA×C by

(ρAC)(a,c),(a′,c′)=∑b∈Bψ((a,b),c) ψ((a′,b),c′)‾.(\rho_{AC})_{(a,c),(a',c')} = \sum_{b\in B} \psi((a,b),c)\, \overline{\psi((a',b),c')}.(ρAC​)(a,c),(a′,c′)​=b∈B∑​ψ((a,b),c)ψ((a′,b),c′)​.

Thus it forms the outer product ψψ†\psi\psi^\daggerψψ† and sums over the common BBB-coordinate. No normalization assumption is made on ψ\psiψ. If BBB is empty, the sum is zero.

QAlgorithms.Papers.Independent.Intake100.P47.rawRenyi

For any finite index type III with decidable equality, Boolean flag bbb, real number aaa, and arbitrary complex I×II\times II×I matrices ρ,σ\rho,\sigmaρ,σ, define Pt(X)P_t(X)Pt​(X) by real functional calculus using the scalar function that is 000 at x=0x=0x=0 and xtx^txt otherwise, and define ℓ(q)=ln⁡q\ell(q)=\ln qℓ(q)=lnq for q>0q>0q>0 and ℓ(q)=−∞\ell(q)=-\inftyℓ(q)=−∞ otherwise. The declared value lies in [−∞,+∞][-\infty,+\infty][−∞,+∞] and is

Rb(a;ρ,σ)={+∞,(a>1 and ker⁡σ⊈ker⁡ρ) or (a<1 and Re⁡Tr⁡(ρσ)≤0),(a−1)−1ℓ(qb),otherwise,R_b(a;\rho,\sigma)= \begin{cases} +\infty, &\bigl(a>1\ \text{and }\ker\sigma\nsubseteq\ker\rho\bigr) \ \text{or }\bigl(a<1\ \text{and }\operatorname{Re}\operatorname{Tr}(\rho\sigma)\le0\bigr),\\[2mm] (a-1)^{-1}\ell(q_b),&\text{otherwise}, \end{cases}Rb​(a;ρ,σ)=⎩⎨⎧​+∞,(a−1)−1ℓ(qb​),​(a>1 and kerσ⊈kerρ) or (a<1 and ReTr(ρσ)≤0),otherwise,​

where

qb={Re⁡Tr⁡ ⁣(Pa(SρS)),S=P(1−a)/(2a)(σ),b=true,Re⁡Tr⁡ ⁣(Pa(ρ)P1−a(σ)),b=false.q_b= \begin{cases} \operatorname{Re}\operatorname{Tr}\!\left(P_a(S\rho S)\right), \quad S=P_{(1-a)/(2a)}(\sigma),&b=\mathrm{true},\\ \operatorname{Re}\operatorname{Tr}\!\left(P_a(\rho)P_{1-a}(\sigma)\right),&b=\mathrm{false}. \end{cases}qb​={ReTr(Pa​(SρS)),S=P(1−a)/(2a)​(σ),ReTr(Pa​(ρ)P1−a​(σ)),​b=true,b=false.​

The kernels are those of matrix multiplication on complex vectors. No density-matrix or positivity assumptions are imposed, and III may be empty. All real orders are included: division by zero is interpreted as zero, and P0P_0P0​ still assigns zero to zero eigenvalues. In particular, a=1a=1a=1 uses the displayed formula with zero prefactor rather than a separately defined relative entropy. Real functional calculus returns zero on non-Hermitian matrices.

QAlgorithms.Papers.Independent.Intake100.P47.rejectionError

For a finite type III with decidable equality and arbitrary complex matrices ρ,Q\rho,Qρ,Q indexed by III, this defines the real number Re⁡Tr⁡((1−Q)ρ)\operatorname{Re}\operatorname{Tr}((\mathbf1-Q)\rho)ReTr((1−Q)ρ), where 1\mathbf11 is the identity matrix. Neither matrix is required to be positive, ρ\rhoρ need not have trace one, and QQQ need not lie between zero and the identity. If III is empty, the value is zero.

QAlgorithms.Papers.Independent.Intake100.P47.relativeLogVariance

For any finite index type III with decidable equality and arbitrary complex I×II\times II×I matrices ρ,σ\rho,\sigmaρ,σ, let log⁡X=cfc⁡(ln⁡,X)\log X=\operatorname{cfc}(\ln,X)logX=cfc(ln,X) and define the extended-real number

E={Re⁡Tr⁡ ⁣(ρ(log⁡ρ−log⁡σ))/Re⁡Tr⁡ρ,ker⁡σ⊆ker⁡ρ,+∞,otherwise.E= \begin{cases} \operatorname{Re}\operatorname{Tr}\!\left(\rho(\log\rho-\log\sigma)\right)/ \operatorname{Re}\operatorname{Tr}\rho,&\ker\sigma\subseteq\ker\rho,\\ +\infty,&\text{otherwise}. \end{cases}E={ReTr(ρ(logρ−logσ))/ReTrρ,+∞,​kerσ⊆kerρ,otherwise.​

Let eee be the real conversion of EEE, which equals EEE when finite and is zero at either infinity. This declaration defines the real number

Re⁡Tr⁡(ρL2),L=log⁡ρ−log⁡σ−e 1I.\operatorname{Re}\operatorname{Tr}(\rho L^2), \qquad L=\log\rho-\log\sigma-e\,1_I.ReTr(ρL2),L=logρ−logσ−e1I​.

The square is the matrix product LLL LLL. There are no positivity, normalization, nonzero-trace, or support-inclusion assumptions, and the index type may be empty. Real division by zero is zero; the total real logarithm has ln⁡0=0\ln0=0ln0=0, and real functional calculus returns zero on non-Hermitian matrices.

QAlgorithms.Papers.Independent.Intake100.P47.spectrumCount

For any finite index type III with decidable equality and any complex I×II\times II×I matrix σ\sigmaσ, this defines a natural number: if σ\sigmaσ is Hermitian, it is the number of distinct values in its real eigenvalue list; otherwise, it is zero. Repeated eigenvalues are counted once, and zero is counted if it occurs. No positivity or normalization is assumed, and an empty index type gives zero.

QAlgorithms.Papers.Independent.Intake100.P47.strongValue

For finite types A,BA,BA,B with decidable equality, arbitrary complex matrices ρ\rhoρ on A×BA\times BA×B and τ\tauτ on AAA, and any real RRR, this defines

sup⁡s>1s−1s(R−inf⁡σ on Bσ⪰0, Tr⁡σ=1D~s(ρ,τ⊗σ)),\sup_{s>1}\frac{s-1}{s} \left( R- \inf_{\substack{\sigma\text{ on }B\\\sigma\succeq0,\ \operatorname{Tr}\sigma=1}} \widetilde D_s(\rho,\tau\otimes\sigma) \right),s>1sup​ss−1​​R−σ on Bσ⪰0, Trσ=1​inf​Ds​(ρ,τ⊗σ)​,

with extrema and arithmetic in the extended reals. For a matrix YYY, the quantity used here is D~s(ρ,Y)=+∞\widetilde D_s(\rho,Y)=+\inftyDs​(ρ,Y)=+∞ unless ker⁡Y⊆ker⁡ρ\ker Y\subseteq\ker\rhokerY⊆kerρ; when that inclusion holds, set S=Y[(1−s)/(2s)]S=Y^{[(1-s)/(2s)]}S=Y[(1−s)/(2s)] and define D~s(ρ,Y)=(s−1)−1L ⁣(Re⁡Tr⁡((SρS)[s]))\widetilde D_s(\rho,Y)=(s-1)^{-1}L\!\left(\operatorname{Re}\operatorname{Tr}((S\rho S)^{[s]})\right)Ds​(ρ,Y)=(s−1)−1L(ReTr((SρS)[s])). Here L(q)=ln⁡qL(q)=\ln qL(q)=lnq for q>0q>0q>0 and L(q)=−∞L(q)=-\inftyL(q)=−∞ otherwise, and X[t]X^{[t]}X[t] denotes functional calculus with the scalar function equal to 000 at zero and to xtx^txt elsewhere, including for negative exponents. No positivity or normalization is assumed of ρ,τ\rho,\tauρ,τ, and s=1s=1s=1 is excluded. If BBB is empty, the inner infimum is +∞+\infty+∞.

QAlgorithms.Papers.Independent.Intake100.P47.thresholdTest

For a finite index type III with decidable equality, arbitrary complex matrices L,KL,KL,K indexed by III, and any real number μ\muμ, this defines

T(L,K,μ)=1−f(eμK−L),f(x)={1,x>0,0,x≤0,T(L,K,\mu)=1-f(e^\mu K-L), \qquad f(x)= \begin{cases} 1,&x>0,\\ 0,&x\le 0, \end{cases}T(L,K,μ)=1−f(eμK−L),f(x)={1,0,​x>0,x≤0,​

where fff is applied by continuous functional calculus. No Hermitian or positivity assumption is imposed on LLL, KKK, or eμK−Le^\mu K-LeμK−L. When eμK−Le^\mu K-LeμK−L is Hermitian, the result is the orthogonal projection onto its nonpositive spectral subspace, including its zero eigenspace; for a non-Hermitian argument, the functional calculus used here returns zero, so the result is the identity. The index type may be empty.

QAlgorithms.Papers.Independent.Intake100.P47.universal

For natural numbers n,dn,dn,d, let Hn,d\mathcal H_{n,d}Hn,d​ have coordinate indices x:{0,…,n−1}→{0,…,d−1}x:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x:{0,…,n−1}→{0,…,d−1}. For each permutation π\piπ of the nnn positions, define the matrix TπT_\piTπ​ by (Tπ)y,x=1(T_\pi)_{y,x}=1(Tπ​)y,x​=1 if y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1, and 000 otherwise. This declaration defines the matrix

((n+d2−1n) n!)−1∑πTr⁡(Tπ) Tπ,\left(\binom{n+d^2-1}{n}\,n!\right)^{-1} \sum_{\pi}\operatorname{Tr}(T_\pi)\,T_\pi,((nn+d2−1​)n!)−1π∑​Tr(Tπ​)Tπ​,

where the binomial coefficient uses natural-number subtraction truncated at zero, the denominator is embedded into C\mathbb CC, and its inverse is taken there. Thus Tr⁡(Tπ)\operatorname{Tr}(T_\pi)Tr(Tπ​) counts the coordinate functions fixed by π\piπ. At n=0n=0n=0, the coordinate set is a singleton and the result is the 1×11\times11×1 identity. If d=0<nd=0<nd=0<n, the coordinate set is empty and the denominator is zero; its inverse is defined to be zero.

QAlgorithms.Papers.Independent.Intake100.P47.universalFactor

For natural numbers n,dn,dn,d, this defines the natural number (n+d2−1n)\binom{n+d^2-1}{n}(nn+d2−1​), where subtraction in the upper argument is truncated at zero. In particular, the value is 111 when n=0n=0n=0, including when d=0d=0d=0, and is 000 when d=0<nd=0<nd=0<n.

QAlgorithms.Papers.Independent.Intake100.P47.universalReference

For any type AAA, natural numbers n,dn,dn,d, and complex matrix τ\tauτ indexed by AAA, this defines a matrix indexed by pairs (a,x)(a,x)(a,x), with a:{0,…,n−1}→Aa:\{0,\ldots,n-1\}\to Aa:{0,…,n−1}→A and x:{0,…,n−1}→{0,…,d−1}x:\{0,\ldots,n-1\}\to\{0,\ldots,d-1\}x:{0,…,n−1}→{0,…,d−1}, whose entries are

U(a,x),(b,y)ref=(∏i=0n−1τai,bi)[((n+d2−1n) n!)−1∑πTr⁡(Tπ)Tπ]x,y.U^{\mathrm{ref}}_{(a,x),(b,y)} = \left(\prod_{i=0}^{n-1}\tau_{a_i,b_i}\right) \left[ \left(\binom{n+d^2-1}{n}\,n!\right)^{-1} \sum_{\pi}\operatorname{Tr}(T_\pi)T_\pi \right]_{x,y}.U(a,x),(b,y)ref​=(i=0∏n−1​τai​,bi​​)[((nn+d2−1​)n!)−1π∑​Tr(Tπ​)Tπ​]x,y​.

Here π\piπ ranges over permutations of the nnn positions, (Tπ)v,u=1(T_\pi)_{v,u}=1(Tπ​)v,u​=1 exactly when v=u∘π−1v=u\circ\pi^{-1}v=u∘π−1, the binomial coefficient uses truncated natural subtraction, and the inverse is the complex inverse, with 0−1=00^{-1}=00−1=0. No positivity or normalization is required of τ\tauτ. At n=0n=0n=0, all coordinate sets are singletons, empty products equal 111, and the result is the 1×11\times11×1 identity.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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