Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 7: maximum preserved codes can be made fixed

Open
QAlgorithms.Papers.Independent.Intake100.P70.corollary7_exact_recovery

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let E\mathcal EE be a CPTP map between finite-dimensional nonzero complex Hilbert spaces, and let CCC be a convex set of positive matrices of ordinary trace one. Preservation means equality of ∥E(pρ−(1−p)σ)∥1\|\mathcal E(p\rho-(1-p)\sigma)\|_1∥E(pρ−(1−p)σ)∥1​ and ∥pρ−(1−p)σ∥1\|p\rho-(1-p)\sigma\|_1∥pρ−(1−p)σ∥1​ for every ρ,σ∈C\rho,\sigma\in Cρ,σ∈C and p∈[0,1]p\in[0,1]p∈[0,1]. Maximum means that no code satisfying the same criterion has a proper subset 1-isometric to CCC. For every maximum preserved CCC, there is one CPTP map R\mathcal RR back to the input space with

∀ρ∈C,R(E(ρ))=ρ.\forall\rho\in C,\quad\mathcal R(\mathcal E(\rho))=\rho.∀ρ∈C,R(E(ρ))=ρ.

This gives exact correction of the entire code. Proposition 1 and Corollary 7 are the announced and proved versions of the same assertion.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P70
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

open Filter

namespace QAlgorithms.Papers.Independent.Intake100.P70

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Dependency50.P21 (channelAdjoint)

open QAlgorithms.Papers.Independent.Information100.P07 (positivePart negativePart)

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

open QAlgorithms.Papers.Independent.Information100.P34 (supportProjector)

/-- PDF pp.10,26, Corollary 7: the proved version of Proposition 1.
The recovery may reset gauge factors; the raw transpose map is not claimed to fix C. -/
theorem corollary7_exact_recovery {I J : Type*} [Fintype I] [Fintype J]
    [DecidableEq I] [DecidableEq J] [Nonempty I] [Nonempty J]
    (E : Superop I J) (hE : IsChannel E) (C : Set (Op I))
    (hC : MaximumCode (Preserved E) C) :
    ∃ R : Superop J I, IsChannel R ∧ ∀ rho ∈ C, R (E rho) = rho := by sorry

end QAlgorithms.Papers.Independent.Intake100.P70

end
Source
Information preserving structures: A general framework for quantum zero-error information, arXiv:1006.1358v1, PDF p. 10, Corollary 7: maximum preserved codes can be made fixed
Read-back

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

Let I,JI,JI,J be nonempty finite types with decidable equality, write MI=CI×IM_I=\mathbb C^{I\times I}MI​=CI×I and MJ=CJ×JM_J=\mathbb C^{J\times J}MJ​=CJ×J, and let E:MI→MJE:M_I\to M_JE:MI​→MJ​ be a finite Kraus channel E(X)=∑aKaXKa†E(X)=\sum_aK_aXK_a^\daggerE(X)=∑a​Ka​XKa†​ with ∑aKa†Ka=1\sum_aK_a^\dagger K_a=1∑a​Ka†​Ka​=1. Put Wp(X,Y)=pX−(1−p)YW_p(X,Y)=pX-(1-p)YWp​(X,Y)=pX−(1−p)Y and ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. Suppose C⊆MIC\subseteq M_IC⊆MI​ is convex, consists of positive semidefinite trace-one matrices, and satisfies ∥E(Wp(X,Y))∥1=∥Wp(X,Y)∥1\|E(W_p(X,Y))\|_1=\|W_p(X,Y)\|_1∥E(Wp​(X,Y))∥1​=∥Wp​(X,Y)∥1​ for every X,Y∈CX,Y\in CX,Y∈C and p∈[0,1]p\in[0,1]p∈[0,1]. Suppose further that, for every convex set DDD of density matrices satisfying this preservation condition and every proper subset H⊊DH\subsetneq DH⊊D, there is no complex-linear map f:MI→MIf:M_I\to M_If:MI​→MI​ with f(C)=Hf(C)=Hf(C)=H, zero kernel on span⁡CC\operatorname{span}_{\mathbb C}CspanC​C, and ∥Wp(f(X),f(Y))∥1=∥Wp(X,Y)∥1\|W_p(f(X),f(Y))\|_1=\|W_p(X,Y)\|_1∥Wp​(f(X),f(Y))∥1​=∥Wp​(X,Y)∥1​ for all X,Y∈CX,Y\in CX,Y∈C and p∈[0,1]p\in[0,1]p∈[0,1]. Then there exists a channel R:MJ→MIR:M_J\to M_IR:MJ​→MI​, expressible as R(Y)=∑bLbYLb†R(Y)=\sum_bL_bYL_b^\daggerR(Y)=∑b​Lb​YLb†​ for a finite family satisfying ∑bLb†Lb=1\sum_bL_b^\dagger L_b=1∑b​Lb†​Lb​=1, such that R(E(ρ))=ρR(E(\rho))=\rhoR(E(ρ))=ρ for every ρ∈C\rho\in Cρ∈C. The preservation hypotheses include both endpoints of [0,1][0,1][0,1], and the underlying definition of a convex density-matrix code does not explicitly require a nonempty set.

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