Documentation

TauCeti.RingTheory.Polynomial.FactorDegrees

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 #

References #

noncomputable def Polynomial.factorDegrees (f : Polynomial ℤ) (p : ℕ) [Fact (Nat.Prime p)] :

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
    @[simp]

    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.

    theorem Polynomial.pos_of_mem_factorDegrees {f : Polynomial ℤ} {p d : ℕ} [Fact (Nat.Prime p)] (hd : d ∈ f.factorDegrees p) :
    0 < d

    Every degree occurring in f.factorDegrees p is positive.

    @[simp]

    The number of factor degrees is the number of normalized irreducible factors, counted with multiplicity.

    @[simp]

    The zero polynomial has no factor degrees.

    @[simp]

    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.

    @[simp]

    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.

    @[simp]

    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.