Definitions for Monotonicity of the Quantum Relative Entropy Under Positive Maps
DefinitionQAlgorithms_Papers_Independent_Intakethird100_P46The objects the formalized statements of Monotonicity of the Quantum Relative Entropy Under Positive Maps (arXiv:1512.06117) are stated in. Each was checked against the paper by a blind read-back and a moderator.
TraceLinearOperationBetween: PDF p.2, Notation: a complex-linear map from the full trace-class space T(H) to T(K). Its ambient values off trace class impose no restriction.traceClassImage: PDF p.2: restrict the output of a trace-class operation to its actual domain.PositiveTracePreservingBetween: PDF p.2, Notation and Theorem 1: positivity and trace preservation are required on every positive trace-class input, not only on the displayed pair.PositiveTraceNonincreasingBetween: PDF pp.2–3, Notation and Theorem 1': positivity and trace nonincrease on the entire positive trace-class cone, between possibly different spaces.literalTraceClassRelativeEntropy: PDF pp.1–2, (1) and Notation: literal unnormalized relative entropy in nats. On positive trace-class pairs, the accepted corrected extended divergence is D(rho||sigma)+tr(sigma-rho). Subtract ONLY this finite real trace correction. The ENNReal-to-EReal embedding retains infinity; finite negative D is allowed. No two potentially infinite entropy terms are subtracted.PositiveMatrixTraceNonincreasing: PDF p.3, (4)–(5): positive finite-dimensional maps with trace nonincrease on every PSD matrix. Complex linearity is in the map type.finiteLiteralRelativeEntropy: PDF pp.1–3, (1): finite-dimensional literal Umegaki entropy in nats, including support failure. This direct formula also accepts subnormalized outputs.traceDecreaseMap: PDF p.3, counterexample: discard off-diagonal entries and halve the first entry.counterexampleRho: PDF p.3, counterexample: the first normalized input state.counterexampleSigma: PDF p.3, counterexample: the second normalized input state.
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P13
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P49
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
/-!
Müller-Hermes–Reeb, arXiv:1512.06117v3, PDF pp.1–7.
All new definitions are local to this paper. Arbitrary countable Hilbert bases
represent separable complex Hilbert spaces; they need not diagonalize either
operator. Nuclear trace class and the corrected extended divergence are accepted
Dependency50.P13 definitions. Only the finite trace correction is removed here.
Theorem 3 (PDF p.4) is recorded as accepted-library reuse, without a duplicate.
Compilation and independent moderation are pending the batch handoff.
-/
noncomputable section
open scoped Matrix ComplexConjugate ComplexOrder ENNReal
namespace QAlgorithms.Papers.Independent.Intakethird100.P46
attribute [local instance] Classical.propDecidable Classical.decEq
open QAlgorithms
open QAlgorithms.Papers.Independent.Dependency50.P13
(IsTraceClass TraceClass IsPositive operatorTrace)
open QAlgorithms.Papers.Independent.Dependency50.P35 (Dominates)
open QAlgorithms.Papers.Independent.Bridge50.P49 (beigiSandwichedDivergence)
variable {H K : Type*}
[NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
[NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
/-- PDF p.2, Notation: a complex-linear map from the full trace-class space
T(H) to T(K). Its ambient values off trace class impose no restriction. -/
def TraceLinearOperationBetween
(Phi : (H →L[ℂ] H) → (K →L[ℂ] K)) : Prop :=
(∀ A, IsTraceClass A → IsTraceClass (Phi A)) ∧
(∀ A B, IsTraceClass A → IsTraceClass B → Phi (A + B) = Phi A + Phi B) ∧
(∀ (z : ℂ) A, IsTraceClass A → Phi (z • A) = z • Phi A)
example : TraceLinearOperationBetween (id : (H →L[ℂ] H) → (H →L[ℂ] H)) := by
exact ⟨fun A hA => hA, fun A B hA hB => rfl, fun z A hA => rfl⟩
/-- PDF p.2: restrict the output of a trace-class operation to its actual domain. -/
def traceClassImage (Phi : (H →L[ℂ] H) → (K →L[ℂ] K))
(hPhi : TraceLinearOperationBetween Phi) (A : TraceClass H) : TraceClass K :=
⟨Phi A.val, hPhi.1 A.val A.property⟩
example (Phi : (H →L[ℂ] H) → (K →L[ℂ] K))
(hPhi : TraceLinearOperationBetween Phi) (A : TraceClass H) :
(traceClassImage Phi hPhi A).val = Phi A.val := rfl
/-- PDF p.2, Notation and Theorem 1: positivity and trace preservation are
required on every positive trace-class input, not only on the displayed pair. -/
def PositiveTracePreservingBetween {I J : Type*}
(b : HilbertBasis I ℂ H) (c : HilbertBasis J ℂ K)
(Phi : (H →L[ℂ] H) → (K →L[ℂ] K)) : Prop :=
TraceLinearOperationBetween Phi ∧ ∀ A, IsTraceClass A → IsPositive A →
IsPositive (Phi A) ∧ operatorTrace c (Phi A) = operatorTrace b A
example {I : Type*} (b : HilbertBasis I ℂ H) :
PositiveTracePreservingBetween b b (id : (H →L[ℂ] H) → (H →L[ℂ] H)) := by
exact ⟨⟨fun A hA => hA, fun A B hA hB => rfl, fun z A hA => rfl⟩,
fun A hA hp => ⟨hp, rfl⟩⟩
/-- PDF pp.2–3, Notation and Theorem 1': positivity and trace nonincrease
on the entire positive trace-class cone, between possibly different spaces. -/
def PositiveTraceNonincreasingBetween {I J : Type*}
(b : HilbertBasis I ℂ H) (c : HilbertBasis J ℂ K)
(Phi : (H →L[ℂ] H) → (K →L[ℂ] K)) : Prop :=
TraceLinearOperationBetween Phi ∧ ∀ A, IsTraceClass A → IsPositive A →
IsPositive (Phi A) ∧ (operatorTrace c (Phi A)).re ≤ (operatorTrace b A).re
example {I : Type*} (b : HilbertBasis I ℂ H) :
PositiveTraceNonincreasingBetween b b (id : (H →L[ℂ] H) → (H →L[ℂ] H)) := by
exact ⟨⟨fun A hA => hA, fun A B hA hB => rfl, fun z A hA => rfl⟩,
fun A hA hp => ⟨hp, le_rfl⟩⟩
/-- PDF pp.1–2, (1) and Notation: literal unnormalized relative entropy in nats.
On positive trace-class pairs, the accepted corrected extended divergence is
D(rho||sigma)+tr(sigma-rho). Subtract ONLY this finite real trace correction.
The ENNReal-to-EReal embedding retains infinity; finite negative D is allowed.
No two potentially infinite entropy terms are subtracted. -/
def literalTraceClassRelativeEntropy {I : Type*} (b : HilbertBasis I ℂ H)
(rho sigma : TraceClass H) : EReal :=
(QAlgorithms.Papers.Independent.Dependency50.P13.relativeEntropy rho sigma : EReal) -
(((operatorTrace b sigma.val).re - (operatorTrace b rho.val).re : ℝ) : EReal)
example {I : Type*} (b : HilbertBasis I ℂ H) (rho sigma : TraceClass H)
(h : operatorTrace b sigma.val = operatorTrace b rho.val) :
literalTraceClassRelativeEntropy b rho sigma =
(QAlgorithms.Papers.Independent.Dependency50.P13.relativeEntropy rho sigma : EReal) := by
simp [literalTraceClassRelativeEntropy, h]
/-- PDF p.3, (4)–(5): positive finite-dimensional maps with trace nonincrease
on every PSD matrix. Complex linearity is in the map type. -/
def PositiveMatrixTraceNonincreasing {d e : ℕ}
(Phi : Matrix (Fin d) (Fin d) ℂ →ₗ[ℂ] Matrix (Fin e) (Fin e) ℂ) : Prop :=
∀ A, A.PosSemidef → (Phi A).PosSemidef ∧ (Phi A).trace.re ≤ A.trace.re
example (d : ℕ) : PositiveMatrixTraceNonincreasing
(LinearMap.id : Matrix (Fin d) (Fin d) ℂ →ₗ[ℂ] Matrix (Fin d) (Fin d) ℂ) := by
intro A hA
exact ⟨hA, le_rfl⟩
/-- PDF pp.1–3, (1): finite-dimensional literal Umegaki entropy in nats,
including support failure. This direct formula also accepts subnormalized outputs. -/
def finiteLiteralRelativeEntropy {I : Type} [Fintype I] [DecidableEq I]
(rho sigma : Matrix I I ℂ) : EReal :=
if Dominates sigma rho then
(((cfc (fun x : ℝ => x * Real.log x) rho -
rho * cfc Real.log sigma).trace.re : ℝ) : EReal)
else ⊤
example {I : Type} [Fintype I] [DecidableEq I]
(rho sigma : Matrix I I ℂ) (h : ¬ Dominates sigma rho) :
finiteLiteralRelativeEntropy rho sigma = ⊤ := by
simp [finiteLiteralRelativeEntropy, h]
/-- PDF p.3, counterexample: discard off-diagonal entries and halve the first entry. -/
def traceDecreaseMap : Matrix (Fin 2) (Fin 2) ℂ →ₗ[ℂ] Matrix (Fin 2) (Fin 2) ℂ where
toFun X := !![X 0 0 / 2, 0; 0, X 1 1]
map_add' X Y := by
ext i j
fin_cases i <;> fin_cases j <;> simp [add_div]
map_smul' z X := by
ext i j
fin_cases i <;> fin_cases j <;> simp [smul_eq_mul, mul_div_assoc]
example (X : Matrix (Fin 2) (Fin 2) ℂ) : traceDecreaseMap X 0 0 = X 0 0 / 2 := rfl
/-- PDF p.3, counterexample: the first normalized input state. -/
def counterexampleRho : Matrix (Fin 2) (Fin 2) ℂ := !![(1 / 3 : ℂ), 0; 0, 2 / 3]
/-- PDF p.3, counterexample: the second normalized input state. -/
def counterexampleSigma : Matrix (Fin 2) (Fin 2) ℂ := !![(2 / 3 : ℂ), 0; 0, 1 / 3]
example : counterexampleRho 0 0 = (1 / 3 : ℂ) := rfl
example : counterexampleSigma 1 1 = (1 / 3 : ℂ) := rfl
end QAlgorithms.Papers.Independent.Intakethird100.P46
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intakethird100.P46.PositiveMatrixTraceNonincreasing
For natural numbers , including zero, and a complex-linear map , this predicate says that every positive semidefinite matrix has positive semidefinite image and satisfies
There is no trace-one or nonzero-input restriction.
QAlgorithms.Papers.Independent.Intakethird100.P46.PositiveTraceNonincreasingBetween
For complex Hilbert spaces , arbitrary index types , Hilbert bases and , and a function between bounded complex-linear operators on these spaces, this predicate requires trace-class preservation, additivity and complex homogeneity on trace-class inputs, and, for every positive trace-class , positivity of together with
Trace class means admitting with summable; positivity means self-adjointness and nonnegative real quadratic forms. The traces use total infinite sums. Zero inputs are included, no normalization is required, and the basis index types need not be countable.
QAlgorithms.Papers.Independent.Intakethird100.P46.PositiveTracePreservingBetween
For complex Hilbert spaces , arbitrary index types , Hilbert bases of and of , and a function between their bounded complex-linear operators, this predicate requires that preserve trace-class operators, be additive and complex homogeneous on trace-class inputs, and, for every positive trace-class operator , have positive output and satisfy
Here trace class means admitting a representation with summable; positivity means and for every . The displayed traces are the defined total infinite sums, and their equality is an equality in . No normalization or nonzero-input condition is required, and are not assumed countable.
QAlgorithms.Papers.Independent.Intakethird100.P46.TraceLinearOperationBetween
For complex Hilbert spaces and , and an arbitrary function from bounded complex-linear operators on to bounded complex-linear operators on , this predicate requires that maps trace-class operators to trace-class operators, satisfies whenever and are trace class, and satisfies for every and trace-class . Here an operator is trace class precisely when there exist sequences and in its Hilbert space such that is summable and for every . The predicate imposes no conditions on at operators outside this class.
QAlgorithms.Papers.Independent.Intakethird100.P46.counterexampleRho
This defines the complex matrix
QAlgorithms.Papers.Independent.Intakethird100.P46.counterexampleSigma
This defines the complex matrix
QAlgorithms.Papers.Independent.Intakethird100.P46.finiteLiteralRelativeEntropy
For any finite type equipped with decidable equality, and arbitrary complex matrices indexed by , this defines
as an extended-real number, using continuous functional calculus for both matrix functions. The kernels are those of matrix multiplication on . No positivity, self-adjointness, normalization, or nonzero assumption is imposed; the finite branch is not truncated to be nonnegative. The real logarithm is total, with . The empty index type is allowed and gives value .
QAlgorithms.Papers.Independent.Intakethird100.P46.literalTraceClassRelativeEntropy
For a complex Hilbert space , an arbitrary index type , a Hilbert basis , and trace-class operators on , this defines the extended-real number
Here trace-class membership means admitting a representation with summable , and is the supremum, in , over every and every orthonormal family in , of the following quantity. Set and ; the quantity is if , and otherwise is
with matrix functions interpreted by the continuous functional calculus. The supremum is embedded into the extended reals before subtracting the finite real trace difference. Neither positivity nor normalization of is assumed; the supremum includes , and real logarithms and infinite sums have their total-function meanings.
QAlgorithms.Papers.Independent.Intakethird100.P46.traceClassImage
For complex Hilbert spaces , a function between their bounded complex-linear operators, a hypothesis that preserves trace-class operators and is additive and complex homogeneous on them, and a trace-class operator on , this definition returns the trace-class operator on whose underlying operator is . An operator is trace class here when it admits sequences with summable and for every ; the supplied hypothesis provides this property for .
QAlgorithms.Papers.Independent.Intakethird100.P46.traceDecreaseMap
This defines the complex-linear map on complex matrices given, for every input , by
Its linear-map structure includes additivity and homogeneity for every complex scalar; no restriction is placed on the input matrix.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.