Unit Trinomials #
This file defines irreducible trinomials and proves an irreducibility criterion.
Main definitions #
Main results #
Polynomial.IsUnitTrinomial.irreducible_of_coprime
: An irreducibility criterion for unit trinomials.
Shorthand for a trinomial
Equations
- Polynomial.trinomial k m n u v w = Polynomial.C u * Polynomial.X ^ k + Polynomial.C v * Polynomial.X ^ m + Polynomial.C w * Polynomial.X ^ n
Instances For
theorem
Polynomial.IsUnitTrinomial.card_support_eq_three
{p : Polynomial ℤ}
(hp : p.IsUnitTrinomial)
:
p.support.card = 3
theorem
Polynomial.IsUnitTrinomial.coeff_isUnit
{p : Polynomial ℤ}
(hp : p.IsUnitTrinomial)
{k : ℕ}
(hk : k ∈ p.support)
:
IsUnit (p.coeff k)
theorem
Polynomial.IsUnitTrinomial.leadingCoeff_isUnit
{p : Polynomial ℤ}
(hp : p.IsUnitTrinomial)
:
IsUnit p.leadingCoeff
theorem
Polynomial.IsUnitTrinomial.trailingCoeff_isUnit
{p : Polynomial ℤ}
(hp : p.IsUnitTrinomial)
:
IsUnit p.trailingCoeff
theorem
Polynomial.isUnitTrinomial_iff''
{p q : Polynomial ℤ}
(h : p * p.mirror = q * q.mirror)
:
p.IsUnitTrinomial ↔ q.IsUnitTrinomial
theorem
Polynomial.IsUnitTrinomial.irreducible_aux1
{p : Polynomial ℤ}
{k m n : ℕ}
(hkm : k < m)
(hmn : m < n)
(u v w : ℤˣ)
(hp : p = trinomial k m n ↑u ↑v ↑w)
:
theorem
Polynomial.IsUnitTrinomial.irreducible_of_coprime
{p : Polynomial ℤ}
(hp : p.IsUnitTrinomial)
(h : IsRelPrime p p.mirror)
:
theorem
Polynomial.IsUnitTrinomial.irreducible_of_isCoprime
{p : Polynomial ℤ}
(hp : p.IsUnitTrinomial)
(h : IsCoprime p p.mirror)
:
A unit trinomial is irreducible if it is coprime with its mirror