Reduction of integer polynomials modulo n #
An integer polynomial reduces to zero in (ZMod n)[X] exactly when n divides every one of its
coefficients, that is, when the constant n divides it in ℤ[X]. Consequently two integer
polynomials with the same reduction modulo n differ by n times an integer polynomial, and if
the reduction of Φ divides the reduction of G then G = Φ Q + n D for integer polynomials
Q and D. Conversely, for a prime p, if Φ reduces to an irreducible polynomial and Φ(x)
and G(x) lie in a proper ideal containing p, then the reduction of Φ divides the reduction
of G.
Main results #
Polynomial.map_intCastRingHom_zmod_eq_zero_iff:G.map (Int.castRingHom (ZMod n)) = 0exactly when(n : ℤ[X]) ∣ G.Polynomial.exists_C_mul_eq_sub_of_map_zmod_eq: polynomials with the same reduction modulondiffer byC n * D.Polynomial.exists_eq_mul_add_C_mul_of_map_zmod_dvd: ifΦ mod ndividesG mod n, thenG = Φ * Q + C n * D.Polynomial.map_zmod_dvd_map_of_aeval_mem: ifΦ mod pis irreducible andΦ(x),G(x)lie in a proper ideal containing the primep, thenΦ mod pdividesG mod p.
An integer polynomial reduces to zero modulo n exactly when n divides it, that is, when
n divides each of its coefficients.
Two integer polynomials with the same reduction modulo n differ by n times an integer
polynomial.
If the reduction of Φ modulo n divides the reduction of G, then G = Φ Q + n D for
integer polynomials Q and D.
Let p be a prime, let x be an element of a commutative ring A, and let P be a proper
ideal of A containing p. If Φ reduces modulo p to an irreducible polynomial and both
Φ(x) and G(x) lie in P, then the reduction of Φ divides the reduction of G.