The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.MvPolynomial.WeightedHomogeneous
69 declarations. Mathlib docs · Source
Weighted homogeneous polynomials
It is possible to assign weights (in a commutative additive monoid M) to the variables of a
multivariate polynomial ring, so that monomials of the ring then have a weighted degree with
respect to the weights of the variables. The weights are represented by a function w : σ → M,
where σ are the indeterminates.
A multivariate polynomial φ is weighted homogeneous of weighted degree m : M if all monomials
occurring in φ have the same weighted degree m.
Main definitions/lemmas
-
weightedTotalDegree' w φ: the weighted total degree of a multivariate polynomial with respect to the weightsw, taking values inWithBot M. -
weightedTotalDegree w φ: WhenMhas a⊥element, we can define the weighted total degree of a multivariate polynomial as a function taking values inM. -
IsWeightedHomogeneous w φ m: a predicate that asserts thatφis weighted homogeneous of weighted degreemwith respect to the weightsw. -
weightedHomogeneousSubmodule R w m: the submodule of homogeneous polynomials of weighted degreem. -
weightedHomogeneousComponent w m: the additive morphism that projects polynomials onto their summand that is weighted homogeneous of degreenwith respect tow. -
sum_weightedHomogeneousComponent: every polynomial is the sum of its weighted homogeneous components.
weight
def MvPolynomial.weightedTotalDegree' E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] →
{σ : Type u_3} → [AddCommMonoid M] → [SemilatticeSup M] → (σ → M) → MvPolynomial σ R → WithBot M
The weighted total degree of a multivariate polynomial, taking values in WithBot M.
theorem MvPolynomial.weightedTotalDegree'_eq_bot_iff E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : SemilatticeSup M] (w : σ → M) (p : MvPolynomial σ R), MvPolynomial.weightedTotalDegree' w p = ⊥ ↔ p = 0
The weightedTotalDegree' of a polynomial p is ⊥ if and only if p = 0.
theorem MvPolynomial.weightedTotalDegree'_zero E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : SemilatticeSup M] (w : σ → M), MvPolynomial.weightedTotalDegree' w 0 = ⊥
The weightedTotalDegree' of the zero polynomial is ⊥.
def MvPolynomial.weightedTotalDegree E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] →
{σ : Type u_3} → [AddCommMonoid M] → [inst_2 : SemilatticeSup M] → [OrderBot M] → (σ → M) → MvPolynomial σ R → M
When M has a ⊥ element, we can define the weighted total degree of a multivariate
polynomial as a function taking values in M.
theorem MvPolynomial.weightedTotalDegree_coe E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : SemilatticeSup M] [inst_3 : OrderBot M] (w : σ → M) (p : MvPolynomial σ R),
p ≠ 0 → MvPolynomial.weightedTotalDegree' w p = ↑(MvPolynomial.weightedTotalDegree w p)
This lemma relates weightedTotalDegree and weightedTotalDegree'.
theorem MvPolynomial.weightedTotalDegree_zero E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : SemilatticeSup M] [inst_3 : OrderBot M] (w : σ → M), MvPolynomial.weightedTotalDegree w 0 = ⊥
The weightedTotalDegree of the zero polynomial is ⊥.
theorem MvPolynomial.le_weightedTotalDegree E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : SemilatticeSup M] [inst_3 : OrderBot M] (w : σ → M) {φ : MvPolynomial σ R} {d : σ →₀ ℕ},
d ∈ φ.support → (Finsupp.weight w) d ≤ MvPolynomial.weightedTotalDegree w φ
def MvPolynomial.IsWeightedHomogeneous E1 #
{R : Type u_1} →
{M : Type u_2} → [inst : CommSemiring R] → {σ : Type u_3} → [AddCommMonoid M] → (σ → M) → MvPolynomial σ R → M → Prop
A multivariate polynomial φ is weighted homogeneous of weighted degree m if all monomials
occurring in φ have weighted degree m.
def MvPolynomial.weightedHomogeneousSubmodule E1 #
(R : Type u_1) →
{M : Type u_2} →
[inst : CommSemiring R] → {σ : Type u_3} → [AddCommMonoid M] → (σ → M) → M → Submodule R (MvPolynomial σ R)
The submodule of homogeneous MvPolynomials of degree n.
theorem MvPolynomial.mem_weightedHomogeneousSubmodule E0 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M) (m : M)
(p : MvPolynomial σ R), p ∈ MvPolynomial.weightedHomogeneousSubmodule R w m ↔ MvPolynomial.IsWeightedHomogeneous w p m
theorem MvPolynomial.weightedHomogeneousSubmodule_eq_finsupp_supported E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M) (m : M),
MvPolynomial.weightedHomogeneousSubmodule R w m = AddMonoidAlgebra.supported R R {d | (Finsupp.weight w) d = m}
The submodule weightedHomogeneousSubmodule R w m of homogeneous MvPolynomials of
degree n is equal to the R-submodule of all p : (σ →₀ ℕ) →₀ R such that
p.support ⊆ {d | weight w d = m}. While equal, the former has a
convenient definitional reduction.
theorem MvPolynomial.weightedHomogeneousSubmodule_fg E1 #
∀ (R : Type u_1) [inst : CommSemiring R] {σ : Type u_3} [Finite σ] (w : σ → ℕ),
(∀ (x : σ), w x ≠ 0) → ∀ (n : ℕ), (MvPolynomial.weightedHomogeneousSubmodule R w n).FG
theorem MvPolynomial.weightedHomogeneousSubmodule_mul E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M) (m n : M),
MvPolynomial.weightedHomogeneousSubmodule R w m * MvPolynomial.weightedHomogeneousSubmodule R w n ≤
MvPolynomial.weightedHomogeneousSubmodule R w (m + n)
The submodule generated by products Pm * Pn of weighted homogeneous polynomials of degrees m
and n is contained in the submodule of weighted homogeneous polynomials of degree m + n.
theorem MvPolynomial.isWeightedHomogeneous_monomial E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M)
(d : σ →₀ ℕ) (r : R) {m : M},
(Finsupp.weight w) d = m → MvPolynomial.IsWeightedHomogeneous w ((MvPolynomial.monomial d) r) m
Monomials are weighted homogeneous.
theorem MvPolynomial.isWeightedHomogeneous_of_total_degree_zero E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : SemilatticeSup M] [inst_3 : OrderBot M] (w : σ → M) {p : MvPolynomial σ R},
MvPolynomial.weightedTotalDegree w p = ⊥ → MvPolynomial.IsWeightedHomogeneous w p ⊥
A polynomial of weightedTotalDegree ⊥ is weighted homogeneous of degree ⊥.
theorem MvPolynomial.isWeightedHomogeneous_C E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M) (r : R),
MvPolynomial.IsWeightedHomogeneous w (MvPolynomial.C r) 0
Constant polynomials are weighted homogeneous of degree 0.
theorem MvPolynomial.isWeightedHomogeneous_zero E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M) (m : M),
MvPolynomial.IsWeightedHomogeneous w 0 m
0 is weighted homogeneous of any degree.
theorem MvPolynomial.isWeightedHomogeneous_one E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M),
MvPolynomial.IsWeightedHomogeneous w 1 0
1 is weighted homogeneous of degree 0.
theorem MvPolynomial.isWeightedHomogeneous_of_isEmpty E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] [IsEmpty σ]
(w : σ → M) (f : MvPolynomial σ R), MvPolynomial.IsWeightedHomogeneous w f 0
theorem MvPolynomial.isWeightedHomogeneous_X E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M) (i : σ),
MvPolynomial.IsWeightedHomogeneous w (MvPolynomial.X i) (w i)
An indeterminate i : σ is weighted homogeneous of degree w i.
theorem MvPolynomial.IsWeightedHomogeneous.coeff_eq_zero E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {φ : MvPolynomial σ R}
{n : M} {w : σ → M},
MvPolynomial.IsWeightedHomogeneous w φ n → ∀ (d : σ →₀ ℕ), (Finsupp.weight w) d ≠ n → φ.coeff d = 0
The weighted degree of a weighted homogeneous polynomial controls its support.
theorem MvPolynomial.IsWeightedHomogeneous.inj_right E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {φ : MvPolynomial σ R}
{m n : M} {w : σ → M},
φ ≠ 0 → MvPolynomial.IsWeightedHomogeneous w φ m → MvPolynomial.IsWeightedHomogeneous w φ n → m = n
The weighted degree of a nonzero weighted homogeneous polynomial is well-defined.
theorem MvPolynomial.IsWeightedHomogeneous.add E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
{φ ψ : MvPolynomial σ R} {n : M} {w : σ → M},
MvPolynomial.IsWeightedHomogeneous w φ n →
MvPolynomial.IsWeightedHomogeneous w ψ n → MvPolynomial.IsWeightedHomogeneous w (φ + ψ) n
The sum of two weighted homogeneous polynomials of degree n is weighted homogeneous of
weighted degree n.
theorem MvPolynomial.IsWeightedHomogeneous.neg E1 #
∀ {M : Type u_2} {σ : Type u_3} [inst : AddCommMonoid M] {n : M} {R : Type u_4} [inst_1 : CommRing R] {w : σ → M}
{φ : MvPolynomial σ R}, MvPolynomial.IsWeightedHomogeneous w φ n → MvPolynomial.IsWeightedHomogeneous w (-φ) n
The negation of a weighted homogeneous polynomial of degree n is weighted homogeneous
of weighted degree n.
theorem MvPolynomial.IsWeightedHomogeneous.sub E1 #
∀ {M : Type u_2} {σ : Type u_3} [inst : AddCommMonoid M] {n : M} {R : Type u_4} [inst_1 : CommRing R] {w : σ → M}
{φ ψ : MvPolynomial σ R},
MvPolynomial.IsWeightedHomogeneous w φ n →
MvPolynomial.IsWeightedHomogeneous w ψ n → MvPolynomial.IsWeightedHomogeneous w (φ - ψ) n
The difference of two weighted homogeneous polynomials of degree n is weighted homogeneous
of weighted degree n.
theorem MvPolynomial.IsWeightedHomogeneous.sum E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {ι : Type u_4}
(s : Finset ι) (φ : ι → MvPolynomial σ R) (n : M) {w : σ → M},
(∀ i ∈ s, MvPolynomial.IsWeightedHomogeneous w (φ i) n) → MvPolynomial.IsWeightedHomogeneous w (∑ i ∈ s, φ i) n
The sum of weighted homogeneous polynomials of degree n is weighted homogeneous of
weighted degree n.
theorem MvPolynomial.IsWeightedHomogeneous.mul E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
{φ ψ : MvPolynomial σ R} {m n : M} {w : σ → M},
MvPolynomial.IsWeightedHomogeneous w φ m →
MvPolynomial.IsWeightedHomogeneous w ψ n → MvPolynomial.IsWeightedHomogeneous w (φ * ψ) (m + n)
The product of weighted homogeneous polynomials of weighted degrees m and n is weighted
homogeneous of weighted degree m + n.
theorem MvPolynomial.IsWeightedHomogeneous.C_mul E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {φ : MvPolynomial σ R}
{m : M} {w : σ → M},
MvPolynomial.IsWeightedHomogeneous w φ m → ∀ (r : R), MvPolynomial.IsWeightedHomogeneous w (MvPolynomial.C r * φ) m
theorem MvPolynomial.IsWeightedHomogeneous.pow E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {φ : MvPolynomial σ R}
{m : M} {w : σ → M},
MvPolynomial.IsWeightedHomogeneous w φ m → ∀ (n : ℕ), MvPolynomial.IsWeightedHomogeneous w (φ ^ n) (n • m)
theorem MvPolynomial.IsWeightedHomogeneous.prod E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {ι : Type u_4}
(s : Finset ι) (φ : ι → MvPolynomial σ R) (n : ι → M) {w : σ → M},
(∀ i ∈ s, MvPolynomial.IsWeightedHomogeneous w (φ i) (n i)) →
MvPolynomial.IsWeightedHomogeneous w (∏ i ∈ s, φ i) (∑ i ∈ s, n i)
A product of weighted homogeneous polynomials is weighted homogeneous, with weighted degree equal to the sum of the weighted degrees.
theorem MvPolynomial.IsWeightedHomogeneous.weighted_total_degree E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {φ : MvPolynomial σ R}
{n : M} [inst_2 : SemilatticeSup M] {w : σ → M},
MvPolynomial.IsWeightedHomogeneous w φ n → φ ≠ 0 → MvPolynomial.weightedTotalDegree' w φ = ↑n
A nonzero weighted-homogeneous polynomial of weighted degree n has weighted total degree
n.
theorem MvPolynomial.IsWeightedHomogeneous.induction_on E2 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M} {m : M}
{motive : (p : MvPolynomial σ R) → MvPolynomial.IsWeightedHomogeneous w p m → Prop},
motive 0 ⋯ →
(∀ (p q : MvPolynomial σ R) (hp : MvPolynomial.IsWeightedHomogeneous w p m)
(hq : MvPolynomial.IsWeightedHomogeneous w q m), motive p hp → motive q hq → motive (p + q) ⋯) →
(∀ (d : σ →₀ ℕ) (r : R) (hr : (Finsupp.weight w) d = m), motive ((MvPolynomial.monomial d) r) ⋯) →
∀ {p : MvPolynomial σ R} (hp : MvPolynomial.IsWeightedHomogeneous w p m), motive p hp
Induction principle for weighted homogeneous polynomials.
theorem MvPolynomial.WeightedHomogeneousSubmodule.gradedMonoid E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M},
SetLike.GradedMonoid (MvPolynomial.weightedHomogeneousSubmodule R w)
The weighted homogeneous submodules form a graded monoid.
def MvPolynomial.weightedHomogeneousComponent E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] → {σ : Type u_3} → [AddCommMonoid M] → (σ → M) → M → MvPolynomial σ R →ₗ[R] MvPolynomial σ R
weightedHomogeneousComponent w n φ is the part of φ that is weighted homogeneous of
weighted degree n, with respect to the weights w.
See sum_weightedHomogeneousComponent for the statement that φ is equal to the sum
of all its weighted homogeneous components.
theorem MvPolynomial.coeff_weightedHomogeneousComponent E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M} (n : M)
(φ : MvPolynomial σ R) [inst_2 : DecidableEq M] (d : σ →₀ ℕ),
((MvPolynomial.weightedHomogeneousComponent w n) φ).coeff d = if (Finsupp.weight w) d = n then φ.coeff d else 0
theorem MvPolynomial.weightedHomogeneousComponent_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M} (n : M)
(φ : MvPolynomial σ R) [inst_2 : DecidableEq M],
(MvPolynomial.weightedHomogeneousComponent w n) φ =
∑ d ∈ φ.support with (Finsupp.weight w) d = n, (MvPolynomial.monomial d) (φ.coeff d)
theorem MvPolynomial.weightedHomogeneousComponent_isWeightedHomogeneous E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M} (n : M)
(φ : MvPolynomial σ R), MvPolynomial.IsWeightedHomogeneous w ((MvPolynomial.weightedHomogeneousComponent w n) φ) n
The n weighted homogeneous component of a polynomial is weighted homogeneous of
weighted degree n.
theorem MvPolynomial.weightedHomogeneousComponent_mem E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M)
(φ : MvPolynomial σ R) (m : M),
(MvPolynomial.weightedHomogeneousComponent w m) φ ∈ MvPolynomial.weightedHomogeneousSubmodule R w m
theorem MvPolynomial.weightedHomogeneousComponent_C_mul E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M}
(φ : MvPolynomial σ R) (n : M) (r : R),
(MvPolynomial.weightedHomogeneousComponent w n) (MvPolynomial.C r * φ) =
MvPolynomial.C r * (MvPolynomial.weightedHomogeneousComponent w n) φ
theorem MvPolynomial.weightedHomogeneousComponent_eq_zero' E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M} (n : M)
(φ : MvPolynomial σ R),
(∀ d ∈ φ.support, (Finsupp.weight w) d ≠ n) → (MvPolynomial.weightedHomogeneousComponent w n) φ = 0
theorem MvPolynomial.weightedHomogeneousComponent_eq_zero E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M} (n : M)
(φ : MvPolynomial σ R) [inst_2 : SemilatticeSup M] [inst_3 : OrderBot M],
MvPolynomial.weightedTotalDegree w φ < n → (MvPolynomial.weightedHomogeneousComponent w n) φ = 0
theorem MvPolynomial.weightedHomogeneousComponent_finsupp E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M}
(φ : MvPolynomial σ R), Function.HasFiniteSupport fun m ↦ (MvPolynomial.weightedHomogeneousComponent w m) φ
theorem MvPolynomial.sum_weightedHomogeneousComponent E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M)
(φ : MvPolynomial σ R), ∑ᶠ (m : M), (MvPolynomial.weightedHomogeneousComponent w m) φ = φ
Every polynomial is the sum of its weighted homogeneous components.
theorem MvPolynomial.finsum_weightedHomogeneousComponent E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M)
(φ : MvPolynomial σ R), ∑ᶠ (m : M), (MvPolynomial.weightedHomogeneousComponent w m) φ = φ
theorem MvPolynomial.IsWeightedHomogeneous.weightedHomogeneousComponent_same E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M} {m : M}
{p : MvPolynomial σ R},
MvPolynomial.IsWeightedHomogeneous w p m → (MvPolynomial.weightedHomogeneousComponent w m) p = p
theorem MvPolynomial.IsWeightedHomogeneous.weightedHomogeneousComponent_ne E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M} {m : M}
(n : M) {p : MvPolynomial σ R},
MvPolynomial.IsWeightedHomogeneous w p m → n ≠ m → (MvPolynomial.weightedHomogeneousComponent w n) p = 0
theorem MvPolynomial.weightedHomogeneousComponent_of_mem E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M}
[inst_2 : DecidableEq M] {m n : M} {p : MvPolynomial σ R},
p ∈ MvPolynomial.weightedHomogeneousSubmodule R w n →
(MvPolynomial.weightedHomogeneousComponent w m) p = if m = n then p else 0
The weighted homogeneous components of a weighted homogeneous polynomial.
theorem MvPolynomial.weightedHomogeneousComponent_eq_self E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M} {n : M}
{p : MvPolynomial σ R},
MvPolynomial.IsWeightedHomogeneous w p n → (MvPolynomial.weightedHomogeneousComponent w n) p = p
theorem MvPolynomial.support_weightedHomogeneousComponent E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] {w : σ → M}
[inst_2 : DecidableEq M] (n : M) (p : MvPolynomial σ R),
((MvPolynomial.weightedHomogeneousComponent w n) p).support = {c ∈ p.support | (Finsupp.weight w) c = n}
theorem MvPolynomial.DirectSum.coeLinearMap_eq_dfinsuppSum E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M)
[inst_2 : DecidableEq σ] [inst_3 : DecidableEq R] [inst_4 : DecidableEq M]
(x : DirectSum M fun i ↦ ↥(MvPolynomial.weightedHomogeneousSubmodule R w i)),
(DirectSum.coeLinearMap fun i ↦ MvPolynomial.weightedHomogeneousSubmodule R w i) x = DFinsupp.sum x fun x x_1 ↦ ↑x_1
theorem MvPolynomial.DirectSum.coeAddMonoidHom_eq_support_sum E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M)
[inst_2 : DecidableEq σ] [inst_3 : DecidableEq R] [inst_4 : DecidableEq M]
(x : DirectSum M fun i ↦ ↥(MvPolynomial.weightedHomogeneousSubmodule R w i)),
(DirectSum.coeAddMonoidHom fun i ↦ MvPolynomial.weightedHomogeneousSubmodule R w i) x =
DFinsupp.sum x fun x x_1 ↦ ↑x_1
theorem MvPolynomial.DirectSum.coeLinearMap_eq_finsum E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M)
[inst_2 : DecidableEq M] (x : DirectSum M fun i ↦ ↥(MvPolynomial.weightedHomogeneousSubmodule R w i)),
(DirectSum.coeLinearMap fun i ↦ MvPolynomial.weightedHomogeneousSubmodule R w i) x = ∑ᶠ (m : M), ↑(x m)
theorem MvPolynomial.weightedHomogeneousComponent_directSum E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M] (w : σ → M)
[inst_2 : DecidableEq M] (x : DirectSum M fun i ↦ ↥(MvPolynomial.weightedHomogeneousSubmodule R w i)) (m : M),
(MvPolynomial.weightedHomogeneousComponent w m)
((DirectSum.coeLinearMap fun i ↦ MvPolynomial.weightedHomogeneousSubmodule R w i) x) =
↑(x m)
theorem MvPolynomial.weightedHomogeneousComponent_zero E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : PartialOrder M] {w : σ → M} (φ : MvPolynomial σ R) [CanonicallyOrderedAdd M] [HasUniqueDiv M],
(∀ (i : σ), w i ≠ 0) → (MvPolynomial.weightedHomogeneousComponent w 0) φ = MvPolynomial.C (φ.coeff 0)
If M is canonically ordered, then the weightedHomogeneousComponent of weighted degree 0
of a polynomial is its constant coefficient.
def MvPolynomial.NonTorsionWeight E1 #
{M : Type u_2} → {σ : Type u_3} → [AddCommMonoid M] → (σ → M) → Prop
A weight function is nontorsion if its values are not torsion.
theorem MvPolynomial.nonTorsionWeight_of E1 #
∀ {M : Type u_2} {σ : Type u_3} [inst : AddCommMonoid M] {w : σ → M} [HasUniqueDiv M],
(∀ (i : σ), w i ≠ 0) → MvPolynomial.NonTorsionWeight w
theorem MvPolynomial.weightedDegree_eq_zero_iff E0 #
∀ {M : Type u_2} {σ : Type u_3} [inst : AddCommMonoid M] [inst_1 : PartialOrder M] {w : σ → M}
[CanonicallyOrderedAdd M],
MvPolynomial.NonTorsionWeight w → ∀ {m : σ →₀ ℕ}, (Finsupp.weight w) m = 0 ↔ ∀ (x : σ), m x = 0
If w is a nontorsion weight function, then the finitely supported function m : σ →₀ ℕ
has weighted degree zero if and only if ∀ x : σ, m x = 0.
theorem MvPolynomial.isWeightedHomogeneous_zero_iff_weightedTotalDegree_eq_zero E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : LinearOrder M] [inst_3 : OrderBot M] [CanonicallyOrderedAdd M] {w : σ → M} {p : MvPolynomial σ R},
MvPolynomial.IsWeightedHomogeneous w p 0 ↔ MvPolynomial.weightedTotalDegree w p = 0
A multivariate polynomial is weighted homogeneous of weighted degree zero if and only if its weighted total degree is equal to zero.
theorem MvPolynomial.weightedTotalDegree_eq_zero_iff E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : LinearOrder M] [inst_3 : OrderBot M] [CanonicallyOrderedAdd M] {w : σ → M},
MvPolynomial.NonTorsionWeight w →
∀ (p : MvPolynomial σ R), MvPolynomial.weightedTotalDegree w p = 0 ↔ ∀ m ∈ p.support, ∀ (x : σ), m x = 0
If w is a nontorsion weight function, then a multivariate polynomial has weighted total
degree zero if and only if for every m ∈ p.support and x : σ, m x = 0.
theorem MvPolynomial.weightedHomogeneousComponent_eq_zero_of_notMem E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} (w : σ → M) [inst_1 : AddCommMonoid M]
[inst_2 : DecidableEq M] (φ : MvPolynomial σ R),
∀ i ∉ Finset.image (⇑(Finsupp.weight w)) φ.support, (MvPolynomial.weightedHomogeneousComponent w i) φ = 0
def MvPolynomial.decompose' E1 #
(R : Type u_1) →
{M : Type u_2} →
[inst : CommSemiring R] →
{σ : Type u_3} →
(w : σ → M) →
[inst_1 : AddCommMonoid M] →
[DecidableEq M] → MvPolynomial σ R → DirectSum M fun i ↦ ↥(MvPolynomial.weightedHomogeneousSubmodule R w i)
The decompose' argument of weightedDecomposition.
theorem MvPolynomial.decompose'_apply E0 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} (w : σ → M) [inst_1 : AddCommMonoid M]
[inst_2 : DecidableEq M] (φ : MvPolynomial σ R) (m : M),
↑((MvPolynomial.decompose' R w φ) m) = (MvPolynomial.weightedHomogeneousComponent w m) φ
def MvPolynomial.weightedDecomposition E1 #
(R : Type u_1) →
{M : Type u_2} →
[inst : CommSemiring R] →
{σ : Type u_3} →
(w : σ → M) →
[inst_1 : AddCommMonoid M] →
[inst_2 : DecidableEq M] → DirectSum.Decomposition (MvPolynomial.weightedHomogeneousSubmodule R w)
Given a weight w, the decomposition of MvPolynomial σ R into weighted homogeneous
submodules
def MvPolynomial.weightedGradedAlgebra E1 #
(R : Type u_1) →
{M : Type u_2} →
[inst : CommSemiring R] →
{σ : Type u_3} →
(w : σ → M) →
[inst_1 : AddCommMonoid M] →
[inst_2 : DecidableEq M] → GradedAlgebra (MvPolynomial.weightedHomogeneousSubmodule R w)
Given a weight, MvPolynomial as a graded algebra
theorem MvPolynomial.weightedDecomposition.decompose'_eq E0 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} (w : σ → M) [inst_1 : AddCommMonoid M]
[inst_2 : DecidableEq M],
DirectSum.Decomposition.decompose' = fun φ ↦
(DirectSum.mk (fun i ↦ ↥(MvPolynomial.weightedHomogeneousSubmodule R w i))
(Finset.image (⇑(Finsupp.weight w)) φ.support))
fun m ↦ ⟨(MvPolynomial.weightedHomogeneousComponent w ↑m) φ, ⋯⟩
theorem MvPolynomial.weightedDecomposition.decompose'_apply E0 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} (w : σ → M) [inst_1 : AddCommMonoid M]
[inst_2 : DecidableEq M] (φ : MvPolynomial σ R) (m : M),
↑((DirectSum.Decomposition.decompose' φ) m) = (MvPolynomial.weightedHomogeneousComponent w m) φ
theorem MvPolynomial.mem_iff_weightedHomogeneousComponent_mem E0 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} (w : σ → M) [inst_1 : AddCommMonoid M]
[inst_2 : DecidableEq M] {I : Ideal (MvPolynomial σ R)},
Ideal.IsHomogeneous (MvPolynomial.weightedHomogeneousSubmodule R w) I →
∀ (p : MvPolynomial σ R), p ∈ I ↔ ∀ (m : M), (MvPolynomial.weightedHomogeneousComponent w m) p ∈ I
theorem MvPolynomial.weightedHomogeneousComponent_mem_of_mem E1 #
∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} (w : σ → M) [inst_1 : AddCommMonoid M]
[inst_2 : DecidableEq M] {I : Ideal (MvPolynomial σ R)},
Ideal.IsHomogeneous (MvPolynomial.weightedHomogeneousSubmodule R w) I →
∀ {p : MvPolynomial σ R}, p ∈ I → ∀ (m : M), (MvPolynomial.weightedHomogeneousComponent w m) p ∈ I
theorem MvPolynomial.weightedHomogeneousComponent_mul_of_isWeightedHomogeneous_right E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] {σ : Type u_3} {w : σ → M} [inst_1 : AddCommMonoid M]
[inst_2 : PartialOrder M] [CanonicallyOrderedAdd M] [inst_4 : Sub M] [OrderedSub M] [AddLeftReflectLE M] {i n : M}
{f q : MvPolynomial σ R},
MvPolynomial.IsWeightedHomogeneous w q i →
i ≤ n →
(MvPolynomial.weightedHomogeneousComponent w n) (f * q) =
(MvPolynomial.weightedHomogeneousComponent w (n - i)) f * q