The areas / V07. Linear algebra
Mathlib.LinearAlgebra.Charpoly.Basic
16 declarations. Mathlib docs · Source
Characteristic polynomial
We define the characteristic polynomial of f : M →ₗ[R] M, where M is a finite and
free R-module. The proof that f.charpoly is the characteristic polynomial of the matrix of f
in any basis is in LinearAlgebra/Charpoly/ToMatrix.
Main definition
LinearMap.charpoly f: the characteristic polynomial off : M →ₗ[R] M.
theorem LinearMap.charpoly.congr_simp E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] (f f_1 : M →ₗ[R] M), f = f_1 → f.charpoly = f_1.charpoly
def LinearMap.charpoly E1 #
{R : Type u} →
{M : Type v} →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] → [Module.Free R M] → [Module.Finite R M] → (M →ₗ[R] M) → Polynomial R
The characteristic polynomial of f : M →ₗ[R] M.
theorem LinearMap.charpoly_def E0 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] (f : M →ₗ[R] M),
f.charpoly = ((LinearMap.toMatrix (Module.Free.chooseBasis R M) (Module.Free.chooseBasis R M)) f).charpoly
theorem LinearMap.eval_charpoly E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] (f : M →ₗ[R] M) (t : R),
Polynomial.eval t f.charpoly = LinearMap.det ((algebraMap R (M →ₗ[R] M)) t - f)
theorem LinearMap.charpoly_zero E0 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] [StrongRankCondition R],
LinearMap.charpoly 0 = Polynomial.X ^ Module.finrank R M
theorem LinearMap.charpoly_one E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] [StrongRankCondition R],
LinearMap.charpoly 1 = (Polynomial.X - 1) ^ Module.finrank R M
theorem LinearMap.charpoly_sub_smul E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] (f : Module.End R M) (μ : R),
LinearMap.charpoly (f - μ • 1) = (LinearMap.charpoly f).comp (Polynomial.X + Polynomial.C μ)
theorem LinearMap.charpoly_monic E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] (f : M →ₗ[R] M), f.charpoly.Monic
theorem LinearMap.charpoly_natDegree E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] (f : M →ₗ[R] M) [StrongRankCondition R],
f.charpoly.natDegree = Module.finrank R M
theorem LinearMap.aeval_self_charpoly E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] (f : M →ₗ[R] M), (Polynomial.aeval f) f.charpoly = 0
The Cayley-Hamilton Theorem, that the characteristic polynomial of a linear map, applied to the linear map itself, is zero.
See Matrix.aeval_self_charpoly for the equivalent statement about matrices.
theorem LinearMap.isIntegral E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Free R M]
[Module.Finite R M] (f : M →ₗ[R] M), IsIntegral R f
theorem LinearMap.minpoly_dvd_charpoly E1 #
∀ {K : Type u} {M : Type v} [inst : Field K] [inst_1 : AddCommGroup M] [inst_2 : Module K M]
[inst_3 : FiniteDimensional K M] (f : M →ₗ[K] M), minpoly K f ∣ f.charpoly
theorem LinearMap.aeval_eq_aeval_mod_charpoly E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] (f : M →ₗ[R] M) (p : Polynomial R),
(Polynomial.aeval f) p = (Polynomial.aeval f) (p %ₘ f.charpoly)
Any endomorphism polynomial p is equivalent under evaluation to p %ₘ f.charpoly; that is,
p is equivalent to a polynomial with degree less than the dimension of the module.
theorem LinearMap.pow_eq_aeval_mod_charpoly E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Module.Free R M] [inst_4 : Module.Finite R M] (f : M →ₗ[R] M) (k : ℕ),
f ^ k = (Polynomial.aeval f) (Polynomial.X ^ k %ₘ f.charpoly)
Any endomorphism power can be computed as the sum of endomorphism powers less than the dimension of the module.
theorem LinearMap.minpoly_coeff_zero_of_injective E1 #
∀ {R : Type u} {M : Type v} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Free R M]
[Module.Finite R M] {f : M →ₗ[R] M} [Nontrivial R], Function.Injective ⇑f → (minpoly R f).coeff 0 ≠ 0
theorem Algebra.aeval_self_charpoly_lmul E1 #
∀ {R : Type u_2} {M : Type u_1} [inst : CommRing R] [inst_1 : Ring M] [inst_2 : Algebra R M]
[inst_3 : Module.Finite R M] [inst_4 : Module.Free R M] (α : M),
(Polynomial.aeval α) (LinearMap.charpoly ((Algebra.lmul R M) α)) = 0