Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example I.1: the two trivial classes are tensor-stable

Open
QAlgorithms.Papers.Independent.Bridge50.P37.trivial_classes_tensor_stable

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.

For every completely positive map T:Md1→Md2T:M_{d_1}\to M_{d_2}T:Md1​​→Md2​​,

T and ϑd2∘T are tensor-stable positive.T\text{ and }\vartheta_{d_2}\circ T\text{ are tensor-stable positive}.T and ϑd2​​∘T are tensor-stable positive.

The latter are exactly the completely co-positive maps. Neither class is restricted to trace-preserving maps. This identifies the two trivial families used throughout the paper.

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]

/-- Example I.1, PDF p.2: CP and output-transpose-after-CP are tensor-stable, without TP. -/
theorem trivial_classes_tensor_stable [Nonempty A] [Nonempty B] (T : MatrixMap A B)
    (hT : Entanglement.IsCompletelyPositive T) :
    TensorStable T ∧ TensorStable ((basisTransposeLinearMap B).comp T) := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P37

end
Source
Positivity of linear maps under tensor powers, arXiv:1502.05630v2, PDF p. 2, Example I.1: the two trivial classes are tensor-stable
Read-back

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

For arbitrary finite nonempty types A,BA,BA,B, each equipped with decidable equality, let T:MA(C)→MB(C)T:M_A(\mathbb C)\to M_B(\mathbb C)T:MA​(C)→MB​(C) be a complex-linear map that is completely positive, meaning that every finite identity amplification of TTT, including ancillary dimension zero, sends positive semidefinite matrices to positive semidefinite matrices. Then both TTT and S:X↦(TX)TS:X\mapsto(TX)^{\mathsf T}S:X↦(TX)T preserve positivity at every positive tensor power. Explicitly, for each F∈{T,S}F\in\{T,S\}F∈{T,S} and every natural n>0n>0n>0, FFF itself preserves positive semidefinite matrices, and so does

(F⊗nX)uv=∑x,y∈AnXxy∏j<nF(Exjyj)ujvj,u,v∈Bn.(F^{\otimes n}X)_{uv} = \sum_{x,y\in A^n}X_{xy} \prod_{j<n}F(E_{x_jy_j})_{u_jv_j}, \qquad u,v\in B^n.(F⊗nX)uv​=x,y∈An∑​Xxy​j<n∏​F(Exj​yj​​)uj​vj​​,u,v∈Bn.

Here EijE_{ij}Eij​ denotes a matrix unit and transposition is with respect to the specified indices. The zero map is allowed, no trace-preservation assumption is imposed, and the tensor-positivity conclusions quantify only over n>0n>0n>0.

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