The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.Algebra.MvPolynomial.Degrees

90 declarations. Mathlib docs · Source

Degrees of polynomials

This file establishes many results about the degree of a multivariate polynomial.

The degree set of a polynomial $P \in R[X]$ is a Multiset containing, for each $x$ in the variable set, $n$ copies of $x$, where $n$ is the maximum number of copies of $x$ appearing in a monomial of $P$.

Main declarations

  • MvPolynomial.degrees p : the multiset of variables representing the union of the multisets corresponding to each non-zero monomial in p. For example if 7 ≠ 0 in R and p = x²y+7y³ then degrees p = {x, x, y, y, y}

  • MvPolynomial.degreeOf n p : ℕ : the total degree of p with respect to the variable n. For example if p = x⁴y+yz then degreeOf y p = 1.

  • MvPolynomial.totalDegree p : ℕ : the max of the sizes of the multisets s whose monomials X^s occur in p. For example if p = x⁴y+yz then totalDegree p = 5.

Notation

As in other polynomial files, we typically use the notation:

  • σ τ : Type* (indexing the variables)

  • R : Type* [CommSemiring R] (the coefficients)

  • s : σ →₀ ℕ, a function from σ to ℕ which is zero away from a finite set. This will give rise to a monomial in MvPolynomial σ R which mathematicians might call X^s.

  • r : R

  • i : σ, with corresponding monomial X i, often denoted X_i by mathematicians

  • p : MvPolynomial σ R

degrees

degreeOf

totalDegree

def MvPolynomial.degrees E1 #

{R : Type u} → {σ : Type u_1} → [inst : CommSemiring R] → MvPolynomial σ R → Multiset σ

The maximal degrees of each variable in a multi-variable polynomial, expressed as a multiset.

(For example, degrees (x^2 * y + y^3) would be {x, x, y, y, y}.)

theorem MvPolynomial.degrees_def E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] [inst_1 : DecidableEq σ] (p : MvPolynomial σ R),
  p.degrees = p.support.sup fun s ↦ Finsupp.toMultiset s

theorem MvPolynomial.degrees_monomial E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (s : σ →₀ ℕ) (a : R),
  ((MvPolynomial.monomial s) a).degrees ≤ Finsupp.toMultiset s

theorem MvPolynomial.degrees_monomial_eq E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (s : σ →₀ ℕ) (a : R),
  a ≠ 0 → ((MvPolynomial.monomial s) a).degrees = Finsupp.toMultiset s

theorem MvPolynomial.degrees_C E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (a : R), (MvPolynomial.C a).degrees = 0

theorem MvPolynomial.degrees_X' E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (n : σ), (MvPolynomial.X n).degrees ≤ {n}

theorem MvPolynomial.degrees_X E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] [Nontrivial R] (n : σ), (MvPolynomial.X n).degrees = {n}

theorem MvPolynomial.degrees_zero E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R], MvPolynomial.degrees 0 = 0

theorem MvPolynomial.degrees_one E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R], MvPolynomial.degrees 1 = 0

theorem MvPolynomial.degrees_add_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] [inst_1 : DecidableEq σ] {p q : MvPolynomial σ R},
  (p + q).degrees ≤ p.degrees ⊔ q.degrees

theorem MvPolynomial.degrees_sum_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {ι : Type u_3} [inst_1 : DecidableEq σ] (s : Finset ι)
  (f : ι → MvPolynomial σ R), (∑ i ∈ s, f i).degrees ≤ s.sup fun i ↦ (f i).degrees

theorem MvPolynomial.degrees_mul_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p q : MvPolynomial σ R}, (p * q).degrees ≤ p.degrees + q.degrees

theorem MvPolynomial.degrees_prod_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {ι : Type u_3} {s : Finset ι} {f : ι → MvPolynomial σ R},
  (∏ i ∈ s, f i).degrees ≤ ∑ i ∈ s, (f i).degrees

theorem MvPolynomial.degrees_pow_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} {n : ℕ}, (p ^ n).degrees ≤ n • p.degrees

theorem MvPolynomial.mem_degrees E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} {i : σ},
  i ∈ p.degrees ↔ ∃ d, p.coeff d ≠ 0 ∧ i ∈ d.support

theorem MvPolynomial.degrees_eq_zero_iff_support_subset_zero E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R}, p.degrees = 0 ↔ p.support ⊆ {0}

theorem MvPolynomial.le_degrees_add_left E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p q : MvPolynomial σ R},
  Disjoint p.degrees q.degrees → p.degrees ≤ (p + q).degrees

theorem MvPolynomial.le_degrees_add_right E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p q : MvPolynomial σ R},
  Disjoint p.degrees q.degrees → q.degrees ≤ (p + q).degrees

theorem MvPolynomial.degrees_add_of_disjoint E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p q : MvPolynomial σ R} [inst_1 : DecidableEq σ],
  Disjoint p.degrees q.degrees → (p + q).degrees = p.degrees ∪ q.degrees

theorem MvPolynomial.degrees_map_le E1 #

∀ {R : Type u} {S : Type v} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} [inst_1 : CommSemiring S]
  {f : R →+* S}, ((MvPolynomial.map f) p).degrees ≤ p.degrees

theorem MvPolynomial.degrees_rename E1 #

∀ {R : Type u} {σ : Type u_1} {τ : Type u_2} [inst : CommSemiring R] (f : σ → τ) (φ : MvPolynomial σ R),
  ((MvPolynomial.rename f) φ).degrees ⊆ Multiset.map f φ.degrees

theorem MvPolynomial.degrees_map_of_injective E1 #

∀ {R : Type u} {S : Type v} {σ : Type u_1} [inst : CommSemiring R] [inst_1 : CommSemiring S] (p : MvPolynomial σ R)
  {f : R →+* S}, Function.Injective ⇑f → ((MvPolynomial.map f) p).degrees = p.degrees

theorem MvPolynomial.degrees_rename_of_injective E1 #

∀ {R : Type u} {σ : Type u_1} {τ : Type u_2} [inst : CommSemiring R] {p : MvPolynomial σ R} {f : σ → τ},
  Function.Injective f → ((MvPolynomial.rename f) p).degrees = Multiset.map f p.degrees

def MvPolynomial.degreeOf E1 #

{R : Type u} → {σ : Type u_1} → [inst : CommSemiring R] → σ → MvPolynomial σ R → ℕ

degreeOf n p gives the highest power of $X_n$ that appears in p

theorem MvPolynomial.degreeOf_def E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] [inst_1 : DecidableEq σ] (n : σ) (p : MvPolynomial σ R),
  MvPolynomial.degreeOf n p = Multiset.count n p.degrees

theorem MvPolynomial.degreeOf_eq_sup E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (n : σ) (f : MvPolynomial σ R),
  MvPolynomial.degreeOf n f = f.support.sup fun m ↦ m n

theorem MvPolynomial.degreeOf_lt_iff E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {n : σ} {f : MvPolynomial σ R} {d : ℕ},
  0 < d → (MvPolynomial.degreeOf n f < d ↔ ∀ m ∈ f.support, m n < d)

theorem MvPolynomial.degreeOf_le_iff E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {n : σ} {f : MvPolynomial σ R} {d : ℕ},
  MvPolynomial.degreeOf n f ≤ d ↔ ∀ m ∈ f.support, m n ≤ d

theorem MvPolynomial.degreeOf_zero E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (n : σ), MvPolynomial.degreeOf n 0 = 0

theorem MvPolynomial.degreeOf_one E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (n : σ), MvPolynomial.degreeOf n 1 = 0

theorem MvPolynomial.degreeOf_C E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (a : R) (x : σ), MvPolynomial.degreeOf x (MvPolynomial.C a) = 0

theorem MvPolynomial.degreeOf_X E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] [inst_1 : DecidableEq σ] (i j : σ) [Nontrivial R],
  MvPolynomial.degreeOf i (MvPolynomial.X j) = if i = j then 1 else 0

theorem MvPolynomial.degreeOf_X_self E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] [Nontrivial R] (i : σ),
  MvPolynomial.degreeOf i (MvPolynomial.X i) = 1

theorem MvPolynomial.ne_zero_of_degreeOf_ne_zero E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} {i : σ},
  MvPolynomial.degreeOf i p ≠ 0 → p ≠ 0

theorem MvPolynomial.degreeOf_add_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (n : σ) (f g : MvPolynomial σ R),
  MvPolynomial.degreeOf n (f + g) ≤ max (MvPolynomial.degreeOf n f) (MvPolynomial.degreeOf n g)

theorem MvPolynomial.monomial_le_degreeOf E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (i : σ) {f : MvPolynomial σ R} {m : σ →₀ ℕ},
  m ∈ f.support → m i ≤ MvPolynomial.degreeOf i f

theorem MvPolynomial.degreeOf_monomial_eq E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (s : σ →₀ ℕ) (i : σ) {a : R},
  a ≠ 0 → MvPolynomial.degreeOf i ((MvPolynomial.monomial s) a) = s i

theorem MvPolynomial.degreeOf_X_self_pow E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] [Nontrivial R] (i : σ) (k : ℕ),
  MvPolynomial.degreeOf i (MvPolynomial.X i ^ k) = k

theorem MvPolynomial.le_degreeOf_of_mem_support E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} (i : σ) {s : σ →₀ ℕ},
  s ∈ p.support → s i ≤ MvPolynomial.degreeOf i p

theorem MvPolynomial.notMem_support_of_degreeOf_lt E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} (i : σ) {s : σ →₀ ℕ},
  MvPolynomial.degreeOf i p < s i → s ∉ p.support

theorem MvPolynomial.degreeOf_mul_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (i : σ) (f g : MvPolynomial σ R),
  MvPolynomial.degreeOf i (f * g) ≤ MvPolynomial.degreeOf i f + MvPolynomial.degreeOf i g

Note that degreeOf_prod_eq proves equality with NoZeroDivisors R and nonzero polynomials.

theorem MvPolynomial.degreeOf_sum_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {ι : Type u_3} (i : σ) (s : Finset ι) (f : ι → MvPolynomial σ R),
  MvPolynomial.degreeOf i (∑ j ∈ s, f j) ≤ s.sup fun j ↦ MvPolynomial.degreeOf i (f j)

theorem MvPolynomial.degreeOf_prod_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {ι : Type u_3} (i : σ) (s : Finset ι) (f : ι → MvPolynomial σ R),
  MvPolynomial.degreeOf i (∏ j ∈ s, f j) ≤ ∑ j ∈ s, MvPolynomial.degreeOf i (f j)

Note that degreeOf_mul_eq proves equality with NoZeroDivisors R and nonzero polynomials.

theorem MvPolynomial.degreeOf_pow_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (i : σ) (p : MvPolynomial σ R) (n : ℕ),
  MvPolynomial.degreeOf i (p ^ n) ≤ n * MvPolynomial.degreeOf i p

Note that degreeOf_pow_eq proves equality with NoZeroDivisors R and nonzero polynomials.

theorem MvPolynomial.degreeOf_mul_X_of_ne E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {i j : σ} (f : MvPolynomial σ R),
  i ≠ j → MvPolynomial.degreeOf i (f * MvPolynomial.X j) = MvPolynomial.degreeOf i f

theorem MvPolynomial.degreeOf_mul_X_self E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (j : σ) (f : MvPolynomial σ R),
  MvPolynomial.degreeOf j (f * MvPolynomial.X j) ≤ MvPolynomial.degreeOf j f + 1

theorem MvPolynomial.degreeOf_X_pow_of_ne E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {i j : σ} (k : ℕ),
  i ≠ j → MvPolynomial.degreeOf i (MvPolynomial.X j ^ k) = 0

theorem MvPolynomial.degreeOf_X_of_ne E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {i j : σ}, i ≠ j → MvPolynomial.degreeOf i (MvPolynomial.X j) = 0

theorem MvPolynomial.degreeOf_mul_X_eq_degreeOf_add_one_iff E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (j : σ) (f : MvPolynomial σ R),
  MvPolynomial.degreeOf j (f * MvPolynomial.X j) = MvPolynomial.degreeOf j f + 1 ↔ f ≠ 0

theorem MvPolynomial.degreeOf_mul_X_self_pow_eq_add_of_ne_zero E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} (i : σ) (k : ℕ),
  p ≠ 0 → MvPolynomial.degreeOf i (p * MvPolynomial.X i ^ k) = MvPolynomial.degreeOf i p + k

theorem MvPolynomial.degreeOf_mul_X_pow_of_ne E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} {i j : σ} (k : ℕ),
  i ≠ j → MvPolynomial.degreeOf i (p * MvPolynomial.X j ^ k) = MvPolynomial.degreeOf i p

theorem MvPolynomial.degreeOf_add_eq_of_degreeOf_lt E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p q : MvPolynomial σ R} {i : σ},
  MvPolynomial.degreeOf i q < MvPolynomial.degreeOf i p → MvPolynomial.degreeOf i (p + q) = MvPolynomial.degreeOf i p

theorem MvPolynomial.degreeOf_eq_of_degreeOf_add_lt E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p q : MvPolynomial σ R} {i : σ},
  MvPolynomial.degreeOf i (p + q) < MvPolynomial.degreeOf i p → MvPolynomial.degreeOf i p = MvPolynomial.degreeOf i q

theorem MvPolynomial.degreeOf_C_mul_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (p : MvPolynomial σ R) (i : σ) (c : R),
  MvPolynomial.degreeOf i (MvPolynomial.C c * p) ≤ MvPolynomial.degreeOf i p

theorem MvPolynomial.degreeOf_mul_C_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (p : MvPolynomial σ R) (i : σ) (c : R),
  MvPolynomial.degreeOf i (p * MvPolynomial.C c) ≤ MvPolynomial.degreeOf i p

theorem MvPolynomial.degreeOf_rename_of_injective E1 #

∀ {R : Type u} {σ : Type u_1} {τ : Type u_2} [inst : CommSemiring R] {p : MvPolynomial σ R} {f : σ → τ},
  Function.Injective f → ∀ (i : σ), MvPolynomial.degreeOf (f i) ((MvPolynomial.rename f) p) = MvPolynomial.degreeOf i p

def MvPolynomial.totalDegree E1 #

{R : Type u} → {σ : Type u_1} → [inst : CommSemiring R] → MvPolynomial σ R → ℕ

totalDegree p gives the maximum |s| over the monomials X^s in p

theorem MvPolynomial.totalDegree_eq E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (p : MvPolynomial σ R),
  p.totalDegree = p.support.sup fun m ↦ (Finsupp.toMultiset m).card

theorem MvPolynomial.le_totalDegree E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} {s : σ →₀ ℕ},
  s ∈ p.support → (s.sum fun x e ↦ e) ≤ p.totalDegree

theorem MvPolynomial.totalDegree_le_degrees_card E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (p : MvPolynomial σ R), p.totalDegree ≤ p.degrees.card

theorem MvPolynomial.totalDegree_le_of_support_subset E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p q : MvPolynomial σ R},
  p.support ⊆ q.support → p.totalDegree ≤ q.totalDegree

theorem MvPolynomial.totalDegree_C E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (a : R), (MvPolynomial.C a).totalDegree = 0

theorem MvPolynomial.totalDegree_zero E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R], MvPolynomial.totalDegree 0 = 0

theorem MvPolynomial.totalDegree_one E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R], MvPolynomial.totalDegree 1 = 0

theorem MvPolynomial.totalDegree_X E0 #

∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] [Nontrivial R] (s : σ), (MvPolynomial.X s).totalDegree = 1

theorem MvPolynomial.totalDegree_add E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (a b : MvPolynomial σ R),
  (a + b).totalDegree ≤ max a.totalDegree b.totalDegree

theorem MvPolynomial.totalDegree_add_eq_left_of_totalDegree_lt E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p q : MvPolynomial σ R},
  q.totalDegree < p.totalDegree → (p + q).totalDegree = p.totalDegree

theorem MvPolynomial.totalDegree_add_eq_right_of_totalDegree_lt E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p q : MvPolynomial σ R},
  q.totalDegree < p.totalDegree → (q + p).totalDegree = p.totalDegree

theorem MvPolynomial.totalDegree_mul E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (a b : MvPolynomial σ R),
  (a * b).totalDegree ≤ a.totalDegree + b.totalDegree

theorem MvPolynomial.totalDegree_smul_le E1 #

∀ {R : Type u} {S : Type v} {σ : Type u_1} [inst : CommSemiring R] [inst_1 : CommSemiring S]
  [inst_2 : DistribMulAction R S] (a : R) (f : MvPolynomial σ S), (a • f).totalDegree ≤ f.totalDegree

theorem MvPolynomial.totalDegree_pow E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (a : MvPolynomial σ R) (n : ℕ),
  (a ^ n).totalDegree ≤ n * a.totalDegree

theorem MvPolynomial.totalDegree_monomial E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (s : σ →₀ ℕ) {c : R},
  c ≠ 0 → ((MvPolynomial.monomial s) c).totalDegree = s.sum fun x e ↦ e

theorem MvPolynomial.totalDegree_monomial_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (s : σ →₀ ℕ) (c : R),
  ((MvPolynomial.monomial s) c).totalDegree ≤ s.sum fun x ↦ id

theorem MvPolynomial.totalDegree_X_pow E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] [Nontrivial R] (s : σ) (n : ℕ),
  (MvPolynomial.X s ^ n).totalDegree = n

theorem MvPolynomial.totalDegree_list_prod E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (l : List (MvPolynomial σ R)),
  l.prod.totalDegree ≤ (List.map MvPolynomial.totalDegree l).sum

theorem MvPolynomial.totalDegree_multiset_prod E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (s : Multiset (MvPolynomial σ R)),
  s.prod.totalDegree ≤ (Multiset.map MvPolynomial.totalDegree s).sum

theorem MvPolynomial.totalDegree_finsetProd E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {ι : Type u_3} (s : Finset ι) (f : ι → MvPolynomial σ R),
  (s.prod f).totalDegree ≤ ∑ i ∈ s, (f i).totalDegree

theorem MvPolynomial.totalDegree_finsetSum E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {ι : Type u_3} (s : Finset ι) (f : ι → MvPolynomial σ R),
  (s.sum f).totalDegree ≤ s.sup fun i ↦ (f i).totalDegree

theorem MvPolynomial.totalDegree_finsetSum_le E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {ι : Type u_3} {s : Finset ι} {f : ι → MvPolynomial σ R} {d : ℕ},
  (∀ i ∈ s, (f i).totalDegree ≤ d) → (s.sum f).totalDegree ≤ d

theorem MvPolynomial.degreeOf_le_totalDegree E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (f : MvPolynomial σ R) (i : σ),
  MvPolynomial.degreeOf i f ≤ f.totalDegree

theorem MvPolynomial.exists_degree_lt E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] [inst_1 : Fintype σ] (f : MvPolynomial σ R) (n : ℕ),
  f.totalDegree < n * Fintype.card σ → ∀ {d : σ →₀ ℕ}, d ∈ f.support → ∃ i, d i < n

theorem MvPolynomial.coeff_eq_zero_of_totalDegree_lt E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {f : MvPolynomial σ R} {d : σ →₀ ℕ},
  f.totalDegree < ∑ i ∈ d.support, d i → f.coeff d = 0

theorem MvPolynomial.totalDegree_eq_zero_iff_eq_C E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R},
  p.totalDegree = 0 ↔ p = MvPolynomial.C (p.coeff 0)

theorem MvPolynomial.totalDegree_rename_le E1 #

∀ {R : Type u} {σ : Type u_1} {τ : Type u_2} [inst : CommSemiring R] (f : σ → τ) (p : MvPolynomial σ R),
  ((MvPolynomial.rename f) p).totalDegree ≤ p.totalDegree

theorem MvPolynomial.totalDegree_renameEquiv E1 #

∀ {R : Type u} {σ : Type u_1} {τ : Type u_2} [inst : CommSemiring R] (f : σ ≃ τ) (p : MvPolynomial σ R),
  ((MvPolynomial.renameEquiv R f) p).totalDegree = p.totalDegree

def MvPolynomial.degreesLE E1 #

(R : Type u) → (σ : Type u_1) → [inst : CommSemiring R] → Multiset σ → Submodule R (MvPolynomial σ R)

The submodule of multivariate polynomials of degrees bounded by a monomial s.

theorem MvPolynomial.mem_degreesLE E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] {p : MvPolynomial σ R} {s : Multiset σ},
  p ∈ MvPolynomial.degreesLE R σ s ↔ p.degrees ≤ s

theorem MvPolynomial.degreesLE_add E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (s t : Multiset σ),
  MvPolynomial.degreesLE R σ (s + t) = MvPolynomial.degreesLE R σ s * MvPolynomial.degreesLE R σ t

theorem MvPolynomial.degreesLE_zero E0 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R], MvPolynomial.degreesLE R σ 0 = 1

theorem MvPolynomial.degreesLE_nsmul E1 #

∀ {R : Type u} {σ : Type u_1} [inst : CommSemiring R] (s : Multiset σ) (n : ℕ),
  MvPolynomial.degreesLE R σ (n • s) = MvPolynomial.degreesLE R σ s ^ n