Degrees of polynomial factors modulo a prime #
For an integral polynomial f and a prime p, Polynomial.factorDegrees f p is the multiset of
degrees of the monic irreducible factors of the reduction of f modulo p. Multiplicities are
retained: a repeated irreducible factor contributes its degree repeatedly.
This file gives the generic polynomial API for the carrier: membership, products, total degree,
and its relationship with irreducibility. Worked examples for X ^ 5 - X - 1 are in
TauCeti/FieldTheory/GaloisGroups/FactorDegrees.lean.
Main declarations #
Polynomial.factorDegrees: the multiset of factor degrees offmodulop.Polynomial.factorDegrees_def: a convenient defining equation for the carrier.Polynomial.mem_factorDegrees_iff: a number occurs as a factor degree exactly when it is the degree of a normalized irreducible factor of the reduction.Polynomial.factorDegrees_mul: the factor degrees of a product with nonzero reductions are the sum of the factor degrees.Polynomial.factorDegrees_eq_map_natDegree_of_map_eq_prod: compute the factor degrees from any factorization of the reduction into irreducibles.Polynomial.sum_factorDegrees_eq_natDegree_map,Polynomial.Monic.sum_factorDegrees: the factor degrees sum to the degree after reduction, which for monicfisf.natDegree.Polynomial.factorDegrees_eq_singleton_iff: the factor degrees are{n}exactly when the reduction is irreducible of degreen.Polynomial.squarefree_map_of_nodup_factorDegrees: pairwise distinct factor degrees force the reduction to be squarefree.
References #
- D. A. Marcus, Number Fields, 2nd edition, Springer 2018, Chapter 4.
- J. Neukirch, Algebraic Number Theory, Springer 1999, Chapter I, §8.
The multiset of degrees of the monic irreducible factors of the reduction of an integral polynomial modulo a prime. Repeated factors occur with their multiplicities.
Equations
Instances For
A convenient defining equation for Polynomial.factorDegrees.
A natural number occurs in f.factorDegrees p exactly when it is the degree of a normalized
irreducible factor of the reduction of f modulo p.
Every degree occurring in f.factorDegrees p is positive.
The number of factor degrees is the number of normalized irreducible factors, counted with multiplicity.
The zero polynomial has no factor degrees.
The constant polynomial one has no factor degrees.
Factor degrees turn a product whose reductions are nonzero into multiset addition.
The factor degrees are read off from any factorization of the reduction into irreducibles, without normalizing the factors first.
The sum of the factor degrees is the degree of the polynomial after reduction.
For a monic polynomial, the degrees of all irreducible factors of its reduction modulo a prime, counted with multiplicity, sum to the degree of the original polynomial.
If the reduction of f modulo p is irreducible, its only factor degree is its degree.
A single factor degree, whatever it is, forces the reduction to be irreducible.
The factor degrees of f modulo p are the singleton {n} exactly when the reduction is
irreducible of degree n.
For a monic integral polynomial, having its own degree as sole factor degree is equivalent to its reduction being irreducible.
A nonzero reduction whose irreducible factors have pairwise distinct degrees is squarefree: no irreducible factor can then occur twice.