The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V07. Linear algebra

Mathlib.LinearAlgebra.AnnihilatingPolynomial

14 declarations. Mathlib docs ยท Source

Annihilating Ideal

Given a commutative ring R and an R-algebra A, every element a : A defines an ideal Polynomial.annIdeal a โІ R[X]. Simply put, this is the set of polynomials p where the polynomial evaluation p(a) is 0.

Special case where the ground ring is a field

In the special case that R is a field, we use the notation R = ๐•œ. Here ๐•œ[X] is a PID, so there is a polynomial g โˆˆ Polynomial.annIdeal a which generates the ideal. We show that if this generator is chosen to be monic, then it is the minimal polynomial of a, as defined in FieldTheory.Minpoly.

Special case: endomorphism algebra

Given an R-module M ([AddCommGroup M] [Module R M]) there are some common specializations which may be more familiar.

  • Example 1: A = M โ†’โ‚—[R] M, the endomorphism algebra of an R-module M.
  • Example 2: A = n ร— n matrices with entries in R.

We are working toward showing the generator of the annihilating ideal in the field case is the minimal polynomial. We are going to use a uniqueness theorem of the minimal polynomial.

This is the first condition: it must annihilate the original element a : A.

def Polynomial.annIdeal E3 #

(R : Type u_1) โ†’
  {A : Type u_2} โ†’ [inst : CommSemiring R] โ†’ [inst_1 : Semiring A] โ†’ [Algebra R A] โ†’ A โ†’ Ideal (Polynomial R)

annIdeal R a is the annihilating ideal of all p : R[X] such that p(a) = 0.

The informal notation p(a) stands for Polynomial.aeval a p. Again informally, the annihilating ideal of a is { p โˆˆ R[X] | p(a) = 0 }. This is an ideal in R[X]. The formal definition uses the kernel of the aeval map.

theorem Polynomial.mem_annIdeal_iff_aeval_eq_zero E0 #

โˆ€ {R : Type u_1} {A : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {a : A}
  {p : Polynomial R}, p โˆˆ Polynomial.annIdeal R a โ†” (Polynomial.aeval a) p = 0

It is useful to refer to ideal membership sometimes and the annihilation condition other times.

def Polynomial.annIdealGenerator E1 #

(๐•œ : Type u_1) โ†’ {A : Type u_2} โ†’ [inst : Field ๐•œ] โ†’ [inst_1 : Ring A] โ†’ [Algebra ๐•œ A] โ†’ A โ†’ Polynomial ๐•œ

annIdealGenerator ๐•œ a is the monic generator of annIdeal ๐•œ a if one exists, otherwise 0.

Since ๐•œ[X] is a principal ideal domain there is a polynomial g such that span ๐•œ {g} = annIdeal a. This picks some generator. We prefer the monic generator of the ideal.

theorem Polynomial.annIdealGenerator_eq_zero_iff E0 #

โˆ€ {๐•œ : Type u_1} {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] {a : A},
  Polynomial.annIdealGenerator ๐•œ a = 0 โ†” Polynomial.annIdeal ๐•œ a = โŠฅ

theorem Polynomial.span_singleton_annIdealGenerator E0 #

โˆ€ (๐•œ : Type u_1) {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] (a : A),
  Ideal.span {Polynomial.annIdealGenerator ๐•œ a} = Polynomial.annIdeal ๐•œ a

annIdealGenerator ๐•œ a is indeed a generator.

theorem Polynomial.annIdealGenerator_mem E1 #

โˆ€ (๐•œ : Type u_1) {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] (a : A),
  Polynomial.annIdealGenerator ๐•œ a โˆˆ Polynomial.annIdeal ๐•œ a

The annihilating ideal generator is a member of the annihilating ideal.

theorem Polynomial.mem_iff_eq_smul_annIdealGenerator E0 #

โˆ€ (๐•œ : Type u_1) {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] {p : Polynomial ๐•œ} (a : A),
  p โˆˆ Polynomial.annIdeal ๐•œ a โ†” โˆƒ s, p = s โ€ข Polynomial.annIdealGenerator ๐•œ a

theorem Polynomial.monic_annIdealGenerator E1 #

โˆ€ (๐•œ : Type u_1) {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] (a : A),
  Polynomial.annIdealGenerator ๐•œ a โ‰  0 โ†’ (Polynomial.annIdealGenerator ๐•œ a).Monic

The generator we chose for the annihilating ideal is monic when the ideal is non-zero.

theorem Polynomial.annIdealGenerator_aeval_eq_zero E1 #

โˆ€ (๐•œ : Type u_1) {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] (a : A),
  (Polynomial.aeval a) (Polynomial.annIdealGenerator ๐•œ a) = 0

theorem Polynomial.mem_iff_annIdealGenerator_dvd E0 #

โˆ€ {๐•œ : Type u_1} {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] {p : Polynomial ๐•œ} {a : A},
  p โˆˆ Polynomial.annIdeal ๐•œ a โ†” Polynomial.annIdealGenerator ๐•œ a โˆฃ p

theorem Polynomial.degree_annIdealGenerator_le_of_mem E1 #

โˆ€ {๐•œ : Type u_1} {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] (a : A),
  โˆ€ p โˆˆ Polynomial.annIdeal ๐•œ a, p โ‰  0 โ†’ (Polynomial.annIdealGenerator ๐•œ a).degree โ‰ค p.degree

The generator of the annihilating ideal has minimal degree among the non-zero members of the annihilating ideal

theorem Polynomial.annIdealGenerator_eq_minpoly E1 #

โˆ€ (๐•œ : Type u_1) {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] (a : A),
  Polynomial.annIdealGenerator ๐•œ a = minpoly ๐•œ a

The generator of the annihilating ideal is the minimal polynomial.

theorem Polynomial.monic_generator_eq_minpoly E1 #

โˆ€ (๐•œ : Type u_1) {A : Type u_2} [inst : Field ๐•œ] [inst_1 : Ring A] [inst_2 : Algebra ๐•œ A] (a : A) (p : Polynomial ๐•œ),
  p.Monic โ†’ Ideal.span {p} = Polynomial.annIdeal ๐•œ a โ†’ Polynomial.annIdealGenerator ๐•œ a = p

If a monic generates the annihilating ideal, it must match our choice of the annihilating ideal generator.

theorem Polynomial.span_minpoly_eq_annihilator E1 #

โˆ€ (๐•œ : Type u_1) [inst : Field ๐•œ] {M : Type u_3} [inst_1 : AddCommGroup M] [inst_2 : Module ๐•œ M] (f : Module.End ๐•œ M),
  Ideal.span {minpoly ๐•œ f} = Module.annihilator (Polynomial ๐•œ) (Module.AEval' f)