Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Explicit finite-block compression and extraction bounds

Open
QAlgorithms.Papers.Independent.Advance50.P02.finiteBlock_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 is a universal Berry–Esseen constant 0<C<1/20<C<1/20<C<1/2 with the following property. Let ρXB\rho_{XB}ρXB​ be a normalized finite CQ source and 0<ε<10<\varepsilon<10<ε<1. Define H=−D(ρXB∥IX⊗ρB)H=-D(\rho_{XB}\Vert I_X\otimes\rho_B)H=−D(ρXB​∥IX​⊗ρB​), s=V>0s=\sqrt V>0s=V​>0, and u=EP∣log⁡P−log⁡Q−D∣3=t3u=\mathbb E_P|\log P-\log Q-D|^3=t^3u=EP​∣logP−logQ−D∣3=t3 from the pair's NS distributions. Restrict ρB\rho_BρB​ to its positive support to define λ=log⁡λmax⁡−log⁡λmin⁡\lambda=\log\lambda_{\max}-\log\lambda_{\min}λ=logλmax​−logλmin​, and put kn=max⁡{1,⌈nλ⌉}k_n=\max\{1,\lceil n\lambda\rceil\}kn​=max{1,⌈nλ⌉} and bn=Cu/(n s3)b_n=Cu/(\sqrt n\,s^3)bn​=Cu/(n​s3). For 0<ξ0<min⁡{ε,1−ε}0<\xi_0<\min\{\varepsilon,1-\varepsilon\}0<ξ0​<min{ε,1−ε} and n>C2u2/(ξ02s6)n>C^2u^2/(\xi_0^2s^6)n>C2u2/(ξ02​s6),

sup⁡ξ0≤ξ<1−ε[−n sΦ−1(ε+ξ)−log⁡29kn(ξ−bn)4(1−ε−ξ)]≤mε−nH≤inf⁡ξ0≤ξ<ε[−n sΦ−1(ε−ξ)+log⁡2233kn(ξ−bn)3].\begin{aligned} \sup_{\xi_0\le\xi<1-\varepsilon}\left[-\sqrt n\,s\Phi^{-1}(\varepsilon+\xi)-\log\frac{2^9k_n}{(\xi-b_n)^4(1-\varepsilon-\xi)}\right] &\le m^\varepsilon-nH\\ &\le\inf_{\xi_0\le\xi<\varepsilon}\left[-\sqrt n\,s\Phi^{-1}(\varepsilon-\xi)+\log\frac{2^2 3^3 k_n}{(\xi-b_n)^3}\right]. \end{aligned}ξ0​≤ξ<1−εsup​[−n​sΦ−1(ε+ξ)−log(ξ−bn​)4(1−ε−ξ)29kn​​]​≤mε−nH≤ξ0​≤ξ<εinf​[−n​sΦ−1(ε−ξ)+log(ξ−bn​)32233kn​​].​

For 0<ξ1<min⁡{ε2,1−ε2}0<\xi_1<\min\{\varepsilon^2,1-\varepsilon^2\}0<ξ1​<min{ε2,1−ε2} and n>C2u2/(ξ12s6)n>C^2u^2/(\xi_1^2s^6)n>C2u2/(ξ12​s6),

sup⁡ξ1≤ξ<ε2[n sΦ−1(ε2−ξ)−log⁡55kn(ξ−bn)5(1−ε)]≤ℓε−nH≤inf⁡ξ1≤ξ<1−ε2[n sΦ−1(ε2+ξ)+log⁡2836kn(ξ−bn)6].\begin{aligned} \sup_{\xi_1\le\xi<\varepsilon^2}\left[\sqrt n\,s\Phi^{-1}(\varepsilon^2-\xi)-\log\frac{5^5k_n}{(\xi-b_n)^5(1-\varepsilon)}\right] &\le\ell^\varepsilon-nH\\ &\le\inf_{\xi_1\le\xi<1-\varepsilon^2}\left[\sqrt n\,s\Phi^{-1}(\varepsilon^2+\xi)+\log\frac{2^8 3^6 k_n}{(\xi-b_n)^6}\right]. \end{aligned}ξ1​≤ξ<ε2sup​[n​sΦ−1(ε2−ξ)−log(ξ−bn​)5(1−ε)55kn​​]​≤ℓε−nH≤ξ1​≤ξ<1−ε2inf​[n​sΦ−1(ε2+ξ)+log(ξ−bn​)62836kn​​].​

Both operational quantities use nnn iid copies. The positive-bin repair preserves flat marginals; the threshold makes every denominator positive. These are optimized finite-block bounds, not only asymptotic statements.

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]

/-- Theorem 17, PDF p.21: all four optimized finite-block bounds. The printed r
means t; its cube is classicalThirdCentralMoment. Positive variance is the division domain here,
not an extra assumption on the asymptotic corollaries. The flat-spectrum bin count
is corrected as required by the positive-bin proof on p.18. Source correction. Printed: Theorem 17 p.21 uses V from Definition 1, undefined r^3/r^6, and ceil(n lambda), with lambda using the minimum eigenvalue.
Changed: Use centered V and the standard normal CDF; interpret r=t; use max(1,ceil(n lambda)), evaluating lambda on the positive support of the actual marginal. V>0 is the division domain.
Why: Section VI identifies V as Var(Z) and defines t as the third-moment root. p.18 requires positive bins. A CQ state is supported on X tensor supp(rho_B), so restriction removes only unused kernel directions. All four constants, powers, intervals and blocklength thresholds remain. -/
theorem finiteBlock_bounds :
    ∃ C : ℝ, 0 < C ∧ C < 1/2 ∧
    ∀ (X B : Type) [Fintype X] [DecidableEq X] [Fintype B] [DecidableEq B]
      (blocks : X → Mat B), NormalizedBlocks blocks →
    ∀ (r : PositiveSpectralPresentation (cqBlockMatrix blocks))
      (q : PositiveSpectralPresentation (identityTensor X (cqMarginal blocks)))
      (e : ℝ), 0 < e → e < 1 → 0 < cqConditionalVariance blocks →
    let s := Real.sqrt (cqConditionalVariance blocks)
    let u := classicalThirdCentralMoment (nsProbability r q) (nsReferenceWeight r q)
    (∀ xi0 : ℝ, 0 < xi0 → xi0 < min e (1-e) → ∀ n : ℕ,
      C^2 * u^2 / (xi0^2 * s^6) < (n : ℝ) →
      let b := C*u / (Real.sqrt n*s^3)
      let k : ℝ := finiteBins n (cqMarginal blocks)
      intervalSup xi0 (1-e) (fun xi => -Real.sqrt n*s*normalQuantile (e+xi) -
        logTwo ((2:ℝ)^9*k / ((xi-b)^4*(1-e-xi)))) ≤
          ((compressionLength e (blocksPower n blocks) : EReal) - (n*conditionalMean blocks : ℝ)) ∧
      ((compressionLength e (blocksPower n blocks) : EReal) - (n*conditionalMean blocks : ℝ)) ≤
        intervalInf xi0 e (fun xi => -Real.sqrt n*s*normalQuantile (e-xi) +
          logTwo ((2:ℝ)^2*3^3*k / (xi-b)^3))) ∧
    (∀ xi1 : ℝ, 0 < xi1 → xi1 < min (e^2) (1-e^2) → ∀ n : ℕ,
      C^2 * u^2 / (xi1^2 * s^6) < (n : ℝ) →
      let b := C*u / (Real.sqrt n*s^3)
      let k : ℝ := finiteBins n (cqMarginal blocks)
      intervalSup xi1 (e^2) (fun xi => Real.sqrt n*s*normalQuantile (e^2-xi) -
        logTwo ((5:ℝ)^5*k / ((xi-b)^5*(1-e)))) ≤
          ((extractionLength e (blocksPower n blocks) : EReal) - (n*conditionalMean blocks : ℝ)) ∧
      ((extractionLength e (blocksPower n blocks) : EReal) - (n*conditionalMean blocks : ℝ)) ≤
        intervalInf xi1 (1-e^2) (fun xi => Real.sqrt n*s*normalQuantile (e^2+xi) +
          logTwo ((2:ℝ)^8*3^6*k / (xi-b)^6))) := 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. 21, Theorem 17: explicit finite-block 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, satisfying the following assertions for every pair of finite types X,BX,BX,B with decidable equality and every family TxT_xTx​ of complex B×BB\times BB×B matrices such that each Tx≥0T_x\ge0Tx​≥0 and ∑xRe⁡tr⁡Tx=1\sum_x\operatorname{Re}\operatorname{tr}T_x=1∑x​RetrTx​=1. Put ω=∑xTx\omega=\sum_xT_xω=∑x​Tx​, and define matrices on X×BX\times BX×B by ρ(x,b),(y,c)=Tx(b,c)\rho_{(x,b),(y,c)}=T_x(b,c)ρ(x,b),(y,c)​=Tx​(b,c) when x=yx=yx=y, and 000 otherwise, and σ(x,b),(y,c)=ω(b,c)\sigma_{(x,b),(y,c)}=\omega(b,c)σ(x,b),(y,c)​=ω(b,c) when x=yx=yx=y, and 000 otherwise. Choose any presentations ρ=Udiag⁡(λi)U†\rho=U\operatorname{diag}(\lambda_i)U^\daggerρ=Udiag(λi​)U† and σ=Vdiag⁡(μj)V†\sigma=V\operatorname{diag}(\mu_j)V^\daggerσ=Vdiag(μj​)V†, with nonnegative eigenvalues and U†U=V†V=1U^\dagger U=V^\dagger V=1U†U=V†V=1, and set

P(i,j)=λi∣∑zUzi‾Vzj∣2,Q(i,j)=μj∣∑zUzi‾Vzj∣2,m=∑zP(z)(log⁡2P(z)−log⁡2Q(z)),P(i,j)=\lambda_i\left|\sum_z\overline{U_{zi}}V_{zj}\right|^2,\quad Q(i,j)=\mu_j\left|\sum_z\overline{U_{zi}}V_{zj}\right|^2,\quad m=\sum_zP(z)(\log_2P(z)-\log_2Q(z)),P(i,j)=λi​​z∑​Uzi​​Vzj​​2,Q(i,j)=μj​​z∑​Uzi​​Vzj​​2,m=z∑​P(z)(log2​P(z)−log2​Q(z)), u=∑zP(z)∣log⁡2P(z)−log⁡2Q(z)−m∣3,L=log⁡2(ρ)−log⁡2(σ),H=−Re⁡tr⁡(ρL),u=\sum_zP(z)|\log_2P(z)-\log_2Q(z)-m|^3,\quad L=\log_2(\rho)-\log_2(\sigma),\quad H=-\operatorname{Re}\operatorname{tr}(\rho L),u=z∑​P(z)∣log2​P(z)−log2​Q(z)−m∣3,L=log2​(ρ)−log2​(σ),H=−Retr(ρL), V0=Re⁡tr⁡(ρL2)−(Re⁡tr⁡((t↦tlog⁡t)(ρ)−ρlog⁡(σ))log⁡2)2,s=V0.V_0=\operatorname{Re}\operatorname{tr}(\rho L^2)- \left(\frac{\operatorname{Re}\operatorname{tr}\bigl((t\mapsto t\log t)(\rho)-\rho\log(\sigma)\bigr)}{\log2}\right)^2, \qquad s=\sqrt{V_0}.V0​=Retr(ρL2)−(log2Retr((t↦tlogt)(ρ)−ρlog(σ))​)2,s=V0​​.

Here matrix functions use functional calculus, and log⁡2t=log⁡t/log⁡2\log_2t=\log t/\log2log2​t=logt/log2 uses the total real logarithm, including log⁡20=0\log_20=0log2​0=0. Suppose 0<e<10<e<10<e<1 and V0>0V_0>0V0​>0. For each natural nnn, let Tx[n](a,b)=∏i=0n−1Txi(ai,bi)T^{[n]}_x(a,b)=\prod_{i=0}^{n-1}T_{x_i}(a_i,b_i)Tx[n]​(a,b)=∏i=0n−1​Txi​​(ai​,bi​), for x∈Xnx\in X^nx∈Xn and a,b∈Bna,b\in B^na,b∈Bn, and let Kn=max⁡(1,⌈n[log⁡2λmax⁡(ω)−log⁡2λmin⁡,+(ω)]⌉N)K_n=\max(1,\lceil n[\log_2\lambda_{\max}(\omega)-\log_2\lambda_{\min,+}(\omega)]\rceil_{\mathbb N})Kn​=max(1,⌈n[log2​λmax​(ω)−log2​λmin,+​(ω)]⌉N​), where λmin⁡,+\lambda_{\min,+}λmin,+​ is the least strictly positive eigenvalue, or 000 if none exists. For a normalized positive block family AyA_yAy​, define its compression length ce(A)c_e(A)ce​(A) to be the infimum in N\mathbb NN of integers hhh for which there exist a finite public seed with probabilities pa≥0p_a\ge0pa​≥0 summing to 111, a positive integer m0m_0m0​, encoders fa:y↦{0,…,m0−1}f_a:y\mapsto\{0,\ldots,m_0-1\}fa​:y↦{0,…,m0​−1}, and, for every a,ja,ja,j, positive semidefinite decoding matrices Da,j,yD_{a,j,y}Da,j,y​ with ∑yDa,j,y=1\sum_yD_{a,j,y}=1∑y​Da,j,y​=1, such that log⁡2m0≤h\log_2m_0\le hlog2​m0​≤h and 1−∑apa∑yRe⁡tr⁡(AyDa,fa(y),y)≤e1-\sum_ap_a\sum_y\operatorname{Re}\operatorname{tr}(A_yD_{a,f_a(y),y})\le e1−∑a​pa​∑y​Retr(Ay​Da,fa​(y),y​)≤e. Define its extraction length ℓe(A)\ell_e(A)ℓe​(A) to be the supremum in N\mathbb NN of integers hhh for which there exist such a public seed, a positive integer m0m_0m0​, and hashes fa:y↦{0,…,m0−1}f_a:y\mapsto\{0,\ldots,m_0-1\}fa​:y↦{0,…,m0​−1}, with h≤log⁡2m0h\le\log_2m_0h≤log2​m0​, such that the infimum over density matrices τ\tauτ of the purified distance between the block-diagonal matrices with blocks pa∑y:fa(y)=jAyp_a\sum_{y:f_a(y)=j}A_ypa​∑y:fa​(y)=j​Ay​ and paτ/m0p_a\tau/m_0pa​τ/m0​, indexed by (a,j)(a,j)(a,j), is at most eee. A density matrix is positive semidefinite with trace 111, and this purified distance is

1−(Re⁡tr⁡R SR+(1−Re⁡tr⁡R)(1−Re⁡tr⁡S))2\sqrt{1-\left(\operatorname{Re}\operatorname{tr}\sqrt{\sqrt R\,S\sqrt R} +\sqrt{(1-\operatorname{Re}\operatorname{tr}R)(1-\operatorname{Re}\operatorname{tr}S)}\right)^2}1−(RetrR​SR​​+(1−RetrR)(1−RetrS)​)2​

for matrices R,SR,SR,S. Both natural-number optimizations use their total order conventions, so an empty feasible set gives 000, and an unbounded set in the natural-number supremum also gives 000. The theorem asserts that, for every 0<ξ0<min⁡(e,1−e)0<\xi_0<\min(e,1-e)0<ξ0​<min(e,1−e) and every natural nnn satisfying C2u2/(ξ02s6)<nC^2u^2/(\xi_0^2s^6)<nC2u2/(ξ02​s6)<n, putting b=Cu/(n s3)b=Cu/(\sqrt n\,s^3)b=Cu/(n​s3) and k=Knk=K_nk=Kn​, one has the extended-real inequalities

sup⁡ξ0≤ξ<1−e[−n s Φ−1(e+ξ)−log⁡229k(ξ−b)4(1−e−ξ)]≤ce(T[n])−nH≤inf⁡ξ0≤ξ<e[−n s Φ−1(e−ξ)+log⁡222 33k(ξ−b)3].\sup_{\xi_0\le\xi<1-e} \left[-\sqrt n\,s\,\Phi^{-1}(e+\xi) -\log_2\frac{2^9k}{(\xi-b)^4(1-e-\xi)}\right] \le c_e(T^{[n]})-nH \le \inf_{\xi_0\le\xi<e} \left[-\sqrt n\,s\,\Phi^{-1}(e-\xi) +\log_2\frac{2^2\,3^3k}{(\xi-b)^3}\right].ξ0​≤ξ<1−esup​[−n​sΦ−1(e+ξ)−log2​(ξ−b)4(1−e−ξ)29k​]≤ce​(T[n])−nH≤ξ0​≤ξ<einf​[−n​sΦ−1(e−ξ)+log2​(ξ−b)32233k​].

It also asserts that, for every 0<ξ1<min⁡(e2,1−e2)0<\xi_1<\min(e^2,1-e^2)0<ξ1​<min(e2,1−e2) and every natural nnn satisfying C2u2/(ξ12s6)<nC^2u^2/(\xi_1^2s^6)<nC2u2/(ξ12​s6)<n, with the same definitions of b,kb,kb,k, one has

sup⁡ξ1≤ξ<e2[n s Φ−1(e2−ξ)−log⁡255k(ξ−b)5(1−e)]≤ℓe(T[n])−nH≤inf⁡ξ1≤ξ<1−e2[n s Φ−1(e2+ξ)+log⁡228 36k(ξ−b)6].\sup_{\xi_1\le\xi<e^2} \left[\sqrt n\,s\,\Phi^{-1}(e^2-\xi) -\log_2\frac{5^5k}{(\xi-b)^5(1-e)}\right] \le \ell_e(T^{[n]})-nH \le \inf_{\xi_1\le\xi<1-e^2} \left[\sqrt n\,s\,\Phi^{-1}(e^2+\xi) +\log_2\frac{2^8\,3^6k}{(\xi-b)^6}\right].ξ1​≤ξ<e2sup​[n​sΦ−1(e2−ξ)−log2​(ξ−b)5(1−e)55k​]≤ℓe​(T[n])−nH≤ξ1​≤ξ<1−e2inf​[n​sΦ−1(e2+ξ)+log2​(ξ−b)62836k​].

Here Φ−1(a)=inf⁡{z:a≤∫−∞ze−t2/2/2π dt}\Phi^{-1}(a)=\inf\{z:a\le\int_{-\infty}^z e^{-t^2/2}/\sqrt{2\pi}\,dt\}Φ−1(a)=inf{z:a≤∫−∞z​e−t2/2/2π​dt}; all interval endpoints are included on the left and excluded on the right. The block normalization excludes empty XXX or BBB, and each strict lower bound on nnn excludes n=0n=0n=0.

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