Quelle Zero.lean
Sprache: Lean
|
|
/-
Copyright (c) 2024 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
module
public import Mathlib.Algebra.Order.Archimedean.Basic
public import Mathlib.LinearAlgebra.Charpoly.ToMatrix
public import Mathlib.LinearAlgebra.Eigenspace.Minpoly
public import Mathlib.RingTheory.Artinian.Module
/-!
# Results on the eigenvalue 0
In this file we provide equivalent characterizations of properties related to the eigenvalue 0,
such as being nilpotent, having determinant equal to 0, having a non-trivial kernel, etc...
## Main results
* `LinearMap.charpoly_nilpotent_tfae`:
equivalent characterizations of nilpotent endomorphisms
* `LinearMap.hasEigenvalue_zero_tfae`:
equivalent characterizations of endomorphisms with eigenvalue 0
* `LinearMap.not_hasEigenvalue_zero_tfae`:
endomorphisms without eigenvalue 0
* `LinearMap.finrank_maxGenEigenspace`:
the dimension of the maximal generalized eigenspace of an endomorphism
is the trailing degree of its characteristic polynomial
-/
public section
variable {R K M : Type*} [CommRing R] [IsDomain R] [Field K] [AddCommGroup M]
variable [Module R M] [Module.Finite R M] [Module.Free R M]
variable [Module K M] [Module.Finite K M]
open Module Module.Free Polynomial
lemma IsNilpotent.charpoly_eq_X_pow_finrank {φ : Module.End R M} (h : IsNilpotent φ) :
φ.charpoly = X ^ finrank R M := by
rw [← sub_eq_zero]
apply IsNilpotent.eq_zero
rw [finrank_eq_card_chooseBasisIndex]
apply Matrix.isNilpotent_charpoly_sub_pow_of_isNilpotent
exact h.map (LinearMap.toMatrixAlgEquiv (chooseBasis R M))
namespace LinearMap
lemma isNilpotent_iff_charpoly (φ : End R M) :
IsNilpotent φ ↔ charpoly φ = X ^ finrank R M :=
⟨IsNilpotent.charpoly_eq_X_pow_finrank,
fun h ↦ ⟨finrank R M, by rw [← @aeval_X_pow R, ← h, aeval_self_charpoly φ]⟩⟩
open Module.Free in
lemma charpoly_nilpotent_tfae [IsNoetherian R M] (φ : Module.End R M) :
List.TFAE [
IsNilpotent φ,
φ.charpoly = X ^ finrank R M,
∀ m : M, ∃ (n : ℕ), (φ ^ n) m = 0,
natTrailingDegree φ.charpoly = finrank R M ] := by
tfae_have 1 → 2 := IsNilpotent.charpoly_eq_X_pow_finrank
tfae_have 2 → 3
| h, m => by
use finrank R M
suffices φ ^ finrank R M = 0 by simp only [this, LinearMap.zero_apply]
simpa only [h, map_pow, aeval_X] using φ.aeval_self_charpoly
tfae_have 3 → 1
| h => by
obtain ⟨n, hn⟩ := Filter.eventually_atTop.mp φ.eventually_iSup_ker_pow_eq
use n
ext x
rw [LinearMap.zero_apply, ← mem_ker, ← hn n le_rfl]
obtain ⟨k, hk⟩ := h x
rw [← mem_ker] at hk
exact Submodule.mem_iSup_of_mem _ hk
tfae_have 2 ↔ 4 := by
rw [← φ.charpoly_natDegree, φ.charpoly_monic.eq_X_pow_iff_natTrailingDegree_eq_natDegree]
tfae_finish
lemma charpoly_eq_X_pow_iff [IsNoetherian R M] (φ : Module.End R M) :
φ.charpoly = X ^ finrank R M ↔ ∀ m : M, ∃ (n : ℕ), (φ ^ n) m = 0 :=
(charpoly_nilpotent_tfae φ).out 2 3
open Module.Free in
lemma hasEigenvalue_zero_tfae (φ : Module.End K M) :
List.TFAE [
Module.End.HasEigenvalue φ 0,
IsRoot (minpoly K φ) 0,
constantCoeff φ.charpoly = 0,
LinearMap.det φ = 0,
⊥ < ker φ,
∃ (m : M), m ≠ 0 ∧ φ m = 0 ] := by
tfae_have 1 ↔ 2 := Module.End.hasEigenvalue_iff_isRoot
tfae_have 2 → 3 := by
obtain ⟨F, hF⟩ := minpoly_dvd_charpoly φ
simp only [IsRoot.def, constantCoeff_apply, coeff_zero_eq_eval_zero, hF, eval_mul]
intro h; rw [h, zero_mul]
tfae_have 3 → 4 := by
rw [← LinearMap.det_toMatrix (chooseBasis K M), Matrix.det_eq_sign_charpoly_coeff,
constantCoeff_apply, charpoly]
intro h; rw [h, mul_zero]
tfae_have 4 → 5 := bot_lt_ker_of_det_eq_zero
tfae_have 5 → 6 := by
contrapose!
simp only [not_bot_lt_iff, eq_bot_iff]
intro h x
simp only [mem_ker, Submodule.mem_bot]
contrapose!
apply h
tfae_have 6 → 1
| ⟨x, h1, h2⟩ => by
apply Module.End.hasEigenvalue_of_hasEigenvector ⟨_, h1⟩
simpa only [Module.End.eigenspace_zero, mem_ker] using h2
tfae_finish
lemma charpoly_constantCoeff_eq_zero_iff (φ : Module.End K M) :
constantCoeff φ.charpoly = 0 ↔ ∃ (m : M), m ≠ 0 ∧ φ m = 0 :=
(hasEigenvalue_zero_tfae φ).out 3 6
open Module.Free in
lemma not_hasEigenvalue_zero_tfae (φ : Module.End K M) :
List.TFAE [
¬ Module.End.HasEigenvalue φ 0,
¬ IsRoot (minpoly K φ) 0,
constantCoeff φ.charpoly ≠ 0,
LinearMap.det φ ≠ 0,
ker φ = ⊥,
∀ (m : M), φ m = 0 → m = 0 ] := by
have := (hasEigenvalue_zero_tfae φ).not
dsimp only [List.map] at this
push Not at this
have aux₁ : ∀ m, (m ≠ 0 → φ m ≠ 0) ↔ (φ m = 0 → m = 0) := by intro m; apply not_imp_not
have aux₂ : ker φ = ⊥ ↔ ¬ ⊥ < ker φ := by rw [bot_lt_iff_ne_bot, not_not]
simpa only [aux₁, aux₂] using this
open Module.Free in
lemma finrank_maxGenEigenspace_zero_eq (φ : Module.End K M) :
finrank K (φ.maxGenEigenspace 0) = natTrailingDegree (φ.charpoly) := by
set V := φ.maxGenEigenspace 0
have hV : V = ⨆ (n : ℕ), ker (φ ^ n) := by
simp [V, ← Module.End.iSup_genEigenspace_eq, Module.End.genEigenspace_nat]
let W := ⨅ (n : ℕ), LinearMap.range (φ ^ n)
have hVW : IsCompl V W := by
rw [hV]
exact LinearMap.isCompl_iSup_ker_pow_iInf_range_pow φ
have hφV : ∀ x ∈ V, φ x ∈ V := by
simp only [V, Module.End.mem_maxGenEigenspace, zero_smul, sub_zero,
forall_exists_index]
intro x n hx
use n
rw [← mul_apply_eq_comp, ← pow_succ, pow_succ', mul_apply_eq_comp, hx, map_zero]
have hφW : ∀ x ∈ W, φ x ∈ W := by
simp only [W, Submodule.mem_iInf, mem_range]
intro x H n
obtain ⟨y, rfl⟩ := H n
use φ y
rw [← mul_apply_eq_comp, ← pow_succ, pow_succ', mul_apply_eq_comp]
let F := φ.restrict hφV
let G := φ.restrict hφW
let ψ := F.prodMap G
let e := Submodule.prodEquivOfIsCompl V W hVW
let bV := chooseBasis K V
let bW := chooseBasis K W
let b := bV.prod bW
have hψ : ψ = e.symm.conj φ := by
apply b.ext
simp only [Basis.prod_apply, coe_inl, coe_inr, prodMap_apply, LinearEquiv.conj_apply,
LinearEquiv.symm_symm, Submodule.coe_prodEquivOfIsCompl, coe_comp, LinearEquiv.coe_coe,
Function.comp_apply, coprod_apply, Submodule.coe_subtype, map_add, Sum.forall, Sum.elim_inl,
map_zero, ZeroMemClass.coe_zero, add_zero, LinearEquiv.eq_symm_apply, and_self,
Submodule.coe_prodEquivOfIsCompl', coe_restrict_apply, implies_true, Sum.elim_inr, zero_add,
e, V, W, ψ, F, G, b]
rw [← e.symm.charpoly_conj φ, ← hψ, charpoly_prodMap,
natTrailingDegree_mul (charpoly_monic _).ne_zero (charpoly_monic _).ne_zero]
have hG : natTrailingDegree (charpoly G) = 0 := by
apply Polynomial.natTrailingDegree_eq_zero_of_constantCoeff_ne_zero
apply ((not_hasEigenvalue_zero_tfae G).out 3 6).mpr
intro x hx
apply Subtype.ext
suffices x.1 ∈ V ⊓ W by rwa [hVW.inf_eq_bot, Submodule.mem_bot] at this
suffices x.1 ∈ V from ⟨this, x.2⟩
simp only [Module.End.mem_maxGenEigenspace, zero_smul, sub_zero, V]
use 1
rw [pow_one]
rwa [Subtype.ext_iff] at hx
rw [hG, add_zero, eq_comm]
apply ((charpoly_nilpotent_tfae F).out 3 4).mp
simp only [Subtype.forall, Module.End.mem_maxGenEigenspace, zero_smul, sub_zero, V, F]
rintro x ⟨n, hx⟩
use n
apply Subtype.ext
rw [ZeroMemClass.coe_zero]
refine .trans ?_ hx
generalize_proofs h'
clear hx
induction n <;> simp [pow_succ', *]
lemma finrank_maxGenEigenspace_eq (φ : Module.End K M) (μ : K) :
finrank K (φ.maxGenEigenspace μ) = φ.charpoly.rootMultiplicity μ := by
rw [φ.maxGenEigenspace_eq_maxGenEigenspace_zero, finrank_maxGenEigenspace_zero_eq,
Polynomial.rootMultiplicity_eq_natTrailingDegree, LinearMap.charpoly_sub_smul]
lemma finrank_genEigenspace_le (φ : Module.End K M) (μ : K) (k : ℕ) :
finrank K (φ.genEigenspace μ k) ≤ φ.charpoly.rootMultiplicity μ := by
grw [Submodule.finrank_mono (φ.genEigenspace_le_maximal μ k), finrank_maxGenEigenspace_eq]
/-- The geometric multiplicity of an eigenvalue is at most the algebraic multiplicity. -/
lemma finrank_eigenspace_le (φ : Module.End K M) (μ : K) :
finrank K (φ.eigenspace μ) ≤ φ.charpoly.rootMultiplicity μ :=
finrank_genEigenspace_le ..
end LinearMap
¤ Dauer der Verarbeitung: 0.4 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|