The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.MvPolynomial.Homogeneous
79 declarations. Mathlib docs · Source
Homogeneous polynomials
A multivariate polynomial φ is homogeneous of degree n
if all monomials occurring in φ have degree n.
Main definitions/lemmas
IsHomogeneous φ n: a predicate that asserts thatφis homogeneous of degreen.homogeneousSubmodule σ R n: the submodule of homogeneous polynomials of degreen.homogeneousComponent n: the additive morphism that projects polynomials onto their summand that is homogeneous of degreen.sum_homogeneousComponent: every polynomial is the sum of its homogeneous components.
Library notes
- The
MvPolynomial.weightedGradedAlgebrainstance provides aGradedAlgebrastructure, yielding the isomorphismMvPolynomial σ R ≃ₐ[R] ⨁ m, weightedHomogeneousSubmodule R w mfor a weight functionw. - The special case with
w = 1of the above yields the algebra isomorphismMvPolynomial σ R ≃ₐ[R] ⨁ i, homogeneousSubmodule σ R i.
def MvPolynomial.IsHomogeneous E1 #
{σ : Type u_1} → {R : Type u_3} → [inst : CommSemiring R] → MvPolynomial σ R → ℕ → Prop
A multivariate polynomial φ is homogeneous of degree n
if all monomials occurring in φ have degree n.
theorem MvPolynomial.weightedTotalDegree_singleton E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] [inst_1 : DecidableEq σ] (p : MvPolynomial σ R),
MvPolynomial.weightedTotalDegree (fun i ↦ {i}) p = p.degrees
The degrees of a polynomial p is a special case of the weightedTotalDegree of p where
the weights are singletons containing each variable.
theorem MvPolynomial.weightedTotalDegree_one E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (φ : MvPolynomial σ R),
MvPolynomial.weightedTotalDegree 1 φ = φ.totalDegree
The totalDegree of a polynomial p is a special case of the weightedTotalDegree of p
where all of the weights are 1.
theorem MvPolynomial.weightedTotalDegree_piSingle E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] [inst_1 : DecidableEq σ] (i : σ) (p : MvPolynomial σ R),
MvPolynomial.weightedTotalDegree (Pi.single i 1) p = MvPolynomial.degreeOf i p
The degreeOf a variable i for a polynomial p is a special case of the
weightedTotalDegree of p where i has the only nonzero weight and that weight is 1.
theorem MvPolynomial.weightedTotalDegree_rename_of_injective E1 #
∀ {R : Type u_3} [inst : CommSemiring R] {σ : Type u_5} {τ : Type u_6} {e : σ → τ} {w : τ → ℕ} {P : MvPolynomial σ R},
Function.Injective e →
MvPolynomial.weightedTotalDegree w ((MvPolynomial.rename e) P) = MvPolynomial.weightedTotalDegree (w ∘ e) P
def MvPolynomial.homogeneousSubmodule E1 #
(σ : Type u_1) → (R : Type u_3) → [inst : CommSemiring R] → ℕ → Submodule R (MvPolynomial σ R)
The submodule of homogeneous MvPolynomials of degree n.
theorem MvPolynomial.weightedHomogeneousSubmodule_one E0 #
∀ (σ : Type u_1) (R : Type u_3) [inst : CommSemiring R] (n : ℕ),
MvPolynomial.weightedHomogeneousSubmodule R 1 n = MvPolynomial.homogeneousSubmodule σ R n
theorem MvPolynomial.mem_homogeneousSubmodule E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (n : ℕ) (p : MvPolynomial σ R),
p ∈ MvPolynomial.homogeneousSubmodule σ R n ↔ p.IsHomogeneous n
theorem MvPolynomial.homogeneousSubmodule_eq_finsupp_supported E1 #
∀ (σ : Type u_1) (R : Type u_3) [inst : CommSemiring R] (n : ℕ),
MvPolynomial.homogeneousSubmodule σ R n = AddMonoidAlgebra.supported R R {d | Finsupp.degree d = n}
While equal, the former has a convenient definitional reduction.
theorem MvPolynomial.homogeneousSubmodule_fg E1 #
∀ (σ : Type u_1) (R : Type u_3) [inst : CommSemiring R] [Finite σ] (n : ℕ), (MvPolynomial.homogeneousSubmodule σ R n).FG
theorem MvPolynomial.homogeneousSubmodule_mul E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (m n : ℕ),
MvPolynomial.homogeneousSubmodule σ R m * MvPolynomial.homogeneousSubmodule σ R n ≤
MvPolynomial.homogeneousSubmodule σ R (m + n)
theorem MvPolynomial.homogeneousSubmodule_one_eq_span_X E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R],
MvPolynomial.homogeneousSubmodule σ R 1 = Submodule.span R (Set.range MvPolynomial.X)
theorem MvPolynomial.isHomogeneous_monomial E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {d : σ →₀ ℕ} (r : R) {n : ℕ},
Finsupp.degree d = n → ((MvPolynomial.monomial d) r).IsHomogeneous n
theorem MvPolynomial.totalDegree_eq_zero_iff E0 #
∀ (σ : Type u_1) {R : Type u_3} [inst : CommSemiring R] (p : MvPolynomial σ R),
p.totalDegree = 0 ↔ ∀ m ∈ p.support, ∀ (x : σ), m x = 0
theorem MvPolynomial.totalDegree_zero_iff_isHomogeneous E1 #
∀ (σ : Type u_1) {R : Type u_3} [inst : CommSemiring R] {p : MvPolynomial σ R}, p.totalDegree = 0 ↔ p.IsHomogeneous 0
theorem MvPolynomial.isHomogeneous_of_totalDegree_zero E1 #
∀ (σ : Type u_1) {R : Type u_3} [inst : CommSemiring R] {p : MvPolynomial σ R}, p.totalDegree = 0 → p.IsHomogeneous 0
Alias of the forward direction of MvPolynomial.totalDegree_zero_iff_isHomogeneous.
theorem MvPolynomial.homogeneousSubmodule_zero E0 #
∀ (σ : Type u_1) {R : Type u_3} [inst : CommSemiring R], MvPolynomial.homogeneousSubmodule σ R 0 = 1
theorem MvPolynomial.isHomogeneous_C E1 #
∀ (σ : Type u_1) {R : Type u_3} [inst : CommSemiring R] (r : R), (MvPolynomial.C r).IsHomogeneous 0
theorem MvPolynomial.isHomogeneous_zero E1 #
∀ (σ : Type u_1) (R : Type u_3) [inst : CommSemiring R] (n : ℕ), MvPolynomial.IsHomogeneous 0 n
theorem MvPolynomial.isHomogeneous_one E1 #
∀ (σ : Type u_1) (R : Type u_3) [inst : CommSemiring R], MvPolynomial.IsHomogeneous 1 0
theorem MvPolynomial.isHomogeneous_of_isEmpty E1 #
∀ (σ : Type u_1) (R : Type u_3) [inst : CommSemiring R] [IsEmpty σ] (f : MvPolynomial σ R), f.IsHomogeneous 0
theorem MvPolynomial.isHomogeneous_X E1 #
∀ {σ : Type u_1} (R : Type u_3) [inst : CommSemiring R] (i : σ), (MvPolynomial.X i).IsHomogeneous 1
theorem MvPolynomial.monomial_mem_homogeneousSubmodule_pow_degree E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (r : R) (s : σ →₀ ℕ),
(MvPolynomial.monomial s) r ∈ MvPolynomial.homogeneousSubmodule σ R 1 ^ Finsupp.degree s
theorem MvPolynomial.homogeneousSubmodule_one_pow E0 #
∀ {σ : Type u_1} (R : Type u_3) [inst : CommSemiring R] (n : ℕ),
MvPolynomial.homogeneousSubmodule σ R 1 ^ n = MvPolynomial.homogeneousSubmodule σ R n
theorem MvPolynomial.IsHomogeneous.coeff_eq_zero E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {n : ℕ},
φ.IsHomogeneous n → ∀ {d : σ →₀ ℕ}, Finsupp.degree d ≠ n → φ.coeff d = 0
theorem MvPolynomial.IsHomogeneous.inj_right E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {m n : ℕ},
φ.IsHomogeneous m → φ.IsHomogeneous n → φ ≠ 0 → m = n
theorem MvPolynomial.IsHomogeneous.add E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ ψ : MvPolynomial σ R} {n : ℕ},
φ.IsHomogeneous n → ψ.IsHomogeneous n → (φ + ψ).IsHomogeneous n
theorem MvPolynomial.IsHomogeneous.sum E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {ι : Type u_5} (s : Finset ι) (φ : ι → MvPolynomial σ R)
(n : ℕ), (∀ i ∈ s, (φ i).IsHomogeneous n) → (∑ i ∈ s, φ i).IsHomogeneous n
theorem MvPolynomial.IsHomogeneous.mul E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ ψ : MvPolynomial σ R} {m n : ℕ},
φ.IsHomogeneous m → ψ.IsHomogeneous n → (φ * ψ).IsHomogeneous (m + n)
theorem MvPolynomial.IsHomogeneous.prod E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {ι : Type u_5} (s : Finset ι) (φ : ι → MvPolynomial σ R)
(n : ι → ℕ), (∀ i ∈ s, (φ i).IsHomogeneous (n i)) → (∏ i ∈ s, φ i).IsHomogeneous (∑ i ∈ s, n i)
theorem MvPolynomial.IsHomogeneous.C_mul E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {m : ℕ},
φ.IsHomogeneous m → ∀ (r : R), (MvPolynomial.C r * φ).IsHomogeneous m
theorem MvPolynomial.isHomogeneous_C_mul_X E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (r : R) (i : σ),
(MvPolynomial.C r * MvPolynomial.X i).IsHomogeneous 1
theorem MvPolynomial.IsHomogeneous.pow E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {m : ℕ},
φ.IsHomogeneous m → ∀ (n : ℕ), (φ ^ n).IsHomogeneous (m * n)
theorem MvPolynomial.isHomogeneous_X_pow E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (i : σ) (n : ℕ), (MvPolynomial.X i ^ n).IsHomogeneous n
theorem MvPolynomial.isHomogeneous_C_mul_X_pow E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (r : R) (i : σ) (n : ℕ),
(MvPolynomial.C r * MvPolynomial.X i ^ n).IsHomogeneous n
theorem MvPolynomial.IsHomogeneous.eval₂ E1 #
∀ {σ : Type u_1} {τ : Type u_2} {R : Type u_3} {S : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{φ : MvPolynomial σ R} {m n : ℕ},
φ.IsHomogeneous m →
∀ (f : R →+* MvPolynomial τ S) (g : σ → MvPolynomial τ S),
(∀ (r : R), (f r).IsHomogeneous 0) →
(∀ (i : σ), (g i).IsHomogeneous n) → (MvPolynomial.eval₂ f g φ).IsHomogeneous (n * m)
theorem MvPolynomial.IsHomogeneous.map E1 #
∀ {σ : Type u_1} {R : Type u_3} {S : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S] {φ : MvPolynomial σ R}
{n : ℕ}, φ.IsHomogeneous n → ∀ (f : R →+* S), ((MvPolynomial.map f) φ).IsHomogeneous n
theorem MvPolynomial.IsHomogeneous.of_map E1 #
∀ {σ : Type u_1} {R : Type u_3} {S : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S] {φ : MvPolynomial σ R}
{n : ℕ} {f : R →+* S}, Function.Injective ⇑f → ((MvPolynomial.map f) φ).IsHomogeneous n → φ.IsHomogeneous n
theorem MvPolynomial.IsHomogeneous.aeval E1 #
∀ {σ : Type u_1} {τ : Type u_2} {R : Type u_3} {S : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S]
{φ : MvPolynomial σ R} {m n : ℕ} [inst_2 : Algebra R S],
φ.IsHomogeneous m →
∀ (g : σ → MvPolynomial τ S), (∀ (i : σ), (g i).IsHomogeneous n) → ((MvPolynomial.aeval g) φ).IsHomogeneous (n * m)
theorem MvPolynomial.IsHomogeneous.neg E1 #
∀ {R : Type u_5} {σ : Type u_6} [inst : CommRing R] {φ : MvPolynomial σ R} {n : ℕ},
φ.IsHomogeneous n → (-φ).IsHomogeneous n
theorem MvPolynomial.IsHomogeneous.sub E1 #
∀ {R : Type u_5} {σ : Type u_6} [inst : CommRing R] {φ ψ : MvPolynomial σ R} {n : ℕ},
φ.IsHomogeneous n → ψ.IsHomogeneous n → (φ - ψ).IsHomogeneous n
theorem MvPolynomial.IsHomogeneous.totalDegree_le E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {n : ℕ},
φ.IsHomogeneous n → φ.totalDegree ≤ n
The homogeneous degree bounds the total degree.
See also MvPolynomial.IsHomogeneous.totalDegree when φ is non-zero.
theorem MvPolynomial.IsHomogeneous.totalDegree E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {n : ℕ},
φ.IsHomogeneous n → φ ≠ 0 → φ.totalDegree = n
theorem MvPolynomial.IsHomogeneous.degree_eq_sum_deg_support E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {n : ℕ},
φ.IsHomogeneous n → ∀ {s : σ →₀ ℕ}, s ∈ φ.support → n = ∑ i ∈ s.support, s i
theorem MvPolynomial.IsHomogeneous.eval₂_smul E1 #
∀ {σ : Type u_1} {R : Type u_3} {S : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S] {F : MvPolynomial σ R}
{d : ℕ},
F.IsHomogeneous d →
∀ (f : R →+* S) (c : R) (p : σ → S), MvPolynomial.eval₂ f (f c • p) F = f (c ^ d) * MvPolynomial.eval₂ f p F
Scaling the input of a degree d homogeneous polynomial by a factor of c,
scales the output by a factor of c ^ d.
theorem MvPolynomial.IsHomogeneous.aeval_smul E1 #
∀ {σ : Type u_1} {R : Type u_3} {S : Type u_4} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S]
{F : MvPolynomial σ R} {d : ℕ},
F.IsHomogeneous d → ∀ (c : R) (p : σ → S), (MvPolynomial.aeval (c • p)) F = c ^ d • (MvPolynomial.aeval p) F
Scaling the input of a degree d homogeneous polynomial by a factor of c,
scales the output by a factor of c ^ d.
theorem MvPolynomial.IsHomogeneous.eval_smul E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {F : MvPolynomial σ R} {d : ℕ},
F.IsHomogeneous d → ∀ (c : R) (p : σ → R), (MvPolynomial.eval (c • p)) F = c ^ d * (MvPolynomial.eval p) F
Scaling the input of a degree d homogeneous polynomial by a factor of c,
scales the output by a factor of c ^ d.
theorem MvPolynomial.IsHomogeneous.rename_isHomogeneous E1 #
∀ {σ : Type u_1} {τ : Type u_2} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {n : ℕ} {f : σ → τ},
φ.IsHomogeneous n → ((MvPolynomial.rename f) φ).IsHomogeneous n
theorem MvPolynomial.IsHomogeneous.rename_isHomogeneous_iff E0 #
∀ {σ : Type u_1} {τ : Type u_2} {R : Type u_3} [inst : CommSemiring R] {φ : MvPolynomial σ R} {n : ℕ} {f : σ → τ},
Function.Injective f → (((MvPolynomial.rename f) φ).IsHomogeneous n ↔ φ.IsHomogeneous n)
theorem MvPolynomial.IsHomogeneous.finSuccEquiv_coeff_isHomogeneous E1 #
∀ {R : Type u_3} [inst : CommSemiring R] {N : ℕ} {φ : MvPolynomial (Fin (N + 1)) R} {n : ℕ},
φ.IsHomogeneous n → ∀ (i j : ℕ), i + j = n → (((MvPolynomial.finSuccEquiv R N) φ).coeff i).IsHomogeneous j
theorem MvPolynomial.IsHomogeneous.coeff_isHomogeneous_of_optionEquivLeft_symm E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {n : ℕ} [hσ : Finite σ] {p : Polynomial (MvPolynomial σ R)},
((MvPolynomial.optionEquivLeft R σ).symm p).IsHomogeneous n → ∀ (i j : ℕ), i + j = n → (p.coeff i).IsHomogeneous j
theorem MvPolynomial.IsHomogeneous.funext_of_le_card E1 #
∀ {R : Type u_5} {σ : Type u_6} [inst : CommRing R] [IsDomain R] {F G : MvPolynomial σ R} {n : ℕ},
F.IsHomogeneous n →
G.IsHomogeneous n → (∀ (r : σ → R), (MvPolynomial.eval r) F = (MvPolynomial.eval r) G) → ↑n ≤ Cardinal.mk R → F = G
See MvPolynomial.IsHomogeneous.funext
for a version that assumes Infinite R.
theorem MvPolynomial.IsHomogeneous.funext E1 #
∀ {R : Type u_5} {σ : Type u_6} [inst : CommRing R] [IsDomain R] [Infinite R] {F G : MvPolynomial σ R} {n : ℕ},
F.IsHomogeneous n → G.IsHomogeneous n → (∀ (r : σ → R), (MvPolynomial.eval r) F = (MvPolynomial.eval r) G) → F = G
See MvPolynomial.IsHomogeneous.funext_of_le_card
for a version that assumes n ≤ #R.
instance MvPolynomial.IsHomogeneous.HomogeneousSubmodule.gcommSemiring E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R], SetLike.GradedMonoid (MvPolynomial.homogeneousSubmodule σ R)
The homogeneous submodules form a graded ring. This instance is used by DirectSum.commSemiring
and DirectSum.algebra.
def MvPolynomial.homogeneousComponent E1 #
{σ : Type u_1} → {R : Type u_3} → [inst : CommSemiring R] → ℕ → MvPolynomial σ R →ₗ[R] MvPolynomial σ R
homogeneousComponent n φ is the part of φ that is homogeneous of degree n.
See sum_homogeneousComponent for the statement that φ is equal to the sum
of all its homogeneous components.
theorem MvPolynomial.homogeneousComponent_mem E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (n : ℕ) (φ : MvPolynomial σ R),
(MvPolynomial.homogeneousComponent n) φ ∈ MvPolynomial.homogeneousSubmodule σ R n
theorem MvPolynomial.coeff_homogeneousComponent E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (n : ℕ) (φ : MvPolynomial σ R) (d : σ →₀ ℕ),
((MvPolynomial.homogeneousComponent n) φ).coeff d = if Finsupp.degree d = n then φ.coeff d else 0
theorem MvPolynomial.homogeneousComponent_apply E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (n : ℕ) (φ : MvPolynomial σ R),
(MvPolynomial.homogeneousComponent n) φ =
∑ d ∈ φ.support with Finsupp.degree d = n, (MvPolynomial.monomial d) (φ.coeff d)
theorem MvPolynomial.homogeneousComponent_isHomogeneous E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (n : ℕ) (φ : MvPolynomial σ R),
((MvPolynomial.homogeneousComponent n) φ).IsHomogeneous n
theorem MvPolynomial.homogeneousComponent_zero E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (φ : MvPolynomial σ R),
(MvPolynomial.homogeneousComponent 0) φ = MvPolynomial.C (φ.coeff 0)
theorem MvPolynomial.homogeneousComponent_C_mul E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (φ : MvPolynomial σ R) (n : ℕ) (r : R),
(MvPolynomial.homogeneousComponent n) (MvPolynomial.C r * φ) =
MvPolynomial.C r * (MvPolynomial.homogeneousComponent n) φ
theorem MvPolynomial.homogeneousComponent_eq_zero' E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (n : ℕ) (φ : MvPolynomial σ R),
(∀ d ∈ φ.support, Finsupp.degree d ≠ n) → (MvPolynomial.homogeneousComponent n) φ = 0
theorem MvPolynomial.homogeneousComponent_eq_zero E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (n : ℕ) (φ : MvPolynomial σ R),
φ.totalDegree < n → (MvPolynomial.homogeneousComponent n) φ = 0
theorem MvPolynomial.sum_homogeneousComponent E3 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (φ : MvPolynomial σ R),
∑ i ∈ Finset.range (φ.totalDegree + 1), (MvPolynomial.homogeneousComponent i) φ = φ
theorem MvPolynomial.homogeneousComponent_of_mem E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {m n : ℕ} {p : MvPolynomial σ R},
p ∈ MvPolynomial.homogeneousSubmodule σ R n → (MvPolynomial.homogeneousComponent m) p = if m = n then p else 0
theorem MvPolynomial.homogeneousComponent_eq_self E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {n : ℕ} {p : MvPolynomial σ R},
p.IsHomogeneous n → (MvPolynomial.homogeneousComponent n) p = p
theorem MvPolynomial.support_homogeneousComponent E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (n : ℕ) (p : MvPolynomial σ R),
((MvPolynomial.homogeneousComponent n) p).support = {c ∈ p.support | Finsupp.degree c = n}
theorem MvPolynomial.rename_homogeneousComponent E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {τ : Type u_5} {φ : σ → τ} (n : ℕ) (p : MvPolynomial σ R),
(MvPolynomial.rename φ) ((MvPolynomial.homogeneousComponent n) p) =
(MvPolynomial.homogeneousComponent n) ((MvPolynomial.rename φ) p)
theorem MvPolynomial.HomogeneousSubmodule.gradedMonoid E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R], SetLike.GradedMonoid (MvPolynomial.homogeneousSubmodule σ R)
The homogeneous submodules form a graded ring.
This instance is used by DirectSum.commSemiring and DirectSum.algebra.
abbrev MvPolynomial.decomposition E1 #
{σ : Type u_1} →
{R : Type u_3} → [inst : CommSemiring R] → DirectSum.Decomposition (MvPolynomial.homogeneousSubmodule σ R)
The decomposition of MvPolynomial σ R into homogeneous submodules.
abbrev MvPolynomial.gradedAlgebra E1 #
{σ : Type u_1} → {R : Type u_3} → [inst : CommSemiring R] → GradedAlgebra (MvPolynomial.homogeneousSubmodule σ R)
MvPolynomial σ R as a graded algebra, graded by the degree.
We do not make this a global instance because one may want to consider a different
graded algebra structure on MvPolynomial σ R, induced by another weight function.
To make it a local instance, you may use
attribute [local instance] MvPolynomial.gradedAlgebra.
theorem MvPolynomial.decomposition.decompose'_apply E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (φ : MvPolynomial σ R) (i : ℕ),
↑((DirectSum.Decomposition.decompose' φ) i) = (MvPolynomial.homogeneousComponent i) φ
theorem MvPolynomial.decomposition.decompose'_eq E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R],
DirectSum.Decomposition.decompose' = fun φ ↦
(DirectSum.mk (fun i ↦ ↥(MvPolynomial.homogeneousSubmodule σ R i)) (Finset.image (⇑Finsupp.degree) φ.support))
fun m ↦ ⟨(MvPolynomial.homogeneousComponent ↑m) φ, ⋯⟩
theorem MvPolynomial.mem_iff_homogeneousComponent_mem E0 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {I : Ideal (MvPolynomial σ R)},
Ideal.IsHomogeneous (MvPolynomial.homogeneousSubmodule σ R) I →
∀ (p : MvPolynomial σ R), p ∈ I ↔ ∀ (n : ℕ), (MvPolynomial.homogeneousComponent n) p ∈ I
theorem MvPolynomial.homogeneousComponent_mem_of_mem E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {I : Ideal (MvPolynomial σ R)},
Ideal.IsHomogeneous (MvPolynomial.homogeneousSubmodule σ R) I →
∀ {p : MvPolynomial σ R}, p ∈ I → ∀ (n : ℕ), (MvPolynomial.homogeneousComponent n) p ∈ I
theorem Ideal.span_eq_map_homogeneousSubmodule E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommSemiring R] (x : ι → R),
Ideal.span (Set.range x) = Submodule.map (MvPolynomial.aeval x).toLinearMap (MvPolynomial.homogeneousSubmodule ι R 1)
Try to use the universal property of the span (e.g., Submodule.span_induction) instead of
this.
theorem Ideal.span_pow_eq_map_homogeneousSubmodule E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommSemiring R] (x : ι → R) (n : ℕ),
Ideal.span (Set.range x) ^ n =
Submodule.map (MvPolynomial.aeval x).toLinearMap (MvPolynomial.homogeneousSubmodule ι R n)
Try to use the universal property of the span (e.g., Submodule.span_induction) instead of
this.
theorem Ideal.mem_span_pow_iff_exists_isHomogeneous E0 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommSemiring R] {n : ℕ} (x : ι → R) (y : R),
y ∈ Ideal.span (Set.range x) ^ n ↔ ∃ p, p.IsHomogeneous n ∧ (MvPolynomial.eval x) p = y
Try to use the universal property of the span (e.g., Submodule.span_induction) instead of
this.
theorem Ideal.mem_span_iff_exists_isHomogeneous E0 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommSemiring R] (x : ι → R) (y : R),
y ∈ Ideal.span (Set.range x) ↔ ∃ p, p.IsHomogeneous 1 ∧ (MvPolynomial.eval x) p = y
Try to use the universal property of the span (e.g., Submodule.span_induction) instead of
this.