NLA-lib Explorer

Matrix.PosSemidef.re_trace_mul_nonneg

Library · theorem

The trace of a product of two positive semidefinite matrices has nonnegative real part: \operatorname{Re} \operatorname{tr}(\mathbf{A}\mathbf{B}) \ge 0.

Matrix.PosSemidef.re_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 ≤ RCLike.re (A * B).trace

Full source on GitHub

Import NLAlib.Matrix.Functions.GoldenThompson.