Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Information-spectrum/testing sandwich

Open
QAlgorithms.Papers.Independent.Advance50.P02.spectrum_testing_sandwich

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. Let ρ\rhoρ be normalized, σ≥0\sigma\ge0σ≥0, ε≥0\varepsilon\ge0ε≥0, δ>0\delta>0δ>0, and ε+δ≤1\varepsilon+\delta\le1ε+δ≤1. Define Dsa(ρ∥σ)=sup⁡{R:tr⁡ρ{ρ≤2Rσ}≤a}D_s^a(\rho\Vert\sigma)=\sup\{R:\operatorname{tr}\rho\{\rho\le2^R\sigma\}\le a\}Dsa​(ρ∥σ)=sup{R:trρ{ρ≤2Rσ}≤a}, using the weak spectral projector and extended-real supremum. Then

Dsε(ρ∥σ)≤Dhε(ρ∥σ)≤Dsε+δ(ρ∥σ)−log⁡δ.D_s^\varepsilon(\rho\Vert\sigma)\le D_h^\varepsilon(\rho\Vert\sigma)\le D_s^{\varepsilon+\delta}(\rho\Vert\sigma)-\log\delta.Dsε​(ρ∥σ)≤Dhε​(ρ∥σ)≤Dsε+δ​(ρ∥σ)−logδ.

No support-inclusion assumption is imposed; infinite divergences are retained.

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]

/-- Lemma 12, PDF p.14: no support inclusion; infinite values retained. -/
theorem spectrum_testing_sandwich (rho sigma : Mat I) (hrho : QAlgorithms.IsDensityMatrix rho)
    (hsigma : sigma.PosSemidef) (e delta : ℝ) (he : 0 ≤ e) (hdelta : 0 < delta)
    (hdomain : e + delta ≤ 1) :
    spectrumEntropy e rho sigma ≤ extendedTestingDivergence e rho sigma ∧
    extendedTestingDivergence e rho sigma ≤ spectrumEntropy (e+delta) rho sigma - (logTwo delta : ℝ) := 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. 14, Lemma 12: spectrum/testing sandwich
Read-back

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

For any finite index type III with decidable equality, any positive semidefinite complex matrix ρ\rhoρ with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1, any positive semidefinite complex matrix σ\sigmaσ, and real numbers e,δe,\deltae,δ satisfying 0≤e0\le e0≤e, 0<δ0<\delta0<δ, and e+δ≤1e+\delta\le1e+δ≤1, define

Su(A,B)=sup⁡{R∈R:Re⁡tr⁡ ⁣(A 1(−∞,0](A−2RB))≤u},bu(A,B)=inf⁡0≤T≤11−u≤Re⁡tr⁡(TA)Re⁡tr⁡(TB),S_u(A,B)=\sup\left\{R\in\mathbb R: \operatorname{Re}\operatorname{tr}\!\left(A\,\mathbf1_{(-\infty,0]}(A-2^RB)\right)\le u\right\}, \qquad b_u(A,B)=\inf_{\substack{0\le T\le1\\ 1-u\le\operatorname{Re}\operatorname{tr}(TA)}} \operatorname{Re}\operatorname{tr}(TB),Su​(A,B)=sup{R∈R:Retr(A1(−∞,0]​(A−2RB))≤u},bu​(A,B)=0≤T≤11−u≤Retr(TA)​inf​Retr(TB),

where the spectral projection includes the zero eigenspace and 0≤T≤10\le T\le10≤T≤1 means that both TTT and 1−T1-T1−T are positive semidefinite. Put Dtestu(A,B)=−log⁡2bu(A,B)D_{\mathrm{test}}^u(A,B)=-\log_2 b_u(A,B)Dtestu​(A,B)=−log2​bu​(A,B) when bu(A,B)>0b_u(A,B)>0bu​(A,B)>0, and Dtestu(A,B)=+∞D_{\mathrm{test}}^u(A,B)=+\inftyDtestu​(A,B)=+∞ otherwise. The supremum defining SuS_uSu​ is taken in the extended real numbers. Then

Se(ρ,σ)≤Dteste(ρ,σ)≤Se+δ(ρ,σ)−log⁡2δ.S_e(\rho,\sigma)\le D_{\mathrm{test}}^e(\rho,\sigma) \le S_{e+\delta}(\rho,\sigma)-\log_2\delta.Se​(ρ,σ)≤Dteste​(ρ,σ)≤Se+δ​(ρ,σ)−log2​δ.

There is no trace normalization or support inclusion assumption on σ\sigmaσ; e=0e=0e=0 and e+δ=1e+\delta=1e+δ=1 are included. The density assumption on ρ\rhoρ cannot hold when III is empty.

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