Eqs.(57)–(59): operator contraction and block positivity
OpenQAlgorithms.Papers.Independent.Extend50.P13.contraction_and_block_positivityAll matrices are complex, , with . Write for the identity and for the ordinary, unnormalized trace. Matrix inequalities use the Löwner order, so includes Hermiticity. Let and let be any operator on , without a Hermiticity assumption. Define . For every complex input tuple and every ,
For a PSD tuple , if and only if the scalar on the right is real and nonnegative for every . Globally,
Block positivity tests every fully separable state, equivalently every pure product vector. The global quantifier is essential to this correspondence.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P13
noncomputable section
open scoped Matrix ComplexConjugate ComplexOrder
namespace QAlgorithms.Papers.Independent.Extend50.P13
attribute [local instance] Classical.propDecidable
/-- General construction, Eqs.57–59 (PDF pp.14–15). The last equivalence is
universal in all PSD input tuples; one positive value alone does not imply block
positivity. Complex scalar inequalities include both reality and nonnegativity. -/
theorem contraction_and_block_positivity {d r : ℕ} (hd : 0 < d) (hr : 1 ≤ r)
(P : (Matrix (Fin (r+1) → Fin d) (Fin (r+1) → Fin d) ℂ)) :
(∀ (X : Fin r → (Matrix (Fin d) (Fin d) ℂ)) (v : Fin d → ℂ),
finiteMatrixElement v (contractInputs P X) v =
Matrix.trace (P * tensorMatrices (Fin.lastCases (rankOneOperator v v) X))) ∧
(∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ), (∀ i, (X i).PosSemidef) →
((contractInputs P X).PosSemidef ↔ ∀ v : Fin d → ℂ,
RealNonnegative (Matrix.trace (P * tensorMatrices (Fin.lastCases (rankOneOperator v v) X))))) ∧
(PositiveMap (contractInputs P) ↔ FullyBlockPositive P) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P13
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For all natural numbers and , and every complex matrix indexed by -valued -tuples, define its contraction on an -tuple of complex matrices by
where appends the final coordinate, and write for the matrix with entries . Then, for every such and every ,
For every whose entries are positive semidefinite, is positive semidefinite if and only if, for every , the trace on the right has imaginary part zero and nonnegative real part. Furthermore, is positive semidefinite for every tuple of positive semidefinite inputs if and only if is Hermitian and
has imaginary part zero and nonnegative real part for every collection , including zero vectors. No Hermitian assumption on is imposed before these conclusions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.