The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.Algebra.Polynomial.Degree.IsMonicOfDegree
36 declarations. Mathlib docs · Source
structure Polynomial.IsMonicOfDegree E1 #
{R : Type u_1} → [inst : Semiring R] → Polynomial R → ℕ → Prop
This says that p has natDegree n and is monic.
theorem Polynomial.isMonicOfDegree_iff' E1 #
∀ {R : Type u_1} [inst : Semiring R] (p : Polynomial R) (n : ℕ), p.IsMonicOfDegree n ↔ p.natDegree = n ∧ p.Monic
ctor Polynomial.IsMonicOfDegree.mk E0 #
∀ {R : Type u_1} [inst : Semiring R] {p : Polynomial R} {n : ℕ}, p.natDegree = n → p.Monic → p.IsMonicOfDegree n
theorem Polynomial.IsMonicOfDegree.natDegree_eq E0 #
∀ {R : Type u_1} [inst : Semiring R] {p : Polynomial R} {n : ℕ}, p.IsMonicOfDegree n → p.natDegree = n
theorem Polynomial.IsMonicOfDegree.monic E1 #
∀ {R : Type u_1} [inst : Semiring R] {p : Polynomial R} {n : ℕ}, p.IsMonicOfDegree n → p.Monic
theorem Polynomial.isMonicOfDegree_zero_iff E0 #
∀ {R : Type u_1} [inst : Semiring R] {p : Polynomial R}, p.IsMonicOfDegree 0 ↔ p = 1
theorem Polynomial.IsMonicOfDegree.leadingCoeff_eq E0 #
∀ {R : Type u_1} [inst : Semiring R] {p : Polynomial R} {n : ℕ}, p.IsMonicOfDegree n → p.leadingCoeff = 1
theorem Polynomial.isMonicOfDegree_iff_of_subsingleton E0 #
∀ {R : Type u_1} [inst : Semiring R] [Subsingleton R] {p : Polynomial R} {n : ℕ}, p.IsMonicOfDegree n ↔ n = 0
theorem Polynomial.isMonicOfDegree_iff E0 #
∀ {R : Type u_1} [inst : Semiring R] [Nontrivial R] (p : Polynomial R) (n : ℕ),
p.IsMonicOfDegree n ↔ p.natDegree ≤ n ∧ p.coeff n = 1
theorem Polynomial.IsMonicOfDegree.exists_natDegree_lt E1 #
∀ {R : Type u_1} [inst : Semiring R] {p : Polynomial R} {n : ℕ},
n ≠ 0 → p.IsMonicOfDegree n → ∃ q, p = Polynomial.X ^ n + q ∧ q.natDegree < n
theorem Polynomial.IsMonicOfDegree.mul E1 #
∀ {R : Type u_1} [inst : Semiring R] {p q : Polynomial R} {m n : ℕ},
p.IsMonicOfDegree m → q.IsMonicOfDegree n → (p * q).IsMonicOfDegree (m + n)
theorem Polynomial.IsMonicOfDegree.pow E1 #
∀ {R : Type u_1} [inst : Semiring R] {p : Polynomial R} {m : ℕ},
p.IsMonicOfDegree m → ∀ (n : ℕ), (p ^ n).IsMonicOfDegree (m * n)
theorem Polynomial.IsMonicOfDegree.coeff_eq E0 #
∀ {R : Type u_1} [inst : Semiring R] {p q : Polynomial R} {n : ℕ},
p.IsMonicOfDegree n → q.IsMonicOfDegree n → ∀ {m : ℕ}, n ≤ m → p.coeff m = q.coeff m
theorem Polynomial.IsMonicOfDegree.of_mul_left E1 #
∀ {R : Type u_1} [inst : Semiring R] {p q : Polynomial R} {m n : ℕ},
p.IsMonicOfDegree m → (p * q).IsMonicOfDegree (m + n) → q.IsMonicOfDegree n
theorem Polynomial.IsMonicOfDegree.of_mul_right E1 #
∀ {R : Type u_1} [inst : Semiring R] {p q : Polynomial R} {m n : ℕ},
q.IsMonicOfDegree n → (p * q).IsMonicOfDegree (m + n) → p.IsMonicOfDegree m
theorem Polynomial.IsMonicOfDegree.add_right E1 #
∀ {R : Type u_1} [inst : Semiring R] {p q : Polynomial R} {n : ℕ},
p.IsMonicOfDegree n → q.natDegree < n → (p + q).IsMonicOfDegree n
theorem Polynomial.IsMonicOfDegree.add_left E1 #
∀ {R : Type u_1} [inst : Semiring R] {p q : Polynomial R} {n : ℕ},
p.natDegree < n → q.IsMonicOfDegree n → (p + q).IsMonicOfDegree n
theorem Polynomial.IsMonicOfDegree.comp E1 #
∀ {R : Type u_1} [inst : Semiring R] {p q : Polynomial R} {m n : ℕ},
n ≠ 0 → p.IsMonicOfDegree m → q.IsMonicOfDegree n → (p.comp q).IsMonicOfDegree (m * n)
theorem Polynomial.IsMonicOfDegree.ne_zero E1 #
∀ {R : Type u_1} [inst : Semiring R] [Nontrivial R] {p : Polynomial R} {n : ℕ}, p.IsMonicOfDegree n → p ≠ 0
theorem Polynomial.isMonicOfDegree_X E1 #
∀ (R : Type u_1) [inst : Semiring R] [Nontrivial R], Polynomial.X.IsMonicOfDegree 1
theorem Polynomial.isMonicOfDegree_X_pow E1 #
∀ (R : Type u_1) [inst : Semiring R] [Nontrivial R] (n : ℕ), (Polynomial.X ^ n).IsMonicOfDegree n
theorem Polynomial.isMonicOfDegree_monomial_one E1 #
∀ {R : Type u_1} [inst : Semiring R] [Nontrivial R] (n : ℕ), ((Polynomial.monomial n) 1).IsMonicOfDegree n
theorem Polynomial.isMonicOfDegree_X_add_one E1 #
∀ {R : Type u_1} [inst : Semiring R] [Nontrivial R] (r : R), (Polynomial.X + Polynomial.C r).IsMonicOfDegree 1
theorem Polynomial.isMonicOfDegree_one_iff E0 #
∀ {R : Type u_1} [inst : Semiring R] [Nontrivial R] {f : Polynomial R},
f.IsMonicOfDegree 1 ↔ ∃ r, f = Polynomial.X + Polynomial.C r
theorem Polynomial.isMonicOfDegree_add_add_two E1 #
∀ {R : Type u_1} [inst : Semiring R] [Nontrivial R] (a b : R),
(Polynomial.X ^ 2 + Polynomial.C a * Polynomial.X + Polynomial.C b).IsMonicOfDegree 2
theorem Polynomial.isMonicOfDegree_two_iff E0 #
∀ {R : Type u_1} [inst : Semiring R] [Nontrivial R] {f : Polynomial R},
f.IsMonicOfDegree 2 ↔ ∃ a b, f = Polynomial.X ^ 2 + Polynomial.C a * Polynomial.X + Polynomial.C b
theorem Polynomial.IsMonicOfDegree.natDegree_sub_X_pow E1 #
∀ {R : Type u_1} [inst : Ring R] {p : Polynomial R} {n : ℕ},
n ≠ 0 → p.IsMonicOfDegree n → (p - Polynomial.X ^ n).natDegree < n
theorem Polynomial.IsMonicOfDegree.natDegree_sub_lt E1 #
∀ {R : Type u_1} [inst : Ring R] {p q : Polynomial R} {n : ℕ},
n ≠ 0 → p.IsMonicOfDegree n → q.IsMonicOfDegree n → (p - q).natDegree < n
theorem Polynomial.IsMonicOfDegree.sub E1 #
∀ {R : Type u_1} [inst : Ring R] {p q : Polynomial R} {n : ℕ},
p.IsMonicOfDegree n → q.natDegree < n → (p - q).IsMonicOfDegree n
theorem Polynomial.isMonicOfDegree_X_sub_one E1 #
∀ {R : Type u_1} [inst : Ring R] [Nontrivial R] (r : R), (Polynomial.X - Polynomial.C r).IsMonicOfDegree 1
theorem Polynomial.isMonicOfDegree_sub_add_two E1 #
∀ {R : Type u_1} [inst : Ring R] [Nontrivial R] (a b : R),
(Polynomial.X ^ 2 - Polynomial.C a * Polynomial.X + Polynomial.C b).IsMonicOfDegree 2
theorem Polynomial.isMonicOfDegree_two_iff' E1 #
∀ {R : Type u_1} [inst : Ring R] [Nontrivial R] {f : Polynomial R},
f.IsMonicOfDegree 2 ↔ ∃ a b, f = Polynomial.X ^ 2 - Polynomial.C a * Polynomial.X + Polynomial.C b
A version of Polynomial.isMonicOfDegree_two_iff with negated middle coefficient.
theorem Polynomial.IsMonicOfDegree.of_dvd_add E1 #
∀ {R : Type u_1} [inst : CommRing R] {a b r : Polynomial R} {m n : ℕ},
n ≤ m →
a.IsMonicOfDegree m →
b.IsMonicOfDegree n → r.natDegree < m → b ∣ a + r → ∃ q, q.IsMonicOfDegree (m - n) ∧ a = q * b - r
theorem Polynomial.IsMonicOfDegree.of_dvd_sub E1 #
∀ {R : Type u_1} [inst : CommRing R] {a b r : Polynomial R} {m n : ℕ},
n ≤ m →
a.IsMonicOfDegree m →
b.IsMonicOfDegree n → r.natDegree < m → b ∣ a - r → ∃ q, q.IsMonicOfDegree (m - n) ∧ a = q * b + r
theorem Polynomial.IsMonicOfDegree.aeval_add E1 #
∀ {R : Type u_1} [inst : CommRing R] {p : Polynomial R} {n : ℕ},
p.IsMonicOfDegree n → ∀ (r : R), ((Polynomial.aeval (Polynomial.X + Polynomial.C r)) p).IsMonicOfDegree n
theorem Polynomial.IsMonicOfDegree.aeval_sub E1 #
∀ {R : Type u_1} [inst : CommRing R] {p : Polynomial R} {n : ℕ},
p.IsMonicOfDegree n → ∀ (r : R), ((Polynomial.aeval (Polynomial.X - Polynomial.C r)) p).IsMonicOfDegree n