Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Sufficiency for a charge-invariant code

Open
QAlgorithms.Papers.Independent.Intakethird100.P44.charge_invariant_sufficient

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. Assume that CWW†=WW†CCWW^\dagger=WW^\dagger CCWW†=WW†C. If one complex coefficient array 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,

then the code is correctable. The hypothesis concerns the code projector, and permits a code containing multiple charge sectors.

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.6, following Corollary 6: the displayed code-PROJECTOR
commutation condition makes Eq.(21) sufficient. -/
theorem charge_invariant_sufficient [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)
    (hinvariant : sectorChargeObservable s * (W * Wᴴ) = (W * Wᴴ) * sectorChargeObservable s)
    (hcoeff : ChargeCoefficients s A W) :
    PhysicallyCorrectable (sectorProject s) (krausApply A) W := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P44

end
Source
Approximate recovery with locality and symmetry constraints, arXiv:1806.10324v2, PDF p. 6, §III B following Corollary 6: sufficiency for a charge-invariant code
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, mutually orthogonal and summing to III, with pairwise distinct real values viv_ivi​, and define P(X)=∑iPiXPi\mathcal P(X)=\sum_iP_iXP_iP(X)=∑i​Pi​XPi​ and C=∑iviPiC=\sum_iv_iP_iC=∑i​vi​Pi​. Let An∈Mat⁡(H)A_n\in\operatorname{Mat}(H)An​∈Mat(H), n∈Jn\in Jn∈J, satisfy ∑nAn†An=I\sum_nA_n^\dagger A_n=I∑n​An†​An​=I, set 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. Suppose WWW is an H×LH\times LH×L matrix with W†W=IW^\dagger W=IW†W=I, that CWW†=WW†CCWW^\dagger=WW^\dagger CCWW†=WW†C, and that complex coefficients cijnmc_{ijnm}cijnm​ exist satisfying

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

Then there exists a channel R(Y)=∑aVaYVa†R(Y)=\sum_aV_aYV_a^\daggerR(Y)=∑a​Va​YVa†​, for a finite family with ∑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. 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