Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5, (22): exact second moment of the Kraus decoupling operator

Open
QAlgorithms.Papers.Independent.Advance50.P29.decouplingSecondMoment

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). For M>1M>1M>1,

[∥DC∥F2]K=1−K−2M2−1∑i,j∈L(tr⁡(Wij†Wij)−∣tr⁡Wij∣2M).[\|D_C\|_F^2]_K=\frac{1-K^{-2}}{M^2-1}\sum_{i,j\in L}\left(\operatorname{tr}(W_{ij}^\dagger W_{ij})-\frac{|\operatorname{tr}W_{ij}|^2}{M}\right).[∥DC​∥F2​]K​=M2−11−K−2​i,j∈L∑​(tr(Wij†​Wij​)−M∣trWij​∣2​).

For M=1M=1M=1 the averaged squared defect is zero. This exact second moment supplies the main random-coding 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 pp.12–13, (22): exact averaged Frobenius defect, with a separate scalar-input case.
The minimal representation fixed after (15) is retained.
The erroneous intermediate equation (20) is not assumed or restated. -/
theorem decouplingSecondMoment [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)) =
      if Fintype.card I = 1 then 0 else
      ((1 - ((C.dimension : ℝ) ^ 2)⁻¹) / ((Fintype.card I : ℝ) ^ 2 - 1)) *
        ∑ i, ∑ j, (frobeniusSq ((A i)ᴴ * A j) -
          Complex.normSq (((A i)ᴴ * A j).trace) / (Fintype.card 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, (22): exact second moment of the Kraus decoupling operator
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 the family is minimal: any 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 every matrix XXX satisfies ∣L∣≤r|L|\le r∣L∣≤r, for every natural number rrr, including zero. Let CCC consist of a natural number KKK and an I×II\times II×I matrix Π\PiΠ satisfying 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), relabel UUU as an I×II\times II×I matrix U^\widehat UU using the chosen enumeration of III, and set ρU=U^(Π/K)U^†\rho_U=\widehat U(\Pi/K)\widehat U^\daggerρU​=U(Π/K)U†. Define a matrix on I×LI\times LI×L by

D(ρ)(a,ℓ),(b,h)=K[(ρAℓ†Ahρ)a,b−tr⁡(ρAℓ†Ahρ)ρa,b],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],D(ρ)(a,ℓ),(b,h)​=K[(ρAℓ†​Ah​ρ)a,b​−tr(ρAℓ†​Ah​ρ)ρa,b​],

and write ∥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 real function 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={0,d=1,1−K−2d2−1∑ℓ,h∈L(∥Aℓ†Ah∥F2−∣tr⁡(Aℓ†Ah)∣2d),d≠1.\int_{U(d)}\|D(\rho_U)\|_F^2\,dU = \begin{cases} 0,&d=1,\\[2mm] \displaystyle \frac{1-K^{-2}}{d^2-1} \sum_{\ell,h\in L} \left( \|A_\ell^\dagger A_h\|_F^2 - \frac{|\operatorname{tr}(A_\ell^\dagger A_h)|^2}{d} \right),&d\ne1. \end{cases}∫U(d)​∥D(ρU​)∥F2​dU=⎩⎨⎧​0,d2−11−K−2​ℓ,h∈L∑​(∥Aℓ†​Ah​∥F2​−d∣tr(Aℓ†​Ah​)∣2​),​d=1,d=1.​

In the d=1d=1d=1 case necessarily K=1K=1K=1; the formula also includes K=1K=1K=1 in larger dimensions and permits LLL to be empty.

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