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.Matrix.Charpoly.Univ

9 declarations. Mathlib docs · Source

The universal characteristic polynomial

In this file we define the universal characteristic polynomial Matrix.charpoly.univ, which is the characteristic polynomial of the matrix with entries Xᵢⱼ, and hence has coefficients that are multivariate polynomials.

It is universal in the sense that one obtains the characteristic polynomial of a matrix M by evaluating the coefficients of univ at the entries of M.

We use it to show that the coefficients of the characteristic polynomial of a matrix are homogeneous polynomials in the matrix entries.

Main results

  • Matrix.charpoly.univ: the universal characteristic polynomial
  • Matrix.charpoly.univ_map_eval₂Hom: evaluating univ on the entries of a matrix M gives the characteristic polynomial of M.
  • Matrix.charpoly.univ_coeff_isHomogeneous: the i-th coefficient of univ is a homogeneous polynomial of degree n - i.

abbrev Matrix.charpoly.univ E3 #

(R : Type u_1) →
  (n : Type u_3) → [inst : CommRing R] → [Fintype n] → [DecidableEq n] → Polynomial (MvPolynomial (n × n) R)

The universal characteristic polynomial for n × n-matrices, is the characteristic polynomial of Matrix.mvPolynomialX n n ℤ with entries Xᵢⱼ.

Its i-th coefficient is a homogeneous polynomial of degree n - i, see Matrix.charpoly.univ_coeff_isHomogeneous.

By evaluating the coefficients at the entries of a matrix M, one obtains the characteristic polynomial of M, see Matrix.charpoly.univ_map_eval₂Hom.

theorem Matrix.charpoly.univ_map_eval₂Hom E3 #

∀ {R : Type u_1} {S : Type u_2} (n : Type u_3) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (f : R →+* S) (M : n × n → S),
  Polynomial.map (MvPolynomial.eval₂Hom f M) (Matrix.charpoly.univ R n) = (Matrix.of (Function.curry M)).charpoly

theorem Matrix.charpoly.univ_map_map E1 #

∀ {R : Type u_1} {S : Type u_2} (n : Type u_3) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (f : R →+* S),
  Polynomial.map (MvPolynomial.map f) (Matrix.charpoly.univ R n) = Matrix.charpoly.univ S n

theorem Matrix.charpoly.univ_coeff_eval₂Hom E0 #

∀ {R : Type u_1} {S : Type u_2} (n : Type u_3) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (f : R →+* S) (M : n × n → S) (i : ℕ),
  (MvPolynomial.eval₂Hom f M) ((Matrix.charpoly.univ R n).coeff i) = (Matrix.of (Function.curry M)).charpoly.coeff i

theorem Matrix.charpoly.univ_monic E1 #

∀ (R : Type u_1) (n : Type u_3) [inst : CommRing R] [inst_1 : Fintype n] [inst_2 : DecidableEq n],
  (Matrix.charpoly.univ R n).Monic

theorem Matrix.charpoly.univ_natDegree E1 #

∀ (R : Type u_1) (n : Type u_3) [inst : CommRing R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] [Nontrivial R],
  (Matrix.charpoly.univ R n).natDegree = Fintype.card n

theorem Matrix.charpoly.univ_coeff_card E0 #

∀ (R : Type u_1) (n : Type u_3) [inst : CommRing R] [inst_1 : Fintype n] [inst_2 : DecidableEq n],
  (Matrix.charpoly.univ R n).coeff (Fintype.card n) = 1

theorem Matrix.charpoly.optionEquivLeft_symm_univ_isHomogeneous E1 #

∀ (R : Type u_1) (n : Type u_3) [inst : CommRing R] [inst_1 : Fintype n] [inst_2 : DecidableEq n],
  ((MvPolynomial.optionEquivLeft R (n × n)).symm (Matrix.charpoly.univ R n)).IsHomogeneous (Fintype.card n)

theorem Matrix.charpoly.univ_coeff_isHomogeneous E3 #

∀ (R : Type u_1) (n : Type u_3) [inst : CommRing R] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (i j : ℕ),
  i + j = Fintype.card n → ((Matrix.charpoly.univ R n).coeff i).IsHomogeneous j