NLA-lib Explorer

Matrix.PosSemidef.trace_mul_eq_zero_iff

Library · theorem

Vanishing trace pairing of positive semidefinite matrices. For positive semidefinite \mathbf{A} and \mathbf{B}, \operatorname{tr}(\mathbf{A}\mathbf{B}) = 0 exactly when \mathbf{A}\mathbf{B} = \mathbf{0}. [HornJohnson2013, Theorem 7.5.4]. Result: psd-cone-self-dual

Matrix.PosSemidef.trace_mul_eq_zero_iff.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2}
  [Fintype n] {A B : Matrix n n 𝕜} (hA : A.PosSemidef) (hB : B.PosSemidef) :
  (A * B).trace = 0 ↔ A * B = 0

Full source on GitHub

Import NLAlib.ForMathlib.LinearAlgebra.Matrix.PosDef.