Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Second-order hypothesis-testing converse on separable Hilbert spaces

Open
QAlgorithms.Papers.Independent.Bridge50.P18.hypothesisTesting_secondOrder

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

prove2quantum

Let ρ\rhoρ and σ\sigmaσ be faithful positive trace-class states of trace one on the same separable complex Hilbert space. Choose complete orthonormal spectral bases, ρ=∑xλx∣ϕx⟩⟨ϕx∣\rho=\sum_x\lambda_x|\phi_x\rangle\langle\phi_x|ρ=∑x​λx​∣ϕx​⟩⟨ϕx​∣ and σ=∑yμy∣ψy⟩⟨ψy∣\sigma=\sum_y\mu_y|\psi_y\rangle\langle\psi_y|σ=∑y​μy​∣ψy​⟩⟨ψy​∣, with strictly positive eigenvalues. The spectral log-likelihood random variable L=log⁡2(λx/μy)L=\log_2(\lambda_x/\mu_y)L=log2​(λx​/μy​) has probabilities pxy=λx∣⟨ψy∣ϕx⟩∣2p_{xy}=\lambda_x|\langle\psi_y|\phi_x\rangle|^2pxy​=λx​∣⟨ψy​∣ϕx​⟩∣2. Suppose its mean D=ELD=\mathbb E LD=EL exists absolutely, its variance V=E∣L−D∣2V=\mathbb E|L-D|^2V=E∣L−D∣2 and third absolute central moment T=E∣L−D∣3T=\mathbb E|L-D|^3T=E∣L−D∣3 are finite, and V>0V>0V>0.

Fix 0<ε<10<\varepsilon<10<ε<1. There exist C>0C>0C>0 and an integer n0≥2n_0\ge2n0​≥2, depending on the fixed states and error parameter, such that every integer n≥n0n\ge n_0n≥n0​ satisfies

DHε(ρ⊗n∥σ⊗n)≤nD+nV Φ−1(ε)+Cln⁡n.D_H^\varepsilon(\rho^{\otimes n}\|\sigma^{\otimes n})\le nD+\sqrt{nV}\,\Phi^{-1}(\varepsilon)+C\ln n.DHε​(ρ⊗n∥σ⊗n)≤nD+nV​Φ−1(ε)+Clnn.

Here DHε=−log⁡2inf⁡{Tr⁡(Qσ):0≤Q≤I, Tr⁡(Qρ)≥1−ε}D_H^\varepsilon=-\log_2\inf\{\operatorname{Tr}(Q\sigma):0\le Q\le I,\ \operatorname{Tr}(Q\rho)\ge1-\varepsilon\}DHε​=−log2​inf{Tr(Qσ):0≤Q≤I, Tr(Qρ)≥1−ε}, with −log⁡20=+∞-\log_2 0=+\infty−log2​0=+∞, and Φ\PhiΦ is the standard-normal cumulative distribution function. This converse applies without Gaussianity or an energy constraint.

Formalization Note Complete countable-coordinate spaces include finite-dimensional spaces. Extended nonnegative second and third moments are converted to real coefficients only under their finiteness premises. A natural logarithm in the remainder changes only its constant.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P18
Formal statement
noncomputable section

open Filter

open scoped BigOperators ENNReal Topology

namespace QAlgorithms.Papers.Independent.Bridge50.P18

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Dependency50.P33 (State IsDensity)

open QAlgorithms.Papers.Independent.Dependency50.P13 (operatorTrace)

open QAlgorithms.Papers.Independent.Information100.P63 (logTwo tensorPower)

open QAlgorithms.Papers.Independent.Support50.P20 (hilbertTestingDivergence)

open QAlgorithms.Papers.Independent.Claimed50.P19
  (Cov GaussianWithCovariance multimodeWeylTrace covarianceCharacteristicValue)

-- The accepted complete coordinate basis has the identical body and type.

open QAlgorithms.Papers.Independent.Next46.P13 (coordinateBasis)

/-- PDF p.12, Proposition 2, (C2),(C3), binary-log rescaling explicitly allowed
on p.11. The constants may depend on the fixed states, spectra and epsilon,
but precede the blocklength. There is no Gaussian or energy hypothesis.
Finiteness of D means summability of the signed spectral expectation;
V and T are the independently defined extended central moments. -/
theorem hypothesisTesting_secondOrder {I K J : Type}
    [Countable I] [Countable K] [Countable J]
    (rho sigma : State I)
    (r : StateSpectrum K rho.coefficients) (s : StateSpectrum J sigma.coefficients)
    (hr : ∀ k, 0 < r.value k) (hs : ∀ j, 0 < s.value j)
    (hD : Summable (meanSummand r s))
    (hV : centralMomentBits r s 2 < ⊤)
    (hT : centralMomentBits r s 3 < ⊤)
    (hVpos : 0 < (centralMomentBits r s 2).toReal)
    (epsilon : ℝ) (heps0 : 0 < epsilon) (heps1 : epsilon < 1) :
    ∃ C : ℝ, 0 < C ∧ ∃ n0 : ℕ, 2 ≤ n0 ∧ ∀ n : ℕ, n0 ≤ n →
      tensorTestingBits rho sigma n epsilon ≤
        (((n : ℝ) * relativeMeanBits r s +
          Real.sqrt ((n : ℝ) * (centralMomentBits r s 2).toReal) *
            standardNormalQuantile epsilon + C * Real.log (n : ℝ) : ℝ) : EReal) := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P18

end
Source
Upper bounds on secret key agreement over lossy thermal bosonic channels, arXiv:1706.04590v2, PDF p. 12, Proposition 2, (C2)–(C3)
Read-back

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

Let I,K,JI,K,JI,K,J be countable index sets, and let ρ,σ\rho,\sigmaρ,σ be states with complex coefficient matrices A,BA,BA,B indexed by I×II\times II×I. For each of these matrices, being a state requires a representation Aij=∑r′ur(i)vr(j)‾A_{ij}=\sum'_ru_r(i)\overline{v_r(j)}Aij​=∑r′​ur​(i)vr​(j)​ with ur,vr∈ℓ2(I;C)u_r,v_r\in\ell^2(I;\mathbb C)ur​,vr​∈ℓ2(I;C) and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, real nonnegative quadratic forms on every finite set of coordinates, and a summable real diagonal with sum 111, and likewise for BBB. Let RA,RBR_A,R_BRA​,RB​ denote chosen bounded complex-linear operators with coordinate matrices A,BA,BA,B, with zero used if a bounded realization does not exist. Suppose rrr supplies a complete orthonormal basis (uk)k∈K(u_k)_{k\in K}(uk​)k∈K​ of ℓ2(I;C)\ell^2(I;\mathbb C)ℓ2(I;C) and nonnegative real values aka_kak​ satisfying RAuk=akukR_Au_k=a_ku_kRA​uk​=ak​uk​, and sss supplies such a basis (vj)j∈J(v_j)_{j\in J}(vj​)j∈J​ and values bjb_jbj​ satisfying RBvj=bjvjR_Bv_j=b_jv_jRB​vj​=bj​vj​. Assume further that every ak>0a_k>0ak​>0 and every bj>0b_j>0bj​>0. Define wkj=ak∣⟨vj,uk⟩∣2w_{kj}=a_k|\langle v_j,u_k\rangle|^2wkj​=ak​∣⟨vj​,uk​⟩∣2, ℓkj=log⁡(ak/bj)/log⁡2\ell_{kj}=\log(a_k/b_j)/\log2ℓkj​=log(ak​/bj​)/log2, D=∑k,j′wkjℓkjD=\sum'_{k,j}w_{kj}\ell_{kj}D=∑k,j′​wkj​ℓkj​, and Mr=∑k,j′wkj∣ℓkj−D∣r∈[0,∞]M_r=\sum'_{k,j}w_{kj}|\ell_{kj}-D|^r\in[0,\infty]Mr​=∑k,j′​wkj​∣ℓkj​−D∣r∈[0,∞]. Assume explicitly that the real family (wkjℓkj)k,j(w_{kj}\ell_{kj})_{k,j}(wkj​ℓkj​)k,j​ is summable, that M2<+∞M_2<+\inftyM2​<+∞ and M3<+∞M_3<+\inftyM3​<+∞, and that the real value V=M2V=M_2V=M2​ is strictly positive. For every real 0<ϵ<10<\epsilon<10<ϵ<1, there exist a real C>0C>0C>0 and a natural n0≥2n_0\ge2n0​≥2 such that, for every natural n≥n0n\ge n_0n≥n0​, Tnϵ≤nD+nV qϵ+Clog⁡nT_n^\epsilon\le nD+\sqrt{nV}\,q_\epsilon+C\log nTnϵ​≤nD+nV​qϵ​+Clogn, with the right side embedded in the extended real numbers. Here qϵ=sup⁡{a∈R:Φ(a)≤ϵ}q_\epsilon=\sup\{a\in\mathbb R:\Phi(a)\le\epsilon\}qϵ​=sup{a∈R:Φ(a)≤ϵ}, where Φ\PhiΦ is the standard normal cumulative distribution function, and log⁡n\log nlogn is the natural logarithm. To define TnϵT_n^\epsilonTnϵ​, form the matrices Axy(n)=∏r=0n−1AxryrA^{(n)}_{xy}=\prod_{r=0}^{n-1}A_{x_r y_r}Axy(n)​=∏r=0n−1​Axr​yr​​ and Bxy(n)=∏r=0n−1BxryrB^{(n)}_{xy}=\prod_{r=0}^{n-1}B_{x_r y_r}Bxy(n)​=∏r=0n−1​Bxr​yr​​ on InI^nIn, and take their chosen bounded realizations Rn,SnR_n,S_nRn​,Sn​, again using zero if realization fails. Let βn\beta_nβn​ be the infimum, in [0,∞][0,\infty][0,∞], of max⁡{Re⁡∑x′⟨ex,QSnex⟩,0}\max\{\operatorname{Re}\sum'_x\langle e_x,QS_ne_x\rangle,0\}max{Re∑x′​⟨ex​,QSn​ex​⟩,0} over bounded complex-linear operators QQQ on ℓ2(In;C)\ell^2(I^n;\mathbb C)ℓ2(In;C) for which QQQ and 1−Q1-Q1−Q are self-adjoint with nonnegative real quadratic forms and 1−ϵ≤Re⁡∑x′⟨ex,QRnex⟩1-\epsilon\le\operatorname{Re}\sum'_x\langle e_x,QR_ne_x\rangle1−ϵ≤Re∑x′​⟨ex​,QRn​ex​⟩, where exe_xex​ is the coordinate basis; these diagonal sums return zero if not summable. Then Tnϵ=+∞T_n^\epsilon=+\inftyTnϵ​=+∞ when βn=0\beta_n=0βn​=0, Tnϵ=−∞T_n^\epsilon=-\inftyTnϵ​=−∞ when βn=+∞\beta_n=+\inftyβn​=+∞, and Tnϵ=−log⁡(βn)/log⁡2T_n^\epsilon=-\log(\beta_n)/\log2Tnϵ​=−log(βn​)/log2 otherwise, with an empty feasible set giving βn=+∞\beta_n=+\inftyβn​=+∞. Empty index sets are not expressly excluded, but the state and complete-basis hypotheses cannot hold for empty I,K,I,K,I,K, or JJJ; the asserted bound concerns only n≥n0≥2n\ge n_0\ge2n≥n0​≥2.

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