Definitions for Monotonicity of a relative Rényi entropy
DefinitionQAlgorithms_Papers_Independent_Bridge50_P48The objects the formalized statements of Monotonicity of a relative Rényi entropy (arXiv:1306.5358) are stated in. Each was checked against the paper by a blind read-back and a moderator.
hilbertPositiveTrace: PDF p.1: adapter to the frozen extended positive trace in Claimed50.P46. A chosen Hilbert basis indexed by a subset of H fits QuantumData's single universe. Positive extended trace is basis independent; the supplied basis b is retained in the interface for compatibility with the finite trace formulas. Zero auxiliary inputs only package H; the operator being traced is A.hilbertSandwichedTrace: PDF pp.1--2, Proposition 3: the unnormalized sandwiched spectral trace. For alpha<1 its two powers have positive exponents on the theorem's domain. For alpha>1, R is the reduced positive solution of rho = sigma^((alpha-1)/(2 alpha)) R sigma^((alpha-1)/(2 alpha)). The kernel condition makes R unique. The infimum of an empty set is infinity. A divergent positive trace also remains infinity. The zero numerator is zero. Orders <=0 and order one are outside the claims made about this definition.positivePairs: PDF p.2, Proposition 3: both operators are non-negative, including zero.traceSlice: PDF p.2: the fixed-trace quantum-operation domain. Both operators are positive trace class; the first has trace t, without a normalization t=1.jointConcaveOn: PDF p.2: joint concavity, using the same real mixing weight for both operators. ENNReal arithmetic is used only on nonnegative quantities. At lambda=0 or 1 its convention 0*infinity=0 gives exactly the endpoint value.jointConvexOn: PDF p.2: joint convexity, with the same audited nonnegative endpoint convention as jointConcaveOn. No subtraction of infinite quantities occurs.scaledExponential: PDF p.2, consequence after Proposition 3: exp((alpha-1)D_alpha)=Q_alpha/t. For t>0 this retains zero below one and infinity above one on orthogonal pairs.divergenceExponential: PDF p.2, second consequence after Proposition 3: exp(D_alpha). Used only for alpha>1 and t>0, so its scalar power is positive and t is finite. This defines the exponential directly, without totalizing an extended logarithm.ennrealNaturalLog: PDF p.1: natural logarithm on nonnegative extended arguments. The finite branch reuses Dependency50.P21.extendedLog; its real input cannot represent infinity, so the top branch is supplied before converting toReal.normalizedRelativeEntropy: PDF p.1, alpha=1: remove the finite trace correction from the accepted extended generalized relative entropy, then divide by Tr rho. The accepted finite-compression formula includes Tr(sigma-rho); hence both finite scalar corrections below are essential for unnormalized operators. The domain of the theorems has positive finite Tr rho and trace-class sigma.maxSandwichNorm: PDF p.1, alpha=infinity: the extended norm of the relative sandwich is its positive order gauge, inf{c>0 : rho<=c sigma}. An empty set gives infinity. No division by the trace of rho belongs to this endpoint.traceNormalizedHilbertRenyi: PDF p.1: the full trace-normalized sandwiched divergence in nats. The order parameter includes infinity. At one the extended Umegaki formula is used; at infinity the logarithm of the order gauge has no trace divisor. For finite orders different from one the divisor is inside the logarithm. Only alpha>=1/2 and positive trace-class pairs with Tr rho>0 are used below.entropyJointConvexOn: PDF p.2, Theorem 2: Jensen inequality for entropy itself. On the positive finite-trace slice the divergence is real or +infinity, never -infinity. Thus the weights 0 and 1 also recover the exact endpoint values.
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P13
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P20
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P46
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P21
/-!
Frank--Lieb, arXiv:1306.5358v3. Page numbers are PDF pages.
Theorems 1--2, Proposition 3 and its two exponential consequences are stated below.
Lemmas 4--5 and Remark 6 are explicitly deferred in HARD.md and GAPS.json.
For orders above one, the spectral trace is constructed through the unique
positive bounded reduced sandwich, when it exists. This is the specialization
z = alpha of Mosonyi, arXiv:2107.08036v5, Lemma III.1, Remark III.3 and
Definition III.9 (PDF pp.4--8). If no such bounded operator exists, or its
positive spectral trace diverges, the value is infinity. Thus negative powers
are never evaluated by the bounded continuous functional calculus.
Compilation is pending the batch handoff.
-/
noncomputable section
open scoped ENNReal
namespace QAlgorithms.Papers.Independent.Bridge50.P48
attribute [local instance] Classical.propDecidable Classical.decEq
open QAlgorithms.Papers.Independent.Dependency50.P13
(IsPositive IsTraceClass operatorTrace)
variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
/-- PDF p.1: adapter to the frozen extended positive trace in Claimed50.P46.
A chosen Hilbert basis indexed by a subset of H fits QuantumData's single
universe. Positive extended trace is basis independent; the supplied basis b
is retained in the interface for compatibility with the finite trace formulas.
Zero auxiliary inputs only package H; the operator being traced is A. -/
def hilbertPositiveTrace {I : Type*} (_b : HilbertBasis I ℂ H) (A : H →L[ℂ] H) : ℝ≥0∞ :=
let w : Set H := (exists_hilbertBasis ℂ H).choose
let e : HilbertBasis w ℂ H := (exists_hilbertBasis ℂ H).choose_spec.choose
QAlgorithms.Papers.Independent.Claimed50.P46.positiveTrace
{ H := H, J := w, basis := e, rho := 0, sigma := 0,
rho_positive := by simp [IsPositive], sigma_positive := by simp [IsPositive] } A
example {I : Type*} (b : HilbertBasis I ℂ H) : hilbertPositiveTrace b 0 = 0 := by
simp [hilbertPositiveTrace, QAlgorithms.Papers.Independent.Claimed50.P46.positiveTrace]
/-- PDF pp.1--2, Proposition 3: the unnormalized sandwiched spectral trace.
For alpha<1 its two powers have positive exponents on the theorem's domain.
For alpha>1, R is the reduced positive solution of
rho = sigma^((alpha-1)/(2 alpha)) R sigma^((alpha-1)/(2 alpha)).
The kernel condition makes R unique. The infimum of an empty set is infinity.
A divergent positive trace also remains infinity. The zero numerator is zero.
Orders <=0 and order one are outside the claims made about this definition. -/
def hilbertSandwichedTrace {I : Type*} (b : HilbertBasis I ℂ H) (alpha : ℝ)
(pair : (H →L[ℂ] H) × (H →L[ℂ] H)) : ℝ≥0∞ :=
if pair.1 = 0 then 0
else if alpha < 1 then
let S := cfc (fun x : ℝ => Real.rpow x ((1 - alpha) / (2 * alpha))) pair.2
hilbertPositiveTrace b (cfc (fun x : ℝ => Real.rpow x alpha) (S * pair.1 * S))
else
let S := cfc (fun x : ℝ => Real.rpow x ((alpha - 1) / (2 * alpha))) pair.2
sInf {v : ℝ≥0∞ | ∃ R : H →L[ℂ] H,
IsPositive R ∧ S * R * S = pair.1 ∧
(∀ x, pair.2 x = 0 → R x = 0) ∧
v = hilbertPositiveTrace b (cfc (fun x : ℝ => Real.rpow x alpha) R)}
example {I : Type*} (b : HilbertBasis I ℂ H) (alpha : ℝ) (sigma : H →L[ℂ] H) :
hilbertSandwichedTrace b alpha (0, sigma) = 0 := by
simp [hilbertSandwichedTrace]
/-- PDF p.2, Proposition 3: both operators are non-negative, including zero. -/
def positivePairs : Set ((H →L[ℂ] H) × (H →L[ℂ] H)) :=
{pair | IsPositive pair.1 ∧ IsPositive pair.2}
example : (0, 0) ∈ positivePairs (H := H) := by
simp [positivePairs, IsPositive]
/-- PDF p.2: the fixed-trace quantum-operation domain. Both operators are
positive trace class; the first has trace t, without a normalization t=1. -/
def traceSlice {I : Type*} (b : HilbertBasis I ℂ H) (t : ℝ) :
Set ((H →L[ℂ] H) × (H →L[ℂ] H)) :=
{pair | pair ∈ positivePairs ∧ IsTraceClass pair.1 ∧ IsTraceClass pair.2 ∧
(operatorTrace b pair.1).re = t}
/-- PDF p.2: joint concavity, using the same real mixing weight for both
operators. ENNReal arithmetic is used only on nonnegative quantities.
At lambda=0 or 1 its convention 0*infinity=0 gives exactly the endpoint value. -/
def jointConcaveOn (domain : Set ((H →L[ℂ] H) × (H →L[ℂ] H)))
(f : ((H →L[ℂ] H) × (H →L[ℂ] H)) → ℝ≥0∞) : Prop :=
∀ x ∈ domain, ∀ y ∈ domain, ∀ lambda : ℝ, 0 ≤ lambda → lambda ≤ 1 →
ENNReal.ofReal lambda * f x + ENNReal.ofReal (1 - lambda) * f y ≤
f (lambda • x + (1 - lambda) • y)
/-- PDF p.2: joint convexity, with the same audited nonnegative endpoint
convention as jointConcaveOn. No subtraction of infinite quantities occurs. -/
def jointConvexOn (domain : Set ((H →L[ℂ] H) × (H →L[ℂ] H)))
(f : ((H →L[ℂ] H) × (H →L[ℂ] H)) → ℝ≥0∞) : Prop :=
∀ x ∈ domain, ∀ y ∈ domain, ∀ lambda : ℝ, 0 ≤ lambda → lambda ≤ 1 →
f (lambda • x + (1 - lambda) • y) ≤
ENNReal.ofReal lambda * f x + ENNReal.ofReal (1 - lambda) * f y
example (domain : Set ((H →L[ℂ] H) × (H →L[ℂ] H))) :
jointConcaveOn domain (fun _ => 0) ∧ jointConvexOn domain (fun _ => 0) := by
simp [jointConcaveOn, jointConvexOn]
/-- PDF p.2, consequence after Proposition 3: exp((alpha-1)D_alpha)=Q_alpha/t.
For t>0 this retains zero below one and infinity above one on orthogonal pairs. -/
def scaledExponential {I : Type*} (b : HilbertBasis I ℂ H) (t alpha : ℝ)
(pair : (H →L[ℂ] H) × (H →L[ℂ] H)) : ℝ≥0∞ :=
hilbertSandwichedTrace b alpha pair / ENNReal.ofReal t
example {I : Type*} (b : HilbertBasis I ℂ H) (t alpha : ℝ) (sigma : H →L[ℂ] H) :
scaledExponential b t alpha (0, sigma) = 0 := by
simp [scaledExponential, hilbertSandwichedTrace]
/-- PDF p.2, second consequence after Proposition 3: exp(D_alpha).
Used only for alpha>1 and t>0, so its scalar power is positive and t is finite.
This defines the exponential directly, without totalizing an extended logarithm. -/
def divergenceExponential {I : Type*} (b : HilbertBasis I ℂ H) (t alpha : ℝ)
(pair : (H →L[ℂ] H) × (H →L[ℂ] H)) : ℝ≥0∞ :=
(scaledExponential b t alpha pair) ^ (1 / (alpha - 1) : ℝ)
example {I : Type*} (b : HilbertBasis I ℂ H) (t : ℝ)
(pair : (H →L[ℂ] H) × (H →L[ℂ] H)) :
divergenceExponential b t 2 pair = scaledExponential b t 2 pair := by
unfold divergenceExponential
have hexponent : (1 / ((2 : ℝ) - 1)) = 1 := by norm_num
rw [hexponent, ENNReal.rpow_one]
/-- PDF p.1: natural logarithm on nonnegative extended arguments.
The finite branch reuses Dependency50.P21.extendedLog; its real input cannot
represent infinity, so the top branch is supplied before converting toReal. -/
def ennrealNaturalLog (x : ℝ≥0∞) : EReal :=
if x = ⊤ then ⊤ else
QAlgorithms.Papers.Independent.Dependency50.P21.extendedLog x.toReal
example : ennrealNaturalLog 0 = ⊥ ∧ ennrealNaturalLog ⊤ = ⊤ := by
simp [ennrealNaturalLog, QAlgorithms.Papers.Independent.Dependency50.P21.extendedLog]
/-- PDF p.1, alpha=1: remove the finite trace correction from the accepted
extended generalized relative entropy, then divide by Tr rho.
The accepted finite-compression formula includes Tr(sigma-rho); hence both
finite scalar corrections below are essential for unnormalized operators.
The domain of the theorems has positive finite Tr rho and trace-class sigma. -/
def normalizedRelativeEntropy {I : Type*} (b : HilbertBasis I ℂ H)
(pair : (H →L[ℂ] H) × (H →L[ℂ] H)) : EReal :=
if h : IsTraceClass pair.1 ∧ IsTraceClass pair.2 then
let d := QAlgorithms.Papers.Independent.Dependency50.P13.relativeEntropy
⟨pair.1, h.1⟩ ⟨pair.2, h.2⟩
let e : EReal := if d = ⊤ then ⊤ else (d.toReal : EReal)
((((operatorTrace b pair.1).re)⁻¹ : ℝ) : EReal) *
(e - ((operatorTrace b pair.2).re : EReal) + ((operatorTrace b pair.1).re : EReal))
else ⊤
/-- PDF p.1, alpha=infinity: the extended norm of the relative sandwich
is its positive order gauge, inf{c>0 : rho<=c sigma}. An empty set gives
infinity. No division by the trace of rho belongs to this endpoint. -/
def maxSandwichNorm (pair : (H →L[ℂ] H) × (H →L[ℂ] H)) : ℝ≥0∞ :=
sInf {v : ℝ≥0∞ | ∃ c : ℝ, 0 < c ∧
IsPositive ((c : ℂ) • pair.2 - pair.1) ∧ v = ENNReal.ofReal c}
/-- PDF p.1: the full trace-normalized sandwiched divergence in nats.
The order parameter includes infinity. At one the extended Umegaki formula
is used; at infinity the logarithm of the order gauge has no trace divisor.
For finite orders different from one the divisor is inside the logarithm.
Only alpha>=1/2 and positive trace-class pairs with Tr rho>0 are used below. -/
def traceNormalizedHilbertRenyi {I : Type*} (b : HilbertBasis I ℂ H) (alpha : ℝ≥0∞)
(pair : (H →L[ℂ] H) × (H →L[ℂ] H)) : EReal :=
if alpha = ⊤ then ennrealNaturalLog (maxSandwichNorm pair)
else if alpha = 1 then normalizedRelativeEntropy b pair
else (((alpha.toReal - 1)⁻¹ : ℝ) : EReal) *
ennrealNaturalLog (scaledExponential b (operatorTrace b pair.1).re alpha.toReal pair)
example {I : Type*} (b : HilbertBasis I ℂ H)
(pair : (H →L[ℂ] H) × (H →L[ℂ] H)) :
traceNormalizedHilbertRenyi b 1 pair = normalizedRelativeEntropy b pair ∧
traceNormalizedHilbertRenyi b ⊤ pair = ennrealNaturalLog (maxSandwichNorm pair) := by
simp [traceNormalizedHilbertRenyi]
/-- PDF p.2, Theorem 2: Jensen inequality for entropy itself. On the positive
finite-trace slice the divergence is real or +infinity, never -infinity.
Thus the weights 0 and 1 also recover the exact endpoint values. -/
def entropyJointConvexOn (domain : Set ((H →L[ℂ] H) × (H →L[ℂ] H)))
(f : ((H →L[ℂ] H) × (H →L[ℂ] H)) → EReal) : Prop :=
∀ x ∈ domain, ∀ y ∈ domain, ∀ lambda : ℝ, 0 ≤ lambda → lambda ≤ 1 →
f (lambda • x + (1 - lambda) • y) ≤
(lambda : EReal) * f x + ((1 - lambda : ℝ) : EReal) * f y
example (domain : Set ((H →L[ℂ] H) × (H →L[ℂ] H))) :
entropyJointConvexOn domain (fun _ => 0) := by
simp [entropyJointConvexOn]
end QAlgorithms.Papers.Independent.Bridge50.P48
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Bridge50.P48.divergenceExponential
For any possibly zero complex Hilbert space , any index type , any Hilbert basis , any real , and any bounded complex-linear operators on , this defines
using extended nonnegative real exponentiation. To specify the numerator, choose the Hilbert basis provided by the existence theorem and set . Set when ; when and , set , with ; when and , take the infimum of over bounded operators satisfying , for every , , and , with . Operator powers use the code’s total continuous functional calculus, and an empty infimum is . No positivity or trace-class assumptions are imposed on , and is unused. All real are allowed: gives a zero denominator, scalar division by zero is zero, and at the outer exponent is zero, so the defined value is .
QAlgorithms.Papers.Independent.Bridge50.P48.ennrealNaturalLog
For any , this defines an extended real number by
where is the natural logarithm. The infinite case is handled before converting to a real number.
QAlgorithms.Papers.Independent.Bridge50.P48.entropyJointConvexOn
Let be a complete complex inner product space, let be any set of pairs of bounded complex linear operators , and let map such pairs to the extended real line . This definition says that, for every and every real with ,
Addition and real scalar multiplication of pairs act componentwise, and the right side uses extended real arithmetic. The endpoints and infinite values of are included. The definition does not separately require to be convex or require the mixed pair to belong to ; is defined on all operator pairs.
QAlgorithms.Papers.Independent.Bridge50.P48.hilbertPositiveTrace
For any possibly zero complex Hilbert space , any index type , any Hilbert basis , and any bounded complex-linear operator , this defines an element of by choosing a Hilbert basis , where , using the specified existence theorem, and setting
The sum is an extended nonnegative sum and may be infinite. The supplied basis is unused. No positivity, self-adjointness, or trace-class assumption is imposed on .
QAlgorithms.Papers.Independent.Bridge50.P48.hilbertSandwichedTrace
For any possibly zero complex Hilbert space , any index type , any Hilbert basis , any real , and any pair of bounded complex-linear operators on , define , using the Hilbert basis selected by the existence theorem rather than , and write for the total continuous functional calculus appearing in the code. The defined value in is
Here every operator power denotes functional calculus with the real-power function. An empty infimum is . Neither nor is assumed positive or trace class, and all real , including and , are included; scalar division by zero in the exponents is defined to be zero.
QAlgorithms.Papers.Independent.Bridge50.P48.jointConcaveOn
For any possibly zero complex Hilbert space , any set of pairs of bounded complex-linear operators on , and any function from all such pairs to , this is the assertion that, for every and every real ,
Scalar multiplication and addition of pairs are componentwise, and the coefficients on the left are interpreted in the extended nonnegative reals, where . Convexity of is not required, so the argument on the right need not belong to . The condition is vacuous when is empty.
QAlgorithms.Papers.Independent.Bridge50.P48.jointConvexOn
For any possibly zero complex Hilbert space , any set of pairs of bounded complex-linear operators on , and any function from all such pairs to , this is the assertion that, for every and every real ,
Scalar multiplication and addition of pairs are componentwise, and the coefficients on the right are interpreted in the extended nonnegative reals, where . Convexity of is not required, so the argument on the left need not belong to . The condition is vacuous when is empty.
QAlgorithms.Papers.Independent.Bridge50.P48.maxSandwichNorm
For any possibly zero complex Hilbert space and any bounded complex-linear operators on , this defines
as an element of . The infimum is if there is no admissible positive real ; it may equal zero even though only strictly positive are admitted. Neither nor is separately assumed positive or trace class.
QAlgorithms.Papers.Independent.Bridge50.P48.normalizedRelativeEntropy
For any possibly zero complex Hilbert space , any index type , any Hilbert basis , and any bounded complex-linear operators on , this defines unless both operators admit nuclear representations: for each , there must exist sequences with summable and for every . If both do, put , , and define
where if , and otherwise
Matrix functions here are the code’s total continuous functional calculus. Let if , and otherwise let be the finite real value of , viewed as an extended real. The result is , using extended-real arithmetic after taking the real reciprocal . No positivity or normalization of is assumed; is included in the supremum, and is allowed, in which case its real reciprocal is zero.
QAlgorithms.Papers.Independent.Bridge50.P48.positivePairs
For any possibly zero complex Hilbert space , this is the set of pairs of bounded complex-linear operators on satisfying
There is no trace-class or trace-normalization requirement.
QAlgorithms.Papers.Independent.Bridge50.P48.scaledExponential
For any possibly zero complex Hilbert space , any index type , any Hilbert basis , any real , and any bounded complex-linear operators on , this defines
Here, using an existence-theorem-selected Hilbert basis , put . Then if ; otherwise, for , it is with ; for , it is the infimum of over bounded operators satisfying , for every , , and , where . Operator powers use the code’s total continuous functional calculus, scalar division by zero in their exponents is zero, and an empty infimum is . The supplied basis is unused in this value. No positivity or trace-class assumptions are imposed on , and need not be positive: when , the denominator is zero, with and a positive numerator divided by zero equal to .
QAlgorithms.Papers.Independent.Bridge50.P48.traceNormalizedHilbertRenyi
For any possibly zero complex Hilbert space , any index type , any Hilbert basis , any , and any bounded complex-linear operators on , this defines an extended real number by the following branches:
Here “positive” means self-adjoint with nonnegative real quadratic form on every vector; , , and for finite positive ; an empty infimum is . To define , choose the Hilbert basis furnished by the existence theorem and put . Then if ; otherwise it is for , with , and for it is the infimum of over positive bounded operators satisfying and , with . All operator powers use the code’s total continuous functional calculus. The middle branch is unless each of has a representation with summable. If both have such representations, let and let be the supremum over all finite orthonormal families , including the empty family, of
Writing when and otherwise taking its finite real value, the middle branch is in extended-real arithmetic. No positivity, trace-class, or positive-trace assumption is imposed on the input pair. In particular, and are allowed; real division by zero is zero, and extended nonnegative division uses and a positive numerator divided by zero equal to .
QAlgorithms.Papers.Independent.Bridge50.P48.traceSlice
For any possibly zero complex Hilbert space , any index type , any Hilbert basis , and any real , this is the set of pairs of bounded complex-linear operators such that and , both quadratic forms have nonnegative real part on every vector, both operators admit nuclear representations, and
Admitting a nuclear representation means that, for each operator , there exist sequences , indexed by , such that is summable and for every . No trace value is prescribed for , and is not assumed positive; in particular, is included.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.