Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Necessary charge-resolved correction condition

Open
QAlgorithms.Papers.Independent.Intakethird100.P44.charge_resolved_necessary

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

All Hilbert spaces are finite dimensional and nonzero, and every channel is completely positive and trace preserving on the full matrix algebra. Let P1,…,PrP_1,\ldots,P_rP1​,…,Pr​ be nonzero orthogonal Hermitian sector projectors summing to III, let C=∑iciPiC=\sum_i c_iP_iC=∑i​ci​Pi​ have pairwise distinct real eigenvalues, and put P(X)=∑iPiXPi\mathcal P(X)=\sum_iP_iXP_iP(X)=∑i​Pi​XPi​. Let N(X)=∑nEnXEn†\mathcal N(X)=\sum_nE_nXE_n^\daggerN(X)=∑n​En​XEn†​ have a finite normalized Kraus family and satisfy PNP=PN\mathcal P\mathcal N\mathcal P=\mathcal P\mathcal NPNP=PN. Let WWW be an isometry from a nonzero logical space. Correctability means existence of a CPTP R\mathcal RR with PRP=PR\mathcal P\mathcal R\mathcal P=\mathcal P\mathcal RPRP=PR and RN(WXW†)=P(WXW†)\mathcal R\mathcal N(WXW^\dagger)=\mathcal P(WXW^\dagger)RN(WXW†)=P(WXW†) for every logical matrix XXX. If the code is correctable, then one complex array (cijnm)(c_{ijnm})(cijnm​) satisfies

W†En†PjEmW=∑icijnmW†PiWfor all j,n,m.W^\dagger E_n^\dagger P_jE_mW=\sum_i c_{ijnm}W^\dagger P_iW\quad\text{for all }j,n,m.W†En†​Pj​Em​W=i∑​cijnm​W†Pi​Wfor all j,n,m.

This necessary linear condition alone is not asserted sufficient for an arbitrary code.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P44
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intakethird100.P44

open scoped Matrix ComplexConjugate ComplexOrder

open QAlgorithms.Papers.Independent.Information100.P60 (Mat)

open QAlgorithms.Papers.Independent.Information100.P67 (mapFirst)

open QAlgorithms.Papers.Independent.Claimed50.P48 (operatorTraceDual)

open QAlgorithms.Papers.Independent.Renew46.P43 (purification)

variable {H K L J E F B : Type*}

variable [Fintype H] [DecidableEq H] [Fintype K] [DecidableEq K]

variable [Fintype L] [DecidableEq L] [Fintype J] [DecidableEq J]

variable [Fintype E] [DecidableEq E] [Fintype F] [DecidableEq F]

variable [Fintype B] [DecidableEq B]

/-- PDF p.5, Corollary 6, Eq.(21): necessity only, without code invariance. -/
theorem charge_resolved_necessary [Nonempty H] [Nonempty L] {r : ℕ}
    (s : Sectors H r) (A : J → Mat H) (hA : IsKrausFamily A)
    (hphys : IsPhysicalChannel (sectorProject s) (sectorProject s) (krausApply A))
    (W : Matrix H L ℂ) (hW : Wᴴ * W = 1)
    (hcorr : PhysicallyCorrectable (sectorProject s) (krausApply A) W) :
    ChargeCoefficients s A W := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P44

end
Source
Approximate recovery with locality and symmetry constraints, arXiv:1806.10324v2, PDF p. 5, Corollary 6, Eq.(21): necessary charge-resolved correction condition
Read-back

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

Let H,LH,LH,L be nonempty finite index types with decidable equality, JJJ a finite index type, and rrr a natural number. Let PiP_iPi​, i<ri<ri<r, be nonzero Hermitian projections on CH\mathbb C^HCH, mutually orthogonal and summing to III, carrying pairwise distinct real values viv_ivi​, and put P(X)=∑iPiXPi\mathcal P(X)=\sum_iP_iXP_iP(X)=∑i​Pi​XPi​. Suppose matrices AnA_nAn​, n∈Jn\in Jn∈J, satisfy ∑nAn†An=I\sum_nA_n^\dagger A_n=I∑n​An†​An​=I; put N(X)=∑nAnXAn†\mathcal N(X)=\sum_nA_nXA_n^\daggerN(X)=∑n​An​XAn†​, and assume P(N(P(X)))=P(N(X))\mathcal P(\mathcal N(\mathcal P(X)))=\mathcal P(\mathcal N(X))P(N(P(X)))=P(N(X)) for every XXX. Let WWW be an H×LH\times LH×L matrix with W†W=IW^\dagger W=IW†W=I. Assume there exists a channel R(Y)=∑aVaYVa†R(Y)=\sum_aV_aYV_a^\daggerR(Y)=∑a​Va​YVa†​, with a finite family satisfying ∑aVa†Va=I\sum_aV_a^\dagger V_a=I∑a​Va†​Va​=I, such that P(R(P(Y)))=P(R(Y))\mathcal P(R(\mathcal P(Y)))=\mathcal P(R(Y))P(R(P(Y)))=P(R(Y)) for every YYY and R(N(WXW†))=P(WXW†)R(\mathcal N(WXW^\dagger))=\mathcal P(WXW^\dagger)R(N(WXW†))=P(WXW†) for every complex matrix XXX on LLL. Then there exist complex coefficients cijnmc_{ijnm}cijnm​ such that

W†An†PjAmW=∑i=0r−1cijnmW†PiWfor every j<r, n,m∈J.W^\dagger A_n^\dagger P_jA_mW =\sum_{i=0}^{r-1}c_{ijnm}W^\dagger P_iW \quad\text{for every }j<r,\ n,m\in J.W†An†​Pj​Am​W=i=0∑r−1​cijnm​W†Pi​Wfor every j<r, n,m∈J.

No positivity or normalization of these coefficients is asserted. The hypotheses exclude r=0r=0r=0 and empty JJJ.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me