Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§7.4: explicit average fidelity of floor-exponential block codes

Open
QAlgorithms.Papers.Independent.Advance50.P29.blockAverageBound

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. 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. For a state ρ\rhoρ, put I(ρ,N)=S(N(ρ))−Se(ρ,N)I(\rho,\mathcal N)=S(\mathcal N(\rho))-S_e(\rho,\mathcal N)I(ρ,N)=S(N(ρ))−Se​(ρ,N), where SSS is von Neumann entropy and SeS_eSe​ is the entropy of the reference/output state after applying N\mathcal NN to a purification of ρ\rhoρ. Fix a minimal Kraus representation (Ai)i∈L(A_i)_{i\in L}(Ai​)i∈L​ of a CPTP channel N\mathcal NN, with tr⁡(Ai†Aj)=0\operatorname{tr}(A_i^\dagger A_j)=0tr(Ai†​Aj​)=0 for i≠ji\ne ji=j. Set Pi=M−1tr⁡(Ai†Ai)P_i=M^{-1}\operatorname{tr}(A_i^\dagger A_i)Pi​=M−1tr(Ai†​Ai​) and fix ε>0\varepsilon>0ε>0. For a word w=(i1,…,in)w=(i_1,\ldots,i_n)w=(i1​,…,in​) put Aw=Ai1⊗⋯⊗AinA_w=A_{i_1}\otimes\cdots\otimes A_{i_n}Aw​=Ai1​​⊗⋯⊗Ain​​ and pw=∏tPitp_w=\prod_tP_{i_t}pw​=∏t​Pit​​. Keep exactly those words with 2−n(H(P)+ε)≤pw≤2−n(H(P)−ε)2^{-n(H(P)+\varepsilon)}\le p_w\le2^{-n(H(P)-\varepsilon)}2−n(H(P)+ε)≤pw​≤2−n(H(P)−ε), defining Nε,n(X)=∑w typicalAwXAw†\mathcal N_{\varepsilon,n}(X)=\sum_{w\ {\rm typical}}A_wXA_w^\daggerNε,n​(X)=∑w typical​Aw​XAw†​. Let Πε,n\Pi_{\varepsilon,n}Πε,n​ be the spectral projection of N(π)⊗n\mathcal N(\pi)^{\otimes n}N(π)⊗n onto the closed eigenvalue window [2−n(S(N(π))+ε),2−n(S(N(π))−ε)][2^{-n(S(\mathcal N(\pi))+\varepsilon)},2^{-n(S(\mathcal N(\pi))-\varepsilon)}][2−n(S(N(π))+ε),2−n(S(N(π))−ε)] and define N~ε,n(X)=Πε,nNε,n(X)Πε,n\widetilde{\mathcal N}_{\varepsilon,n}(X)=\Pi_{\varepsilon,n}\mathcal N_{\varepsilon,n}(X)\Pi_{\varepsilon,n}Nε,n​(X)=Πε,n​Nε,n​(X)Πε,n​. Also set πn=IQ⊗n/Mn\pi_n=I_{Q^{\otimes n}}/M^nπn​=IQ⊗n​/Mn. There is ψ3>0\psi_3>0ψ3​>0, depending only on the fixed channel, representation, and ε\varepsilonε, with the following property. For R≥0R\ge0R≥0 and positive integer nnn, suppose Kn=⌊2nR⌋≤MnK_n=\lfloor2^{nR}\rfloor\le M^nKn​=⌊2nR⌋≤Mn, and average over any seed of dimension KnK_nKn​ in Q⊗nQ^{\otimes n}Q⊗n. Write ∣T∣|\mathcal T|∣T∣ for minimum Kraus length. Then

[Fe(C,N⊗n)]Kn≥tr⁡N~ε,n(πn)−Kn∣N~ε,n∣ ∥N~ε,n(πn)∥F≥1−4e−nψ3−2n2(R−I(π,N)+4ε).[F_e(C,\mathcal N^{\otimes n})]_{K_n}\ge\operatorname{tr}\widetilde{\mathcal N}_{\varepsilon,n}(\pi_n)-\sqrt{K_n|\widetilde{\mathcal N}_{\varepsilon,n}|}\,\|\widetilde{\mathcal N}_{\varepsilon,n}(\pi_n)\|_F\ge1-4e^{-n\psi_3}-2^{\frac n2(R-I(\pi,\mathcal N)+4\varepsilon)}.[Fe​(C,N⊗n)]Kn​​≥trNε,n​(πn​)−Kn​∣Nε,n​∣​∥Nε,n​(πn​)∥F​≥1−4e−nψ3​−22n​(R−I(π,N)+4ε).

This is the explicit block-average estimate driving the coherent-information achievability argument.

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.18, §7.4: explicit Haar-average bound for floor-exponential code dimensions.
The exponent is n/2 times (R - I + 4 epsilon); the decay constant is independent of R,n,C. -/
theorem blockAverageBound [Nonempty I] [Nonempty J] [Nonempty L]
    (A : L → Matrix J I ℂ) (hA : IsKrausFamily A) (hm : MinimalKraus A)
    (ho : ∀ i j, i ≠ j → ((A i)ᴴ * A j).trace = 0)
    (epsilon : ℝ) (he : 0 < epsilon) :
    ∃ psi : ℝ, 0 < psi ∧ ∀ (R : ℝ), 0 ≤ R → ∀ n : ℕ, 0 < n →
      ∀ C : CodeProjection (Fin n → I), C.dimension = ⌊(2 : ℝ) ^ ((n : ℝ) * R)⌋₊ →
      Integrable (fun U => recoveredEntanglementFidelity (piSuperop (fun _ : Fin n => krausApply A))
        (rotatedDensity C U)) (Schur.unitaryHaar (Fintype.card (Fin n → I))) ∧
      ((reducedOperation A epsilon n (mixed (Fin n → I))).trace.re -
        Real.sqrt ((C.dimension : ℝ) * operationLength (reducedOperation A epsilon n)) *
          Real.sqrt (frobeniusSq (reducedOperation A epsilon n (mixed (Fin n → I)))) ≤
        codeAverage C (recoveredEntanglementFidelity (piSuperop (fun _ : Fin n => krausApply A)))) ∧
      1 - 4 * Real.exp (-(n : ℝ) * psi) -
        (2 : ℝ) ^ ((n : ℝ) / 2 *
          (R - coherentInformation (krausApply A) (mixed I) + 4 * epsilon)) ≤
        (reducedOperation A epsilon n (mixed (Fin n → I))).trace.re -
          Real.sqrt ((C.dimension : ℝ) * operationLength (reducedOperation A epsilon n)) *
            Real.sqrt (frobeniusSq (reducedOperation A epsilon n (mixed (Fin n → I)))) := 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. 18, §7.4: explicit average fidelity of floor-exponential block codes
Read-back

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

Let I,J,LI,J,LI,J,L be nonempty finite types with decidable equality, and let Aℓ:CI→CJA_\ell:\mathbb C^I\to\mathbb C^JAℓ​:CI→CJ, ℓ∈L\ell\in Lℓ∈L, satisfy ∑ℓAℓ†Aℓ=I\sum_\ell A_\ell^\dagger A_\ell=I∑ℓ​Aℓ†​Aℓ​=I, minimality in the sense that any finite Kraus representation of the same map on every matrix has at least ∣L∣|L|∣L∣ members, and tr⁡(Ai†Aj)=0\operatorname{tr}(A_i^\dagger A_j)=0tr(Ai†​Aj​)=0 for i≠ji\ne ji=j. Fix ϵ>0\epsilon>0ϵ>0. Write N(X)=∑ℓAℓXAℓ†\mathcal N(X)=\sum_\ell A_\ell XA_\ell^\daggerN(X)=∑ℓ​Aℓ​XAℓ†​, μI=I/∣I∣\mu_I=I/|I|μI​=I/∣I∣, pℓ=Re⁡tr⁡(Aℓ†Aℓ)/∣I∣p_\ell=\operatorname{Re}\operatorname{tr}(A_\ell^\dagger A_\ell)/|I|pℓ​=Retr(Aℓ†​Aℓ​)/∣I∣, and H(p)=−∑ℓpℓlog⁡2pℓH(p)=-\sum_\ell p_\ell\log_2p_\ellH(p)=−∑ℓ​pℓ​log2​pℓ​. For each positive integer nnn, let Tn(X)\mathcal T_n(X)Tn​(X) be the sum of AwXAw†A_wXA_w^\daggerAw​XAw†​, with Aw=⨂t=1nAwtA_w=\bigotimes_{t=1}^nA_{w_t}Aw​=⨂t=1n​Awt​​, over all w∈Lnw\in L^nw∈Ln satisfying 2−n(H(p)+ϵ)≤∏tpwt≤2−n(H(p)−ϵ)2^{-n(H(p)+\epsilon)}\le\prod_t p_{w_t}\le2^{-n(H(p)-\epsilon)}2−n(H(p)+ϵ)≤∏t​pwt​​≤2−n(H(p)−ϵ). Let PnP_nPn​ be the spectral projection of N(μI)⊗n\mathcal N(\mu_I)^{\otimes n}N(μI​)⊗n onto the inclusive eigenvalue interval [2−n(S(N(μI))+ϵ), 2−n(S(N(μI))−ϵ)][2^{-n(S(\mathcal N(\mu_I))+\epsilon)},\,2^{-n(S(\mathcal N(\mu_I))-\epsilon)}][2−n(S(N(μI​))+ϵ),2−n(S(N(μI​))−ϵ)], and set Rn(X)=PnTn(X)Pn\mathcal R_n(X)=P_n\mathcal T_n(X)P_nRn​(X)=Pn​Tn​(X)Pn​. Here S(X)=−Re⁡tr⁡[f(X)]S(X)=-\operatorname{Re}\operatorname{tr}[f(X)]S(X)=−Retr[f(X)], with f(x)=xlog⁡2xf(x)=x\log_2xf(x)=xlog2​x applied by continuous functional calculus. For a density matrix ρ\rhoρ, put Ωρ(a,b)=(ρ)b,a\Omega_\rho(a,b)=(\sqrt\rho)_{b,a}Ωρ​(a,b)=(ρ​)b,a​, define Ic(Φ,ρ)=S(Φ(ρ))−S((id⊗Φ)(∣Ωρ⟩⟨Ωρ∣))I_c(\Phi,\rho)=S(\Phi(\rho))-S((\mathrm{id}\otimes\Phi)(|\Omega_\rho\rangle\langle\Omega_\rho|))Ic​(Φ,ρ)=S(Φ(ρ))−S((id⊗Φ)(∣Ωρ​⟩⟨Ωρ​∣)), and let Frec(Φ,ρ)F_{\rm rec}(\Phi,\rho)Frec​(Φ,ρ) be the real supremum of Re⁡tr⁡[∣Ωρ⟩⟨Ωρ∣ (id⊗(D∘Φ))(∣Ωρ⟩⟨Ωρ∣)]\operatorname{Re}\operatorname{tr}[|\Omega_\rho\rangle\langle\Omega_\rho|\,(\mathrm{id}\otimes(\mathcal D\circ\Phi))(|\Omega_\rho\rangle\langle\Omega_\rho|)]Retr[∣Ωρ​⟩⟨Ωρ​∣(id⊗(D∘Φ))(∣Ωρ​⟩⟨Ωρ​∣)] over all recovery maps D(Y)=∑jBjYBj†\mathcal D(Y)=\sum_j B_jYB_j^\daggerD(Y)=∑j​Bj​YBj†​ with finitely many Kraus matrices satisfying ∑jBj†Bj=I\sum_jB_j^\dagger B_j=I∑j​Bj†​Bj​=I. Then there exists a real constant ψ>0\psi>0ψ>0 such that, for every real R≥0R\ge0R≥0, every integer n>0n>0n>0, and every Hermitian idempotent code projection PCP_CPC​ on CIn\mathbb C^{I^n}CIn with integer dimension KKK, 1≤K≤∣I∣n1\le K\le |I|^n1≤K≤∣I∣n, tr⁡PC=K\operatorname{tr}P_C=KtrPC​=K, and K=⌊2nR⌋K=\lfloor2^{nR}\rfloorK=⌊2nR⌋, the following holds. Set ρC=PC/K\rho_C=P_C/KρC​=PC​/K, μn=I/∣I∣n\mu_n=I/|I|^nμn​=I/∣I∣n, let ℓ(Rn)\ell(\mathcal R_n)ℓ(Rn​) be the infimum in N\mathbb NN of the numbers of Kraus matrices in exact finite representations of Rn\mathcal R_nRn​, and write ∥Y∥F2=∑a,b∣Yab∣2\|Y\|_F^2=\sum_{a,b}|Y_{ab}|^2∥Y∥F2​=∑a,b​∣Yab​∣2. This infimum permits zero Kraus matrices and imposes no trace-preservation condition on the representing family; the natural-number infimum is 000 if its defining set is empty. Let UUU range over the unitary group of dimension ∣I∣n|I|^n∣I∣n with normalized Haar probability measure, and let U^\widehat UU be its matrix on InI^nIn under the chosen finite enumeration, so U^xy=Ue(x),e(y)\widehat U_{xy}=U_{e(x),e(y)}Uxy​=Ue(x),e(y)​. The function U↦Frec(N⊗n,U^ρCU^†)U\mapsto F_{\rm rec}(\mathcal N^{\otimes n},\widehat U\rho_C\widehat U^\dagger)U↦Frec​(N⊗n,UρC​U†) is integrable, and

1−4e−nψ−2n2(R−Ic(N,μI)+4ϵ) ≤ Re⁡tr⁡Rn(μn)−K ℓ(Rn) ∥Rn(μn)∥F2 ≤ ∫Frec(N⊗n,U^ρCU^†) dU.1-4e^{-n\psi}-2^{\frac n2(R-I_c(\mathcal N,\mu_I)+4\epsilon)} \ \le\ \operatorname{Re}\operatorname{tr}\mathcal R_n(\mu_n) -\sqrt{K\,\ell(\mathcal R_n)}\,\sqrt{\|\mathcal R_n(\mu_n)\|_F^2} \ \le\ \int F_{\rm rec}(\mathcal N^{\otimes n},\widehat U\rho_C\widehat U^\dagger)\,dU.1−4e−nψ−22n​(R−Ic​(N,μI​)+4ϵ) ≤ RetrRn​(μn​)−Kℓ(Rn​)​∥Rn​(μn​)∥F2​​ ≤ ∫Frec​(N⊗n,UρC​U†)dU.

The same ψ\psiψ works for all these rates, block lengths, and projections, including R=0R=0R=0 and n=1n=1n=1.

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