Definitions for Correlation Detection and an Operational Interpretation of the Renyi Mutual Information
DefinitionQAlgorithms_Papers_Independent_Intake100_P47The 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.
RenyiOrderlogMatrix: 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.
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
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 , a set , and a function , this property means that for every there exists such that, simultaneously for every ,
The choice of may depend on , but must work for all . No topology or vector-space structure on is required. If is empty, the inequalities impose no restriction; if is empty, the universally quantified condition is vacuous.
QAlgorithms.Papers.Independent.Intake100.P47.RenyiOrder
The type of orders is : it contains every real number, including negative numbers, zero, and one, together with a single additional greatest element ; it does not contain .
QAlgorithms.Papers.Independent.Intake100.P47.StatePermutationInvariant
For natural numbers and any complex matrix indexed by functions from the positions to the labels, this predicate means that for every permutation of the positions, where when and is zero otherwise, and denotes conjugate transpose. No positivity or trace condition is imposed on . At , this condition holds for every matrix on the singleton coordinate set; if , it holds for the unique matrix on the empty coordinate set.
QAlgorithms.Papers.Independent.Intake100.P47.alphaHat
For finite types with decidable equality, a real number , and arbitrary complex matrices on and on , this defines
Both extrema are real extrema, and the inner supremum ranges over matrices on . Neither nor is required to be positive or normalized, and may be any real number. If the outer feasible set is empty, its real infimum is zero; if is empty, the inner supremum is zero.
QAlgorithms.Papers.Independent.Intake100.P47.attainedValueInfimum
For arbitrary types , a function , a set , and , this definition returns the real infimum
It imposes no assumption that 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 for an empty set of values or one unbounded below.
QAlgorithms.Papers.Independent.Intake100.P47.basisLaw
For a finite index type with decidable equality, any complex matrix indexed by , any unitary matrix on that index type, and any , this defines the real number
There is no assumption that 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 with decidable equality, natural numbers , and arbitrary complex matrices on and on , set . Let , where and
This declaration returns if is not Hermitian; otherwise it returns , where the sum runs over the distinct eigenvalues of and is obtained by applying the function to through functional calculus. No positivity or normalization is assumed of or . Natural subtraction in the binomial coefficient is truncated at zero, complex inversion sends zero to zero, and at the result is the identity.
QAlgorithms.Papers.Independent.Intake100.P47.completedRenyiDivergence
For any finite index type with decidable equality, Boolean flag , order , and arbitrary complex matrices , this defines
Here is real functional calculus with scalar value at zero and otherwise; is for and otherwise; and is if either and , or and , and otherwise equals , with , , when is true, and when is false. The order-one value is
where . 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 , an arbitrary complex matrix on , and an arbitrary complex matrix on , this defines
The supremum is taken in , and no positivity or normalization is required of , nor any effect condition of . If is empty, there is no such , and the real supremum of the empty set used here is zero.
QAlgorithms.Papers.Independent.Intake100.P47.exponentialCompositeError
For finite types with decidable equality, arbitrary complex matrices on and on , a natural number , and a real number , define matrices and by and . This declaration is the real infimum of over matrices on satisfying , , and
There are no positivity or normalization assumptions on , and no restriction on . An empty feasible set has real infimum zero. The definition includes , when the coordinate sets are singletons, both empty products equal , and the bound is .
QAlgorithms.Papers.Independent.Intake100.P47.generalizedInformation
For finite index types with decidable equality, a Boolean flag , an order , and arbitrary complex matrices on and on , this defines
For completeness, is defined as follows. Write and for , otherwise. Set if and , or if and ; otherwise set it to , where , , for true , and for false . Then is the lower limit of as at order , is at negative orders, is the lower limit as at order zero, and equals at positive orders other than one; at order one it is
with . Neither nor is required to be positive or normalized. The infimum need not be attained; if is empty, its feasible set is empty and its value is . 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 with decidable equality, an arbitrary complex matrix on , and an arbitrary complex matrix on , let have entries , put , and write . Define
where is the real conversion of , sending either infinity to zero. The declared real value is . No positivity, normalization, support-inclusion, or nonzero-trace hypothesis is imposed on or . Empty index types are included, real division by zero is zero, the total real logarithm has , and real functional calculus returns zero on non-Hermitian matrices.
QAlgorithms.Papers.Independent.Intake100.P47.groupedCopies
For arbitrary index types , every natural number , and every complex matrix indexed by , this defines a complex matrix on by
Here and . No positivity, normalization, finiteness, or decidable-equality assumption on or is needed. For , the empty product is , so the resulting matrix has its sole entry equal to .
QAlgorithms.Papers.Independent.Intake100.P47.hoeffdingValue
For finite types with decidable equality, arbitrary complex matrices on and on , and any real , this defines
with extrema and arithmetic in the extended reals. For a matrix , the quantity used here is if ; otherwise it is , where for and otherwise, and means functional calculus with the scalar function equal to at and to elsewhere. No positivity, trace, or support assumptions are imposed on ; the order endpoints are excluded. If is empty, the inner infimum is .
QAlgorithms.Papers.Independent.Intake100.P47.informationOne
For finite index types with decidable equality, any complex matrix on , and any complex matrix on , let have entries , and put . This defines
as an extended-real number, where and the kernels are those of matrix multiplication. Neither nor is assumed positive, normalized, or nonzero. Empty index types are allowed, real division by zero is zero, the total real logarithm has , and real functional calculus returns zero on non-Hermitian matrices.
QAlgorithms.Papers.Independent.Intake100.P47.inverseRenyiOrder
For every real number , this defines an element of by
Negative values of are included and yield their ordinary negative reciprocals.
QAlgorithms.Papers.Independent.Intake100.P47.logMatrix
For any finite index type with decidable equality and any complex matrix indexed by , this defines by applying the real natural logarithm through the real continuous functional calculus:
There is no positivity, invertibility, Hermiticity, or normalization hypothesis on . For Hermitian , this applies Lean’s total real logarithm to its eigenvalues, with ; for non-Hermitian , this real functional calculus returns the zero matrix. The index type may be empty.
QAlgorithms.Papers.Independent.Intake100.P47.marginalReferenceInformation
For finite index types with decidable equality, a Boolean flag , an order , and an arbitrary complex matrix on , let be the matrix with entries . This defines
Here, for arbitrary , let be real functional calculus with scalar value zero at zero and elsewhere, and let for , otherwise. Define to be when and , or when and ; otherwise it is , with , , for true , and for false . The value is at , at negative , at , and at positive ; at it equals if , and otherwise, where . No density-matrix hypothesis on is imposed. Empty index types are allowed; if is empty the infimum is . 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 , with a distinguished zero element , a function , a set , and , this definition selects some satisfying for every , if such a exists. Otherwise it returns . No uniqueness, continuity, or membership of the fallback zero in is required; in particular, an empty produces the fallback value.
QAlgorithms.Papers.Independent.Intake100.P47.normalizedErrorExponent
For a natural number and any real number , this defines the extended-real value , where for and for , and is computed in before embedding into the extended reals. Consequently, for the value is when , and when . At , the value is zero for every , using and the extended-real convention . The input is not required to be a probability.
QAlgorithms.Papers.Independent.Intake100.P47.optimizedConditionalEntropy
For finite index types with decidable equality, a Boolean flag , an order , and an arbitrary complex matrix on , this defines the extended-real value
To specify , let be real functional calculus applying zero at eigenvalue zero and elsewhere, and let for and otherwise. Define if and , or if and ; otherwise define it as , where , , for true , and for false . Then uses at order , at negative orders, at zero, and at positive orders other than one. At one it equals when , and otherwise, with . There is no positivity or normalization requirement on , and is the identity matrix without trace normalization. Empty index types are included; if is empty, the infimum is and its negative is . 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 , with finite, and any complex Euclidean vector indexed by , this defines a matrix on by
Thus it forms the outer product and sums over the common -coordinate. No normalization assumption is made on . If is empty, the sum is zero.
QAlgorithms.Papers.Independent.Intake100.P47.rawRenyi
For any finite index type with decidable equality, Boolean flag , real number , and arbitrary complex matrices , define by real functional calculus using the scalar function that is at and otherwise, and define for and otherwise. The declared value lies in and is
where
The kernels are those of matrix multiplication on complex vectors. No density-matrix or positivity assumptions are imposed, and may be empty. All real orders are included: division by zero is interpreted as zero, and still assigns zero to zero eigenvalues. In particular, 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 with decidable equality and arbitrary complex matrices indexed by , this defines the real number , where is the identity matrix. Neither matrix is required to be positive, need not have trace one, and need not lie between zero and the identity. If is empty, the value is zero.
QAlgorithms.Papers.Independent.Intake100.P47.relativeLogVariance
For any finite index type with decidable equality and arbitrary complex matrices , let and define the extended-real number
Let be the real conversion of , which equals when finite and is zero at either infinity. This declaration defines the real number
The square is the matrix product . 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 , and real functional calculus returns zero on non-Hermitian matrices.
QAlgorithms.Papers.Independent.Intake100.P47.spectrumCount
For any finite index type with decidable equality and any complex matrix , this defines a natural number: if 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 with decidable equality, arbitrary complex matrices on and on , and any real , this defines
with extrema and arithmetic in the extended reals. For a matrix , the quantity used here is unless ; when that inclusion holds, set and define . Here for and otherwise, and denotes functional calculus with the scalar function equal to at zero and to elsewhere, including for negative exponents. No positivity or normalization is assumed of , and is excluded. If is empty, the inner infimum is .
QAlgorithms.Papers.Independent.Intake100.P47.thresholdTest
For a finite index type with decidable equality, arbitrary complex matrices indexed by , and any real number , this defines
where is applied by continuous functional calculus. No Hermitian or positivity assumption is imposed on , , or . When 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 , let have coordinate indices . For each permutation of the positions, define the matrix by if , and otherwise. This declaration defines the matrix
where the binomial coefficient uses natural-number subtraction truncated at zero, the denominator is embedded into , and its inverse is taken there. Thus counts the coordinate functions fixed by . At , the coordinate set is a singleton and the result is the identity. If , 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 , this defines the natural number , where subtraction in the upper argument is truncated at zero. In particular, the value is when , including when , and is when .
QAlgorithms.Papers.Independent.Intake100.P47.universalReference
For any type , natural numbers , and complex matrix indexed by , this defines a matrix indexed by pairs , with and , whose entries are
Here ranges over permutations of the positions, exactly when , the binomial coefficient uses truncated natural subtraction, and the inverse is the complex inverse, with . No positivity or normalization is required of . At , all coordinate sets are singletons, empty products equal , and the result is the identity.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.