NLA-lib Explorer

NLAlib.existsUnique_mul_sub_mul_eq_of_isCoprime_charpoly

Library · theorem

The Sylvester equation \mathbf{A}\mathbf{X} - \mathbf{X}\mathbf{B} = \mathbf{C} has a unique solution when the characteristic polynomials of \mathbf{A} and \mathbf{B} are coprime. [HornJohnson2013, Theorem 2.4.4.1]. Result: sylvester-equation

NLAlib.existsUnique_mul_sub_mul_eq_of_isCoprime_charpoly.{u_1, u_2, u_3} {K : Type u_1} [Field K]
  {m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n]
  (A : Matrix m m K) (B : Matrix n n K) (h : IsCoprime A.charpoly B.charpoly) (C : Matrix m n K) :
  ∃! X, A * X - X * B = C

Full source on GitHub

Import NLAlib.Matrix.Spectral.SylvesterEquation.