NLA-lib Explorer

Matrix.PosSemidef.trace_mul_nonneg

Library · theorem

Nonnegative trace pairing of positive semidefinite matrices. The trace of a product of two positive semidefinite matrices is nonnegative: 0 \le \operatorname{tr}(\mathbf{A}\mathbf{B}), in the order of \Bbbk (so the trace is real). [HornJohnson2013, Theorem 7.5.4]. Result: psd-cone-self-dual

Matrix.PosSemidef.trace_mul_nonneg.{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) : 0 ≤ (A * B).trace

Full source on GitHub

Import NLAlib.ForMathlib.LinearAlgebra.Matrix.PosDef.