The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.MvPolynomial.Symmetric.FundamentalTheorem
30 declarations. Mathlib docs · Source
The Fundamental Theorem of Symmetric Polynomials
In a polynomial ring in n variables over a commutative ring, the subalgebra of symmetric
polynomials is freely generated by the first n elementary symmetric polynomials (excluding
the 0th, which is simply 1). This is expressed as an isomorphism
MvPolynomial.esymmAlgEquiv between MvPolynomial (Fin n) R and
the symmetric subalgebra of any polynomial ring MvPolynomial σ R with #σ = n.
The forward map is called MvPolynomial.esymmAlgHom.
Proof strategy
We follow the alternative proof on the Wikipedia page
https://en.wikipedia.org/wiki/Elementary_symmetric_polynomial#Alternative_proof
It suffices to show esymmAlgHom is both injective and surjective.
Endow the Fintype σ with a linear order and endow the (monic) monomials in the polynomial ring
MvPolynomial σ R with the lexicographic order on σ →₀ ℕ, which is a well order.
Then any nonzero polynomial p : MvPolynomial σ R has a largest nonzero monomial
(AddMonoidAlgebra.supDegree toLex p) and the corresponding coefficient is
AddMonoidAlgebra.leadingCoeff toLex p. If p is symmetric, any permutation of a nonzero monomial
in p must also be a nonzero monomial in p, so the largest nonzero monomial must be antitone
as a function σ → ℕ (MvPolynomial.IsSymmetric.antitone_supDegree). We can then construct a
monomial in MvPolynomial (Fin n) R whose image under esymmAlgHom has the same supDegree and
leadingCoeff as p: MvPolynomial.supDegree_esymmAlgHomMonomial says that the supDegree of
the image is given by Fin.accumulate, and Fin.accumulate_invAccumulate says that
Fin.invAccumulate is inverse to Fin.accumulate for antitone monomials.
If we subtract the image from p, we are left with a symmetric polynomial of
lower supDegree, which we may assume to be in the image by induction,
thanks to the well-orderedness of Lex (σ →₀ ℕ); the surjectivity of esymmAlgHom
follows. For injectivity, just notice that the images of different monic monomials in
MvPolynomial (Fin n) R have different supDegree (Fin.accumulate_injective), so if there is
at least one nonzero monomial, the images cannot all cancel out
(AddMonoidAlgebra.sum_ne_zero_of_injOn_supDegree).
We actually only define Fin.accumulate in the case σ := Fin m rather than an arbitrary Fintype
with a linear order; we show that esymmAlgHom is in fact surjective whenever m ≤ n and
injective whenever n ≤ m, and then transfer the results to any Fintype σ. See
MvPolynomial.injective_esymmAlgHom and MvPolynomial.esymmAlgHom_surjective.
theorem MvPolynomial.esymmAlgEquiv.congr_simp E1 #
∀ (σ : Type u_1) (R : Type u_3) {n : ℕ} [inst : Fintype σ] [inst_1 : CommRing R] (hn : Fintype.card σ = n),
MvPolynomial.esymmAlgEquiv σ R hn = MvPolynomial.esymmAlgEquiv σ R hn
def Fin.accumulate E1 #
(n m : ℕ) → (Fin n → ℕ) →+ Fin m → ℕ
The jth entry of accumulate n m t is the sum of t i over all i ≥ j.
theorem Fin.accumulate_apply E0 #
∀ (n m : ℕ) (t : Fin n → ℕ) (j : Fin m), (Fin.accumulate n m) t j = ∑ i with ↑j ≤ ↑i, t i
def Fin.invAccumulate E1 #
(n m : ℕ) → (Fin m → ℕ) → Fin n → ℕ
The ith entry of invAccumulate n m s is s i - s (i+1), where s j = 0 if j ≥ m.
theorem Fin.accumulate_rec E1 #
∀ {i n m : ℕ} (hin : i < n) (him : i + 1 < m) (t : Fin n → ℕ),
(Fin.accumulate n m) t ⟨i, ⋯⟩ = t ⟨i, hin⟩ + (Fin.accumulate n m) t ⟨i + 1, him⟩
theorem Fin.accumulate_last E1 #
∀ {i n m : ℕ} (hin : i < n) (hmi : m = i + 1) (t : Fin n → ℕ),
(∀ (j : Fin n), m ≤ ↑j → t j = 0) → (Fin.accumulate n m) t ⟨i, ⋯⟩ = t ⟨i, hin⟩
theorem Fin.accumulate_injective E1 #
∀ {n m : ℕ}, n ≤ m → Function.Injective ⇑(Fin.accumulate n m)
theorem Fin.accumulate_invAccumulate E1 #
∀ {n m : ℕ}, m ≤ n → ∀ {s : Fin m → ℕ}, Antitone s → (Fin.accumulate n m) (Fin.invAccumulate n m s) = s
def MvPolynomial.esymmAlgHom E1 #
(σ : Type u_1) →
(R : Type u_3) →
(n : ℕ) →
[inst : CommSemiring R] → [Fintype σ] → MvPolynomial (Fin n) R →ₐ[R] ↥(MvPolynomial.symmetricSubalgebra σ R)
The R-algebra homomorphism from $R[x_1,\dots,x_n]$ to the symmetric subalgebra of
$R[{x_i \mid i ∈ σ}]$ sending $x_i$ to the $i$-th elementary symmetric polynomial.
theorem MvPolynomial.esymmAlgHom_apply E0 #
∀ {σ : Type u_1} {R : Type u_3} {n : ℕ} [inst : CommSemiring R] [inst_1 : Fintype σ] (p : MvPolynomial (Fin n) R),
↑((MvPolynomial.esymmAlgHom σ R n) p) = (MvPolynomial.aeval fun i ↦ MvPolynomial.esymm σ R (↑i + 1)) p
theorem MvPolynomial.rename_esymmAlgHom E1 #
∀ {σ : Type u_1} {τ : Type u_2} {R : Type u_3} {n : ℕ} [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : Fintype τ]
(e : σ ≃ τ),
(↑(MvPolynomial.renameSymmetricSubalgebra e)).comp (MvPolynomial.esymmAlgHom σ R n) = MvPolynomial.esymmAlgHom τ R n
def MvPolynomial.esymmAlgHomMonomial E1 #
(σ : Type u_1) → {R : Type u_3} → {n : ℕ} → [inst : CommSemiring R] → [Fintype σ] → (Fin n →₀ ℕ) → R → MvPolynomial σ R
The image of a monomial under esymmAlgHom.
theorem MvPolynomial.isSymmetric_esymmAlgHomMonomial E1 #
∀ {σ : Type u_1} {R : Type u_3} {n : ℕ} [inst : CommSemiring R] [inst_1 : Fintype σ] (t : Fin n →₀ ℕ) (r : R),
(MvPolynomial.esymmAlgHomMonomial σ t r).IsSymmetric
theorem MvPolynomial.esymmAlgHomMonomial_single E1 #
∀ {σ : Type u_1} {R : Type u_3} {n k : ℕ} [inst : CommSemiring R] [inst_1 : Fintype σ] {i : Fin n} {r : R},
MvPolynomial.esymmAlgHomMonomial σ (fun₀ | i => k) r = MvPolynomial.C r * MvPolynomial.esymm σ R (↑i + 1) ^ k
theorem MvPolynomial.esymmAlgHomMonomial_single_one E1 #
∀ {σ : Type u_1} {R : Type u_3} {n k : ℕ} [inst : CommSemiring R] [inst_1 : Fintype σ] {i : Fin n},
MvPolynomial.esymmAlgHomMonomial σ (fun₀ | i => k) 1 = MvPolynomial.esymm σ R (↑i + 1) ^ k
theorem MvPolynomial.esymmAlgHomMonomial_add E1 #
∀ {σ : Type u_1} {R : Type u_3} {n : ℕ} [inst : CommSemiring R] [inst_1 : Fintype σ] {r : R} {t s : Fin n →₀ ℕ},
MvPolynomial.esymmAlgHomMonomial σ (t + s) r =
MvPolynomial.esymmAlgHomMonomial σ t r * MvPolynomial.esymmAlgHomMonomial σ s 1
theorem MvPolynomial.esymmAlgHom_zero E1 #
∀ {σ : Type u_1} {R : Type u_3} {n : ℕ} [inst : CommSemiring R] [inst_1 : Fintype σ] {r : R},
MvPolynomial.esymmAlgHomMonomial σ 0 r = MvPolynomial.C r
theorem MvPolynomial.supDegree_esymm E1 #
∀ {R : Type u_3} {n m : ℕ} [inst : CommSemiring R] {i : Fin n} [Nontrivial R],
↑i < m →
⇑(ofLex (AddMonoidAlgebra.supDegree (⇑toLex) (MvPolynomial.esymm (Fin m) R (↑i + 1)))) =
(Fin.accumulate n m) ⇑fun₀ | i => 1
theorem MvPolynomial.monic_esymm E1 #
∀ {R : Type u_3} {m : ℕ} [inst : CommSemiring R] {i : ℕ},
i ≤ m → AddMonoidAlgebra.Monic (⇑toLex) (MvPolynomial.esymm (Fin m) R i)
theorem MvPolynomial.leadingCoeff_esymmAlgHomMonomial E1 #
∀ {R : Type u_3} {n m : ℕ} [inst : CommSemiring R] {r : R} (t : Fin n →₀ ℕ),
n ≤ m → AddMonoidAlgebra.leadingCoeff (⇑toLex) (MvPolynomial.esymmAlgHomMonomial (Fin m) t r) = r
theorem MvPolynomial.supDegree_esymmAlgHomMonomial E1 #
∀ {R : Type u_3} {n m : ℕ} [inst : CommSemiring R] {r : R},
r ≠ 0 →
∀ (t : Fin n →₀ ℕ),
n ≤ m →
⇑(ofLex (AddMonoidAlgebra.supDegree (⇑toLex) (MvPolynomial.esymmAlgHomMonomial (Fin m) t r))) =
(Fin.accumulate n m) ⇑t
theorem MvPolynomial.IsSymmetric.antitone_supDegree E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] [inst_1 : LinearOrder σ] {p : MvPolynomial σ R},
p.IsSymmetric → Antitone ⇑(ofLex (AddMonoidAlgebra.supDegree (⇑toLex) p))
theorem MvPolynomial.esymmAlgHom_fin_injective E1 #
∀ (R : Type u_3) {n m : ℕ} [inst : CommRing R], n ≤ m → Function.Injective ⇑(MvPolynomial.esymmAlgHom (Fin m) R n)
theorem MvPolynomial.esymmAlgHom_injective E1 #
∀ {σ : Type u_1} (R : Type u_3) {n : ℕ} [inst : Fintype σ] [inst_1 : CommRing R],
n ≤ Fintype.card σ → Function.Injective ⇑(MvPolynomial.esymmAlgHom σ R n)
theorem MvPolynomial.esymmAlgHom_fin_bijective E1 #
∀ (R : Type u_3) [inst : CommRing R] (n : ℕ), Function.Bijective ⇑(MvPolynomial.esymmAlgHom (Fin n) R n)
theorem MvPolynomial.esymmAlgHom_fin_surjective E1 #
∀ (R : Type u_3) {n m : ℕ} [inst : CommRing R], m ≤ n → Function.Surjective ⇑(MvPolynomial.esymmAlgHom (Fin m) R n)
theorem MvPolynomial.esymmAlgHom_surjective E1 #
∀ {σ : Type u_1} (R : Type u_3) {n : ℕ} [inst : Fintype σ] [inst_1 : CommRing R],
Fintype.card σ ≤ n → Function.Surjective ⇑(MvPolynomial.esymmAlgHom σ R n)
def MvPolynomial.esymmAlgEquiv E1 #
(σ : Type u_1) →
(R : Type u_3) →
{n : ℕ} →
[inst : Fintype σ] →
[inst_1 : CommRing R] →
Fintype.card σ = n → MvPolynomial (Fin n) R ≃ₐ[R] ↥(MvPolynomial.symmetricSubalgebra σ R)
If the cardinality of σ is n, then esymmAlgHom σ R n is an isomorphism.
theorem MvPolynomial.esymmAlgEquiv_apply E0 #
∀ (σ : Type u_1) (R : Type u_3) {n : ℕ} [inst : Fintype σ] [inst_1 : CommRing R] (hn : Fintype.card σ = n)
(a : MvPolynomial (Fin n) R), (MvPolynomial.esymmAlgEquiv σ R hn) a = (MvPolynomial.esymmAlgHom σ R n) a
theorem MvPolynomial.esymmAlgEquiv_symm_apply E0 #
∀ {σ : Type u_1} (R : Type u_3) {n : ℕ} [inst : Fintype σ] [inst_1 : CommRing R] (hn : Fintype.card σ = n) (i : Fin n),
(MvPolynomial.esymmAlgEquiv σ R hn).symm ⟨MvPolynomial.esymm σ R (↑i + 1), ⋯⟩ = MvPolynomial.X i