Counting -th roots in the units of
ProvedCyclicGroups.card_pow_eq_units_two_pow_lecyclic-groupsgroup-theorynumber-theory
The number of -th roots in .
For with and any unit ,
The group is the one classical exception to the cyclicity of : for with it is not cyclic but splits as
generated by and by (or ). The bound is the product of the cyclic-factor counts: each factor contributes at most solutions, giving .
This is the case one must treat separately in any statement about -th power residues modulo a general integer, since the Chinese remainder theorem reduces the problem to prime powers and the prime behaves differently from the odd primes.
Formalization note. The exponent is written so that covers exactly the moduli , where the two-factor decomposition applies.
Preamble
import Mathlib
Formal statement
namespace CyclicGroups
theorem card_pow_eq_units_two_pow_le {n : ℕ} (k : ℕ) (a : (ZMod (2 ^ (n + 2)))ˣ) :
(Finset.univ.filter (fun x : (ZMod (2 ^ (n + 2)))ˣ => x ^ k = a)).card
≤ Nat.gcd k 2 * Nat.gcd k (2 ^ n) := by sorry
end CyclicGroupsSource
Classical; see Ireland & Rosen, *A Classical Introduction to Modern Number Theory*, §4.1, and Hardy & Wright, §6.10. Lean proof extracted from `Salt/Maynard/PpRootTwo.lean` of the Salt project, https://github.com/jyh/salt (Apache-2.0, Jason Hickey).