The areas / V07. Linear algebra
Mathlib.LinearAlgebra.Matrix.Charpoly.LinearMap
27 declarations. Mathlib docs · Source
Cayley-Hamilton theorem for f.g. modules.
Given a fixed finite spanning set b : ι → M of an R-module M, we say that a matrix M
represents an endomorphism f : M →ₗ[R] M if the matrix as an endomorphism of ι → R commutes
with f via the projection (ι → R) →ₗ[R] M given by b.
We show that every endomorphism has a matrix representation, and if f.range ≤ I • ⊤ for some
ideal I, we may furthermore obtain a matrix representation whose entries fall in I.
This is used to conclude the Cayley-Hamilton theorem for f.g. modules over arbitrary rings.
theorem Matrix.Represents.congr_simp E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] (b b_1 : ι → M),
b = b_1 →
∀ {inst_4 : DecidableEq ι} [inst_5 : DecidableEq ι] (A A_1 : Matrix ι ι R),
A = A_1 → ∀ (f f_1 : Module.End R M), f = f_1 → Matrix.Represents b A f = Matrix.Represents b_1 A_1 f_1
def PiToModule.fromMatrix E1 #
{ι : Type u_1} →
[Fintype ι] →
{M : Type u_2} →
[inst : AddCommGroup M] →
(R : Type u_3) →
[inst_1 : CommRing R] → [inst_2 : Module R M] → (ι → M) → [DecidableEq ι] → Matrix ι ι R →ₗ[R] (ι → R) →ₗ[R] M
The composition of a matrix (as an endomorphism of ι → R) with the projection
(ι → R) →ₗ[R] M.
theorem PiToModule.fromMatrix_apply E0 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] (R : Type u_3) [inst_2 : CommRing R]
[inst_3 : Module R M] (b : ι → M) [inst_4 : DecidableEq ι] (A : Matrix ι ι R) (w : ι → R),
((PiToModule.fromMatrix R b) A) w = (Fintype.linearCombination R b) (A.mulVec w)
theorem PiToModule.fromMatrix_apply_single_one E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] (R : Type u_3) [inst_2 : CommRing R]
[inst_3 : Module R M] (b : ι → M) [inst_4 : DecidableEq ι] (A : Matrix ι ι R) (j : ι),
((PiToModule.fromMatrix R b) A) (Pi.single j 1) = ∑ i, A i j • b i
def PiToModule.fromEnd E1 #
{ι : Type u_1} →
[Fintype ι] →
{M : Type u_2} →
[inst : AddCommGroup M] →
(R : Type u_3) → [inst_1 : CommRing R] → [inst_2 : Module R M] → (ι → M) → Module.End R M →ₗ[R] (ι → R) →ₗ[R] M
The endomorphisms of M acts on (ι → R) →ₗ[R] M, and takes the projection
to a (ι → R) →ₗ[R] M.
theorem PiToModule.fromEnd_apply E0 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] (R : Type u_3) [inst_2 : CommRing R]
[inst_3 : Module R M] (b : ι → M) (f : Module.End R M) (w : ι → R),
((PiToModule.fromEnd R b) f) w = f ((Fintype.linearCombination R b) w)
theorem PiToModule.fromEnd_apply_single_one E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] (R : Type u_3) [inst_2 : CommRing R]
[inst_3 : Module R M] (b : ι → M) [inst_4 : DecidableEq ι] (f : Module.End R M) (i : ι),
((PiToModule.fromEnd R b) f) (Pi.single i 1) = f (b i)
theorem PiToModule.fromEnd_injective E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] (R : Type u_3) [inst_2 : CommRing R]
[inst_3 : Module R M] (b : ι → M), Submodule.span R (Set.range b) = ⊤ → Function.Injective ⇑(PiToModule.fromEnd R b)
def Matrix.Represents E1 #
{ι : Type u_1} →
[Fintype ι] →
{M : Type u_2} →
[inst : AddCommGroup M] →
{R : Type u_3} →
[inst_1 : CommRing R] →
[inst_2 : Module R M] → (ι → M) → [DecidableEq ι] → Matrix ι ι R → Module.End R M → Prop
We say that a matrix represents an endomorphism of M if the matrix acting on ι → R is
equal to f via the projection (ι → R) →ₗ[R] M given by a fixed (spanning) set.
theorem Matrix.Represents.congr_fun E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι] {A : Matrix ι ι R} {f : Module.End R M},
Matrix.Represents b A f →
∀ (x : ι → R), (Fintype.linearCombination R b) (A.mulVec x) = f ((Fintype.linearCombination R b) x)
theorem Matrix.represents_iff E0 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι] {A : Matrix ι ι R} {f : Module.End R M},
Matrix.Represents b A f ↔
∀ (x : ι → R), (Fintype.linearCombination R b) (A.mulVec x) = f ((Fintype.linearCombination R b) x)
theorem Matrix.represents_iff' E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι] {A : Matrix ι ι R} {f : Module.End R M},
Matrix.Represents b A f ↔ ∀ (j : ι), ∑ i, A i j • b i = f (b j)
theorem Matrix.Represents.mul E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι] {A A' : Matrix ι ι R} {f f' : Module.End R M},
Matrix.Represents b A f → Matrix.Represents b A' f' → Matrix.Represents b (A * A') (f * f')
theorem Matrix.Represents.one E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι], Matrix.Represents b 1 1
theorem Matrix.Represents.add E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι] {A A' : Matrix ι ι R} {f f' : Module.End R M},
Matrix.Represents b A f → Matrix.Represents b A' f' → Matrix.Represents b (A + A') (f + f')
theorem Matrix.Represents.zero E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι], Matrix.Represents b 0 0
theorem Matrix.Represents.smul E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι] {A : Matrix ι ι R} {f : Module.End R M},
Matrix.Represents b A f → ∀ (r : R), Matrix.Represents b (r • A) (r • f)
theorem Matrix.Represents.algebraMap E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι] (r : R),
Matrix.Represents b ((algebraMap R (Matrix ι ι R)) r) ((algebraMap R (Module.End R M)) r)
theorem Matrix.Represents.eq E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] {R : Type u_3} [inst_2 : CommRing R]
[inst_3 : Module R M] {b : ι → M} [inst_4 : DecidableEq ι],
Submodule.span R (Set.range b) = ⊤ →
∀ {A : Matrix ι ι R} {f f' : Module.End R M}, Matrix.Represents b A f → Matrix.Represents b A f' → f = f'
def Matrix.isRepresentation E1 #
{ι : Type u_1} →
[inst : Fintype ι] →
{M : Type u_2} →
[inst_1 : AddCommGroup M] →
(R : Type u_3) →
[inst_2 : CommRing R] → [Module R M] → (ι → M) → [inst_4 : DecidableEq ι] → Subalgebra R (Matrix ι ι R)
The subalgebra of Matrix ι ι R that consists of matrices that actually represent
endomorphisms on M.
def Matrix.isRepresentation.toEnd E1 #
{ι : Type u_1} →
[inst : Fintype ι] →
{M : Type u_2} →
[inst_1 : AddCommGroup M] →
(R : Type u_3) →
[inst_2 : CommRing R] →
[inst_3 : Module R M] →
(b : ι → M) →
[inst_4 : DecidableEq ι] →
Submodule.span R (Set.range b) = ⊤ → ↥(Matrix.isRepresentation R b) →ₐ[R] Module.End R M
The map sending a matrix to the endomorphism it represents. This is an R-algebra morphism.
theorem Matrix.isRepresentation.toEnd_represents E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] (R : Type u_3) [inst_2 : CommRing R]
[inst_3 : Module R M] (b : ι → M) [inst_4 : DecidableEq ι] (hb : Submodule.span R (Set.range b) = ⊤)
(A : ↥(Matrix.isRepresentation R b)), Matrix.Represents b (↑A) ((Matrix.isRepresentation.toEnd R b hb) A)
theorem Matrix.isRepresentation.toEnd_exists_mem_ideal E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] (R : Type u_3) [inst_2 : CommRing R]
[inst_3 : Module R M] (b : ι → M) [inst_4 : DecidableEq ι] (hb : Submodule.span R (Set.range b) = ⊤)
(f : Module.End R M) (I : Ideal R),
LinearMap.range f ≤ I • ⊤ → ∃ M_1, (Matrix.isRepresentation.toEnd R b hb) M_1 = f ∧ ∀ (i j : ι), ↑M_1 i j ∈ I
theorem Matrix.isRepresentation.toEnd_surjective E1 #
∀ {ι : Type u_1} [inst : Fintype ι] {M : Type u_2} [inst_1 : AddCommGroup M] (R : Type u_3) [inst_2 : CommRing R]
[inst_3 : Module R M] (b : ι → M) [inst_4 : DecidableEq ι] (hb : Submodule.span R (Set.range b) = ⊤),
Function.Surjective ⇑(Matrix.isRepresentation.toEnd R b hb)
theorem LinearMap.exists_monic_and_natDegree_eq_and_coeff_mem_pow_and_aeval_eq_zero E1 #
∀ {M : Type u_2} [inst : AddCommGroup M] (R : Type u_3) [inst_1 : CommRing R] [inst_2 : Module R M] [Module.Finite R M]
(f : Module.End R M) (I : Ideal R),
LinearMap.range f ≤ I • ⊤ →
∃ p,
p.Monic ∧
p.natDegree = ⊤.spanFinrank ∧ (∀ (k : ℕ), p.coeff k ∈ I ^ (p.natDegree - k)) ∧ (Polynomial.aeval f) p = 0
The Cayley-Hamilton Theorem for f.g. modules over arbitrary rings states that for each
R-endomorphism φ of an R-module M generated by n elements such that φ(M) ≤ I • M
for some ideal I, there exist some aᵢ ∈ Iⁱ such that φⁿ + a₁ φⁿ⁻¹ + ⋯ + aₙ = 0.
This is the version in [Matsumura 2.1][matsumura1987], which is stronger than those in [Eisenbud 4.3][Eisenbud1995] and [Atiyah-Macdonald 2.4][atiyah-macdonald].
theorem LinearMap.exists_monic_and_natDegree_eq_and_aeval_eq_zero E1 #
∀ {M : Type u_2} [inst : AddCommGroup M] (R : Type u_3) [inst_1 : CommRing R] [inst_2 : Module R M] [Module.Finite R M]
(f : Module.End R M), ∃ p, p.Monic ∧ p.natDegree = ⊤.spanFinrank ∧ (Polynomial.aeval f) p = 0
theorem LinearMap.exists_monic_and_aeval_eq_zero E1 #
∀ {M : Type u_2} [inst : AddCommGroup M] (R : Type u_3) [inst_1 : CommRing R] [inst_2 : Module R M] [Module.Finite R M]
(f : Module.End R M), ∃ p, p.Monic ∧ (Polynomial.aeval f) p = 0