Diagonalizable exactly when there is an eigenbasis (Five.II.3)
Openhefferon_diagonalizable_iff_eigenbasisdiagonalizationeigenvalueseigenvectorslinear-algebra
An matrix over a field is similar to a diagonal matrix if and only if has a basis consisting of eigenvectors of -- that is, a basis and scalars with for every .
Preamble
import Definitions.Def_hefferon_prelude open Matrix open HefferonLinAlg
Formal statement
theorem hefferon_diagonalizable_iff_eigenbasis
{K : Type*} [Field K] {n : ℕ} (A : Matrix (Fin n) (Fin n) K) :
(∃ (P : Matrix (Fin n) (Fin n) K) (d : Fin n → K),
IsUnit P.det ∧ P⁻¹ * A * P = Matrix.diagonal d) ↔
(∃ (B : Module.Basis (Fin n) K (Fin n → K)) (lam : Fin n → K),
∀ i, A *ᵥ B i = lam i • B i) := by
sorrySource
Jim Hefferon, *Linear Algebra*, Saint Michael's College, 2020 printing, Chapter Five, Section II.3, Theorem 3.x, pp. 417-433