Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exact optimal tradeoff at zero relative variance

Open
QAlgorithms.Papers.Independent.Advance50.P01.zeroVariance_exactTradeoff

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

prove2quantum

Let ρ\rhoρ and σ\sigmaσ be positive semidefinite complex matrices of trace one on a common nonzero finite-dimensional Hilbert space, with supp⁡ρ⊆supp⁡σ\operatorname{supp}\rho\subseteq\operatorname{supp}\sigmasuppρ⊆suppσ. All logarithms are natural. Write D=Tr⁡[ρ(log⁡ρ−log⁡σ)]D=\operatorname{Tr}[\rho(\log\rho-\log\sigma)]D=Tr[ρ(logρ−logσ)] and V=Tr⁡[ρ(log⁡ρ−log⁡σ)2]−D2V=\operatorname{Tr}[\rho(\log\rho-\log\sigma)^2]-D^2V=Tr[ρ(logρ−logσ)2]−D2, with zero kernel contributions. Tests are all binary POVMs (A,I−A)(A,I-A)(A,I−A) on the nnn-fold tensor product; their conditional errors are αn(A)=Tr⁡[ρ⊗n(I−A)]\alpha_n(A)=\operatorname{Tr}[\rho^{\otimes n}(I-A)]αn​(A)=Tr[ρ⊗n(I−A)] and βn(A)=Tr⁡[σ⊗nA]\beta_n(A)=\operatorname{Tr}[\sigma^{\otimes n}A]βn​(A)=Tr[σ⊗nA]. Let Φ\PhiΦ denote the standard normal cumulative distribution function.

Assume V=0V=0V=0. For every positive integer nnn and every 0≤ε≤10\le\varepsilon\le10≤ε≤1, the optimal type-II error at type-I tolerance ε\varepsilonε is

βn∗(ε)=(1−ε)e−nD.\beta_n^*(\varepsilon)=(1-\varepsilon)e^{-nD}.βn∗​(ε)=(1−ε)e−nD.

A binary POVM attains this value with type-I error exactly ε\varepsilonε. Thus the optimal frontier is αn=1−βnenD\alpha_n=1-\beta_n e^{nD}αn​=1−βn​enD. When ε<1\varepsilon<1ε<1 its finite logarithmic form is

−log⁡βn∗(ε)=nD−log⁡(1−ε).-\log\beta_n^*(\varepsilon)=nD-\log(1-\varepsilon).−logβn∗​(ε)=nD−log(1−ε).

Fractional acceptance effects give every tolerance, including both endpoints; the frontier is not an identity for arbitrary tests.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P01
Formal statement
noncomputable section

open Filter

open scoped Topology

namespace QAlgorithms.Papers.Independent.Advance50.P01

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

open QAlgorithms.Papers.Independent.Information100.P63 (normalCDF normalQuantile tensorPower)

open QAlgorithms.Papers.Independent.Information100.P58 (testingBeta testingD)

open QAlgorithms.Papers.Independent.Dependency50.P36 (relativeEntropyFinite)

attribute [local instance] Classical.propDecidable

-- Match the universe-zero matrix indices of the pinned accepted interfaces.

variable {I : Type} [Fintype I] [DecidableEq I]

-- SupportIncluded is opened directly from the accepted Information100.P71 module.

/-- Exact optimal tradeoff at V=0, source PDF p. 17, §5.
The identity describes the optimal frontier, not every test. Fractional effects give
all epsilon in [0,1]; the logarithmic formula excludes epsilon=1. -/
theorem zeroVariance_exactTradeoff [Nonempty I] (rho sigma : Matrix I I ℂ)
    (hrho : IsDensityMatrix rho) (hsigma : IsDensityMatrix sigma)
    (hsupport : SupportIncluded rho sigma) (hV : relativeVarianceNats rho sigma = 0)
    (n : ℕ) (hn : 1 ≤ n) (epsilon : ℝ) (hepsilon : 0 ≤ epsilon ∧ epsilon ≤ 1) :
    iidOptimalBeta rho sigma n epsilon =
        (1 - epsilon) * Real.exp (-(n * relativeEntropyNats rho sigma)) ∧
    (∃ A : IIDTest I n, iidTypeI rho A = epsilon ∧
      typeII sigma A = iidOptimalBeta rho sigma n epsilon) ∧
    (epsilon < 1 → iidTestingDivergenceNats rho sigma n epsilon =
      ((n * relativeEntropyNats rho sigma - Real.log (1 - epsilon) : ℝ) : EReal)) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P01

end
Source
Second-order asymptotics for quantum hypothesis testing, arXiv:1208.1400v3, PDF p. 17, Section 5: exact optimal frontier
Read-back

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

Let III be a nonempty finite type with decidable equality, and let ρ,σ\rho,\sigmaρ,σ be positive semidefinite complex matrices of trace one satisfying ker⁡σ⊆ker⁡ρ\ker\sigma\subseteq\ker\rhokerσ⊆kerρ. Define

D=Re⁡tr⁡ ⁣(cfc⁡(x↦xlog⁡x)ρ−ρ cfc⁡(log⁡)σ),L=cfc⁡(x↦log⁡x/log⁡2)ρ−cfc⁡(x↦log⁡x/log⁡2)σ−Dlog⁡21,D=\operatorname{Re}\operatorname{tr}\!\left(\operatorname{cfc}(x\mapsto x\log x)\rho-\rho\,\operatorname{cfc}(\log)\sigma\right),\quad L=\operatorname{cfc}(x\mapsto\log x/\log2)\rho-\operatorname{cfc}(x\mapsto\log x/\log2)\sigma-\frac D{\log2}\mathbf1,D=Retr(cfc(x↦xlogx)ρ−ρcfc(log)σ),L=cfc(x↦logx/log2)ρ−cfc(x↦logx/log2)σ−log2D​1,

and assume (log⁡2)2Re⁡tr⁡(ρL2)=0(\log2)^2\operatorname{Re}\operatorname{tr}(\rho L^2)=0(log2)2Retr(ρL2)=0. For every natural number n≥1n\ge1n≥1 and every ϵ∈[0,1]\epsilon\in[0,1]ϵ∈[0,1], let βn(ϵ)\beta_n(\epsilon)βn​(ϵ) be the infimum of Re⁡tr⁡(Aσ⊗n)\operatorname{Re}\operatorname{tr}(A\sigma^{\otimes n})Retr(Aσ⊗n) over effects 0⪯A⪯10\preceq A\preceq\mathbf10⪯A⪯1 satisfying Re⁡tr⁡(Aρ⊗n)≥1−ϵ\operatorname{Re}\operatorname{tr}(A\rho^{\otimes n})\ge1-\epsilonRetr(Aρ⊗n)≥1−ϵ. Then

βn(ϵ)=(1−ϵ)e−nD,\beta_n(\epsilon)=(1-\epsilon)e^{-nD},βn​(ϵ)=(1−ϵ)e−nD,

and there exists such an effect AAA with Re⁡tr⁡(ρ⊗n(1−A))=ϵ\operatorname{Re}\operatorname{tr}(\rho^{\otimes n}(\mathbf1-A))=\epsilonRetr(ρ⊗n(1−A))=ϵ and Re⁡tr⁡(σ⊗nA)=βn(ϵ)\operatorname{Re}\operatorname{tr}(\sigma^{\otimes n}A)=\beta_n(\epsilon)Retr(σ⊗nA)=βn​(ϵ). Additionally, if ϵ<1\epsilon<1ϵ<1, the testing divergence in natural-log units equals nD−log⁡(1−ϵ)nD-\log(1-\epsilon)nD−log(1−ϵ) as an extended real number; that divergence is defined as +∞+\infty+∞ when βn(ϵ)=0\beta_n(\epsilon)=0βn​(ϵ)=0, and as −log⁡βn(ϵ)-\log\beta_n(\epsilon)−logβn​(ϵ) otherwise. Both endpoints ϵ=0,1\epsilon=0,1ϵ=0,1 are included in the first two assertions, while the final formula assumes ϵ<1\epsilon<1ϵ<1.

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