Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5, (13) = outline (6): random-code fidelity bound

Open
QAlgorithms.Papers.Independent.Advance50.P29.randomCodeFidelity

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. Let N:B(Q)→B(Q′)\mathcal N:B(Q)\to B(Q^{\prime})N:B(Q)→B(Q′) be completely positive and trace nonincreasing, with finite Kraus family (Ai)(A_i)(Ai​) satisfying ∑iAi†Ai≤I\sum_i A_i^\dagger A_i\le I∑i​Ai†​Ai​≤I. The family may be empty and the operation may be zero. 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. Fix any KKK-dimensional seed code C0C_0C0​ and average C=UC0C=UC_0C=UC0​ over normalized Haar measure on the entire unitary group of QQQ; denote this expectation by [ ⋅ ]K[\,\cdot\,]_K[⋅]K​. All displayed Haar integrands are integrable. Let r=∣N∣r=|\mathcal N|r=∣N∣ be the minimum Kraus length and let ∥X∥F=(tr⁡X†X)1/2\|X\|_F=(\operatorname{tr}X^\dagger X)^{1/2}∥X∥F​=(trX†X)1/2. Then

[Fe(C,N)]K≥tr⁡N(π)−Kr ∥N(π)∥F.[F_e(C,\mathcal N)]_K\ge\operatorname{tr}\mathcal N(\pi)-\sqrt{Kr}\,\|\mathcal N(\pi)\|_F.[Fe​(C,N)]K​≥trN(π)−Kr​∥N(π)∥F​.

This is the paper's random-code fidelity estimate, valid also for trace-decreasing operations.

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 pp.7,11–13, (6)=(13): random-code fidelity, with minimal Kraus length and the
unsquared Frobenius norm. Integrability is part of the conclusion. -/
theorem randomCodeFidelity [Nonempty I] [Nonempty J] (N : Superop I J)
    (hN : HasFiniteKrausOperation N) (C : CodeProjection I) :
    Integrable (fun U => recoveredEntanglementFidelity N (rotatedDensity C U))
      (Schur.unitaryHaar (Fintype.card I)) ∧
    (N (mixed I)).trace.re -
      Real.sqrt ((C.dimension : ℝ) * operationLength N) * Real.sqrt (frobeniusSq (N (mixed I))) ≤
        codeAverage C (recoveredEntanglementFidelity 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. 11, §5, (13) = outline (6): random-code fidelity bound
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 suppose N:CI×I→CJ×JN:\mathbb C^{I\times I}\to\mathbb C^{J\times J}N:CI×I→CJ×J has a finite representation N(X)=∑ℓ=0r−1AℓXAℓ†N(X)=\sum_{\ell=0}^{r-1}A_\ell XA_\ell^\daggerN(X)=∑ℓ=0r−1​Aℓ​XAℓ†​ with II−∑ℓAℓ†Aℓ⪰0I_I-\sum_\ell A_\ell^\dagger A_\ell\succeq0II​−∑ℓ​Aℓ†​Aℓ​⪰0. Let ℓ(N)\ell(N)ℓ(N) be the infimum in N\mathbb NN of the numbers rrr for which such a Kraus representation exists, with no trace-bound requirement in this latter minimization. Let D=∣I∣D=|I|D=∣I∣, μI=II/D\mu_I=I_I/DμI​=II​/D, and let CCC specify an integer 1≤K≤D1\le K\le D1≤K≤D and a Hermitian idempotent PCP_CPC​ of trace KKK. For U∈U(D)U\in\mathrm U(D)U∈U(D), transfer UUU to III using the chosen enumeration e:I≃{0,…,D−1}e:I\simeq\{0,\ldots,D-1\}e:I≃{0,…,D−1}, so U^i,j=Ue(i),e(j)\widehat U_{i,j}=U_{e(i),e(j)}Ui,j​=Ue(i),e(j)​, and put ρU=U^(PC/K)U^†\rho_U=\widehat U(P_C/K)\widehat U^\daggerρU​=U(PC​/K)U†. Define vρ(a,b)=(ρ)b,av_\rho(a,b)=(\sqrt\rho)_{b,a}vρ​(a,b)=(ρ​)b,a​, Ψρ=∣vρ⟩⟨vρ∣\Psi_\rho=|v_\rho\rangle\langle v_\rho|Ψρ​=∣vρ​⟩⟨vρ​∣, and Frec(N,ρ)=sup⁡TRe⁡tr⁡[Ψρ(id⊗(T∘N))(Ψρ)]F_{\rm rec}(N,\rho)=\sup_T\operatorname{Re}\operatorname{tr}[\Psi_\rho(\mathrm{id}\otimes(T\circ N))(\Psi_\rho)]Frec​(N,ρ)=supT​Retr[Ψρ​(id⊗(T∘N))(Ψρ​)], where TTT ranges over finite Kraus maps with the completeness identity. Writing dUdUdU for Haar probability measure and ∥X∥F2=∑a,b∣Xa,b∣2\|X\|_F^2=\sum_{a,b}|X_{a,b}|^2∥X∥F2​=∑a,b​∣Xa,b​∣2, the theorem asserts that U↦Frec(N,ρU)U\mapsto F_{\rm rec}(N,\rho_U)U↦Frec​(N,ρU​) is integrable and that

Re⁡tr⁡N(μI)−K ℓ(N) ∥N(μI)∥F2≤∫U(D)Frec(N,ρU) dU.\operatorname{Re}\operatorname{tr}N(\mu_I) -\sqrt{K\,\ell(N)}\,\sqrt{\|N(\mu_I)\|_F^2} \le\int_{\mathrm U(D)}F_{\rm rec}(N,\rho_U)\,dU.RetrN(μI​)−Kℓ(N)​∥N(μI​)∥F2​​≤∫U(D)​Frec​(N,ρU​)dU.

The map NNN need not preserve trace; the zero map and a representation of length zero are included.

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