The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.Polynomial.Content
55 declarations. Mathlib docs · Source
GCD structures on polynomials
Definitions and basic results about polynomials over GCD domains, particularly their contents and primitive polynomials.
Main Definitions
Let p : R[X].
p.contentis thegcdof the coefficients ofp.p.IsPrimitiveindicates thatp.content = 1.
Main Results
Polynomial.content_mul: ifp q : R[X], then(p * q).content = p.content * q.content.Polynomial.NormalizedGcdMonoid: the polynomial ring of a GCD domain is itself a GCD domain.
Note
This has nothing to do with minimal polynomials of primitive elements in finite fields.
def Polynomial.IsPrimitive E1 #
{R : Type u_1} → [inst : CommSemiring R] → Polynomial R → Prop
A polynomial is primitive when the only constant polynomials dividing it are units. Note: This has nothing to do with minimal polynomials of primitive elements in finite fields.
theorem Polynomial.isPrimitive_iff_isUnit_of_C_dvd E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {p : Polynomial R}, p.IsPrimitive ↔ ∀ (r : R), Polynomial.C r ∣ p → IsUnit r
theorem Polynomial.isPrimitive_one E0 #
∀ {R : Type u_1} [inst : CommSemiring R], Polynomial.IsPrimitive 1
theorem Polynomial.Monic.isPrimitive E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {p : Polynomial R}, p.Monic → p.IsPrimitive
theorem Polynomial.IsPrimitive.ne_zero E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [Nontrivial R] {p : Polynomial R}, p.IsPrimitive → p ≠ 0
theorem Polynomial.isPrimitive_of_dvd E1 #
∀ {R : Type u_1} [inst : CommSemiring R] {p q : Polynomial R}, p.IsPrimitive → q ∣ p → q.IsPrimitive
theorem Irreducible.isPrimitive E1 #
∀ {R : Type u_1} [inst : CommSemiring R] [NoZeroDivisors R] {p : Polynomial R},
Irreducible p → p.natDegree ≠ 0 → p.IsPrimitive
An irreducible nonconstant polynomial over a domain is primitive.
theorem Polynomial.isPrimitive_iff_ne_zero E0 #
∀ {F : Type u_2} [inst : Field F] (p : Polynomial F), p.IsPrimitive ↔ p ≠ 0
In a field, the notion of primitive polynomials is degenerate.
def Polynomial.content E1 #
{R : Type u_1} → [inst : CommRing R] → [NormalizedGCDMonoid R] → Polynomial R → R
p.content is the gcd of the coefficients of p.
theorem Polynomial.content_dvd_coeff E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R} (n : ℕ), p.content ∣ p.coeff n
theorem Polynomial.content_C E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {r : R}, (Polynomial.C r).content = normalize r
theorem Polynomial.content_zero E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R], Polynomial.content 0 = 0
theorem Polynomial.content_one E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R], Polynomial.content 1 = 1
theorem Polynomial.content_X_mul E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R},
(Polynomial.X * p).content = p.content
theorem Polynomial.content_X_pow E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {k : ℕ}, (Polynomial.X ^ k).content = 1
theorem Polynomial.content_X E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R], Polynomial.X.content = 1
theorem Polynomial.content_C_mul E1 #
∀ {R : Type u_2} [inst : CommRing R] [inst_1 : StrongNormalizedGCDMonoid R] (r : R) (p : Polynomial R),
(Polynomial.C r * p).content = normalize r * p.content
theorem Polynomial.associated_content_C_mul E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (r : R) (p : Polynomial R),
Associated (Polynomial.C r * p).content (r * p.content)
theorem Polynomial.normalize_content E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R},
normalize p.content = p.content
theorem Polynomial.content_monomial E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {r : R} {k : ℕ},
((Polynomial.monomial k) r).content = normalize r
theorem Polynomial.content_eq_zero_iff E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R}, p.content = 0 ↔ p = 0
theorem Polynomial.normUnit_content E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R}, normUnit p.content = 1
theorem Polynomial.content_eq_gcd_range_of_lt E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p : Polynomial R) (n : ℕ),
p.natDegree < n → p.content = (Finset.range n).gcd ⇑p.coeff
theorem Polynomial.content_eq_gcd_range_succ E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p : Polynomial R),
p.content = (Finset.range p.natDegree.succ).gcd ⇑p.coeff
theorem Polynomial.content_eq_gcd_leadingCoeff_content_eraseLead E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p : Polynomial R),
p.content = gcd p.leadingCoeff p.eraseLead.content
theorem Polynomial.dvd_content_iff_C_dvd E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R} {r : R},
r ∣ p.content ↔ Polynomial.C r ∣ p
theorem Polynomial.C_content_dvd E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p : Polynomial R), Polynomial.C p.content ∣ p
theorem Polynomial.isPrimitive_iff_content_eq_one E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R}, p.IsPrimitive ↔ p.content = 1
theorem Polynomial.IsPrimitive.content_eq_one E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R}, p.IsPrimitive → p.content = 1
def Polynomial.primPart E1 #
{R : Type u_1} → [inst : CommRing R] → [NormalizedGCDMonoid R] → Polynomial R → Polynomial R
The primitive part of a polynomial p is the primitive polynomial gained by dividing p by
p.content. If p = 0, then p.primPart = 1.
theorem Polynomial.primPart_zero E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R], Polynomial.primPart 0 = 1
theorem Polynomial.isPrimitive_primPart E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p : Polynomial R), p.primPart.IsPrimitive
theorem Polynomial.content_primPart E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p : Polynomial R), p.primPart.content = 1
theorem Polynomial.primPart_ne_zero E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] [Nontrivial R] (p : Polynomial R), p.primPart ≠ 0
theorem Polynomial.natDegree_primPart E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p : Polynomial R),
p.primPart.natDegree = p.natDegree
theorem Polynomial.IsPrimitive.primPart_eq E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R}, p.IsPrimitive → p.primPart = p
theorem Polynomial.isUnit_primPart_C E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (r : R), IsUnit (Polynomial.C r).primPart
theorem Polynomial.primPart_dvd E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p : Polynomial R), p.primPart ∣ p
theorem Polynomial.aeval_primPart_eq_zero E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {S : Type u_2} [inst_2 : Ring S] [IsDomain S]
[inst_4 : Algebra R S] [Module.IsTorsionFree R S] {p : Polynomial R} {s : S},
p ≠ 0 → (Polynomial.aeval s) p = 0 → (Polynomial.aeval s) p.primPart = 0
theorem Polynomial.eval₂_primPart_eq_zero E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {S : Type u_2} [inst_2 : CommSemiring S]
[IsDomain S] {f : R →+* S},
Function.Injective ⇑f →
∀ {p : Polynomial R} {s : S}, p ≠ 0 → Polynomial.eval₂ f s p = 0 → Polynomial.eval₂ f s p.primPart = 0
theorem Polynomial.gcd_content_eq_of_dvd_sub E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {a : R} {p q : Polynomial R},
Polynomial.C a ∣ p - q → gcd a p.content = gcd a q.content
theorem Polynomial.content_mul_aux E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p q : Polynomial R},
gcd (p * q).eraseLead.content p.leadingCoeff = gcd (p.eraseLead * q).content p.leadingCoeff
theorem Polynomial.associated_content_mul E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p q : Polynomial R),
Associated (p * q).content (p.content * q.content)
theorem Polynomial.content_mul E3 #
∀ {R : Type u_2} [inst : CommRing R] [inst_1 : StrongNormalizedGCDMonoid R] {p q : Polynomial R},
(p * q).content = p.content * q.content
theorem Polynomial.IsPrimitive.mul E1 #
∀ {R : Type u_1} [inst : CommRing R] [NormalizedGCDMonoid R] {p q : Polynomial R},
p.IsPrimitive → q.IsPrimitive → (p * q).IsPrimitive
theorem Polynomial.associated_primPart_mul E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p q : Polynomial R},
p * q ≠ 0 → Associated (p * q).primPart (p.primPart * q.primPart)
theorem Polynomial.primPart_mul E0 #
∀ {R : Type u_2} [inst : CommRing R] [inst_1 : StrongNormalizedGCDMonoid R] {p q : Polynomial R},
p * q ≠ 0 → (p * q).primPart = p.primPart * q.primPart
theorem Polynomial.IsPrimitive.dvd_primPart_iff_dvd E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p q : Polynomial R},
p.IsPrimitive → q ≠ 0 → (p ∣ q.primPart ↔ p ∣ q)
theorem Polynomial.exists_primitive_lcm_of_isPrimitive E1 #
∀ {R : Type u_1} [inst : CommRing R] [NormalizedGCDMonoid R] {p q : Polynomial R},
p.IsPrimitive → q.IsPrimitive → ∃ r, r.IsPrimitive ∧ ∀ (s : Polynomial R), p ∣ s ∧ q ∣ s ↔ r ∣ s
theorem Polynomial.dvd_iff_content_dvd_content_and_primPart_dvd_primPart E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p q : Polynomial R},
q ≠ 0 → (p ∣ q ↔ p.content ∣ q.content ∧ p.primPart ∣ q.primPart)
instance Polynomial.normalizedGcdMonoid E3 #
{R : Type u_1} → [inst : CommRing R] → [NormalizedGCDMonoid R] → NormalizedGCDMonoid (Polynomial R)
theorem Polynomial.degree_gcd_le_left E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] {p : Polynomial R},
p ≠ 0 → ∀ (q : Polynomial R), (gcd p q).degree ≤ p.degree
theorem Polynomial.degree_gcd_le_right E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : NormalizedGCDMonoid R] (p : Polynomial R) {q : Polynomial R},
q ≠ 0 → (gcd p q).degree ≤ q.degree
instance Polynomial.instStrongNormalizedGCDMonoid E0 #
{R : Type u_1} → [inst : CommRing R] → [StrongNormalizedGCDMonoid R] → StrongNormalizedGCDMonoid (Polynomial R)
instance Polynomial.instIsGCDMonoid E0 #
∀ {R : Type u_1} [inst : CommRing R] [IsGCDMonoid R], IsGCDMonoid (Polynomial R)