The Cayley–Hamilton theorem
ProvedFamousTheorems.aeval_self_charpolylinear-algebramathlib
Every square matrix satisfies its own characteristic polynomial.
The one-line "proof" — substitute into — is nonsense, since it confuses scalars with matrices. The genuine argument uses the adjugate identity over the polynomial ring and compares coefficients, which is why the theorem holds over any commutative ring rather than just fields.
Consequences: the inverse of an invertible matrix is a polynomial in the matrix; the minimal polynomial divides the characteristic polynomial; and for is a combination of , which is what makes linear recurrences solvable in closed form.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem aeval_self_charpoly : ∀ {R : Type*} [CommRing R] {n : Type*} [DecidableEq n] [Fintype n]
(M : Matrix n n R), (Polynomial.aeval M) M.charpoly = 0 := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.