Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§6, (24): random coding attains the unital-channel Hamming rate

Open
QAlgorithms.Papers.Independent.Advance50.P29.unitalCapacity

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

prove2quantum

Let QQQ and Q′Q^{\prime}Q′ be finite complex Hilbert spaces of positive dimensions MMM and DDD. A density operator is positive semidefinite with trace one. All logarithms and entropies are in bits. Write π=IQ/M\pi=I_Q/Mπ=IQ​/M. For a nonzero code subspace C⊂QC\subset QC⊂Q of dimension KKK, let πC=ΠC/K\pi_C=\Pi_C/KπC​=ΠC​/K. Write Fe(C,N)=max⁡RFe(πC,R∘N)F_e(C,\mathcal N)=\max_{\mathcal R}F_e(\pi_C,\mathcal R\circ\mathcal N)Fe​(C,N)=maxR​Fe​(πC​,R∘N), where R:B(Q′)→B(Q)\mathcal R:B(Q^{\prime})\to B(Q)R:B(Q′)→B(Q) ranges over all CPTP recovery maps and state entanglement fidelity is squared and unconditional. The operational capacity Q(N)Q(\mathcal N)Q(N) is the supremum of all real rates RRR for which one sequence of nonzero codes Cn⊂Q⊗nC_n\subset Q^{\otimes n}Cn​⊂Q⊗n, one for every positive integer nnn, has lim sup⁡nn−1log⁡2dim⁡Cn≥R\limsup_n n^{-1}\log_2\dim C_n\ge Rlimsupn​n−1log2​dimCn​≥R and Fe(Cn,N⊗n)→1F_e(C_n,\mathcal N^{\otimes n})\to1Fe​(Cn​,N⊗n)→1. Let U\mathcal UU be a normalized-unital CPTP channel and r=∣U∣r=|\mathcal U|r=∣U∣ its minimum Kraus length. Then

Q(U)≥log⁡2D−log⁡2r.Q(\mathcal U)\ge\log_2D-\log_2r.Q(U)≥log2​D−log2​r.

This is the explicit quantum Hamming-rate lower bound obtained by random coding. It remains meaningful if the right side is nonpositive.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P29
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P29

open QAlgorithms MeasureTheory Filter

open QAlgorithms.Papers.Independent.Information100.P22
  (densityPurification coherentInformation singleUseInformation mixed)

open QAlgorithms.Papers.Independent.Information100.P27 (shannon)

open QAlgorithms.Papers.Independent.Dependency50.P48 (wordProbability)

open QAlgorithms.Papers.Independent.Bridge50.P43 (tensorDensity)

open scoped Matrix ComplexConjugate ComplexOrder Topology

attribute [local instance] Classical.propDecidable

variable {I J E L : Type} [Fintype I] [DecidableEq I]

variable [Fintype J] [DecidableEq J] [Fintype E] [DecidableEq E]

variable [Fintype L] [DecidableEq L]

/-- PDF p.14, (24): random coding attains the normalized-unital Hamming rate. -/
theorem unitalCapacity [Nonempty I] [Nonempty J] (N : Superop I J)
    (hN : IsChannel N) (hu : NormalizedUnital N) :
    Real.logb 2 (Fintype.card J : ℝ) - Real.logb 2 (operationLength N : ℝ) ≤
      limsupCodeCapacity N := by sorry

end QAlgorithms.Papers.Independent.Advance50.P29

end
Source
A random-coding based proof for the quantum coding theorem, arXiv:0712.2558v1, PDF p. 14, §6, (24): random coding attains the unital-channel Hamming rate
Read-back

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

Let I,JI,JI,J be nonempty finite index types with decidable equality, and let NNN be a channel from matrices on III to matrices on JJJ, meaning N(X)=∑j<rAjXAj†N(X)=\sum_{j<r}A_jXA_j^\daggerN(X)=∑j<r​Aj​XAj†​ for all XXX, with ∑j<rAj†Aj=II\sum_{j<r}A_j^\dagger A_j=I_I∑j<r​Aj†​Aj​=II​. Assume N(II/∣I∣)=IJ/∣J∣N(I_I/|I|)=I_J/|J|N(II​/∣I∣)=IJ​/∣J∣. Let ℓ(N)\ell(N)ℓ(N) be the infimum in N\mathbb NN of the numbers of matrices in finite Kraus representations of NNN; the representation requirement here is equality on every matrix, with no additional trace inequality. Define Qlim sup⁡(N)Q_{\limsup}(N)Qlimsup​(N) as the real supremum of all real numbers RRR for which there is, for every t∈Nt\in\mathbb Nt∈N, a Hermitian idempotent PtP_tPt​ on the register indexed by It+1I^{t+1}It+1, together with an integer KtK_tKt​ satisfying 0<Kt≤∣I∣t+10<K_t\le |I|^{t+1}0<Kt​≤∣I∣t+1 and tr⁡Pt=Kt\operatorname{tr}P_t=K_ttrPt​=Kt​, such that

R≤lim sup⁡t→∞log⁡2Ktt+1,Frec ⁣(N⊗(t+1),Pt/Kt)⟶1.R\le\limsup_{t\to\infty}\frac{\log_2 K_t}{t+1}, \qquad F_{\mathrm{rec}}\!\left(N^{\otimes(t+1)},P_t/K_t\right)\longrightarrow1.R≤t→∞limsup​t+1log2​Kt​​,Frec​(N⊗(t+1),Pt​/Kt​)⟶1.

Here the tensor power is the linear map determined on matrix units by applying NNN independently in every coordinate, and Frec(M,ρ)F_{\mathrm{rec}}(M,\rho)Frec​(M,ρ) is the supremum over channels DDD from the output to the input of

Re⁡tr⁡ ⁣[Ψρ (id⁡⊗(D∘M))(Ψρ)],Ψρ=∣Ωρ⟩⟨Ωρ∣,Ωρ(a,b)=(ρ)b,a.\operatorname{Re}\operatorname{tr}\!\left[ \Psi_\rho\,(\operatorname{id}\otimes(D\circ M))(\Psi_\rho) \right], \qquad \Psi_\rho=|\Omega_\rho\rangle\langle\Omega_\rho|, \quad \Omega_\rho(a,b)=(\sqrt{\rho})_{b,a}.Retr[Ψρ​(id⊗(D∘M))(Ψρ​)],Ψρ​=∣Ωρ​⟩⟨Ωρ​∣,Ωρ​(a,b)=(ρ​)b,a​.

Recovery channels have finite Kraus representations with the completeness identity. The definition imposes no separate condition R≥0R\ge0R≥0, and uses a limsup of code rates. The assertion is

log⁡2∣J∣−log⁡2ℓ(N)≤Qlim sup⁡(N).\log_2|J|-\log_2\ell(N)\le Q_{\limsup}(N).log2​∣J∣−log2​ℓ(N)≤Qlimsup​(N).
Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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