The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.MvPolynomial.Symmetric.Defs
63 declarations. Mathlib docs · Source
Symmetric Polynomials and Elementary Symmetric Polynomials
This file defines symmetric MvPolynomials and the bases of elementary, complete homogeneous,
power sum, and monomial symmetric MvPolynomials. We also prove some basic facts about them.
Main declarations
-
MvPolynomial.IsSymmetric -
MvPolynomial.symmetricSubalgebra -
MvPolynomial.esymm -
MvPolynomial.hsymm -
MvPolynomial.psum -
MvPolynomial.msymm
Notation
-
esymm σ R nis thenth elementary symmetric polynomial inMvPolynomial σ R. -
hsymm σ R nis thenth complete homogeneous symmetric polynomial inMvPolynomial σ R. -
psum σ R nis the degree-npower sum inMvPolynomial σ R, i.e. the sum of monomials(X i)^noveri ∈ σ. -
msymm σ R μis the monomial symmetric polynomial whose exponents set are the parts ofμ ⊢ ninMvPolynomial σ R.
As in other polynomial files, we typically use the notation:
-
σ τ : Type*(indexing the variables) -
R S : Type*[CommSemiring R][CommSemiring S](the coefficients) -
r : Relements of the coefficient ring -
i : σ, with corresponding monomialX i, often denotedX_iby mathematicians -
φ ψ : MvPolynomial σ R
def Multiset.esymm E1 #
{R : Type u_1} → [CommSemiring R] → Multiset R → ℕ → R
The nth elementary symmetric function evaluated at the elements of s
theorem Multiset.esymm_zero E0 #
∀ {R : Type u_1} [inst : CommSemiring R] (s : Multiset R), s.esymm 0 = 1
theorem Multiset.esymm_of_card_lt E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {s : Multiset R} {n : ℕ}, s.card < n → s.esymm n = 0
theorem Finset.esymm_map_val E0 #
∀ {R : Type u_1} [inst : CommSemiring R] {σ : Type u_2} (f : σ → R) (s : Finset σ) (n : ℕ),
(Multiset.map f s.val).esymm n = ∑ t ∈ Finset.powersetCard n s, t.prod f
theorem Multiset.pow_smul_esymm E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {S : Type u_2} [inst_1 : Monoid S] [inst_2 : DistribMulAction S R]
[IsScalarTower S R R] (s : S) (n : ℕ) (m : Multiset R), s ^ n • m.esymm n = (Multiset.map (fun x ↦ s • x) m).esymm n
theorem Multiset.esymm_pair_one E0 #
∀ {R : Type u_1} [inst : CommSemiring R] (x y : R), (x ::ₘ {y}).esymm 1 = x + y
theorem Multiset.esymm_pair_two E0 #
∀ {R : Type u_1} [inst : CommSemiring R] (x y : R), (x ::ₘ {y}).esymm 2 = x * y
def MvPolynomial.IsSymmetric E3 #
{σ : Type u_1} → {R : Type u_3} → [inst : CommSemiring R] → MvPolynomial σ R → Prop
A MvPolynomial φ is symmetric if it is invariant under
permutations of its variables by the rename operation
def MvPolynomial.symmetricSubalgebra E3 #
(σ : Type u_5) → (R : Type u_6) → [inst : CommSemiring R] → Subalgebra R (MvPolynomial σ R)
The subalgebra of symmetric MvPolynomials.
theorem MvPolynomial.mem_symmetricSubalgebra E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (p : MvPolynomial σ R),
p ∈ MvPolynomial.symmetricSubalgebra σ R ↔ p.IsSymmetric
theorem MvPolynomial.IsSymmetric.C E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (r : R), (MvPolynomial.C r).IsSymmetric
theorem MvPolynomial.IsSymmetric.zero E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R], MvPolynomial.IsSymmetric 0
theorem MvPolynomial.IsSymmetric.one E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R], MvPolynomial.IsSymmetric 1
theorem MvPolynomial.IsSymmetric.add E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ ψ : MvPolynomial σ R},
φ.IsSymmetric → ψ.IsSymmetric → (φ + ψ).IsSymmetric
theorem MvPolynomial.IsSymmetric.mul E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ ψ : MvPolynomial σ R},
φ.IsSymmetric → ψ.IsSymmetric → (φ * ψ).IsSymmetric
theorem MvPolynomial.IsSymmetric.smul E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} (r : R),
φ.IsSymmetric → (r • φ).IsSymmetric
theorem MvPolynomial.IsSymmetric.map E0 #
∀ {σ : Type u_1} {R : Type u_3} {S : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S] {φ : MvPolynomial σ R},
φ.IsSymmetric → ∀ (f : R →+* S), ((MvPolynomial.map f) φ).IsSymmetric
theorem MvPolynomial.IsSymmetric.rename E1 #
∀ {σ : Type u_1} {τ : Type u_2} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R},
φ.IsSymmetric → ∀ (e : σ ≃ τ), ((MvPolynomial.rename ⇑e) φ).IsSymmetric
theorem MvPolynomial.isSymmetric_rename E0 #
∀ {σ : Type u_1} {τ : Type u_2} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {e : σ ≃ τ},
((MvPolynomial.rename ⇑e) φ).IsSymmetric ↔ φ.IsSymmetric
theorem MvPolynomial.IsSymmetric.neg E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommRing R] {φ : MvPolynomial σ R}, φ.IsSymmetric → (-φ).IsSymmetric
theorem MvPolynomial.IsSymmetric.sub E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommRing R] {φ ψ : MvPolynomial σ R},
φ.IsSymmetric → ψ.IsSymmetric → (φ - ψ).IsSymmetric
def MvPolynomial.renameSymmetricSubalgebra E1 #
{σ : Type u_1} →
{τ : Type u_2} →
{R : Type u_3} →
[inst : CommSemiring R] →
σ ≃ τ → ↥(MvPolynomial.symmetricSubalgebra σ R) ≃ₐ[R] ↥(MvPolynomial.symmetricSubalgebra τ R)
MvPolynomial.rename induces an isomorphism between the symmetric subalgebras.
theorem MvPolynomial.renameSymmetricSubalgebra_symm_apply_coe E0 #
∀ {σ : Type u_1} {τ : Type u_2} {R : Type u_3} [inst : CommSemiring R] (e : σ ≃ τ)
(a : ↥(MvPolynomial.symmetricSubalgebra τ R)),
↑((MvPolynomial.renameSymmetricSubalgebra e).symm a) = (MvPolynomial.rename ⇑e.symm) ↑a
theorem MvPolynomial.renameSymmetricSubalgebra_apply_coe E0 #
∀ {σ : Type u_1} {τ : Type u_2} {R : Type u_3} [inst : CommSemiring R] (e : σ ≃ τ)
(a : ↥(MvPolynomial.symmetricSubalgebra σ R)),
↑((MvPolynomial.renameSymmetricSubalgebra e) a) = (MvPolynomial.rename ⇑e) ↑a
def MvPolynomial.esymm E3 #
(σ : Type u_5) → (R : Type u_6) → [inst : CommSemiring R] → [Fintype σ] → ℕ → MvPolynomial σ R
The nth elementary symmetric MvPolynomial σ R.
It is the sum over all the degree n squarefree monomials in MvPolynomial σ R.
def MvPolynomial.esymmPart E1 #
(σ : Type u_5) → (R : Type u_6) → [inst : CommSemiring R] → [Fintype σ] → {n : ℕ} → n.Partition → MvPolynomial σ R
esymmPart is the product of the symmetric polynomials esymm μᵢ,
where μ = (μ₁, μ₂, ...) is a partition.
theorem MvPolynomial.esymm_eq_multiset_esymm E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ],
MvPolynomial.esymm σ R = (Multiset.map MvPolynomial.X Finset.univ.val).esymm
The nth elementary symmetric MvPolynomial σ R is obtained by evaluating the
nth elementary symmetric at the Multiset of the monomials
theorem MvPolynomial.aeval_esymm_eq_multiset_esymm E1 #
∀ {S : Type u_4} (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Fintype σ]
[inst_3 : Algebra R S] (n : ℕ) (f : σ → S),
(MvPolynomial.aeval f) (MvPolynomial.esymm σ R n) = (Multiset.map f Finset.univ.val).esymm n
theorem MvPolynomial.esymm_eq_sum_subtype E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] (n : ℕ),
MvPolynomial.esymm σ R n = ∑ t, ∏ i ∈ ↑t, MvPolynomial.X i
We can define esymm σ R n by summing over a subtype instead of over powerset_len.
theorem MvPolynomial.esymm_eq_sum_monomial E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] (n : ℕ),
MvPolynomial.esymm σ R n = ∑ t ∈ Finset.powersetCard n Finset.univ, (MvPolynomial.monomial (∑ i ∈ t, fun₀ | i => 1)) 1
We can define esymm σ R n as a sum over explicit monomials
theorem MvPolynomial.esymm_zero E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ], MvPolynomial.esymm σ R 0 = 1
theorem MvPolynomial.esymm_one E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ],
MvPolynomial.esymm σ R 1 = ∑ i, MvPolynomial.X i
theorem MvPolynomial.esymmPart_zero E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ],
MvPolynomial.esymmPart σ R (Nat.Partition.indiscrete 0) = 1
theorem MvPolynomial.esymmPart_indiscrete E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] (n : ℕ),
MvPolynomial.esymmPart σ R (Nat.Partition.indiscrete n) = MvPolynomial.esymm σ R n
theorem MvPolynomial.map_esymm E0 #
∀ {S : Type u_4} (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Fintype σ]
(n : ℕ) (f : R →+* S), (MvPolynomial.map f) (MvPolynomial.esymm σ R n) = MvPolynomial.esymm σ S n
theorem MvPolynomial.rename_esymm E1 #
∀ {τ : Type u_2} (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : Fintype τ] (n : ℕ)
(e : σ ≃ τ), (MvPolynomial.rename ⇑e) (MvPolynomial.esymm σ R n) = MvPolynomial.esymm τ R n
theorem MvPolynomial.esymm_isSymmetric E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] (n : ℕ),
(MvPolynomial.esymm σ R n).IsSymmetric
theorem MvPolynomial.support_esymm'' E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ] [Nontrivial R]
(n : ℕ),
(MvPolynomial.esymm σ R n).support =
(Finset.powersetCard n Finset.univ).biUnion fun t ↦ (fun₀ | ∑ i ∈ t, fun₀ | i => 1 => 1).support
theorem MvPolynomial.support_esymm' E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ] [Nontrivial R]
(n : ℕ),
(MvPolynomial.esymm σ R n).support = (Finset.powersetCard n Finset.univ).biUnion fun t ↦ {∑ i ∈ t, fun₀ | i => 1}
theorem MvPolynomial.support_esymm E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ] [Nontrivial R]
(n : ℕ),
(MvPolynomial.esymm σ R n).support = Finset.image (fun t ↦ ∑ i ∈ t, fun₀ | i => 1) (Finset.powersetCard n Finset.univ)
theorem MvPolynomial.degrees_esymm E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [Nontrivial R] {n : ℕ},
0 < n → n ≤ Fintype.card σ → (MvPolynomial.esymm σ R n).degrees = Finset.univ.val
def MvPolynomial.hsymm E3 #
(σ : Type u_5) → (R : Type u_6) → [inst : CommSemiring R] → [Fintype σ] → [DecidableEq σ] → ℕ → MvPolynomial σ R
The nth complete homogeneous symmetric MvPolynomial σ R.
It is the sum over all the degree n monomials in MvPolynomial σ R.
def MvPolynomial.hsymmPart E1 #
(σ : Type u_5) →
(R : Type u_6) → [inst : CommSemiring R] → [Fintype σ] → [DecidableEq σ] → {n : ℕ} → n.Partition → MvPolynomial σ R
hsymmPart is the product of the symmetric polynomials hsymm μᵢ,
where μ = (μ₁, μ₂, ...) is a partition.
theorem MvPolynomial.hsymm_zero E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ],
MvPolynomial.hsymm σ R 0 = 1
theorem MvPolynomial.hsymm_one E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ],
MvPolynomial.hsymm σ R 1 = ∑ i, MvPolynomial.X i
theorem MvPolynomial.hsymmPart_zero E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ],
MvPolynomial.hsymmPart σ R (Nat.Partition.indiscrete 0) = 1
theorem MvPolynomial.hsymmPart_indiscrete E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ] (n : ℕ),
MvPolynomial.hsymmPart σ R (Nat.Partition.indiscrete n) = MvPolynomial.hsymm σ R n
theorem MvPolynomial.map_hsymm E0 #
∀ {S : Type u_4} (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Fintype σ]
[inst_3 : DecidableEq σ] (n : ℕ) (f : R →+* S),
(MvPolynomial.map f) (MvPolynomial.hsymm σ R n) = MvPolynomial.hsymm σ S n
theorem MvPolynomial.rename_hsymm E1 #
∀ {τ : Type u_2} (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : Fintype τ]
[inst_3 : DecidableEq σ] [inst_4 : DecidableEq τ] (n : ℕ) (e : σ ≃ τ),
(MvPolynomial.rename ⇑e) (MvPolynomial.hsymm σ R n) = MvPolynomial.hsymm τ R n
theorem MvPolynomial.hsymm_isSymmetric E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ] (n : ℕ),
(MvPolynomial.hsymm σ R n).IsSymmetric
def MvPolynomial.psum E3 #
(σ : Type u_5) → (R : Type u_6) → [inst : CommSemiring R] → [Fintype σ] → ℕ → MvPolynomial σ R
The degree-n power sum symmetric MvPolynomial σ R.
It is the sum over all the n-th powers of the variables.
def MvPolynomial.psumPart E1 #
(σ : Type u_5) → (R : Type u_6) → [inst : CommSemiring R] → [Fintype σ] → {n : ℕ} → n.Partition → MvPolynomial σ R
psumPart is the product of the symmetric polynomials psum μᵢ,
where μ = (μ₁, μ₂, ...) is a partition.
theorem MvPolynomial.psum_zero E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ],
MvPolynomial.psum σ R 0 = ↑(Fintype.card σ)
theorem MvPolynomial.psum_one E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ],
MvPolynomial.psum σ R 1 = ∑ i, MvPolynomial.X i
theorem MvPolynomial.psumPart_zero E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ],
MvPolynomial.psumPart σ R (Nat.Partition.indiscrete 0) = 1
theorem MvPolynomial.psumPart_indiscrete E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] {n : ℕ},
n ≠ 0 → MvPolynomial.psumPart σ R (Nat.Partition.indiscrete n) = MvPolynomial.psum σ R n
theorem MvPolynomial.rename_psum E0 #
∀ {τ : Type u_2} (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : Fintype τ] (n : ℕ)
(e : σ ≃ τ), (MvPolynomial.rename ⇑e) (MvPolynomial.psum σ R n) = MvPolynomial.psum τ R n
theorem MvPolynomial.psum_isSymmetric E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] (n : ℕ),
(MvPolynomial.psum σ R n).IsSymmetric
def MvPolynomial.msymm E3 #
(σ : Type u_5) →
(R : Type u_6) → [inst : CommSemiring R] → [Fintype σ] → [DecidableEq σ] → {n : ℕ} → n.Partition → MvPolynomial σ R
The monomial symmetric MvPolynomial σ R with exponent set μ.
It is the sum over all the monomials in MvPolynomial σ R such that
the multiset of exponents is equal to the multiset of parts of μ.
theorem MvPolynomial.msymm_zero E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ],
MvPolynomial.msymm σ R (Nat.Partition.indiscrete 0) = 1
theorem MvPolynomial.msymm_one E0 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ],
MvPolynomial.msymm σ R (Nat.Partition.indiscrete 1) = ∑ i, MvPolynomial.X i
theorem MvPolynomial.rename_msymm E0 #
∀ {τ : Type u_2} (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : Fintype τ]
[inst_3 : DecidableEq σ] [inst_4 : DecidableEq τ] {n : ℕ} (μ : n.Partition) (e : σ ≃ τ),
(MvPolynomial.rename ⇑e) (MvPolynomial.msymm σ R μ) = MvPolynomial.msymm τ R μ
theorem MvPolynomial.msymm_isSymmetric E1 #
∀ (σ : Type u_5) (R : Type u_6) [inst : CommSemiring R] [inst_1 : Fintype σ] [inst_2 : DecidableEq σ] {n : ℕ}
(μ : n.Partition), (MvPolynomial.msymm σ R μ).IsSymmetric