The areas / V07. Linear algebra
Mathlib.Algebra.Module.LinearMap.Polynomial
60 declarations. Mathlib docs · Source
Characteristic polynomials of linear families of endomorphisms
The coefficients of the characteristic polynomials of a linear family of endomorphisms are homogeneous polynomials in the parameters. This result is used in Lie theory to establish the existence of regular elements and Cartan subalgebras, and ultimately a well-defined notion of rank for Lie algebras.
In this file we prove this result about characteristic polynomials.
Let L and M be modules over a nontrivial commutative ring R,
and let φ : L →ₗ[R] Module.End R M be a linear map.
Let b be a basis of L, indexed by ι.
Then we define a multivariate polynomial with variables indexed by ι
that evaluates on elements x of L to the characteristic polynomial of φ x.
Main declarations
Matrix.toMvPolynomial M i: the family of multivariate polynomials that evaluates onc : n → Rto the dot product of thei-th row ofMwithc.Matrix.toMvPolynomial M iis the sum of the monomialsC (M i j) * X j.LinearMap.toMvPolynomial b₁ b₂ f: a version ofMatrix.toMvPolynomialfor linear mapsfwith respect to basesb₁andb₂of the domain and codomain.LinearMap.polyCharpoly: the multivariate polynomial that evaluates on elementsxofLto the characteristic polynomial ofφ x.LinearMap.polyCharpoly_map_eq_charpoly: the evaluation ofpolyCharpolyon elementsxofLis the characteristic polynomial ofφ x.LinearMap.polyCharpoly_coeff_isHomogeneous: the coefficients ofpolyCharpolyare homogeneous polynomials in the parameters.LinearMap.nilRank: the smallest index at whichpolyCharpolyhas a non-zero coefficient, which is independent of the choice of basis forL.LinearMap.IsNilRegular: an elementxofLis nil-regular with respect toφif then-th coefficient of the characteristic polynomial ofφ xis non-zero, wherendenotes the nil-rank ofφ.
Implementation notes
We show that LinearMap.polyCharpoly does not depend on the choice of basis of the target module.
This is done via LinearMap.polyCharpoly_eq_polyCharpolyAux
and LinearMap.polyCharpolyAux_basisIndep.
The latter is proven by considering
the base change of the R-linear map φ : L →ₗ[R] End R M
to the multivariate polynomial ring MvPolynomial ι R,
and showing that polyCharpolyAux φ is equal to the characteristic polynomial of this base change.
The proof concludes because characteristic polynomials are independent of the chosen basis.
References
- [barnes1967]: "On Cartan subalgebras of Lie algebras" by D.W. Barnes.
theorem LinearMap.nilRank.congr_simp E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup L] [inst_2 : Module R L]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] [inst_5 : Module.Free R M] [inst_6 : Module.Finite R M]
[inst_7 : Module.Finite R L] [inst_8 : Module.Free R L] (φ φ_1 : L →ₗ[R] Module.End R M),
φ = φ_1 → φ.nilRank = φ_1.nilRank
theorem LinearMap.polyCharpoly.congr_simp E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ φ_1 : L →ₗ[R] Module.End R M),
φ = φ_1 →
∀ [inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b b_1 : Module.Basis ι R L), b = b_1 → φ.polyCharpoly b = φ_1.polyCharpoly b_1
theorem LinearMap.polyCharpolyAux.congr_simp E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ φ_1 : L →ₗ[R] Module.End R M),
φ = φ_1 →
∀ [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι] {inst_8 : DecidableEq ιM}
[inst_9 : DecidableEq ιM] (b b_1 : Module.Basis ι R L),
b = b_1 → ∀ (bₘ bₘ_1 : Module.Basis ιM R M), bₘ = bₘ_1 → φ.polyCharpolyAux b bₘ = φ_1.polyCharpolyAux b_1 bₘ_1
theorem LinearMap.toMvPolynomial.congr_simp E1 #
∀ {R : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {ι₁ : Type u_4} {ι₂ : Type u_5} [inst : CommRing R]
[inst_1 : AddCommGroup M₁] [inst_2 : AddCommGroup M₂] [inst_3 : Module R M₁] [inst_4 : Module R M₂]
[inst_5 : Fintype ι₁] [inst_6 : Finite ι₂] [inst_7 : DecidableEq ι₁] (b₁ b₁_1 : Module.Basis ι₁ R M₁),
b₁ = b₁_1 →
∀ (b₂ b₂_1 : Module.Basis ι₂ R M₂),
b₂ = b₂_1 →
∀ (f f_1 : M₁ →ₗ[R] M₂),
f = f_1 →
∀ (i i_1 : ι₂), i = i_1 → LinearMap.toMvPolynomial b₁ b₂ f i = LinearMap.toMvPolynomial b₁_1 b₂_1 f_1 i_1
def Matrix.toMvPolynomial E3 #
{m : Type u_1} →
{n : Type u_2} → {R : Type u_4} → [Fintype n] → [inst : CommSemiring R] → Matrix m n R → m → MvPolynomial n R
Let M be an (m × n)-matrix over R.
Then Matrix.toMvPolynomial M is the family (indexed by i : m)
of multivariate polynomials in n variables over R that evaluates on c : n → R
to the dot product of the i-th row of M with c:
Matrix.toMvPolynomial M i is the sum of the monomials C (M i j) * X j.
theorem Matrix.toMvPolynomial_eval_eq_apply E0 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_4} [inst : Fintype n] [inst_1 : CommSemiring R] (M : Matrix m n R) (i : m)
(c : n → R), (MvPolynomial.eval c) (M.toMvPolynomial i) = M.mulVec c i
theorem Matrix.toMvPolynomial_map E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_4} {S : Type u_5} [inst : Fintype n] [inst_1 : CommSemiring R]
[inst_2 : CommSemiring S] (f : R →+* S) (M : Matrix m n R) (i : m),
(M.map ⇑f).toMvPolynomial i = (MvPolynomial.map f) (M.toMvPolynomial i)
theorem Matrix.toMvPolynomial_isHomogeneous E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_4} [inst : Fintype n] [inst_1 : CommSemiring R] (M : Matrix m n R) (i : m),
(M.toMvPolynomial i).IsHomogeneous 1
theorem Matrix.toMvPolynomial_totalDegree_le E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_4} [inst : Fintype n] [inst_1 : CommSemiring R] (M : Matrix m n R) (i : m),
(M.toMvPolynomial i).totalDegree ≤ 1
theorem Matrix.toMvPolynomial_constantCoeff E0 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_4} [inst : Fintype n] [inst_1 : CommSemiring R] (M : Matrix m n R) (i : m),
MvPolynomial.constantCoeff (M.toMvPolynomial i) = 0
theorem Matrix.toMvPolynomial_zero E0 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_4} [inst : Fintype n] [inst_1 : CommSemiring R], Matrix.toMvPolynomial 0 = 0
theorem Matrix.toMvPolynomial_one E0 #
∀ {n : Type u_2} {R : Type u_4} [inst : Fintype n] [inst_1 : CommSemiring R] [inst_2 : DecidableEq n],
Matrix.toMvPolynomial 1 = MvPolynomial.X
theorem Matrix.toMvPolynomial_add E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_4} [inst : Fintype n] [inst_1 : CommSemiring R] (M N : Matrix m n R),
(M + N).toMvPolynomial = M.toMvPolynomial + N.toMvPolynomial
theorem Matrix.toMvPolynomial_mul E1 #
∀ {m : Type u_1} {n : Type u_2} {o : Type u_3} {R : Type u_4} [inst : Fintype n] [inst_1 : Fintype o]
[inst_2 : CommSemiring R] (M : Matrix m n R) (N : Matrix n o R) (i : m),
(M * N).toMvPolynomial i = (MvPolynomial.aeval N.toMvPolynomial) (M.toMvPolynomial i)
def LinearMap.toMvPolynomial E1 #
{R : Type u_1} →
{M₁ : Type u_2} →
{M₂ : Type u_3} →
{ι₁ : Type u_4} →
{ι₂ : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup M₁] →
[inst_2 : AddCommGroup M₂] →
[inst_3 : Module R M₁] →
[inst_4 : Module R M₂] →
[Fintype ι₁] →
[Finite ι₂] →
[DecidableEq ι₁] →
Module.Basis ι₁ R M₁ → Module.Basis ι₂ R M₂ → (M₁ →ₗ[R] M₂) → ι₂ → MvPolynomial ι₁ R
Let f : M₁ →ₗ[R] M₂ be an R-linear map
between modules M₁ and M₂ with bases b₁ and b₂ respectively.
Then LinearMap.toMvPolynomial b₁ b₂ f is the family of multivariate polynomials over R
that evaluates on an element x of M₁ (represented on the basis b₁)
to the element f x of M₂ (represented on the basis b₂).
theorem LinearMap.toMvPolynomial_eval_eq_apply E0 #
∀ {R : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {ι₁ : Type u_4} {ι₂ : Type u_5} [inst : CommRing R]
[inst_1 : AddCommGroup M₁] [inst_2 : AddCommGroup M₂] [inst_3 : Module R M₁] [inst_4 : Module R M₂]
[inst_5 : Fintype ι₁] [inst_6 : Finite ι₂] [inst_7 : DecidableEq ι₁] (b₁ : Module.Basis ι₁ R M₁)
(b₂ : Module.Basis ι₂ R M₂) (f : M₁ →ₗ[R] M₂) (i : ι₂) (c : ι₁ →₀ R),
(MvPolynomial.eval ⇑c) (LinearMap.toMvPolynomial b₁ b₂ f i) = (b₂.repr (f (b₁.repr.symm c))) i
theorem LinearMap.toMvPolynomial_baseChange E1 #
∀ {R : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {ι₁ : Type u_4} {ι₂ : Type u_5} [inst : CommRing R]
[inst_1 : AddCommGroup M₁] [inst_2 : AddCommGroup M₂] [inst_3 : Module R M₁] [inst_4 : Module R M₂]
[inst_5 : Fintype ι₁] [inst_6 : Finite ι₂] [inst_7 : DecidableEq ι₁] (b₁ : Module.Basis ι₁ R M₁)
(b₂ : Module.Basis ι₂ R M₂) (f : M₁ →ₗ[R] M₂) (i : ι₂) (A : Type u_6) [inst_8 : CommRing A] [inst_9 : Algebra R A],
LinearMap.toMvPolynomial (Algebra.TensorProduct.basis A b₁) (Algebra.TensorProduct.basis A b₂)
(LinearMap.baseChange A f) i =
(MvPolynomial.map (algebraMap R A)) (LinearMap.toMvPolynomial b₁ b₂ f i)
theorem LinearMap.toMvPolynomial_isHomogeneous E1 #
∀ {R : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {ι₁ : Type u_4} {ι₂ : Type u_5} [inst : CommRing R]
[inst_1 : AddCommGroup M₁] [inst_2 : AddCommGroup M₂] [inst_3 : Module R M₁] [inst_4 : Module R M₂]
[inst_5 : Fintype ι₁] [inst_6 : Finite ι₂] [inst_7 : DecidableEq ι₁] (b₁ : Module.Basis ι₁ R M₁)
(b₂ : Module.Basis ι₂ R M₂) (f : M₁ →ₗ[R] M₂) (i : ι₂), (LinearMap.toMvPolynomial b₁ b₂ f i).IsHomogeneous 1
theorem LinearMap.toMvPolynomial_totalDegree_le E1 #
∀ {R : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {ι₁ : Type u_4} {ι₂ : Type u_5} [inst : CommRing R]
[inst_1 : AddCommGroup M₁] [inst_2 : AddCommGroup M₂] [inst_3 : Module R M₁] [inst_4 : Module R M₂]
[inst_5 : Fintype ι₁] [inst_6 : Finite ι₂] [inst_7 : DecidableEq ι₁] (b₁ : Module.Basis ι₁ R M₁)
(b₂ : Module.Basis ι₂ R M₂) (f : M₁ →ₗ[R] M₂) (i : ι₂), (LinearMap.toMvPolynomial b₁ b₂ f i).totalDegree ≤ 1
theorem LinearMap.toMvPolynomial_constantCoeff E0 #
∀ {R : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {ι₁ : Type u_4} {ι₂ : Type u_5} [inst : CommRing R]
[inst_1 : AddCommGroup M₁] [inst_2 : AddCommGroup M₂] [inst_3 : Module R M₁] [inst_4 : Module R M₂]
[inst_5 : Fintype ι₁] [inst_6 : Finite ι₂] [inst_7 : DecidableEq ι₁] (b₁ : Module.Basis ι₁ R M₁)
(b₂ : Module.Basis ι₂ R M₂) (f : M₁ →ₗ[R] M₂) (i : ι₂),
MvPolynomial.constantCoeff (LinearMap.toMvPolynomial b₁ b₂ f i) = 0
theorem LinearMap.toMvPolynomial_zero E0 #
∀ {R : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {ι₁ : Type u_4} {ι₂ : Type u_5} [inst : CommRing R]
[inst_1 : AddCommGroup M₁] [inst_2 : AddCommGroup M₂] [inst_3 : Module R M₁] [inst_4 : Module R M₂]
[inst_5 : Fintype ι₁] [inst_6 : Finite ι₂] [inst_7 : DecidableEq ι₁] (b₁ : Module.Basis ι₁ R M₁)
(b₂ : Module.Basis ι₂ R M₂), LinearMap.toMvPolynomial b₁ b₂ 0 = 0
theorem LinearMap.toMvPolynomial_id E0 #
∀ {R : Type u_1} {M₁ : Type u_2} {ι₁ : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M₁] [inst_2 : Module R M₁]
[inst_3 : Fintype ι₁] [inst_4 : DecidableEq ι₁] (b₁ : Module.Basis ι₁ R M₁),
LinearMap.toMvPolynomial b₁ b₁ LinearMap.id = MvPolynomial.X
theorem LinearMap.toMvPolynomial_add E1 #
∀ {R : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {ι₁ : Type u_4} {ι₂ : Type u_5} [inst : CommRing R]
[inst_1 : AddCommGroup M₁] [inst_2 : AddCommGroup M₂] [inst_3 : Module R M₁] [inst_4 : Module R M₂]
[inst_5 : Fintype ι₁] [inst_6 : Finite ι₂] [inst_7 : DecidableEq ι₁] (b₁ : Module.Basis ι₁ R M₁)
(b₂ : Module.Basis ι₂ R M₂) (f g : M₁ →ₗ[R] M₂),
LinearMap.toMvPolynomial b₁ b₂ (f + g) = LinearMap.toMvPolynomial b₁ b₂ f + LinearMap.toMvPolynomial b₁ b₂ g
theorem LinearMap.toMvPolynomial_comp E1 #
∀ {R : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {M₃ : Type u_4} {ι₁ : Type u_5} {ι₂ : Type u_6} {ι₃ : Type u_7}
[inst : CommRing R] [inst_1 : AddCommGroup M₁] [inst_2 : AddCommGroup M₂] [inst_3 : AddCommGroup M₃]
[inst_4 : Module R M₁] [inst_5 : Module R M₂] [inst_6 : Module R M₃] [inst_7 : Fintype ι₁] [inst_8 : Fintype ι₂]
[inst_9 : Finite ι₃] [inst_10 : DecidableEq ι₁] [inst_11 : DecidableEq ι₂] (b₁ : Module.Basis ι₁ R M₁)
(b₂ : Module.Basis ι₂ R M₂) (b₃ : Module.Basis ι₃ R M₃) (g : M₂ →ₗ[R] M₃) (f : M₁ →ₗ[R] M₂) (i : ι₃),
LinearMap.toMvPolynomial b₁ b₃ (g ∘ₗ f) i =
(MvPolynomial.aeval (LinearMap.toMvPolynomial b₁ b₂ f)) (LinearMap.toMvPolynomial b₂ b₃ g i)
def LinearMap.polyCharpolyAux E0 #
{R : Type u_1} →
{L : Type u_2} →
{M : Type u_3} →
{ι : Type u_5} →
{ιM : Type u_7} →
[inst : CommRing R] →
[inst_1 : AddCommGroup L] →
[inst_2 : Module R L] →
[inst_3 : AddCommGroup M] →
[inst_4 : Module R M] →
(L →ₗ[R] Module.End R M) →
[Fintype ι] →
[Fintype ιM] →
[DecidableEq ι] →
[DecidableEq ιM] → Module.Basis ι R L → Module.Basis ιM R M → Polynomial (MvPolynomial ι R)
(Implementation detail, see LinearMap.polyCharpoly.)
Let L and M be finite free modules over R,
and let φ : L →ₗ[R] Module.End R M be a linear map.
Let b be a basis of L and bₘ a basis of M.
Then LinearMap.polyCharpolyAux φ b bₘ is the polynomial that evaluates on elements x of L
to the characteristic polynomial of φ x acting on M.
This definition does not depend on the choice of bₘ
(see LinearMap.polyCharpolyAux_basisIndep).
theorem LinearMap.polyCharpolyAux_baseChange E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ιM] (b : Module.Basis ι R L) (bₘ : Module.Basis ιM R M) (A : Type u_8) [inst_9 : CommRing A]
[inst_10 : Algebra R A],
(LinearMap.tensorProduct R A M M ∘ₗ LinearMap.baseChange A φ).polyCharpolyAux (Algebra.TensorProduct.basis A b)
(Algebra.TensorProduct.basis A bₘ) =
Polynomial.map (MvPolynomial.map (algebraMap R A)) (φ.polyCharpolyAux b bₘ)
theorem LinearMap.polyCharpolyAux_map_eq_toMatrix_charpoly E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ιM] (b : Module.Basis ι R L) (bₘ : Module.Basis ιM R M) (x : L),
Polynomial.map (MvPolynomial.eval ⇑(b.repr x)) (φ.polyCharpolyAux b bₘ) = ((LinearMap.toMatrix bₘ bₘ) (φ x)).charpoly
theorem LinearMap.polyCharpolyAux_eval_eq_toMatrix_charpoly_coeff E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ιM] (b : Module.Basis ι R L) (bₘ : Module.Basis ιM R M) (x : L) (i : ℕ),
(MvPolynomial.eval ⇑(b.repr x)) ((φ.polyCharpolyAux b bₘ).coeff i) =
((LinearMap.toMatrix bₘ bₘ) (φ x)).charpoly.coeff i
theorem LinearMap.polyCharpolyAux_map_eq_charpoly E0 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ιM] (b : Module.Basis ι R L) (bₘ : Module.Basis ιM R M) [inst_9 : Module.Finite R M]
[inst_10 : Module.Free R M] (x : L),
Polynomial.map (MvPolynomial.eval ⇑(b.repr x)) (φ.polyCharpolyAux b bₘ) = LinearMap.charpoly (φ x)
theorem LinearMap.polyCharpolyAux_coeff_eval E0 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ιM] (b : Module.Basis ι R L) (bₘ : Module.Basis ιM R M) [inst_9 : Module.Finite R M]
[inst_10 : Module.Free R M] (x : L) (i : ℕ),
(MvPolynomial.eval ⇑(b.repr x)) ((φ.polyCharpolyAux b bₘ).coeff i) = (LinearMap.charpoly (φ x)).coeff i
theorem LinearMap.polyCharpolyAux_map_eval E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ιM] (b : Module.Basis ι R L) (bₘ : Module.Basis ιM R M) [inst_9 : Module.Finite R M]
[inst_10 : Module.Free R M] (x : ι → R),
Polynomial.map (MvPolynomial.eval x) (φ.polyCharpolyAux b bₘ) =
LinearMap.charpoly (φ (b.repr.symm (Finsupp.equivFunOnFinite.symm x)))
theorem LinearMap.polyCharpolyAux_map_aeval E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ιM] (b : Module.Basis ι R L) (bₘ : Module.Basis ιM R M) (A : Type u_8) [inst_9 : CommRing A]
[inst_10 : Algebra R A] [inst_11 : Module.Finite A (TensorProduct R A M)]
[inst_12 : Module.Free A (TensorProduct R A M)] (x : ι → A),
Polynomial.map (MvPolynomial.aeval x).toRingHom (φ.polyCharpolyAux b bₘ) =
((LinearMap.tensorProduct R A M M ∘ₗ LinearMap.baseChange A φ)
((Algebra.TensorProduct.basis A b).repr.symm (Finsupp.equivFunOnFinite.symm x))).charpoly
theorem LinearMap.polyCharpolyAux_basisIndep E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ιM] (b : Module.Basis ι R L) (bₘ : Module.Basis ιM R M) {ιM' : Type u_8} [inst_9 : Fintype ιM']
[inst_10 : DecidableEq ιM'] (bₘ' : Module.Basis ιM' R M), φ.polyCharpolyAux b bₘ = φ.polyCharpolyAux b bₘ'
LinearMap.polyCharpolyAux is independent of the choice of basis of the target module.
Proof strategy:
- Rewrite
polyCharpolyAuxas the (honest, ordinary) characteristic polynomial of the base change ofφto the multivariate polynomial ringMvPolynomial ι R. - Use that the characteristic polynomial of a linear map is independent of the choice of basis.
This independence result is used transitively via
LinearMap.polyCharpolyAux_map_aevalandLinearMap.polyCharpolyAux_map_eq_charpoly.
def LinearMap.polyCharpoly E3 #
{R : Type u_1} →
{L : Type u_2} →
{M : Type u_3} →
{ι : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup L] →
[inst_2 : Module R L] →
[inst_3 : AddCommGroup M] →
[inst_4 : Module R M] →
(L →ₗ[R] Module.End R M) →
[Fintype ι] →
[DecidableEq ι] →
[Module.Free R M] → [Module.Finite R M] → Module.Basis ι R L → Polynomial (MvPolynomial ι R)
Let L and M be finite free modules over R,
and let φ : L →ₗ[R] Module.End R M be a linear family of endomorphisms.
Let b be a basis of L and bₘ a basis of M.
Then LinearMap.polyCharpoly φ b is the polynomial that evaluates on elements x of L
to the characteristic polynomial of φ x acting on M.
theorem LinearMap.polyCharpoly_eq_of_basis E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ιM : Type u_7} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ιM] [inst_7 : DecidableEq ι]
[inst_8 : Module.Free R M] [inst_9 : Module.Finite R M] (b : Module.Basis ι R L) [inst_10 : DecidableEq ιM]
(bₘ : Module.Basis ιM R M),
φ.polyCharpoly b =
Polynomial.map (↑(MvPolynomial.aeval (LinearMap.toMvPolynomial b bₘ.end φ))) (Matrix.charpoly.univ R ιM)
theorem LinearMap.polyCharpoly_monic E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L), (φ.polyCharpoly b).Monic
theorem LinearMap.polyCharpoly_ne_zero E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L) [Nontrivial R], φ.polyCharpoly b ≠ 0
theorem LinearMap.polyCharpoly_natDegree E0 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L) [Nontrivial R], (φ.polyCharpoly b).natDegree = Module.finrank R M
theorem LinearMap.polyCharpoly_coeff_isHomogeneous E3 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L) (i j : ℕ),
i + j = Module.finrank R M → ∀ [Nontrivial R], ((φ.polyCharpoly b).coeff i).IsHomogeneous j
theorem LinearMap.polyCharpoly_baseChange E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L) (A : Type u_8) [inst_9 : CommRing A] [inst_10 : Algebra R A],
(LinearMap.tensorProduct R A M M ∘ₗ LinearMap.baseChange A φ).polyCharpoly (Algebra.TensorProduct.basis A b) =
Polynomial.map (MvPolynomial.map (algebraMap R A)) (φ.polyCharpoly b)
theorem LinearMap.polyCharpoly_map_eq_charpoly E3 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L) (x : L),
Polynomial.map (MvPolynomial.eval ⇑(b.repr x)) (φ.polyCharpoly b) = LinearMap.charpoly (φ x)
theorem LinearMap.polyCharpoly_coeff_eval E0 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L) (x : L) (i : ℕ),
(MvPolynomial.eval ⇑(b.repr x)) ((φ.polyCharpoly b).coeff i) = (LinearMap.charpoly (φ x)).coeff i
theorem LinearMap.polyCharpoly_coeff_eq_zero_of_basis E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ι' : Type u_6} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ι'] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ι'] [inst_9 : Module.Free R M] [inst_10 : Module.Finite R M] (b : Module.Basis ι R L)
(b' : Module.Basis ι' R L) (k : ℕ), (φ.polyCharpoly b).coeff k = 0 → (φ.polyCharpoly b').coeff k = 0
theorem LinearMap.polyCharpoly_coeff_eq_zero_iff_of_basis E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ι' : Type u_6} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ι'] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ι'] [inst_9 : Module.Free R M] [inst_10 : Module.Finite R M] (b : Module.Basis ι R L)
(b' : Module.Basis ι' R L) (k : ℕ), (φ.polyCharpoly b).coeff k = 0 ↔ (φ.polyCharpoly b').coeff k = 0
def LinearMap.nilRankAux E0 #
{R : Type u_1} →
{L : Type u_2} →
{M : Type u_3} →
{ι : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup L] →
[inst_2 : Module R L] →
[inst_3 : AddCommGroup M] →
[inst_4 : Module R M] →
[Fintype ι] →
[DecidableEq ι] →
[Module.Free R M] → [Module.Finite R M] → (L →ₗ[R] Module.End R M) → Module.Basis ι R L → ℕ
(Implementation detail, see LinearMap.nilRank.)
Let L and M be finite free modules over R,
and let φ : L →ₗ[R] Module.End R M be a linear family of endomorphisms.
Then LinearMap.nilRankAux φ b is the smallest index
at which LinearMap.polyCharpoly φ b has a non-zero coefficient.
This number does not depend on the choice of b, see nilRankAux_basis_indep.
theorem LinearMap.polyCharpoly_coeff_nilRankAux_ne_zero E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L) [Nontrivial R], (φ.polyCharpoly b).coeff (φ.nilRankAux b) ≠ 0
theorem LinearMap.nilRankAux_le E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ι' : Type u_6} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ι'] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ι'] [inst_9 : Module.Free R M] [inst_10 : Module.Finite R M] [Nontrivial R]
(b : Module.Basis ι R L) (b' : Module.Basis ι' R L), φ.nilRankAux b ≤ φ.nilRankAux b'
theorem LinearMap.nilRankAux_basis_indep E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} {ι' : Type u_6} [inst : CommRing R]
[inst_1 : AddCommGroup L] [inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M]
(φ : L →ₗ[R] Module.End R M) [inst_5 : Fintype ι] [inst_6 : Fintype ι'] [inst_7 : DecidableEq ι]
[inst_8 : DecidableEq ι'] [inst_9 : Module.Free R M] [inst_10 : Module.Finite R M] [Nontrivial R]
(b : Module.Basis ι R L) (b' : Module.Basis ι' R L), φ.nilRankAux b = (φ.polyCharpoly b').natTrailingDegree
def LinearMap.nilRank E3 #
{R : Type u_1} →
{L : Type u_2} →
{M : Type u_3} →
[inst : CommRing R] →
[inst_1 : AddCommGroup L] →
[inst_2 : Module R L] →
[inst_3 : AddCommGroup M] →
[inst_4 : Module R M] →
[Module.Free R M] →
[Module.Finite R M] → [Module.Finite R L] → [Module.Free R L] → (L →ₗ[R] Module.End R M) → ℕ
Let L and M be finite free modules over R,
and let φ : L →ₗ[R] Module.End R M be a linear family of endomorphisms.
Then LinearMap.nilRank φ b is the smallest index
at which LinearMap.polyCharpoly φ b has a non-zero coefficient.
This number does not depend on the choice of b,
see LinearMap.nilRank_eq_polyCharpoly_natTrailingDegree.
theorem LinearMap.nilRank_eq_polyCharpoly_natTrailingDegree E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
[inst_9 : Module.Finite R L] [inst_10 : Module.Free R L] [Nontrivial R] (b : Module.Basis ι R L),
φ.nilRank = (φ.polyCharpoly b).natTrailingDegree
theorem LinearMap.polyCharpoly_coeff_nilRank_ne_zero E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L) [inst_9 : Module.Finite R L] [inst_10 : Module.Free R L] [Nontrivial R],
(φ.polyCharpoly b).coeff φ.nilRank ≠ 0
theorem LinearMap.nilRank_le_card E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup L] [inst_2 : Module R L]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M) [inst_5 : Module.Free R M]
[inst_6 : Module.Finite R M] [inst_7 : Module.Finite R L] [inst_8 : Module.Free R L] [Nontrivial R] {ι : Type u_8}
[inst_10 : Fintype ι] (b : Module.Basis ι R M), φ.nilRank ≤ Fintype.card ι
theorem LinearMap.nilRank_le_finrank E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup L] [inst_2 : Module R L]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M) [inst_5 : Module.Free R M]
[inst_6 : Module.Finite R M] [inst_7 : Module.Finite R L] [inst_8 : Module.Free R L] [Nontrivial R],
φ.nilRank ≤ Module.finrank R M
theorem LinearMap.nilRank_le_natTrailingDegree_charpoly E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup L] [inst_2 : Module R L]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M) [inst_5 : Module.Free R M]
[inst_6 : Module.Finite R M] [inst_7 : Module.Finite R L] [inst_8 : Module.Free R L] [Nontrivial R] (x : L),
φ.nilRank ≤ (LinearMap.charpoly (φ x)).natTrailingDegree
def LinearMap.IsNilRegular E3 #
{R : Type u_1} →
{L : Type u_2} →
{M : Type u_3} →
[inst : CommRing R] →
[inst_1 : AddCommGroup L] →
[inst_2 : Module R L] →
[inst_3 : AddCommGroup M] →
[inst_4 : Module R M] →
(L →ₗ[R] Module.End R M) →
[Module.Free R M] → [Module.Finite R M] → [Module.Finite R L] → [Module.Free R L] → L → Prop
Let L and M be finite free modules over R,
and let φ : L →ₗ[R] Module.End R M be a linear family of endomorphisms,
and denote n := nilRank φ.
An element x : L is nil-regular with respect to φ
if the n-th coefficient of the characteristic polynomial of φ x is non-zero.
theorem LinearMap.isNilRegular_def E0 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup L] [inst_2 : Module R L]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M) [inst_5 : Module.Free R M]
[inst_6 : Module.Finite R M] [inst_7 : Module.Finite R L] [inst_8 : Module.Free R L] (x : L),
φ.IsNilRegular x ↔ (LinearMap.charpoly (φ x)).coeff φ.nilRank ≠ 0
theorem LinearMap.isNilRegular_iff_coeff_polyCharpoly_nilRank_ne_zero E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} {ι : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup L]
[inst_2 : Module R L] [inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M)
[inst_5 : Fintype ι] [inst_6 : DecidableEq ι] [inst_7 : Module.Free R M] [inst_8 : Module.Finite R M]
(b : Module.Basis ι R L) [inst_9 : Module.Finite R L] [inst_10 : Module.Free R L] (x : L),
φ.IsNilRegular x ↔ (MvPolynomial.eval ⇑(b.repr x)) ((φ.polyCharpoly b).coeff φ.nilRank) ≠ 0
theorem LinearMap.isNilRegular_iff_natTrailingDegree_charpoly_eq_nilRank E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup L] [inst_2 : Module R L]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M) [inst_5 : Module.Free R M]
[inst_6 : Module.Finite R M] [inst_7 : Module.Finite R L] [inst_8 : Module.Free R L] (x : L) [Nontrivial R],
φ.IsNilRegular x ↔ (LinearMap.charpoly (φ x)).natTrailingDegree = φ.nilRank
theorem LinearMap.exists_isNilRegular_of_finrank_le_card E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup L] [inst_2 : Module R L]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M) [inst_5 : Module.Free R M]
[inst_6 : Module.Finite R M] [inst_7 : Module.Finite R L] [inst_8 : Module.Free R L] [IsDomain R],
↑(Module.finrank R M) ≤ Cardinal.mk R → ∃ x, φ.IsNilRegular x
theorem LinearMap.exists_isNilRegular E1 #
∀ {R : Type u_1} {L : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup L] [inst_2 : Module R L]
[inst_3 : AddCommGroup M] [inst_4 : Module R M] (φ : L →ₗ[R] Module.End R M) [inst_5 : Module.Free R M]
[inst_6 : Module.Finite R M] [inst_7 : Module.Finite R L] [inst_8 : Module.Free R L] [IsDomain R] [Infinite R],
∃ x, φ.IsNilRegular x