Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Processing, order and scaling of relative entropies

Open
QAlgorithms.Papers.Independent.Advance50.P02.relativeEntropy_properties

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

prove2quantum

All Hilbert spaces are finite dimensional and complex; all logarithms are binary. Positive-operator inequalities use the identity when comparing with a scalar. For each entropy use its defining domain: DhD_hDh​ has normalized ρ\rhoρ, positive σ\sigmaσ and 0≤ε≤10\le\varepsilon\le10≤ε≤1; Dmax⁡D_{\max}Dmax​ uses normalized ρ\rhoρ and 0≤ε<10\le\varepsilon<10≤ε<1; DsD_sDs​ allows 0<tr⁡ρ≤10<\operatorname{tr}\rho\le10<trρ≤1 and 0≤ε≤10\le\varepsilon\le10≤ε≤1. For a trace-preserving completely positive map E\mathcal EE,

Dxε(ρ∥σ)≥Dxε(E(ρ)∥E(σ)),x=h,max⁡.D_x^\varepsilon(\rho\Vert\sigma)\ge D_x^\varepsilon(\mathcal E(\rho)\Vert\mathcal E(\sigma)),\qquad x=h,\max.Dxε​(ρ∥σ)≥Dxε​(E(ρ)∥E(σ)),x=h,max.

If 0≤σ≤σ′0\le\sigma\le\sigma'0≤σ≤σ′, then

Dxε(ρ∥σ)≥Dxε(ρ∥σ′),x=h,max⁡,D_x^\varepsilon(\rho\Vert\sigma)\ge D_x^\varepsilon(\rho\Vert\sigma'),\qquad x=h,\max,Dxε​(ρ∥σ)≥Dxε​(ρ∥σ′),x=h,max,

and the corrected clause for x=sx=sx=s requires ρ\rhoρ, σ\sigmaσ and σ′\sigma'σ′ to commute pairwise. For every real λ\lambdaλ,

Dxε(ρ∥2−λσ)=Dxε(ρ∥σ)+λ,x=h,max⁡,s.D_x^\varepsilon(\rho\Vert 2^{-\lambda}\sigma)=D_x^\varepsilon(\rho\Vert\sigma)+\lambda,\qquad x=h,\max,s.Dxε​(ρ∥2−λσ)=Dxε​(ρ∥σ)+λ,x=h,max,s.

Each clause retains its own full endpoint domain. These rules provide the structural comparisons used in the hierarchy. Source correction: the spectrum comparison-order clause assumes pairwise commutation of ρ,σ,σ′\rho,\sigma,\sigma^{\prime}ρ,σ,σ′. The printed premise only requires σ\sigmaσ and σ′\sigma^{\prime}σ′ to commute and is false; the two-dimensional witness and the precise printed/changed/why record are included in this item. No commutation premise is added to the testing or max-relative-entropy clauses.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P02
Formal statement
noncomputable section

open Filter

open scoped BigOperators Matrix ComplexOrder ComplexConjugate Matrix.Norms.L2Operator Topology

namespace QAlgorithms.Papers.Independent.Advance50.P02

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P63
  (Mat tensorPower logTwo normalQuantile testingBeta)

open QAlgorithms.Papers.Independent.Information100.P71 (SupportIncluded supportPower)

open QAlgorithms (effectProb)

open QAlgorithms.Papers.Independent.Information100.P06 (Below)

open QAlgorithms.Papers.Independent.Information100.P30 (tensorMap)

open QAlgorithms.Papers.Independent.Information100.P67 (purifiedDistance)

open QAlgorithms.Papers.Independent.Dependency50.P26 (TracePreserving)

open QAlgorithms.Papers.Independent.Dependency50.P28 (pinch)

variable {I J A B X Z : Type} [Fintype I] [DecidableEq I]
  [Fintype J] [DecidableEq J] [Fintype A] [DecidableEq A]
  [Fintype B] [DecidableEq B] [Fintype X] [DecidableEq X]
  [Fintype Z] [DecidableEq Z]

/-- Eqs.(11)--(13), PDF p.13: each entropy retains its own full error and
state domain. Source correction of the Ds comparison-order clause only.
Printed: Section V p.13, after Eq.(12), says comparison monotonicity extends to Ds when sigma and sigma2 commute, without requiring either to commute with rho.
Changed: Only the Ds comparison-order clause additionally requires Commute rho sigma and Commute rho sigma2, so all three operators have a common eigenbasis. The other seven clauses and every defining domain remain unchanged.
Why: Commuting comparisons alone are insufficient. Take rho=(1/2)*[[1,1],[1,1]], sigma=diag(4/5,1/10), sigma2=diag(4/5,1/5), and e=2/25. Then sigma<=sigma2 and the comparisons commute, but Ds^e(rho||sigma2)-Ds^e(rho||sigma)=log2(7/6)>0, reversing the printed order. The common-eigenbasis hypotheses restore the classical threshold inclusion underlying inspection of the definitions. They are local to this clause and admit nontrivial diagonal states and comparisons. -/
theorem relativeEntropy_properties :
    (∀ (rho sigma : Mat I), QAlgorithms.IsDensityMatrix rho → sigma.PosSemidef →
      ∀ (E : Mat I →ₗ[ℂ] Mat J), QAlgorithms.Entanglement.IsCompletelyPositive E →
      TracePreserving E → ∀ e : ℝ, 0 ≤ e ∧ e ≤ 1 →
      extendedTestingDivergence e (E rho) (E sigma) ≤ extendedTestingDivergence e rho sigma) ∧
    (∀ (rho sigma : Mat I), QAlgorithms.IsDensityMatrix rho → sigma.PosSemidef →
      ∀ (E : Mat I →ₗ[ℂ] Mat J), QAlgorithms.Entanglement.IsCompletelyPositive E →
      TracePreserving E → ∀ e : ℝ, 0 ≤ e ∧ e < 1 →
      smoothedMaxRelativeEntropy e (E rho) (E sigma) ≤ smoothedMaxRelativeEntropy e rho sigma) ∧
    (∀ (rho sigma sigma2 : Mat I), QAlgorithms.IsDensityMatrix rho → sigma.PosSemidef →
      sigma2.PosSemidef → Below sigma sigma2 → ∀ e : ℝ, 0 ≤ e ∧ e ≤ 1 →
      extendedTestingDivergence e rho sigma2 ≤ extendedTestingDivergence e rho sigma) ∧
    (∀ (rho sigma sigma2 : Mat I), QAlgorithms.IsDensityMatrix rho → sigma.PosSemidef →
      sigma2.PosSemidef → Below sigma sigma2 → ∀ e : ℝ, 0 ≤ e ∧ e < 1 →
      smoothedMaxRelativeEntropy e rho sigma2 ≤ smoothedMaxRelativeEntropy e rho sigma) ∧
    (∀ (rho sigma sigma2 : Mat I), PositiveTraceSubnormalized rho → sigma.PosSemidef →
      sigma2.PosSemidef → Below sigma sigma2 → Commute sigma sigma2 →
      Commute rho sigma → Commute rho sigma2 → ∀ e : ℝ, 0 ≤ e ∧ e ≤ 1 →
      spectrumEntropy e rho sigma2 ≤ spectrumEntropy e rho sigma) ∧
    (∀ (rho sigma : Mat I), QAlgorithms.IsDensityMatrix rho → sigma.PosSemidef →
      ∀ e : ℝ, 0 ≤ e ∧ e ≤ 1 → ∀ l : ℝ,
      extendedTestingDivergence e rho (((Real.rpow 2 (-l) : ℝ) : ℂ) • sigma) =
        extendedTestingDivergence e rho sigma + (l : EReal)) ∧
    (∀ (rho sigma : Mat I), QAlgorithms.IsDensityMatrix rho → sigma.PosSemidef →
      ∀ e : ℝ, 0 ≤ e ∧ e < 1 → ∀ l : ℝ,
      smoothedMaxRelativeEntropy e rho (((Real.rpow 2 (-l) : ℝ) : ℂ) • sigma) =
        smoothedMaxRelativeEntropy e rho sigma + (l : EReal)) ∧
    (∀ (rho sigma : Mat I), PositiveTraceSubnormalized rho → sigma.PosSemidef →
      ∀ e : ℝ, 0 ≤ e ∧ e ≤ 1 → ∀ l : ℝ,
      spectrumEntropy e rho (((Real.rpow 2 (-l) : ℝ) : ℂ) • sigma) =
        spectrumEntropy e rho sigma + (l : EReal)) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P02

end
Source
A Hierarchy of Information Quantities for Finite Block Length Analysis of Quantum Tasks, arXiv:1208.1478v3, PDF p. 13, §V Eqs. (11)–(13): processing, order, scaling
Read-back

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

For finite index types I,JI,JI,J with decidable equality, let Mat⁡(I)\operatorname{Mat}(I)Mat(I) denote the complex matrices indexed by III, write X⪰0X\succeq0X⪰0 for positive semidefiniteness, X⪯YX\preceq YX⪯Y for Y−X⪰0Y-X\succeq0Y−X⪰0, and tr⁡RX=Re⁡Tr⁡X\operatorname{tr}_{\mathbb R}X=\operatorname{Re}\operatorname{Tr}XtrR​X=ReTrX. A density matrix is positive semidefinite with complex trace 111; a positive-trace subnormalized matrix satisfies X⪰0X\succeq0X⪰0 and 0<tr⁡RX≤10<\operatorname{tr}_{\mathbb R}X\le10<trR​X≤1. Define the following quantities, whose values lie in the extended real numbers:

be(ρ,σ)=inf⁡{tr⁡R(Qσ):Q⪰0, I−Q⪰0, 1−e≤tr⁡R(Qρ)},DHe(ρ,σ)={−log⁡2be(ρ,σ),be(ρ,σ)>0,+∞,be(ρ,σ)≤0,Dmax⁡e(ρ,σ)=inf⁡{log⁡2t: τ⪰0, 0<tr⁡Rτ≤1, P(ρ,τ)≤e, t>0, τ⪯tσ},Dse(ρ,σ)=sup⁡{R∈R:tr⁡R(ρ 1(−∞,0](ρ−2Rσ))≤e}.\begin{aligned} b_e(\rho,\sigma) &=\inf\{\operatorname{tr}_{\mathbb R}(Q\sigma): Q\succeq0,\ I-Q\succeq0,\ 1-e\le\operatorname{tr}_{\mathbb R}(Q\rho)\},\\ D_H^e(\rho,\sigma) &=\begin{cases} -\log_2 b_e(\rho,\sigma),&b_e(\rho,\sigma)>0,\\ +\infty,&b_e(\rho,\sigma)\le0, \end{cases}\\ D_{\max}^e(\rho,\sigma) &=\inf\{\log_2 t:\ \tau\succeq0,\ 0<\operatorname{tr}_{\mathbb R}\tau\le1,\ P(\rho,\tau)\le e,\ t>0,\ \tau\preceq t\sigma\},\\ D_s^e(\rho,\sigma) &=\sup\{R\in\mathbb R: \operatorname{tr}_{\mathbb R}(\rho\,\mathbf1_{(-\infty,0]}(\rho-2^R\sigma))\le e\}. \end{aligned}be​(ρ,σ)DHe​(ρ,σ)Dmaxe​(ρ,σ)Dse​(ρ,σ)​=inf{trR​(Qσ):Q⪰0, I−Q⪰0, 1−e≤trR​(Qρ)},={−log2​be​(ρ,σ),+∞,​be​(ρ,σ)>0,be​(ρ,σ)≤0,​=inf{log2​t: τ⪰0, 0<trR​τ≤1, P(ρ,τ)≤e, t>0, τ⪯tσ},=sup{R∈R:trR​(ρ1(−∞,0]​(ρ−2Rσ))≤e}.​

Here log⁡2x=log⁡x/log⁡2\log_2 x=\log x/\log2log2​x=logx/log2, matrix functions and the spectral projector 1(−∞,0]\mathbf1_{(-\infty,0]}1(−∞,0]​ are defined by spectral functional calculus, including the zero eigenspace in that projector, and

P(ρ,τ)=1−(tr⁡Rρ τρ+(1−tr⁡Rρ)(1−tr⁡Rτ))2.P(\rho,\tau)= \sqrt{1- \left( \operatorname{tr}_{\mathbb R} \sqrt{\sqrt{\rho}\,\tau\sqrt{\rho}} +\sqrt{(1-\operatorname{tr}_{\mathbb R}\rho) (1-\operatorname{tr}_{\mathbb R}\tau)} \right)^2}.P(ρ,τ)=1−(trR​ρ​τρ​​+(1−trR​ρ)(1−trR​τ)​)2​.

The infimum defining Dmax⁡eD_{\max}^eDmaxe​ is +∞+\infty+∞ when its feasible set is empty, and the supremum defining DseD_s^eDse​ is −∞-\infty−∞ when its feasible set is empty. The declaration asserts all eight properties: (i) for every density matrix ρ\rhoρ, every σ⪰0\sigma\succeq0σ⪰0, every complex-linear map E:Mat⁡(I)→Mat⁡(J)E:\operatorname{Mat}(I)\to\operatorname{Mat}(J)E:Mat(I)→Mat(J) that preserves the complex trace of every matrix and is completely positive—meaning every amplification idr⊗E\mathrm{id}_r\otimes Eidr​⊗E preserves positive semidefiniteness for every natural number rrr, including r=0r=0r=0—and every e∈[0,1]e\in[0,1]e∈[0,1],

DHe(Eρ,Eσ)≤DHe(ρ,σ);D_H^e(E\rho,E\sigma)\le D_H^e(\rho,\sigma);DHe​(Eρ,Eσ)≤DHe​(ρ,σ);

(ii) under the same matrix and map assumptions, for every e∈[0,1)e\in[0,1)e∈[0,1),

Dmax⁡e(Eρ,Eσ)≤Dmax⁡e(ρ,σ);D_{\max}^e(E\rho,E\sigma)\le D_{\max}^e(\rho,\sigma);Dmaxe​(Eρ,Eσ)≤Dmaxe​(ρ,σ);

(iii) for every density matrix ρ\rhoρ and positive semidefinite matrices σ,σ2\sigma,\sigma_2σ,σ2​ with σ⪯σ2\sigma\preceq\sigma_2σ⪯σ2​, and every e∈[0,1]e\in[0,1]e∈[0,1],

DHe(ρ,σ2)≤DHe(ρ,σ);D_H^e(\rho,\sigma_2)\le D_H^e(\rho,\sigma);DHe​(ρ,σ2​)≤DHe​(ρ,σ);

(iv) under the same matrix assumptions, for every e∈[0,1)e\in[0,1)e∈[0,1),

Dmax⁡e(ρ,σ2)≤Dmax⁡e(ρ,σ);D_{\max}^e(\rho,\sigma_2)\le D_{\max}^e(\rho,\sigma);Dmaxe​(ρ,σ2​)≤Dmaxe​(ρ,σ);

(v) for every positive-trace subnormalized ρ\rhoρ, positive semidefinite σ,σ2\sigma,\sigma_2σ,σ2​ with σ⪯σ2\sigma\preceq\sigma_2σ⪯σ2​, and pairwise commuting ρ,σ,σ2\rho,\sigma,\sigma_2ρ,σ,σ2​, every e∈[0,1]e\in[0,1]e∈[0,1] satisfies

Dse(ρ,σ2)≤Dse(ρ,σ);D_s^e(\rho,\sigma_2)\le D_s^e(\rho,\sigma);Dse​(ρ,σ2​)≤Dse​(ρ,σ);

(vi) for every density matrix ρ\rhoρ, every σ⪰0\sigma\succeq0σ⪰0, every e∈[0,1]e\in[0,1]e∈[0,1], and every real lll,

DHe(ρ,2−lσ)=DHe(ρ,σ)+l;D_H^e(\rho,2^{-l}\sigma)=D_H^e(\rho,\sigma)+l;DHe​(ρ,2−lσ)=DHe​(ρ,σ)+l;

(vii) for every density matrix ρ\rhoρ, every σ⪰0\sigma\succeq0σ⪰0, every e∈[0,1)e\in[0,1)e∈[0,1), and every real lll,

Dmax⁡e(ρ,2−lσ)=Dmax⁡e(ρ,σ)+l;D_{\max}^e(\rho,2^{-l}\sigma)=D_{\max}^e(\rho,\sigma)+l;Dmaxe​(ρ,2−lσ)=Dmaxe​(ρ,σ)+l;

and (viii) for every positive-trace subnormalized ρ\rhoρ, every σ⪰0\sigma\succeq0σ⪰0, every e∈[0,1]e\in[0,1]e∈[0,1], and every real lll,

Dse(ρ,2−lσ)=Dse(ρ,σ)+l.D_s^e(\rho,2^{-l}\sigma)=D_s^e(\rho,\sigma)+l.Dse​(ρ,2−lσ)=Dse​(ρ,σ)+l.

The reference matrices need not have trace 111 or be invertible, so zero and singular reference matrices are included. The endpoint e=0e=0e=0 is included throughout; e=1e=1e=1 is included in precisely the assertions with range [0,1][0,1][0,1]. Empty index types are permitted, although an empty input index type admits neither a density matrix nor a positive-trace subnormalized matrix, making those hypotheses unsatisfiable.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me