The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.MvPolynomial.Groebner
10 declarations. Mathlib docs · Source
Division algorithm with respect to monomial orders
We provide a division algorithm with respect to monomial orders in polynomial rings.
Let R be a commutative ring, σ a type of indeterminates and m : MonomialOrder σ
a monomial ordering on σ →₀ ℕ.
Consider a family of polynomials b : ι → MvPolynomial σ R with invertible leading coefficients
(with respect to m): we assume hb : ∀ i, IsUnit (m.leadingCoeff (b i)).
MonomialOrder.div hb ffurnishes- a finitely supported family
g : ι →₀ MvPolynomial σ R - and a “remainder”
r : MvPolynomial σ Rsuch that the three properties hold:- One has
f = ∑ (g i) * (b i) + r - For every
i,m.degree ((g i) * (b i)is less than or equal to that off - For every
i, every monomial in the support ofris strictly smaller than the leading term ofb i,
- One has
- a finitely supported family
The proof is done by induction, using two standard constructions
-
MonomialOrder.subLTerm fdeletes the leading term of a polynomialf -
MonomialOrder.reduce hb fsubtracts fromfthe appropriate multiple ofb : MvPolynomial σ R, providedIsUnit (m.leadingCoeff b). -
MonomialOrder.div_setis the variant ofMonomialOrder.divfor a set of polynomials. -
MonomialOrder.div_singleis the variant ofMonomialOrder.divfor a single polynomial.
References
[Becker-Weispfenning1993]
Module doc as workaround for a parser error that prevents using set_option
after a decreasing_by block with focus dots.
See https://github.com/leanprover/lean4/issues/12573
theorem MonomialOrder.reduce.congr_simp E1 #
∀ {σ : Type u_1} (m m_1 : MonomialOrder σ) (e_m : m = m_1) {R : Type u_2} [inst : CommRing R] {b b_1 : MvPolynomial σ R}
(e_b : b = b_1) (hb : IsUnit (m.leadingCoeff b)) (f f_1 : MvPolynomial σ R),
f = f_1 → m.reduce hb f = m_1.reduce ⋯ f_1
def MonomialOrder.subLTerm E1 #
{σ : Type u_1} → MonomialOrder σ → {R : Type u_2} → [inst : CommRing R] → MvPolynomial σ R → MvPolynomial σ R
Delete the leading term in a multivariate polynomial (for some monomial order)
theorem MonomialOrder.degree_sub_LTerm_le E1 #
∀ {σ : Type u_1} {m : MonomialOrder σ} {R : Type u_2} [inst : CommRing R] (f : MvPolynomial σ R),
m.toSyn (m.degree (m.subLTerm f)) ≤ m.toSyn (m.degree f)
theorem MonomialOrder.degree_sub_LTerm_lt E1 #
∀ {σ : Type u_1} {m : MonomialOrder σ} {R : Type u_2} [inst : CommRing R] {f : MvPolynomial σ R},
m.degree f ≠ 0 → m.toSyn (m.degree (m.subLTerm f)) < m.toSyn (m.degree f)
def MonomialOrder.reduce E1 #
{σ : Type u_1} →
(m : MonomialOrder σ) →
{R : Type u_2} →
[inst : CommRing R] → {b : MvPolynomial σ R} → IsUnit (m.leadingCoeff b) → MvPolynomial σ R → MvPolynomial σ R
Reduce a polynomial modulo a polynomial with unit leading term (for some monomial order)
theorem MonomialOrder.degree_reduce_lt E1 #
∀ {σ : Type u_1} {m : MonomialOrder σ} {R : Type u_2} [inst : CommRing R] {f b : MvPolynomial σ R}
(hb : IsUnit (m.leadingCoeff b)),
m.degree b ≤ m.degree f → m.degree f ≠ 0 → m.toSyn (m.degree (m.reduce hb f)) < m.toSyn (m.degree f)
theorem MonomialOrder.div E1 #
∀ {σ : Type u_1} {m : MonomialOrder σ} {R : Type u_2} [inst : CommRing R] {ι : Type u_3} {b : ι → MvPolynomial σ R},
(∀ (i : ι), IsUnit (m.leadingCoeff (b i))) →
∀ (f : MvPolynomial σ R),
∃ g r,
f = (Finsupp.linearCombination (MvPolynomial σ R) b) g + r ∧
(∀ (i : ι), m.toSyn (m.degree (b i * g i)) ≤ m.toSyn (m.degree f)) ∧
∀ c ∈ r.support, ∀ (i : ι), ¬m.degree (b i) ≤ c
Division by a family of multivariate polynomials whose leading coefficients are invertible with respect to a monomial order
theorem MonomialOrder.div_set E1 #
∀ {σ : Type u_1} {m : MonomialOrder σ} {R : Type u_2} [inst : CommRing R] {B : Set (MvPolynomial σ R)},
(∀ b ∈ B, IsUnit (m.leadingCoeff b)) →
∀ (f : MvPolynomial σ R),
∃ g r,
f = (Finsupp.linearCombination (MvPolynomial σ R) fun b ↦ ↑b) g + r ∧
(∀ (b : ↑B), m.toSyn (m.degree (↑b * g b)) ≤ m.toSyn (m.degree f)) ∧ ∀ c ∈ r.support, ∀ b ∈ B, ¬m.degree b ≤ c
Division by a set of multivariate polynomials whose leading coefficients are invertible with respect to a monomial order
theorem MonomialOrder.div_single E1 #
∀ {σ : Type u_1} {m : MonomialOrder σ} {R : Type u_2} [inst : CommRing R] {b : MvPolynomial σ R},
IsUnit (m.leadingCoeff b) →
∀ (f : MvPolynomial σ R),
∃ g r, f = g * b + r ∧ m.toSyn (m.degree (b * g)) ≤ m.toSyn (m.degree f) ∧ ∀ c ∈ r.support, ¬m.degree b ≤ c
Division by a multivariate polynomial whose leading coefficient is invertible with respect to a monomial order
theorem MonomialOrder.div_single_of_isWeightedHomogeneous E1 #
∀ {σ : Type u_1} {m : MonomialOrder σ} {R : Type u_2} [inst : CommRing R] {M : Type u_3} [inst_1 : AddCommMonoid M]
[inst_2 : PartialOrder M] [CanonicallyOrderedAdd M] [inst_4 : Sub M] [OrderedSub M] [AddLeftReflectLE M] {w : σ → M}
{i n : M} {b f : MvPolynomial σ R},
IsUnit (m.leadingCoeff b) →
MvPolynomial.IsWeightedHomogeneous w b i →
MvPolynomial.IsWeightedHomogeneous w f n →
i ≤ n →
∃ g r,
MvPolynomial.IsWeightedHomogeneous w g (n - i) ∧
MvPolynomial.IsWeightedHomogeneous w r n ∧ f = g * b + r ∧ ∀ c ∈ r.support, ¬m.degree b ≤ c