NLA-lib Explorer

Matrix.PosSemidef.exists_conjTranspose_mul_mul_eq_diagonal

Library · theorem

This statement changed in the recorded rename: 2026-11-generalized-svd.

Two positive semidefinite matrices are simultaneously diagonalised by congruence, with normalized nonnegative diagonals: there are an invertible \mathbf{X} and nonnegative real \mathbf{a}, \mathbf{b} with \mathbf{X}^{\mathsf{H}}\mathbf{A}\mathbf{X} = \operatorname{diag}(\mathbf{a}) and \mathbf{X}^{\mathsf{H}}\mathbf{B}\mathbf{X} = \operatorname{diag}(\mathbf{b}), and each \mathbf{a}_i + \mathbf{b}_i is zero or one. [HornJohnson2013, Theorem 7.6.4 context]; the diagonals are normalized by whitening their sum.

Matrix.PosSemidef.exists_conjTranspose_mul_mul_eq_diagonal.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} [Fintype n] [DecidableEq n] {A B : Matrix n n 𝕜} (hA : A.PosSemidef)
  (hB : B.PosSemidef) :
  ∃ X a b,
    IsUnit X.det ∧
      (Xᴴ * A * X = diagonal fun i ↦ ↑(a i)) ∧
        (Xᴴ * B * X = diagonal fun i ↦ ↑(b i)) ∧
          (∀ (i : n), 0 ≤ a i) ∧ (∀ (i : n), 0 ≤ b i) ∧ ∀ (i : n), a i + b i = 0 ∨ a i + b i = 1

Full source on GitHub

Import NLAlib.Matrix.Spectral.Congruence.