NLA-lib Explorer

NLAlib.eq_smul_one_of_forall_mul_mul_conjTranspose_eq

Library · theorem

A matrix fixed by every unitary conjugation is scalar: if \mathbf{U}\mathbf{M}\mathbf{U}^{\mathsf{H}} = \mathbf{M} for every unitary \mathbf{U}, then \mathbf{M} = (\operatorname{tr} \mathbf{M} / \lvert n \rvert) \mathbf{I}. For empty n both sides are \mathbf{0}. Unlike Mathlib's Matrix.mem_range_scalar_of_commute_single, the hypothesis quantifies over unitaries only (signed permutation matrices suffice).

NLAlib.eq_smul_one_of_forall_mul_mul_conjTranspose_eq.{u_1, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_4} [Fintype n] [DecidableEq n] {M : Matrix n n 𝕜}
  (h : ∀ (U : Matrix n n 𝕜), HasOrthonormalCols U → U * M * Uᴴ = M) :
  M = (M.trace / ↑(Fintype.card n)) • 1

Full source on GitHub

Import NLAlib.Matrix.Factorizations.PolarFrames.