The monic irreducible factors of a polynomial over a field #
For a polynomial f over a field K, Polynomial.Factors f is the type of its distinct monic
irreducible factors: the subtype of K[X] cut out by Irreducible p ∧ p.Monic ∧ p ∣ f. Working
with this subtype rather than with normalizedFactors f keeps DecidableEq K out of the
statements; the two are compared by Mathlib's Polynomial.mem_normalizedFactors_iff, whose
conjunct order the predicate above follows.
The factors are pairwise coprime, and when f is nonzero and squarefree their product is
associated to f, so the ideal (f) is the intersection of the ideals (p). That is the input
for the Chinese Remainder decomposition of K[X] ⧸ (f) into the fields K[X] ⧸ (p).
Main definitions #
Polynomial.Factors: the distinct monic irreducible factors off, as a type.Polynomial.Factors.linearEquivRoots: the linear factors correspond to the roots off, withlinearEquivRoots_applyandlinearEquivRoots_symm_applycomputing both directions.
Main results #
Polynomial.Factors.finite: a nonzero polynomial has finitely many factors.Polynomial.Factors.normalizedFactors_eq_map_univ_val: for a nonzero squarefree polynomial, its normalized factors are precisely the distinct monic irreducible factors.Polynomial.Factors.isCoprime: distinct factors are coprime.Polynomial.Factors.span_eq_iInf_span: forfnonzero and squarefree,(f) = ⨅ p, (p).Polynomial.sum_natDegree_normalizedFactors: the degrees of the normalized irreducible factors, counted with multiplicity, sum to the degree.Polynomial.map_natDegree_normalizedFactors_eq_singleton_iff: those degrees form a singleton exactly when the polynomial is irreducible.
Provenance #
Adapted, with the author's proofs, from Michael Stoll's EllipticCurves project
(github.com/MichaelStollBayreuth/EllipticCurves, Apache-2.0, commit 66889eada51a),
EllipticCurves/Mathlib/Basic.lean, section EtaleDecomposition. The source is written against
Lean v4.32.0; this is a forward port.
The distinct monic irreducible factors of f, as an index type.
This is not defined via normalizedFactors (which would require DecidableEq K); the
predicate is spelled in the order of Polynomial.mem_normalizedFactors_iff, which is therefore
the characterization of membership in normalizedFactors f.
Instances For
For a nonzero squarefree polynomial, its normalized factors list its distinct monic irreducible factors exactly once.
The monic linear factors of f correspond to the roots of f.
Equations
- One or more equations did not get rendered due to their size.
Instances For
linearEquivRoots sends a monic linear factor to the root it records, the negated constant
coefficient.
Distinct monic irreducible factors of f are coprime: each spans a maximal ideal, and the
two ideals differ because a monic polynomial is determined by the ideal it spans.
A nonzero squarefree polynomial is associated to the product of its distinct monic irreducible factors.
For f nonzero and squarefree, the ideal (f) is the intersection of the ideals (p) over
the monic irreducible factors p of f. This is the input for the Chinese Remainder
decomposition of K[X] ⧸ (f).
A prime factor of the image of f under a ring homomorphism to a commutative semiring
divides the image of one of the monic irreducible factors of f.
This lets computations after changing coefficients be indexed by the factors over the base field, including when the target is a nonfield ring such as a product of fields.
Degrees of the normalized irreducible factors #
Polynomial.Factors keeps DecidableEq K out of its statements by working with a subtype, at
the cost of forgetting multiplicities. The lemmas below are the counterparts for
normalizedFactors, which does record them.
The degrees of the normalized irreducible factors of a polynomial over a field, counted with multiplicity, sum to its degree.
A polynomial over a field with exactly one normalized irreducible factor, counted with multiplicity, is irreducible.
The degrees of the normalized irreducible factors of a polynomial over a field form the
singleton {g.natDegree} exactly when the polynomial is irreducible.