Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1: second-order testing bounds beyond IID (seed result)

Open
QAlgorithms.Papers.Independent.Bridge50.P02.second_order_testing

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

prove2quantum

Let ρn,σn\rho_n,\sigma_nρn​,σn​ be faithful density matrices on nonzero finite-dimensional complex Hilbert spaces HnH_nHn​, for positive integers nnn. Let wn>0w_n>0wn​>0 be nondecreasing with wn→∞w_n\to\inftywn​→∞. Assume Condition 1: on one common disc ∣z∣<r|z|<r∣z∣<r, r>0r>0r>0, the functions En(z)=log⁡Tr⁡(ρn1−zσnz)E_n(z)=\log\operatorname{Tr}(\rho_n^{1-z}\sigma_n^z)En​(z)=logTr(ρn1−z​σnz​) have holomorphic extensions, En(x)/wnE_n(x)/w_nEn​(x)/wn​ has a finite limit for each real ∣x∣<r|x|<r∣x∣<r, and ∣En(z)∣/wn|E_n(z)|/w_n∣En​(z)∣/wn​ is uniformly bounded in n,zn,zn,z. Write Dn=D(ρn∥σn)D_n=D(\rho_n\Vert\sigma_n)Dn​=D(ρn​∥σn​) for relative entropy in nats, Vn=V(ρn∥σn)V_n=V(\rho_n\Vert\sigma_n)Vn​=V(ρn​∥σn​) for information variance, and d=lim⁡nDn/wnd=\lim_nD_n/w_nd=limn​Dn​/wn​, v=lim⁡nVn/wnv=\lim_nV_n/w_nv=limn​Vn​/wn​. For 0<ε<10<\varepsilon<10<ε<1, let βn(ε)\beta_n(\varepsilon)βn​(ε) be the infimum of Tr⁡(σnT)\operatorname{Tr}(\sigma_nT)Tr(σn​T) over all effects 0≤T≤I0\le T\le I0≤T≤I satisfying Tr⁡(ρn(I−T))≤ε\operatorname{Tr}(\rho_n(I-T))\le\varepsilonTr(ρn​(I−T))≤ε. Let Φ−1\Phi^{-1}Φ−1 denote the standard-normal quantile and set t∗=v Φ−1(ε)t_*=\sqrt v\,\Phi^{-1}(\varepsilon)t∗​=v​Φ−1(ε).

For every t>t∗t>t_*t>t∗​ there is a real function ft=o(x)f_t=o(\sqrt{x})ft​=o(x​) as x→+∞x\to+\inftyx→+∞ such that, for every n≥1n\ge1n≥1,

−log⁡βn(ε)≤Dn+wn t+ft(wn).-\log\beta_n(\varepsilon)\le D_n+\sqrt{w_n}\,t+f_t(w_n).−logβn​(ε)≤Dn​+wn​​t+ft​(wn​).

For every t<t∗t<t_*t<t∗​ and every real f=o(x)f=o(\sqrt{x})f=o(x​), the reverse inequality

−log⁡βn(ε)≥Dn+wn t+f(wn)-\log\beta_n(\varepsilon)\ge D_n+\sqrt{w_n}\,t+f(w_n)−logβn​(ε)≥Dn​+wn​​t+f(wn​)

holds for all sufficiently large nnn. The statement permits v=0v=0v=0 and repeated weights.

These bounds identify the second-order testing scale without an IID hypothesis.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P02
Formal statement
noncomputable section

open Filter MeasureTheory

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

namespace QAlgorithms.Papers.Independent.Bridge50.P02

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Claimed50.P15
  (evaluate positiveMatrixRpow modularMatrix modularQuadratic resolventOverlap petzOverlap
    finiteRelativeEntropyNats)

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

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

open QAlgorithms.Papers.Independent.Information100.P58 (normalQuantile)

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

/-- Theorem 1, PDF pp.9--10, (3.3)--(3.4). No strict positivity of the variance rate. -/
theorem second_order_testing (S : TestingSequence) (w : ℕ → ℝ)
    (hfaithful : FaithfulPairs S) (hcondition : ConditionOne S w)
    (epsilon : ℝ) (hepsilon : 0 < epsilon ∧ epsilon < 1) :
    SecondOrderBounds S w (fun k => finitePairRelativeEntropyNats (S.rho k) (S.sigma k)) epsilon := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P02

end
Source
Second-order asymptotics for quantum hypothesis testing in settings beyond i.i.d. - quantum lattice systems and more, arXiv:1510.04682v4, PDF p. 9, Theorem 1
Read-back

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

Let SSS specify finite index types IkI_kIk​ with decidable equality and complex matrices ρk,σk\rho_k,\sigma_kρk​,σk​, and let w:N→Rw:\mathbb N\to\mathbb Rw:N→R. Assume that every IkI_kIk​ is nonempty, that both matrices are positive definite and positive semidefinite with complex trace 111, and that ker⁡σk⊆ker⁡ρk\ker\sigma_k\subseteq\ker\rho_kkerσk​⊆kerρk​. Assume that wk>0w_k>0wk​>0, that www is nondecreasing and tends to +∞+\infty+∞, and that there are r>0r>0r>0 and functions Hk:C→CH_k:\mathbb C\to\mathbb CHk​:C→C, analytic on a neighborhood of every point of ∣z∣<r|z|<r∣z∣<r, such that

Hk(x)=log⁡Re⁡Tr⁡(ρk[1−x]σk[x])(∣x∣<r, x∈R),H_k(x)=\log\operatorname{Re}\operatorname{Tr}\bigl(\rho_k^{[1-x]}\sigma_k^{[x]}\bigr)\quad(|x|<r,\ x\in\mathbb R),Hk​(x)=logReTr(ρk[1−x]​σk[x]​)(∣x∣<r, x∈R),

every Hk(x)/wkH_k(x)/w_kHk​(x)/wk​ at such a real xxx converges to a finite complex value, and ∣Hk(z)∣≤Cwk|H_k(z)|\le Cw_k∣Hk​(z)∣≤Cwk​ for some real CCC, all kkk, and ∣z∣<r|z|<r∣z∣<r. Spectral powers A[s]A^{[s]}A[s] assign 000 to zero eigenvalues, and spectral logarithms assign log⁡0=0\log0=0log0=0. Define

Dk=Re⁡Tr⁡(ρk(log⁡ρk−log⁡σk)),Vk=Re⁡Tr⁡(ρk(log⁡ρk−log⁡σk)2)−Dk2,D_k=\operatorname{Re}\operatorname{Tr}\bigl(\rho_k(\log\rho_k-\log\sigma_k)\bigr),\quad V_k=\operatorname{Re}\operatorname{Tr}\bigl(\rho_k(\log\rho_k-\log\sigma_k)^2\bigr)-D_k^2,Dk​=ReTr(ρk​(logρk​−logσk​)),Vk​=ReTr(ρk​(logρk​−logσk​)2)−Dk2​,

let vvv be the totalized limit value of Vk/wkV_k/w_kVk​/wk​, and, for 0<ϵ<10<\epsilon<10<ϵ<1, put

bk=inf⁡{Re⁡Tr⁡(σkT):T≥0, 1−T≥0, 1−ϵ≤Re⁡Tr⁡(ρkT)},qk=−log⁡bk,c=v Φ−1(ϵ),b_k=\inf\left\{\operatorname{Re}\operatorname{Tr}(\sigma_kT): T\ge0,\ 1-T\ge0,\ 1-\epsilon\le\operatorname{Re}\operatorname{Tr}(\rho_kT)\right\},\quad q_k=-\log b_k,\quad c=\sqrt v\,\Phi^{-1}(\epsilon),bk​=inf{ReTr(σk​T):T≥0, 1−T≥0, 1−ϵ≤ReTr(ρk​T)},qk​=−logbk​,c=v​Φ−1(ϵ),

where Φ−1(ϵ)=inf⁡{z:∫−∞ze−x2/2/2π dx≥ϵ}\Phi^{-1}(\epsilon)=\inf\{z:\int_{-\infty}^{z}e^{-x^2/2}/\sqrt{2\pi}\,dx\ge\epsilon\}Φ−1(ϵ)=inf{z:∫−∞z​e−x2/2/2π​dx≥ϵ}. Then, for every real t>ct>ct>c, there exists f:R→Rf:\mathbb R\to\mathbb Rf:R→R with f(x)=o(x)f(x)=o(\sqrt x)f(x)=o(x​) as x→+∞x\to+\inftyx→+∞ such that qk≤Dk+wk t+f(wk)q_k\le D_k+\sqrt{w_k}\,t+f(w_k)qk​≤Dk​+wk​​t+f(wk​) for every kkk; and, for every real t<ct<ct<c and every such function fff, one eventually has Dk+wk t+f(wk)≤qkD_k+\sqrt{w_k}\,t+f(w_k)\le q_kDk​+wk​​t+f(wk​)≤qk​. No strict positivity assumption on vvv is imposed, and no assertion at t=ct=ct=c is included.

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