Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Finite-n Berry–Esseen spectrum bounds

Open
QAlgorithms.Papers.Independent.Advance50.P02.berryEsseen_spectrum_bounds

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. There exists a universal 0<C<1/20<C<1/20<C<1/2 as follows. Let ρ\rhoρ be normalized, σ≥0\sigma\ge0σ≥0 with support inclusion, P,QP,QP,Q their NS pair, DDD its mean, V=s2>0V=s^2>0V=s2>0 its centered variance, and u=EP∣log⁡P−log⁡Q−D∣3u=\mathbb E_P|\log P-\log Q-D|^3u=EP​∣logP−logQ−D∣3. For 0<ε<10<\varepsilon<10<ε<1, positive nnn, and bn=Cu/(s3n)<min⁡{ε,1−ε}b_n=Cu/(s^3\sqrt n)<\min\{\varepsilon,1-\varepsilon\}bn​=Cu/(s3n​)<min{ε,1−ε},

nD+nV Φ−1(ε−bn)≤Dsε(P⊗n∥Q⊗n)≤nD+nV Φ−1(ε+bn).nD+\sqrt{nV}\,\Phi^{-1}(\varepsilon-b_n)\le D_s^\varepsilon(P^{\otimes n}\Vert Q^{\otimes n})\le nD+\sqrt{nV}\,\Phi^{-1}(\varepsilon+b_n).nD+nV​Φ−1(ε−bn​)≤Dsε​(P⊗n∥Q⊗n)≤nD+nV​Φ−1(ε+bn​).

The quantile and division domains are explicit. The printed undefined rrr is interpreted as the preceding ttt, with u=t3u=t^3u=t3.

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.(32), PDF p.19: universal Berry--Esseen C<1/2; the printed undefined r
is t, whose cube is the independently defined third absolute central moment. Source correction. Printed: Definition 1 p.7 omits centering; p.19 prints exp(+x^2/2) and undefined r^3 after defining t.
Changed: Use centered V, standard normal exp(-x^2/2), and t^3 equal to the third absolute central moment.
Why: Section VI explicitly uses Var(Z), the standard normal CDF, and numerator Ct^3 in its preceding Berry–Esseen bound. No separate r is defined. -/
theorem berryEsseen_spectrum_bounds :
    ∃ C : ℝ, 0 < C ∧ C < 1/2 ∧
    ∀ (I : Type) [Fintype I] [DecidableEq I] (rho sigma : Mat I),
    QAlgorithms.IsDensityMatrix rho → sigma.PosSemidef → SupportIncluded rho sigma →
    ∀ (r : PositiveSpectralPresentation rho) (s : PositiveSpectralPresentation sigma) (e : ℝ), 0 < e → e < 1 →
    0 < centeredRelativeVariance rho sigma → ∀ n : ℕ, 1 ≤ n →
    let b := C * classicalThirdCentralMoment (nsProbability r s) (nsReferenceWeight r s) /
      ((Real.sqrt (centeredRelativeVariance rho sigma))^3 * Real.sqrt n)
    b < min e (1-e) →
    ((gaussianCenter n (relativeMean rho sigma) (centeredRelativeVariance rho sigma) (e-b) : ℝ) : EReal) ≤
      classicalSpectrumDivergence e (weightPower n (nsProbability r s)) (weightPower n (nsReferenceWeight r s)) ∧
    classicalSpectrumDivergence e (weightPower n (nsProbability r s)) (weightPower n (nsReferenceWeight r s)) ≤
      ((gaussianCenter n (relativeMean rho sigma) (centeredRelativeVariance rho sigma) (e+b) : ℝ) : EReal) := 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 Eq. (32): finite-n spectrum bounds
Read-back

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

There exists a single real constant CCC, with 0<C<1/20<C<1/20<C<1/2, having the following property for every finite type III with decidable equality. Let ρ,σ\rho,\sigmaρ,σ be complex matrices indexed by III, where ρ\rhoρ is positive semidefinite with trace 111, σ\sigmaσ is positive semidefinite, and ker⁡σ⊆ker⁡ρ\ker\sigma\subseteq\ker\rhokerσ⊆kerρ. Choose presentations ρ=Udiag⁡(λx)U†\rho=U\operatorname{diag}(\lambda_x)U^\daggerρ=Udiag(λx​)U† and σ=Vdiag⁡(μy)V†\sigma=V\operatorname{diag}(\mu_y)V^\daggerσ=Vdiag(μy​)V†, with nonnegative eigenvalues and U†U=V†V=1U^\dagger U=V^\dagger V=1U†U=V†V=1, and define

P(x,y)=λx∣∑iUix‾Viy∣2,Q(x,y)=μy∣∑iUix‾Viy∣2.P(x,y)=\lambda_x\left|\sum_i\overline{U_{ix}}V_{iy}\right|^2,\qquad Q(x,y)=\mu_y\left|\sum_i\overline{U_{ix}}V_{iy}\right|^2.P(x,y)=λx​​i∑​Uix​​Viy​​2,Q(x,y)=μy​​i∑​Uix​​Viy​​2.

Write log⁡2z=log⁡z/log⁡2\log_2 z=\log z/\log2log2​z=logz/log2, using the total real logarithm, so log⁡20=0\log_2 0=0log2​0=0. Set L=log⁡2(ρ)−log⁡2(σ)L=\log_2(\rho)-\log_2(\sigma)L=log2​(ρ)−log2​(σ), with matrix functions interpreted by functional calculus, and define

D=Re⁡tr⁡(ρL),V0=Re⁡tr⁡(ρL2)−(Re⁡tr⁡((x↦xlog⁡x)(ρ)−ρlog⁡(σ))log⁡2)2,D=\operatorname{Re}\operatorname{tr}(\rho L),\quad V_0=\operatorname{Re}\operatorname{tr}(\rho L^2)- \left(\frac{\operatorname{Re}\operatorname{tr}\bigl((x\mapsto x\log x)(\rho)-\rho\log(\sigma)\bigr)}{\log2}\right)^2,D=Retr(ρL),V0​=Retr(ρL2)−(log2Retr((x↦xlogx)(ρ)−ρlog(σ))​)2, m=∑zP(z)(log⁡2P(z)−log⁡2Q(z)),T=∑zP(z)∣log⁡2P(z)−log⁡2Q(z)−m∣3.m=\sum_zP(z)\bigl(\log_2P(z)-\log_2Q(z)\bigr),\qquad T=\sum_zP(z)\left|\log_2P(z)-\log_2Q(z)-m\right|^3.m=z∑​P(z)(log2​P(z)−log2​Q(z)),T=z∑​P(z)∣log2​P(z)−log2​Q(z)−m∣3.

For every 0<e<10<e<10<e<1, if V0>0V_0>0V0​>0, then for every integer n≥1n\ge1n≥1, putting b=CT/((V0)3n)b=CT/((\sqrt{V_0})^3\sqrt n)b=CT/((V0​​)3n​), the condition b<min⁡(e,1−e)b<\min(e,1-e)b<min(e,1−e) implies

nD+nV0 Φ−1(e−b)≤sup⁡{R∈R:∑z∈(I×I)n∏iP(zi)≤2R∏iQ(zi)∏iP(zi)≤e}≤nD+nV0 Φ−1(e+b).nD+\sqrt{nV_0}\,\Phi^{-1}(e-b) \le \sup\left\{R\in\mathbb R: \sum_{\substack{z\in(I\times I)^n\\ \prod_iP(z_i)\le2^R\prod_iQ(z_i)}} \prod_iP(z_i)\le e\right\} \le nD+\sqrt{nV_0}\,\Phi^{-1}(e+b).nD+nV0​​Φ−1(e−b)≤sup⎩⎨⎧​R∈R:z∈(I×I)n∏i​P(zi​)≤2R∏i​Q(zi​)​∑​i∏​P(zi​)≤e⎭⎬⎫​≤nD+nV0​​Φ−1(e+b).

The supremum and inequalities are in the extended reals, and Φ−1(a)=inf⁡{t:a≤Φ(t)}\Phi^{-1}(a)=\inf\{t:a\le\Phi(t)\}Φ−1(a)=inf{t:a≤Φ(t)}, where Φ(t)=∫−∞te−x2/2/2π dx\Phi(t)=\int_{-\infty}^t e^{-x^2/2}/\sqrt{2\pi}\,dxΦ(t)=∫−∞t​e−x2/2/2π​dx. The matrix σ\sigmaσ need not have trace 111; zero eigenvalues are allowed. No nonemptiness assumption on III is imposed separately, although a density matrix cannot exist 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