NLAlib.commute_of_mul_eq_mul_diagonal
Library · theorem
Simultaneously diagonalisable matrices commute: if \mathbf{V} is invertible, \mathbf{A}\mathbf{V} = \mathbf{V} \operatorname{diag}(\mathbf{a}) and \mathbf{B}\mathbf{V} = \mathbf{V} \operatorname{diag}(\mathbf{b}), then \mathbf{A}\mathbf{B} = \mathbf{B}\mathbf{A}.
NLAlib.commute_of_mul_eq_mul_diagonal.{u_1, u_4} {K : Type u_1} [Field K] {n : Type u_4} [Fintype n]
[DecidableEq n] {A B V : Matrix n n K} {a b : n → K} (hV : IsUnit V.det)
(hA : A * V = V * diagonal a) (hB : B * V = V * diagonal b) : Commute A BImport NLAlib.Matrix.Spectral.Diagonalizable.