Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6: distance to CP bounded by a positive tensor partner

Open
QAlgorithms.Papers.Independent.Bridge50.P37.cp_distance_tensor_partner

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

prove2quantum

Write MdM_dMd​ for complex d×dd\times dd×d matrices in fixed orthonormal bases; positive means positive semidefinite. All maps are complex-linear and all dimensions are positive integers. CP means completely positive, coCP means that output transposition composed with the map is CP, and nontrivial means neither. Tensor-stable positivity means positivity at every positive tensor degree. The symbols ∥⋅∥⋄\|\cdot\|_\diamond∥⋅∥⋄​, ∥⋅∥1\|\cdot\|_1∥⋅∥1​ and ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ denote the diamond, trace and spectral norms, respectively; ∗*∗ denotes the Hilbert--Schmidt adjoint. Choi matrices and maximally entangled projections use the normalized, reference-first convention.

Let P:Md1→Md2P:M_{d_1}\to M_{d_2}P:Md1​​→Md2​​ be positive and R:Md1→Md1R:M_{d_1}\to M_{d_1}R:Md1​​→Md1​​ any complex-linear map for which R⊗PR\otimes PR⊗P is positive. With normalized CP=(idd1⊗P)(ωd1)C_P=(\mathrm{id}_{d_1}\otimes P)(\omega_{d_1})CP​=(idd1​​⊗P)(ωd1​​) and dCP(P)=(∥CP∥1−tr⁡CP)/2d_{\rm CP}(P)=(\|C_P\|_1-\operatorname{tr}C_P)/2dCP​(P)=(∥CP​∥1​−trCP​)/2,

dCP(P)≤∥idd1−R∥⋄∥P∥⋄.d_{\rm CP}(P)\le\|\mathrm{id}_{d_1}-R\|_\diamond\|P\|_\diamond.dCP​(P)≤∥idd1​​−R∥⋄​∥P∥⋄​.

The bound holds for every such actual tensor partner. No separate positivity, CP, trace preservation or contraction condition is placed on RRR.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P37
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

open Filter MeasureTheory

-- Only the following exact definition bodies are reused from pinned accepted papers.

open QAlgorithms.Papers.Independent.Information100.P04 (gamma copies)

open QAlgorithms.Papers.Independent.Information100.P30 (MatrixMap IsPositiveMap)

open QAlgorithms.Papers.Independent.Information100.P50 (maxEigenvalue)

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

open QAlgorithms.Papers.Independent.Information100.P69 (diamond)

open QAlgorithms.Papers.Independent.Information100.P56 (normalizedChoi)

open QAlgorithms.Papers.Independent.Information100.P76 (swapMatrix)

open QAlgorithms.Papers.Independent.Next46.P39 (inverseSqrt)

namespace QAlgorithms.Papers.Independent.Bridge50.P37

attribute [local instance] Classical.propDecidable Classical.decEq

variable {A B C D : Type} [Fintype A] [Fintype B] [Fintype C] [Fintype D]
  [DecidableEq A] [DecidableEq B] [DecidableEq C] [DecidableEq D]

/-- Lemma 6, PDF pp.14--15: R is arbitrary complex-linear; only R tensor P is assumed positive. -/
theorem cp_distance_tensor_partner [Nonempty A] [Nonempty B] (P : MatrixMap A B)
    (hP : IsPositiveMap P) (R : MatrixMap A A) (hR : IsPositiveMap (tensorLinearMap R P)) :
    distanceCP P ≤ diamond ((LinearMap.id : MatrixMap A A) - R) * diamond P := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P37

end
Source
Positivity of linear maps under tensor powers, arXiv:1502.05630v2, PDF p. 14, Lemma 6: distance to CP bounded by a positive tensor partner
Read-back

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

Let A,BA,BA,B be finite, nonempty index types with decidable equality, and let P:Mat⁡A(C)→Mat⁡B(C)P:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_B(\mathbb C)P:MatA​(C)→MatB​(C) and R:Mat⁡A(C)→Mat⁡A(C)R:\operatorname{Mat}_A(\mathbb C)\to\operatorname{Mat}_A(\mathbb C)R:MatA​(C)→MatA​(C) be complex linear. Assume PPP preserves positive semidefinite matrices and that R⊗PR\otimes PR⊗P preserves positive semidefinite matrices on A×AA\times AA×A; the tensor map is the linear extension specified by (R⊗P)(Eaa′⊗Ebb′)=R(Eaa′)⊗P(Ebb′)(R\otimes P)(E_{aa'}\otimes E_{bb'})=R(E_{aa'})\otimes P(E_{bb'})(R⊗P)(Eaa′​⊗Ebb′​)=R(Eaa′​)⊗P(Ebb′​). Define the normalized Choi matrix by

(JP)(a,b),(a′,b′)=(P(Eaa′))bb′∣A∣,(J_P)_{(a,b),(a',b')}=\frac{(P(E_{aa'}))_{bb'}}{|A|},(JP​)(a,b),(a′,b′)​=∣A∣(P(Eaa′​))bb′​​,

and write ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​. For a map HHH with input index JJJ, let D(H)=sup⁡∥X∥1≤1∥(id⁡J⊗H)(X)∥1D(H)=\sup_{\|X\|_1\le1}\|(\operatorname{id}_J\otimes H)(X)\|_1D(H)=sup∥X∥1​≤1​∥(idJ​⊗H)(X)∥1​, where XXX is indexed by J×JJ\times JJ×J. Then

∥JP∥1−Re⁡tr⁡JP2≤D(id⁡Mat⁡A−R) D(P).\frac{\|J_P\|_1-\operatorname{Re}\operatorname{tr}J_P}{2} \le D(\operatorname{id}_{\operatorname{Mat}_A}-R)\,D(P).2∥JP​∥1​−RetrJP​​≤D(idMatA​​−R)D(P).

Neither a channel normalization nor nonzeroness is among the assumptions on PPP or RRR.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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