NLA-lib Explorer

Block intertwiners

Library · Result group

Theorem (blockDiagonal'_mul_eq_mul_blockDiagonal'_iff_of_isCoprime_charpoly). Block intertwiners. Suppose the characteristic polynomials of \mathbf{A}_i and \mathbf{B}_j are coprime whenever i\ne j. A matrix intertwines the block diagonal matrices with blocks \mathbf{A}_i and \mathbf{B}_i exactly when it is block diagonal with matching blocks \mathbf{X}_i satisfying \mathbf{A}_i\mathbf{X}_i=\mathbf{X}_i\mathbf{B}_i. The blocks \mathbf{X}_i may be rectangular or empty, over any field. [HornJohnson2013, Corollary 2.4.4.2]; generalized from spectral disjointness to coprimality. Adapted from tchen-research/NLAlib at 77514ce42a0e437d837797a063ac161f41022730, eq_blockDiagonal'_of_intertwines_of_disjoint_spectrum, strengthened to an equivalence.

Headline (provisional)

Lean statement and details
NLAlib.blockDiagonal'_mul_eq_mul_blockDiagonal'_iff_of_isCoprime_charpoly.{u_1, u_4, u_5, u_6}
  {K : Type u_1} [Field K] {ι : Type u_4} [Fintype ι] [DecidableEq ι] {p : ι → Type u_5}
  {q : ι → Type u_6} [(i : ι) → Fintype (p i)] [(i : ι) → DecidableEq (p i)]
  [(i : ι) → Fintype (q i)] [(i : ι) → DecidableEq (q i)] (A : (i : ι) → Matrix (p i) (p i) K)
  (B : (i : ι) → Matrix (q i) (q i) K)
  (h : ∀ (i j : ι), i ≠ j → IsCoprime (A i).charpoly (B j).charpoly)
  (X : Matrix ((i : ι) × p i) ((i : ι) × q i) K) :
  blockDiagonal' A * X = X * blockDiagonal' B ↔
    X = blockDiagonal' X.blockDiag' ∧ ∀ (i : ι), A i * X.blockDiag' i = X.blockDiag' i * B i

Full source on GitHub

Copy link

Other forms

Theorem (existsUnique_mul_sub_mul_eq_of_isCoprime_charpoly). 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].

Lean statement and details
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

Copy link

Theorem (forall_existsUnique_mul_sub_mul_eq_iff_disjoint_spectrum). The Sylvester solvability criterion. Over an algebraically closed field, \mathbf{A}\mathbf{X}-\mathbf{X}\mathbf{B}=\mathbf{C} has a unique solution for every right-hand side \mathbf{C} exactly when the spectra of \mathbf{A} and \mathbf{B} are disjoint. The two matrix sizes may be different or zero. [HornJohnson2013, Theorem 2.4.4.1]. Adapted from tchen-research/NLAlib at 77514ce42a0e437d837797a063ac161f41022730, sylvesterLinearMap_bijective_iff_disjoint_spectrum, through unique solvability.

Lean statement and details
NLAlib.forall_existsUnique_mul_sub_mul_eq_iff_disjoint_spectrum.{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]
  [IsAlgClosed K] (A : Matrix m m K) (B : Matrix n n K) :
  (∀ (C : Matrix m n K), ∃! X, A * X - X * B = C) ↔ Disjoint (spectrum K A) (spectrum K B)

Full source on GitHub

Copy link