Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Definitions for Distillability via protocols respecting the positivity of partial transpose

Definition
QAlgorithms_Papers_Independent_Intakethird100_P43

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Distillability via protocols respecting the positivity of partial transpose (arXiv:quant-ph/0104095) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • IsPPTMap: PDF p.2, opening of Section II: positive, trace-preserving, and Gamma T Gamma positive on every positive operator. The last condition has no CP amplification.
  • IsPositiveConjugatePPTChannel: PDF pp.1–2: an admissible channel is additionally completely positive. The frozen CP predicate tests id_r tensor T for every finite ancillary dimension r. This differs from Information100.P04.IsPPTChannel, which also requires CP of Gamma T Gamma; that stronger class is deliberately not substituted here.
  • IsPositiveConjugatePPTDistillable: PDF pp.1,3 and Theorem 1 p.2: qualitative distillability means that arbitrarily small singlet error is possible from finitely many identical copies. No rate is prescribed. The channels may depend on the known state and accuracy; they act linearly on all inputs.
  • RainsFeasibleEffect: PDF p.2, (2): the Hermitian effect A and the two Loewner bounds on m Gamma(A). All inequalities are expressed as positivity of the corresponding differences.
  • linearTracePair: PDF p.2, (3): the complex-linear functional X |-> Tr(X A).
  • isotropicRaw: PDF p.2, (3): the two-coefficient isotropic map, on every complex operator X.
  • complementaryCoefficient: PDF p.2, trace equation after (3): B is computed from A, not independent. Used at m>=2, where m^2-1 is nonzero.
  • isotropicPreparation: PDF p.2, (3) with its trace constraint imposed.
  • HasIsotropicForm: PDF p.2: maps of the precise form (3), independently of positivity or trace constraints.
  • negativeSpaceWitness: PDF p.2, (6): the constructed A. Also used at epsilon=2 in the attainment result. In the PPT case P_neg=0 and this is I/m without taking an inverse of its norm.
  • positivePPTFidelityValues: PDF p.2, (1): the operational set of attainable fidelities, over the positive trace-preserving PPT maps of this paper. IsGreatest records both optimality and attainment, so no real supremum default on an empty or unbounded set is used.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_EntanglementNegativity
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P04
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P30

/-!
Statements from Eggeling, Vollbrecht, Werner and Wolf, arXiv:quant-ph/0104095v2.
All page numbers are PDF pages. Accepted imports supply Bob transpose, copies,
Bell and negative spectral projectors, Werner states, and positive complex-linear maps.
Paper-specific definitions implement only the finite-dimensional
model of this paper. In particular PPT preservation below means POSITIVITY of the
transpose-conjugated map, not complete positivity of that map.
Compilation is pending the separate mechanical handoff.
-/

noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Intakethird100.P43

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P04
  (gamma copies bellProjector negativeProjector werner)
open QAlgorithms.Papers.Independent.Information100.P30 (IsPositiveMap)

/-- PDF p.2, opening of Section II: positive, trace-preserving, and Gamma T Gamma
positive on every positive operator. The last condition has no CP amplification. -/
def IsPPTMap {I J K L : Type*} [Fintype I] [Fintype J] [Fintype K] [Fintype L]
    (T : Matrix (I × J) (I × J) ℂ →ₗ[ℂ] Matrix (K × L) (K × L) ℂ) : Prop :=
  IsPositiveMap T ∧ (∀ X, (T X).trace = X.trace) ∧
    ∀ X, X.PosSemidef → (gamma (T (gamma X))).PosSemidef

/-- PDF pp.1–2: an admissible channel is additionally completely positive.
The frozen CP predicate tests id_r tensor T for every finite ancillary dimension r.
This differs from Information100.P04.IsPPTChannel, which also requires CP of
Gamma T Gamma; that stronger class is deliberately not substituted here. -/
def IsPositiveConjugatePPTChannel {I J K L : Type*} [Fintype I] [Fintype J] [Fintype K] [Fintype L]
    (T : Matrix (I × J) (I × J) ℂ →ₗ[ℂ] Matrix (K × L) (K × L) ℂ) : Prop :=
  IsPPTMap T ∧ Entanglement.IsCompletelyPositive T

/-- PDF pp.1,3 and Theorem 1 p.2: qualitative distillability means that arbitrarily
small singlet error is possible from finitely many identical copies. No rate is prescribed.
The channels may depend on the known state and accuracy; they act linearly on all inputs. -/
def IsPositiveConjugatePPTDistillable {I J : Type*} [Fintype I] [Fintype J]
    (rho : Matrix (I × J) (I × J) ℂ) : Prop :=
  ∀ eta : ℝ, 0 < eta → eta < 1 → ∃ n : ℕ, 0 < n ∧
    ∃ T : Matrix ((Fin n → I) × (Fin n → J))
        ((Fin n → I) × (Fin n → J)) ℂ →ₗ[ℂ]
        Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ,
      IsPositiveConjugatePPTChannel T ∧ 1 - eta ≤ effectProb (bellProjector 2) (T (copies rho n))

/-- PDF p.2, (2): the Hermitian effect A and the two Loewner bounds on m Gamma(A).
All inequalities are expressed as positivity of the corresponding differences. -/
def RainsFeasibleEffect {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
    (m : ℕ) (A : Matrix (I × J) (I × J) ℂ) : Prop :=
  A.IsHermitian ∧ IsEffect A ∧
    (1 - (m : ℂ) • gamma A).PosSemidef ∧
    (1 + (m : ℂ) • gamma A).PosSemidef

/-- PDF p.2, (3): the complex-linear functional X |-> Tr(X A). -/
def linearTracePair {I : Type*} [Fintype I] (A : Matrix I I ℂ) : Matrix I I ℂ →ₗ[ℂ] ℂ where
  toFun X := (X * A).trace
  map_add' X Y := by simp [Matrix.add_mul]
  map_smul' c X := by simp [Matrix.smul_mul]

/-- PDF p.2, (3): the two-coefficient isotropic map, on every complex operator X. -/
def isotropicRaw {I J : Type*} [Fintype I] [Fintype J]
    (m : ℕ) (A B : Matrix (I × J) (I × J) ℂ) :
    Matrix (I × J) (I × J) ℂ →ₗ[ℂ] Matrix (Fin m × Fin m) (Fin m × Fin m) ℂ :=
  (linearTracePair B).smulRight (1 - bellProjector m) +
    (linearTracePair A).smulRight (bellProjector m)

/-- PDF p.2, trace equation after (3): B is computed from A, not independent.
Used at m>=2, where m^2-1 is nonzero. -/
def complementaryCoefficient {I J : Type*} [DecidableEq I] [DecidableEq J]
    (m : ℕ) (A : Matrix (I × J) (I × J) ℂ) : Matrix (I × J) (I × J) ℂ :=
  (((m : ℂ)^2 - 1)⁻¹) • (1 - A)

/-- PDF p.2, (3) with its trace constraint imposed. -/
def isotropicPreparation {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
    (m : ℕ) (A : Matrix (I × J) (I × J) ℂ) :=
  isotropicRaw m A (complementaryCoefficient m A)

/-- PDF p.2: maps of the precise form (3), independently of positivity or trace constraints. -/
def HasIsotropicForm {I J : Type*} [Fintype I] [Fintype J] {m : ℕ}
    (T : Matrix (I × J) (I × J) ℂ →ₗ[ℂ] Matrix (Fin m × Fin m) (Fin m × Fin m) ℂ) : Prop :=
  ∃ A B, T = isotropicRaw m A B

/-- PDF p.2, (6): the constructed A. Also used at epsilon=2 in the attainment result.
In the PPT case P_neg=0 and this is I/m without taking an inverse of its norm. -/
def negativeSpaceWitness {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
    (rho : Matrix (I × J) (I × J) ℂ) (m : ℕ) (epsilon : ℝ) :
    Matrix (I × J) (I × J) ℂ :=
  ((m : ℂ)⁻¹) • (1 - (epsilon : ℂ) • gamma (negativeProjector rho))

/-- PDF p.2, (1): the operational set of attainable fidelities, over the positive
trace-preserving PPT maps of this paper. IsGreatest records both optimality and attainment,
so no real supremum default on an empty or unbounded set is used. -/
def positivePPTFidelityValues {I J : Type*} [Fintype I] [Fintype J]
    (rho : Matrix (I × J) (I × J) ℂ) (m : ℕ) : Set ℝ :=
  {v | ∃ T : Matrix (I × J) (I × J) ℂ →ₗ[ℂ]
      Matrix (Fin m × Fin m) (Fin m × Fin m) ℂ,
    IsPPTMap T ∧ v = effectProb (bellProjector m) (T rho)}

/-- Sanity check: the identity satisfies the paper's channel convention. -/
example {I J : Type*} [Fintype I] [Fintype J] :
    IsPositiveConjugatePPTChannel (LinearMap.id : Matrix (I × J) (I × J) ℂ →ₗ[ℂ]
      Matrix (I × J) (I × J) ℂ) := by
  constructor
  · refine ⟨?_, ?_, ?_⟩
    · intro X hX; exact hX
    · intro X; rfl
    · intro X hX; exact hX
  · intro r X hX
    exact hX

example {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
    (m : ℕ) : RainsFeasibleEffect m (0 : Matrix (I × J) (I × J) ℂ) := by
  have hg : gamma (0 : Matrix (I × J) (I × J) ℂ) = 0 := rfl
  refine ⟨Matrix.PosSemidef.zero.isHermitian, ⟨Matrix.PosSemidef.zero, ?_⟩, ?_, ?_⟩
  · simpa only [sub_zero] using (Matrix.PosSemidef.one :
      (1 : Matrix (I × J) (I × J) ℂ).PosSemidef)
  · simpa only [hg, smul_zero, sub_zero] using (Matrix.PosSemidef.one :
      (1 : Matrix (I × J) (I × J) ℂ).PosSemidef)
  · simpa only [hg, smul_zero, add_zero] using (Matrix.PosSemidef.one :
      (1 : Matrix (I × J) (I × J) ℂ).PosSemidef)

example {I J : Type*} (X : Matrix (I × J) (I × J) ℂ) : gamma (gamma X) = X := rfl

example {I J : Type*} (X : Matrix (I × J) (I × J) ℂ) :
    gamma X = (Entanglement.partialTransposeFirst X).transpose := rfl

example (m : ℕ) :
    bellProjector (m+1) ((0 : Fin (m+1)), 0) (0, 0) = ((m+1 : ℕ) : ℂ)⁻¹ := by
  simp [bellProjector]

example : bellProjector 1 = (1 : Matrix (Fin 1 × Fin 1) (Fin 1 × Fin 1) ℂ) := by
  ext i j
  simp [bellProjector, Matrix.one_apply, Subsingleton.elim i j, Subsingleton.elim i.1 i.2,
    Subsingleton.elim j.1 j.2]

example {I J : Type*} (rho : Matrix (I × J) (I × J) ℂ) : copies rho 0 = 1 := by
  ext i j
  simp [copies, Matrix.one_apply, Subsingleton.elim i j]

example {I : Type*} [Fintype I] (A X : Matrix I I ℂ) :
    linearTracePair A X = (X * A).trace := rfl

example {I J : Type*} [Fintype I] [Fintype J] (m : ℕ)
    (A B X : Matrix (I × J) (I × J) ℂ) :
    isotropicRaw m A B X = (X*B).trace • (1-bellProjector m) +
      (X*A).trace • bellProjector m := rfl

example {I J : Type*} [DecidableEq I] [DecidableEq J]
    (A : Matrix (I × J) (I × J) ℂ) : complementaryCoefficient 2 A = (1/3 : ℂ) • (1-A) := by
  norm_num [complementaryCoefficient]

example {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J] :
    negativeProjector (0 : Matrix (I × J) (I × J) ℂ) = 0 := by
  have hz : gamma (0 : Matrix (I × J) (I × J) ℂ) = 0 := rfl
  simp [negativeProjector, hz, cfc_apply_zero]

example {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
    (rho : Matrix (I × J) (I × J) ℂ) (m : ℕ) :
    negativeSpaceWitness rho m 0 = ((m : ℂ)⁻¹) • 1 := by simp [negativeSpaceWitness]

example (d : ℕ) : werner d 0 =
    (((2 / ((d : ℝ)*(d+1)) : ℝ) : ℂ)) •
      QAlgorithms.Papers.Independent.Information100.P04.wernerP0 d := by simp [werner]

end QAlgorithms.Papers.Independent.Intakethird100.P43
Source
Distillability via protocols respecting the positivity of partial transpose, arXiv:quant-ph/0104095v2, https://arxiv.org/abs/quant-ph/0104095v2
Read-back

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

QAlgorithms.Papers.Independent.Intakethird100.P43.HasIsotropicForm

For finite types I,JI,JI,J, a natural number mmm, and a complex-linear map TTT from matrices on I×JI\times JI×J to matrices on {0,…,m−1}2\{0,\ldots,m-1\}^2{0,…,m−1}2, this predicate says that there exist complex matrices A,BA,BA,B on I×JI\times JI×J such that, for every input matrix XXX,

T(X)=tr⁡(XB)(1−Bm)+tr⁡(XA)Bm,T(X)=\operatorname{tr}(XB)(\mathbf1-B_m)+\operatorname{tr}(XA)B_m,T(X)=tr(XB)(1−Bm​)+tr(XA)Bm​,

where (Bm)(u,v),(u′,v′)=1/m(B_m)_{(u,v),(u',v')}=1/m(Bm​)(u,v),(u′,v′)​=1/m if u=vu=vu=v and u′=v′u'=v'u′=v′, and is zero otherwise. The witnesses A,BA,BA,B need not be unique, Hermitian, positive, or normalized. Empty index types and m=0m=0m=0 are included, with the output matrix space having an empty index set at m=0m=0m=0.

QAlgorithms.Papers.Independent.Intakethird100.P43.IsPPTMap

For arbitrary finite types I,J,K,LI,J,K,LI,J,K,L, which may be empty, and a complex-linear map TTT from complex matrices indexed by I×JI\times JI×J to those indexed by K×LK\times LK×L, this predicate requires three properties: T(X)T(X)T(X) is positive semidefinite whenever XXX is positive semidefinite; tr⁡(T(X))=tr⁡(X)\operatorname{tr}(T(X))=\operatorname{tr}(X)tr(T(X))=tr(X) for every matrix XXX; and Γ(T(Γ(X)))\Gamma(T(\Gamma(X)))Γ(T(Γ(X))) is positive semidefinite whenever XXX is positive semidefinite. On any product index set, Γ\GammaΓ is the operation defined entrywise by

(ΓX)(a,b),(a′,b′)=X(a,b′),(a′,b).(\Gamma X)_{(a,b),(a',b')}=X_{(a,b'),(a',b)}.(ΓX)(a,b),(a′,b′)​=X(a,b′),(a′,b)​.

The inner and outer occurrences of Γ\GammaΓ use the input and output product index sets, respectively.

QAlgorithms.Papers.Independent.Intakethird100.P43.IsPositiveConjugatePPTChannel

For arbitrary finite types I,J,K,LI,J,K,LI,J,K,L, including empty types, and a complex-linear map TTT from matrices on I×JI\times JI×J to matrices on K×LK\times LK×L, this predicate requires that TTT preserve positive semidefiniteness, preserve the complex trace of every matrix, and satisfy Γ(T(Γ(X)))⪰0\Gamma(T(\Gamma(X)))\succeq0Γ(T(Γ(X)))⪰0 for every X⪰0X\succeq0X⪰0, where (ΓX)(a,b),(a′,b′)=X(a,b′),(a′,b)(\Gamma X)_{(a,b),(a',b')}=X_{(a,b'),(a',b)}(ΓX)(a,b),(a′,b′)​=X(a,b′),(a′,b)​ on each relevant product index set. It additionally requires complete positivity: for every natural number rrr, including r=0r=0r=0, and every positive semidefinite matrix XXX indexed by {0,…,r−1}×(I×J)\{0,\ldots,r-1\}\times(I\times J){0,…,r−1}×(I×J), the matrix YYY with entries

Y(u,c),(v,c′)=[T ⁣((X(u,a),(v,a′))a,a′∈I×J)]c,c′Y_{(u,c),(v,c')}= \left[T\!\left((X_{(u,a),(v,a')})_{a,a'\in I\times J}\right)\right]_{c,c'}Y(u,c),(v,c′)​=[T((X(u,a),(v,a′)​)a,a′∈I×J​)]c,c′​

is positive semidefinite, where u,v<ru,v<ru,v<r and c,c′∈K×Lc,c'\in K\times Lc,c′∈K×L.

QAlgorithms.Papers.Independent.Intakethird100.P43.IsPositiveConjugatePPTDistillable

For finite types I,JI,JI,J and any complex matrix ρ\rhoρ indexed by I×JI\times JI×J, this predicate says that for every real η\etaη with 0<η<10<\eta<10<η<1, there exist a positive natural number nnn and a complex-linear map TTT from matrices on In×JnI^n\times J^nIn×Jn to matrices on {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1} such that TTT preserves positive semidefiniteness and the trace of every matrix, Γ(T(Γ(X)))⪰0\Gamma(T(\Gamma(X)))\succeq0Γ(T(Γ(X)))⪰0 whenever X⪰0X\succeq0X⪰0, and every finite amplification of TTT is positive: for every natural number rrr, applying TTT separately to each matrix block of any positive semidefinite matrix indexed by {0,…,r−1}×(In×Jn)\{0,\ldots,r-1\}\times(I^n\times J^n){0,…,r−1}×(In×Jn) yields a positive semidefinite matrix. Here (ΓX)(a,b),(a′,b′)=X(a,b′),(a′,b)(\Gamma X)_{(a,b),(a',b')}=X_{(a,b'),(a',b)}(ΓX)(a,b),(a′,b′)​=X(a,b′),(a′,b)​. These choices must satisfy

1−η≤Re⁡tr⁡ ⁣(B2 T(ρ[n])),(ρ[n])(a,b),(a′,b′)=∏t=0n−1ρ(at,bt),(at′,bt′),1-\eta\le \operatorname{Re}\operatorname{tr}\!\left(B_2\,T(\rho^{[n]})\right), \qquad (\rho^{[n]})_{(a,b),(a',b')}= \prod_{t=0}^{n-1}\rho_{(a_t,b_t),(a'_t,b'_t)},1−η≤Retr(B2​T(ρ[n])),(ρ[n])(a,b),(a′,b′)​=t=0∏n−1​ρ(at​,bt​),(at′​,bt′​)​,

where (B2)(u,v),(u′,v′)=12(B_2)_{(u,v),(u',v')}=\tfrac12(B2​)(u,v),(u′,v′)​=21​ if u=vu=vu=v and u′=v′u'=v'u′=v′, and is zero otherwise. No density-matrix assumption is imposed on ρ\rhoρ. Empty III or JJJ are allowed as parameters, but then this predicate cannot hold, since n>0n>0n>0 makes the input matrix space zero and the displayed overlap zero.

QAlgorithms.Papers.Independent.Intakethird100.P43.RainsFeasibleEffect

For finite types I,JI,JI,J with decidable equality, any natural number mmm, and any complex matrix AAA indexed by I×JI\times JI×J, this predicate says that AAA is Hermitian and that all four matrices

A,1−A,1−mΓ(A),1+mΓ(A)A,\qquad \mathbf1-A,\qquad \mathbf1-m\Gamma(A),\qquad \mathbf1+m\Gamma(A)A,1−A,1−mΓ(A),1+mΓ(A)

are positive semidefinite, where 1\mathbf11 is the identity matrix and (ΓA)(i,j),(i′,j′)=A(i,j′),(i′,j)(\Gamma A)_{(i,j),(i',j')}=A_{(i,j'),(i',j)}(ΓA)(i,j),(i′,j′)​=A(i,j′),(i′,j)​. The index types may be empty, and m=0m=0m=0 is included; at m=0m=0m=0, the last two matrices are both the identity.

QAlgorithms.Papers.Independent.Intakethird100.P43.complementaryCoefficient

For types I,JI,JI,J with decidable equality, without any finiteness or nonemptiness assumption, a natural number mmm, and any complex matrix AAA indexed by I×JI\times JI×J, this defines the matrix

(m2−1)−1(1−A),\bigl(m^2-1\bigr)^{-1}(\mathbf1-A),(m2−1)−1(1−A),

where the inverse is taken in C\mathbb CC and 1\mathbf11 is the identity matrix. All natural values of mmm are included: at m=1m=1m=1, the inverse of zero is defined to be zero, so the result is the zero matrix; at m=0m=0m=0, the result is A−1A-\mathbf1A−1.

QAlgorithms.Papers.Independent.Intakethird100.P43.isotropicPreparation

For finite types I,JI,JI,J with decidable equality, any natural number mmm, and any complex matrix AAA indexed by I×JI\times JI×J, this defines the complex-linear map

X⟼(m2−1)−1tr⁡ ⁣(X(1−A))(1−Bm)+tr⁡(XA)Bm.X\longmapsto (m^2-1)^{-1}\operatorname{tr}\!\left(X(\mathbf1-A)\right)(\mathbf1-B_m) +\operatorname{tr}(XA)B_m.X⟼(m2−1)−1tr(X(1−A))(1−Bm​)+tr(XA)Bm​.

Here BmB_mBm​, indexed by pairs of integers less than mmm, has entry 1/m1/m1/m when both its row pair and its column pair have equal components, and zero otherwise; all scalars and inverses in the formula are complex. No positivity, Hermiticity, or normalization condition is imposed on AAA. Empty input types and m=0m=0m=0 are permitted; for m=0m=0m=0 the output index set is empty, and for m=1m=1m=1 the zero-inverse convention gives the map X↦tr⁡(XA)1X\mapsto\operatorname{tr}(XA)\mathbf1X↦tr(XA)1.

QAlgorithms.Papers.Independent.Intakethird100.P43.isotropicRaw

For finite types I,JI,JI,J, any natural number mmm, and arbitrary complex matrices A,BA,BA,B indexed by I×JI\times JI×J, this defines the complex-linear map

X⟼tr⁡(XB)(1−Bm)+tr⁡(XA)BmX\longmapsto \operatorname{tr}(XB)(\mathbf1-B_m)+\operatorname{tr}(XA)B_mX⟼tr(XB)(1−Bm​)+tr(XA)Bm​

into matrices indexed by {0,…,m−1}×{0,…,m−1}\{0,\ldots,m-1\}\times\{0,\ldots,m-1\}{0,…,m−1}×{0,…,m−1}, where (Bm)(u,v),(u′,v′)=1/m(B_m)_{(u,v),(u',v')}=1/m(Bm​)(u,v),(u′,v′)​=1/m if u=vu=vu=v and u′=v′u'=v'u′=v′, and is zero otherwise, with the scalar interpreted in C\mathbb CC. No positivity or trace-preservation condition is imposed on this map or on A,BA,BA,B. Empty input types and m=0m=0m=0 are included; when m=0m=0m=0, the output index set is empty. When m=1m=1m=1, Bm=1B_m=\mathbf1Bm​=1, so the map is X↦tr⁡(XA)1X\mapsto\operatorname{tr}(XA)\mathbf1X↦tr(XA)1.

QAlgorithms.Papers.Independent.Intakethird100.P43.linearTracePair

For any finite type III, possibly empty, and any complex matrix AAA indexed by III, this defines the complex-linear functional

X⟼tr⁡(XA)=∑i∈I∑j∈IXijAji.X\longmapsto \operatorname{tr}(XA) =\sum_{i\in I}\sum_{j\in I}X_{ij}A_{ji}.X⟼tr(XA)=i∈I∑​j∈I∑​Xij​Aji​.

There are no Hermiticity, positivity, or normalization assumptions on AAA or XXX, and the value is complex. If III is empty, the functional is zero.

QAlgorithms.Papers.Independent.Intakethird100.P43.negativeSpaceWitness

For finite types I,JI,JI,J with decidable equality, any complex matrix ρ\rhoρ indexed by I×JI\times JI×J, any natural number mmm, and any real ϵ\epsilonϵ, this defines

m−1(1−ϵ Γ(P−)),P−=cfc⁡ ⁣(t↦{1,t<0,0,t≥0,)(Γ(ρ)),m^{-1}\bigl(\mathbf1-\epsilon\,\Gamma(P_-)\bigr), \qquad P_-=\operatorname{cfc}\!\left(t\mapsto \begin{cases}1,&t<0,\\0,&t\ge0,\end{cases}\right)(\Gamma(\rho)),m−1(1−ϵΓ(P−​)),P−​=cfc(t↦{1,0,​t<0,t≥0,​)(Γ(ρ)),

where (ΓX)(i,j),(i′,j′)=X(i,j′),(i′,j)(\Gamma X)_{(i,j),(i',j')}=X_{(i,j'),(i',j)}(ΓX)(i,j),(i′,j′)​=X(i,j′),(i′,j)​, and cfc⁡\operatorname{cfc}cfc is the functional-calculus operation on matrices. For Hermitian Γ(ρ)\Gamma(\rho)Γ(ρ), P−P_-P−​ is its spectral projection onto the strictly negative eigenvalues. The definition itself assumes neither Hermiticity nor positivity nor trace one for ρ\rhoρ, and allows every real ϵ\epsilonϵ, empty index types, and m=0m=0m=0. The scalar inverse is taken in C\mathbb CC, so the result at m=0m=0m=0 is zero.

QAlgorithms.Papers.Independent.Intakethird100.P43.positivePPTFidelityValues

For finite types I,JI,JI,J, any complex matrix ρ\rhoρ indexed by I×JI\times JI×J, and any natural number mmm, this defines the set of real numbers vvv for which there exists a complex-linear map TTT from matrices on I×JI\times JI×J to matrices on {0,…,m−1}2\{0,\ldots,m-1\}^2{0,…,m−1}2 satisfying

v=Re⁡tr⁡(BmT(ρ)).v=\operatorname{Re}\operatorname{tr}(B_mT(\rho)).v=Retr(Bm​T(ρ)).

The required conditions on TTT are that it preserve positive semidefiniteness, preserve the complex trace of every matrix, and satisfy Γ(T(Γ(X)))⪰0\Gamma(T(\Gamma(X)))\succeq0Γ(T(Γ(X)))⪰0 for every X⪰0X\succeq0X⪰0. Here (ΓX)(a,b),(a′,b′)=X(a,b′),(a′,b)(\Gamma X)_{(a,b),(a',b')}=X_{(a,b'),(a',b)}(ΓX)(a,b),(a′,b′)​=X(a,b′),(a′,b)​, and (Bm)(u,v),(u′,v′)=1/m(B_m)_{(u,v),(u',v')}=1/m(Bm​)(u,v),(u′,v′)​=1/m when u=vu=vu=v and u′=v′u'=v'u′=v′, and zero otherwise. No density-matrix assumption is imposed on ρ\rhoρ, and no complete-positivity condition is imposed on TTT. Empty input types and m=0m=0m=0 are included; at m=0m=0m=0, every possible overlap is zero, and if I,JI,JI,J are both nonempty, trace preservation makes the set empty.

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