Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 1: coding-scheme obstruction to complete-positivity distance

Open
QAlgorithms.Papers.Independent.Bridge50.P37.cp_coding_obstruction

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 n≥1n\ge1n≥1 and let P:Md1→Md2P:M_{d_1}\to M_{d_2}P:Md1​​→Md2​​ be nonzero and nnn-tensor-stable positive. Then

dCP(P)∥P∥⋄≤inf⁡m≥1, Ei,Di CP∥idd1−∑i=1mDi∘P⊗(n−1)∘Ei∥⋄.\frac{d_{\rm CP}(P)}{\|P\|_\diamond}\le\inf_{m\ge1,\,E_i,D_i\ {\rm CP}}\left\|\mathrm{id}_{d_1}-\sum_{i=1}^m D_i\circ P^{\otimes(n-1)}\circ E_i\right\|_\diamond.∥P∥⋄​dCP​(P)​≤m≥1,Ei​,Di​ CPinf​​idd1​​−i=1∑m​Di​∘P⊗(n−1)∘Ei​​⋄​.

Here Ei:Md1→Md1⊗(n−1)E_i:M_{d_1}\to M_{d_1}^{\otimes(n-1)}Ei​:Md1​​→Md1​⊗(n−1)​ and Di:Md2⊗(n−1)→Md1D_i:M_{d_2}^{\otimes(n-1)}\to M_{d_1}Di​:Md2​⊗(n−1)​→Md1​​ are arbitrary CP maps, without trace-preservation or contraction assumptions. At n=1n=1n=1 the zero-copy algebras are scalar. The distance dCPd_{\rm CP}dCP​ is the negative spectral mass of the normalized Choi matrix.

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]

/-- Corollary 1, PDF p.15: n>=1, P nonzero, arbitrary finite sums of CP encoders and decoders. -/
theorem cp_coding_obstruction [Nonempty A] [Nonempty B] (P : MatrixMap A B)
    (n : ℕ) (hP : NTensorStable P n) (hne : P ≠ 0) :
    distanceCP P / diamond P ≤ sInf (cpCodingErrors P (n-1)) := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P37

end
Source
Positivity of linear maps under tensor powers, arXiv:1502.05630v2, PDF p. 15, Corollary 1: coding-scheme obstruction to complete-positivity distance
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, 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) be complex linear, and let n∈Nn\in\mathbb Nn∈N. Assume n>0n>0n>0, PPP preserves positive semidefinite matrices, P⊗nP^{\otimes n}P⊗n preserves positive semidefinite matrices, and P≠0P\ne0P=0. Define (JP)(a,b),(a′,b′)=(P(Eaa′))bb′/∣A∣(J_P)_{(a,b),(a',b')}=(P(E_{aa'}))_{bb'}/|A|(JP​)(a,b),(a′,b′)​=(P(Eaa′​))bb′​/∣A∣, ∥X∥1=Re⁡tr⁡X†X\|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X}∥X∥1​=RetrX†X​, and 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​ for a map with input index JJJ, using XXX on J×JJ\times JJ×J. Put k=n−1k=n-1k=n−1. Then

∥JP∥1−Re⁡tr⁡JP2D(P)≤inf⁡D ⁣(id⁡Mat⁡A−∑i=1sFi∘P⊗k∘Ei),\frac{\|J_P\|_1-\operatorname{Re}\operatorname{tr}J_P}{2D(P)} \le \inf D\!\left(\operatorname{id}_{\operatorname{Mat}_A} -\sum_{i=1}^{s}F_i\circ P^{\otimes k}\circ E_i\right),2D(P)∥JP​∥1​−RetrJP​​≤infD(idMatA​​−i=1∑s​Fi​∘P⊗k∘Ei​),

where the infimum ranges over all positive integers sss and all completely positive complex-linear maps Ei:Mat⁡A→Mat⁡AkE_i:\operatorname{Mat}_A\to\operatorname{Mat}_{A^k}Ei​:MatA​→MatAk​ and Fi:Mat⁡Bk→Mat⁡AF_i:\operatorname{Mat}_{B^k}\to\operatorname{Mat}_AFi​:MatBk​→MatA​. Complete positivity means positivity of every finite identity amplification; no trace-preservation or channel condition is imposed on these processing maps or their sum. Tensor powers are defined by applying PPP to each matrix-unit factor and extending linearly. In particular, n=1n=1n=1 is included: then k=0k=0k=0, the registers A0,B0A^0,B^0A0,B0 are singletons, and P⊗0P^{\otimes0}P⊗0 is the identity map on scalar matrices. The subtraction is natural-number subtraction, though n>0n>0n>0 prevents truncation below zero; the infimum and quotient are the total real operations.

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