Unique factorization lemmas #
Auxiliary material for the formalization of M. Stoll, Galois groups over ℚ of some iterated polynomials, Arch. Math. 59 (1992), 239-244; upstreaming candidates for Mathlib.
If σ is a multiplicative automorphism of a normalization UFD and σ p is associated to
p, then normalize ∘ σ permutes the multiset of normalized factors of p.
p ^ k ∣ x iff k is at most the multiplicity of a normalized prime p in x ≠ 0.
A normalized prime p divides x ≠ 0 iff its multiplicity in x is positive.
The multiplicity of a normalized prime p in x ≠ 0 vanishes iff p ∤ x.
The multiplicity at p is determined by the residue mod p ^ (E+1): if v_p y = E and
p ^ (E+1) ∣ x - y, then v_p x = E.
If a sequence x in a UFD is nonzero on [1,∞), first p-divisible at index m ≥ 2 with
p ∤ x (m+1), and periodic modulo p ^ (E+1) with period m from index 2 on (where
E = v_p (x m)), then v_p (x n) = E when m ∣ n and 0 otherwise.