Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5, (23): upper bound on the averaged squared Frobenius defect

Open
QAlgorithms.Papers.Independent.Advance50.P29.decouplingSecondMomentBound

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 a minimal 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. For the supplied family (Ai)i∈L(A_i)_{i\in L}(Ai​)i∈L​ define Wij=Ai†AjW_{ij}=A_i^\dagger A_jWij​=Ai†​Aj​ and the operator on Q⊗CLQ\otimes\mathbb C^LQ⊗CL

DC=K∑i,j∈L(πCWijπC−tr⁡(πCWijπC)πC)⊗∣i⟩⟨j∣.D_C=K\sum_{i,j\in L}\left(\pi_CW_{ij}\pi_C-\operatorname{tr}(\pi_CW_{ij}\pi_C)\pi_C\right)\otimes|i\rangle\langle j|.DC​=Ki,j∈L∑​(πC​Wij​πC​−tr(πC​Wij​πC​)πC​)⊗∣i⟩⟨j∣.

Write ∥X∥tr=tr⁡X†X\|X\|_{\rm tr}=\operatorname{tr}\sqrt{X^\dagger X}∥X∥tr​=trX†X​ and ∥X∥F2=tr⁡(X†X)\|X\|_F^2=\operatorname{tr}(X^\dagger X)∥X∥F2​=tr(X†X). The supplied family is minimal, as fixed after (15). Then

[∥DC∥F2]K≤∥N(π)∥F2.[\|D_C\|_F^2]_K\le\|\mathcal N(\pi)\|_F^2.[∥DC​∥F2​]K​≤∥N(π)∥F2​.

The simple second-moment bound is the interface used in deriving the fidelity estimate.

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.13, (23): second-moment bound for the minimal Kraus family fixed after (15). -/
theorem decouplingSecondMomentBound [Nonempty I] [Nonempty J]
    (A : L → Matrix J I ℂ) (hA : KrausTraceBound A) (hm : MinimalKraus A)
    (C : CodeProjection I) :
    Integrable (fun U => frobeniusSq (decoupling A C.dimension (rotatedDensity C U)))
      (Schur.unitaryHaar (Fintype.card I)) ∧
    codeAverage C (fun rho => frobeniusSq (decoupling A C.dimension rho)) ≤
      frobeniusSq (krausApply A (mixed 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. 13, §5, (23): upper bound on the averaged squared Frobenius defect
Read-back

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

Let I,JI,JI,J be nonempty finite index sets, with decidable equality on III, let LLL be a finite index set, and let AℓA_\ellAℓ​ be a complex J×IJ\times IJ×I matrix for each ℓ∈L\ell\in Lℓ∈L. Assume 1−∑ℓAℓ†Aℓ1-\sum_\ell A_\ell^\dagger A_\ell1−∑ℓ​Aℓ†​Aℓ​ is positive semidefinite and that every family of rrr complex J×IJ\times IJ×I matrices representing the same map X↦∑ℓAℓXAℓ†X\mapsto\sum_\ell A_\ell XA_\ell^\daggerX↦∑ℓ​Aℓ​XAℓ†​ on all matrices XXX has r≥∣L∣r\ge|L|r≥∣L∣, including when r=0r=0r=0. Let KKK and Π\PiΠ satisfy 0<K≤d:=∣I∣0<K\le d:=|I|0<K≤d:=∣I∣, Π†=Π\Pi^\dagger=\PiΠ†=Π, Π2=Π\Pi^2=\PiΠ2=Π, and tr⁡Π=K\operatorname{tr}\Pi=KtrΠ=K. For U∈U(d)U\in U(d)U∈U(d), let U^\widehat UU denote its relabeling by the chosen enumeration of III, set ρU=U^(Π/K)U^†\rho_U=\widehat U(\Pi/K)\widehat U^\daggerρU​=U(Π/K)U†, and define

D(ρ)(a,ℓ),(b,h)=K[(ρAℓ†Ahρ)a,b−tr⁡(ρAℓ†Ahρ)ρa,b],∥X∥F2=∑a,b∣Xa,b∣2.D(\rho)_{(a,\ell),(b,h)} = K\left[ (\rho A_\ell^\dagger A_h\rho)_{a,b} - \operatorname{tr}(\rho A_\ell^\dagger A_h\rho)\rho_{a,b} \right], \qquad \|X\|_F^2=\sum_{a,b}|X_{a,b}|^2.D(ρ)(a,ℓ),(b,h)​=K[(ρAℓ†​Ah​ρ)a,b​−tr(ρAℓ†​Ah​ρ)ρa,b​],∥X∥F2​=a,b∑​∣Xa,b​∣2.

Then U↦∥D(ρU)∥F2U\mapsto\|D(\rho_U)\|_F^2U↦∥D(ρU​)∥F2​ is integrable for normalized Haar measure on U(d)U(d)U(d), and

∫U(d)∥D(ρU)∥F2 dU≤∥1d∑ℓ∈LAℓAℓ†∥F2.\int_{U(d)}\|D(\rho_U)\|_F^2\,dU \le \left\|\frac1d\sum_{\ell\in L}A_\ell A_\ell^\dagger\right\|_F^2.∫U(d)​∥D(ρU​)∥F2​dU≤​d1​ℓ∈L∑​Aℓ​Aℓ†​​F2​.

The right side is the squared Frobenius norm of the image of 1/d1/d1/d under the given Kraus map. The statement includes d=1d=1d=1, K=1K=1K=1, and an empty Kraus index set LLL.

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