Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Iid compression expansion

Open
QAlgorithms.Papers.Independent.Advance50.P02.compression_iid_secondOrder

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. Fix a normalized finite CQ source ρXB\rho_{XB}ρXB​ 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​) and the centered pair variance VVV for this same pair, using the actual marginal. For the integer compression optimum defined using all seeded encoders and conditional decoder POVMs,

mε(Xn∣Bn)=nH−nV Φ−1(ε)+O(log⁡n).m^\varepsilon(X^n|B^n)=nH-\sqrt{nV}\,\Phi^{-1}(\varepsilon)+O(\log n).mε(Xn∣Bn)=nH−nV​Φ−1(ε)+O(logn).

The remainder is a two-sided bound with positive constant and threshold chosen before nnn. Neither positive variance nor a full-rank marginal is required. This yields the second-order compression cost.

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]

/-- Corollary 15, PDF p.20: actual marginal, integer compression length, V=0 allowed. Source correction. Printed: Definition 1 p.7 prints V=Tr rho(log rho-log sigma)^2; p.19 prints Gaussian density exp(+x^2/2).
Changed: Use centered V=Tr rho(log rho-log sigma)^2-D^2 and the standard normal density exp(-x^2/2).
Why: Section VI identifies s^2 as Var(Z) and uses the standard normal Berry–Esseen theorem. For pure rho and sigma=I/d the likelihood is constant, hence V=0 even when D=log2(d) is nonzero. -/
theorem compression_iid_secondOrder (blocks : X → Mat B) (hblocks : NormalizedBlocks blocks)
    (e : ℝ) (he : 0 < e ∧ e < 1) :
    LogarithmicRemainder (fun n => (compressionLength e (blocksPower n blocks) : EReal))
      (fun n => n * conditionalMean blocks -
        Real.sqrt ((n : ℝ)*cqConditionalVariance blocks) * normalQuantile e) := 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. 20, Corollary 15: iid compression expansion
Read-back

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

For finite types X,BX,BX,B with decidable equality, let x↦ρxx\mapsto\rho_xx↦ρx​ be complex matrices indexed by BBB such that every ρx≥0\rho_x\ge0ρx​≥0 and ∑xRe⁡tr⁡ρx=1\sum_x\operatorname{Re}\operatorname{tr}\rho_x=1∑x​Retrρx​=1, and let 0<e<10<e<10<e<1. Set Γ=⨁xρx\Gamma=\bigoplus_x\rho_xΓ=⨁x​ρx​, Σ=∑xρx\Sigma=\sum_x\rho_xΣ=∑x​ρx​, Ω=1X⊗Σ\Omega=1_X\otimes\SigmaΩ=1X​⊗Σ, and

L=log⁡2Γ−log⁡2Ω,H=−Re⁡tr⁡(ΓL),V=Re⁡tr⁡(ΓL2)−(Re⁡tr⁡(ΓL))2,L=\log_2\Gamma-\log_2\Omega,\qquad H=-\operatorname{Re}\operatorname{tr}(\Gamma L),\qquad V=\operatorname{Re}\operatorname{tr}(\Gamma L^2) -\bigl(\operatorname{Re}\operatorname{tr}(\Gamma L)\bigr)^2,L=log2​Γ−log2​Ω,H=−Retr(ΓL),V=Retr(ΓL2)−(Retr(ΓL))2,

where logarithms use spectral functional calculus with log⁡20=0\log_2 0=0log2​0=0. At block length nnn, the matrix associated with a label string x∈Xnx\in X^nx∈Xn is ρx(n)=⨂i=0n−1ρxi\rho_x^{(n)}=\bigotimes_{i=0}^{n-1}\rho_{x_i}ρx(n)​=⨂i=0n−1​ρxi​​. A compressor consists of a finite public seed with probabilities ps≥0p_s\ge0ps​≥0, ∑sps=1\sum_sp_s=1∑s​ps​=1, a positive natural number MMM of messages, encoders fs:Xn→{0,…,M−1}f_s:X^n\to\{0,\ldots,M-1\}fs​:Xn→{0,…,M−1}, and matrices Ds,m,x≥0D_{s,m,x}\ge0Ds,m,x​≥0 on BnB^nBn satisfying ∑xDs,m,x=1\sum_xD_{s,m,x}=1∑x​Ds,m,x​=1 for every seed and message. Its error is

1−∑sps∑xRe⁡tr⁡(ρx(n)Ds,fs(x),x).1-\sum_sp_s\sum_x\operatorname{Re}\operatorname{tr} \bigl(\rho_x^{(n)}D_{s,f_s(x),x}\bigr).1−s∑​ps​x∑​Retr(ρx(n)​Ds,fs​(x),x​).

Let ℓcomp(e,n)\ell_{\mathrm{comp}}(e,n)ℓcomp​(e,n) be the infimum in N\mathbb NN of all mmm for which such a compressor has error at most eee and log⁡2M≤m\log_2M\le mlog2​M≤m; the natural-number infimum of an empty feasible set is 000. Let Φ−1(u)=inf⁡{z:u≤∫−∞ze−t2/2/2π dt}\Phi^{-1}(u)=\inf\{z:u\le\int_{-\infty}^z e^{-t^2/2}/\sqrt{2\pi}\,dt\}Φ−1(u)=inf{z:u≤∫−∞z​e−t2/2/2π​dt}. There exist C>0C>0C>0 and n0≥2n_0\ge2n0​≥2 such that all natural n≥n0n\ge n_0n≥n0​ satisfy

nH−nV Φ−1(e)−Clog⁡2n≤ℓcomp(e,n)≤nH−nV Φ−1(e)+Clog⁡2n.nH-\sqrt{nV}\,\Phi^{-1}(e)-C\log_2n \le \ell_{\mathrm{comp}}(e,n) \le nH-\sqrt{nV}\,\Phi^{-1}(e)+C\log_2n.nH−nV​Φ−1(e)−Clog2​n≤ℓcomp​(e,n)≤nH−nV​Φ−1(e)+Clog2​n.

The natural-valued length is embedded in the extended reals in these inequalities. Individual blocks may be zero; positive variance is not assumed. The normalization hypothesis excludes empty XXX or empty BBB.

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