Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Two-sided iid quantum hypothesis-testing expansion

Open
QAlgorithms.Papers.Independent.Advance50.P02.testing_iid_secondOrder

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 a normalized quantum state and σ≥0\sigma\ge0σ≥0 a comparison operator on the same space, with supp⁡ρ⊆supp⁡σ\operatorname{supp}\rho\subseteq\operatorname{supp}\sigmasuppρ⊆suppσ. Fix 0<ε<10<\varepsilon<10<ε<1. Let D=D(ρ∥σ)D=D(\rho\Vert\sigma)D=D(ρ∥σ) and V=tr⁡ρ(log⁡ρ−log⁡σ)2−D2V=\operatorname{tr}\rho(\log\rho-\log\sigma)^2-D^2V=trρ(logρ−logσ)2−D2 be the centered information variance, and let Φ−1\Phi^{-1}Φ−1 denote the standard normal quantile. There are constants C>0C>0C>0 and n0≥2n_0\ge2n0​≥2, depending only on this fixed pair and error, such that for every n≥n0n\ge n_0n≥n0​,

nD+nV Φ−1(ε)−Clog⁡n≤Dhε(ρ⊗n∥σ⊗n)≤nD+nV Φ−1(ε)+Clog⁡n.nD+\sqrt{nV}\,\Phi^{-1}(\varepsilon)-C\log n \le D_h^\varepsilon(\rho^{\otimes n}\Vert\sigma^{\otimes n}) \le nD+\sqrt{nV}\,\Phi^{-1}(\varepsilon)+C\log n.nD+nV​Φ−1(ε)−Clogn≤Dhε​(ρ⊗n∥σ⊗n)≤nD+nV​Φ−1(ε)+Clogn.

The statement includes V=0V=0V=0, singular states and unnormalized comparisons. It supplies the full two-sided logarithmic-remainder testing interface.

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]

/-- Eq.(34), PDF pp.6,19: full support domain, singular rho and unnormalized sigma,
including V=0. Two-sided constants precede n. Source correction. Printed: Definition 1 p.7 prints V=Tr rho(log rho-log sigma)^2; p.19 prints Gaussian density exp(+x^2/2).
Changed: Use centered V=Tr rho(log rho-log sigma)^2-D^2 and the standard normal density exp(-x^2/2).
Why: Section VI identifies s^2 as Var(Z) and uses the standard normal Berry–Esseen theorem. For pure rho and sigma=I/d the likelihood is constant, hence V=0 even when D=log2(d) is nonzero. -/
theorem testing_iid_secondOrder (rho sigma : Mat I) (hrho : QAlgorithms.IsDensityMatrix rho)
    (hsigma : sigma.PosSemidef) (hsupport : SupportIncluded rho sigma)
    (e : ℝ) (he : 0 < e ∧ e < 1) :
    LogarithmicRemainder
      (fun n => extendedTestingDivergence e (tensorPower n rho) (tensorPower n sigma))
      (fun n => gaussianCenter n (relativeMean rho sigma) (centeredRelativeVariance rho sigma) e) := 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. 19, §VI-A Eq. (34): two-sided iid hypothesis-testing expansion (seed headline)
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ρ of trace 111, any positive semidefinite complex matrix σ\sigmaσ satisfying ker⁡σ⊆ker⁡ρ\ker\sigma\subseteq\ker\rhokerσ⊆kerρ, and any real 0<e<10<e<10<e<1, put

L=log⁡2ρ−log⁡2σ,D=Re⁡tr⁡(ρL),V=Re⁡tr⁡(ρL2)−D2.L=\log_2\rho-\log_2\sigma,\qquad D=\operatorname{Re}\operatorname{tr}(\rho L),\qquad V=\operatorname{Re}\operatorname{tr}(\rho L^2)-D^2.L=log2​ρ−log2​σ,D=Retr(ρL),V=Retr(ρL2)−D2.

Matrix logarithms here use spectral functional calculus with the total scalar convention log⁡20=0\log_2 0=0log2​0=0. Write Ax,y⊗n=∏i=0n−1Axi,yiA^{\otimes n}_{x,y}=\prod_{i=0}^{n-1}A_{x_i,y_i}Ax,y⊗n​=∏i=0n−1​Axi​,yi​​, and let Φ−1(e)=inf⁡{z:e≤Φ(z)}\Phi^{-1}(e)=\inf\{z:e\le\Phi(z)\}Φ−1(e)=inf{z:e≤Φ(z)}, where Φ(z)=∫−∞ze−x2/2/2π dx\Phi(z)=\int_{-\infty}^z e^{-x^2/2}/\sqrt{2\pi}\,dxΦ(z)=∫−∞z​e−x2/2/2π​dx. For A,BA,BA,B, let be(A,B)b_e(A,B)be​(A,B) be the real infimum of Re⁡tr⁡(TB)\operatorname{Re}\operatorname{tr}(TB)Retr(TB) over T≥0T\ge0T≥0, 1−T≥01-T\ge01−T≥0, and 1−e≤Re⁡tr⁡(TA)1-e\le\operatorname{Re}\operatorname{tr}(TA)1−e≤Retr(TA); define Dteste(A,B)=−log⁡2be(A,B)D_{\mathrm{test}}^e(A,B)=-\log_2b_e(A,B)Dteste​(A,B)=−log2​be​(A,B) if be(A,B)>0b_e(A,B)>0be​(A,B)>0, and +∞+\infty+∞ otherwise. There exist a real C>0C>0C>0 and a natural number n0≥2n_0\ge2n0​≥2 such that every natural n≥n0n\ge n_0n≥n0​ satisfies

nD+nV Φ−1(e)−Clog⁡2n≤Dteste(ρ⊗n,σ⊗n)≤nD+nV Φ−1(e)+Clog⁡2n.nD+\sqrt{nV}\,\Phi^{-1}(e)-C\log_2n \le D_{\mathrm{test}}^e(\rho^{\otimes n},\sigma^{\otimes n}) \le nD+\sqrt{nV}\,\Phi^{-1}(e)+C\log_2n.nD+nV​Φ−1(e)−Clog2​n≤Dteste​(ρ⊗n,σ⊗n)≤nD+nV​Φ−1(e)+Clog2​n.

These inequalities are in the extended reals. No trace normalization of σ\sigmaσ or strict positivity of VVV is assumed, and the bound makes no assertion for n<n0n<n_0n<n0​.

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