Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

One-shot source compression

Open
QAlgorithms.Papers.Independent.Advance50.P02.compression_oneShot

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. Let ρXB\rho_{XB}ρXB​ be normalized and classical on XXX, with actual marginal ρB\rho_BρB​, and let 0<η≤ε<10<\eta\le\varepsilon<10<η≤ε<1. Compression protocols have an independent seed, a seed-dependent classical encoder to MMM, and a decoder POVM depending on seed and message. Error is averaged over source and seed. Let mεm^\varepsilonmε be the smallest integer mmm with log⁡∣M∣≤m\log|M|\le mlog∣M∣≤m and error at most ε\varepsilonε. Then

Hhε(X∣B)ρ≤mε(X∣B)ρ≤Hhε−η(X∣B)ρ∣ρ+log⁡(ε/η2)+3.H_h^\varepsilon(X|B)_\rho\le m^\varepsilon(X|B)_\rho\le H_h^{\varepsilon-\eta}(X|B)_{\rho|\rho}+\log(\varepsilon/\eta^2)+3.Hhε​(X∣B)ρ​≤mε(X∣B)ρ​≤Hhε−η​(X∣B)ρ∣ρ​+log(ε/η2)+3.

The right reference is the actual ρB\rho_BρB​, whereas the left conditional testing entropy optimizes normalized references. This distinction is needed for the iid limit.

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 9, PDF pp.11--13: actual marginal in the upper bound. -/
theorem compression_oneShot (blocks : X → Mat B) (hblocks : NormalizedBlocks blocks)
    (e eta : ℝ) (heta : 0 < eta) (hetae : eta ≤ e) (he : e < 1) :
    conditionalTesting e (cqBlockMatrix blocks) ≤ (compressionLength e blocks : EReal) ∧
    (compressionLength e blocks : EReal) ≤
      -extendedTestingDivergence (e-eta) (cqBlockMatrix blocks) (identityTensor X (cqMarginal blocks)) +
        (logTwo (e / eta^2) : ℝ) + 3 := 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. 12, Theorem 9: one-shot source compression
Read-back

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

For finite index types X,BX,BX,B, let ρx⪰0\rho_x\succeq0ρx​⪰0 be matrices on BBB with ∑xRe⁡tr⁡ρx=1\sum_x\operatorname{Re}\operatorname{tr}\rho_x=1∑x​Retrρx​=1, and let 0<η≤e<10<\eta\le e<10<η≤e<1. Set ω=∑x∣x⟩⟨x∣⊗ρx\omega=\sum_x|x\rangle\langle x|\otimes\rho_xω=∑x​∣x⟩⟨x∣⊗ρx​ and ρB=∑xρx\rho_B=\sum_x\rho_xρB​=∑x​ρx​. Then

Hteste(X∣B)ω≤me≤−DHe−η(ω∥IX⊗ρB)+log⁡2(e/η2)+3.H_{\mathrm{test}}^{e}(X\mid B)_\omega \le m_e \le -D_H^{e-\eta}(\omega\|I_X\otimes\rho_B) +\log_2(e/\eta^2)+3.Hteste​(X∣B)ω​≤me​≤−DHe−η​(ω∥IX​⊗ρB​)+log2​(e/η2)+3.

Here Htestu(C∣B)R=sup⁡σ⪰0,tr⁡σ=1[−DHu(R∥IC⊗σ)]H_{\mathrm{test}}^{u}(C\mid B)_R=\sup_{\sigma\succeq0,\operatorname{tr}\sigma=1}[-D_H^{u}(R\|I_C\otimes\sigma)]Htestu​(C∣B)R​=supσ⪰0,trσ=1​[−DHu​(R∥IC​⊗σ)], and DHu(R∥S)D_H^{u}(R\|S)DHu​(R∥S) is −log⁡2βu(R,S)-\log_2\beta_u(R,S)−log2​βu​(R,S) when βu(R,S)>0\beta_u(R,S)>0βu​(R,S)>0, and +∞+\infty+∞ otherwise, where

βu(R,S)=inf⁡0⪯Q⪯I1−u≤Re⁡tr⁡(QR)Re⁡tr⁡(QS).\beta_u(R,S)= \inf_{\substack{0\preceq Q\preceq I\\1-u\le\operatorname{Re}\operatorname{tr}(QR)}} \operatorname{Re}\operatorname{tr}(QS).βu​(R,S)=0⪯Q⪯I1−u≤Retr(QR)​inf​Retr(QS).

A compressor consists of a finite seed distribution ps≥0p_s\ge0ps​≥0 summing to 111, a positive integer rrr of messages, encoders hs:X→{0,…,r−1}h_s:X\to\{0,\ldots,r-1\}hs​:X→{0,…,r−1}, and positive semidefinite decoding matrices Ds,j,xD_{s,j,x}Ds,j,x​ on BBB satisfying ∑xDs,j,x=IB\sum_xD_{s,j,x}=I_B∑x​Ds,j,x​=IB​ for every seed sss and message jjj. Its error is 1−∑sps∑xRe⁡tr⁡(ρxDs,hs(x),x)1-\sum_sp_s\sum_x\operatorname{Re}\operatorname{tr}(\rho_xD_{s,h_s(x),x})1−∑s​ps​∑x​Retr(ρx​Ds,hs​(x),x​). The number mem_eme​ is the infimum in N\mathbb NN of integers mmm for which some compressor has log⁡2r≤m\log_2r\le mlog2​r≤m and error at most eee; the infimum of an empty subset of N\mathbb NN is zero. The bounds embed mem_eme​ into the extended reals, and log⁡2x=log⁡x/log⁡2\log_2x=\log x/\log2log2​x=logx/log2.

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