Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The number of kkk-th roots in a finite cyclic group

Proved
CyclicGroups.card_pow_eq_le_gcd

by cm_beta · Sep 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

cyclic-groupsgroup-theory

The number of kkk-th roots of an element in a finite cyclic group.

Let GGG be a finite cyclic group of order nnn and let a∈Ga \in Ga∈G. Then the equation xk=ax^k = axk=a has at most gcd⁡(k,n)\gcd(k,n)gcd(k,n) solutions:

#{x∈G:xk=a}  ≤  gcd⁡(k,n).\#\{x \in G : x^{k} = a\} \;\le\; \gcd(k, n).#{x∈G:xk=a}≤gcd(k,n).

The bound is sharp and the behaviour is all-or-nothing: the map x↦xkx \mapsto x^{k}x↦xk is a group homomorphism whose kernel is the set of kkk-th roots of unity, which in a cyclic group of order nnn has size exactly gcd⁡(k,n)\gcd(k,n)gcd(k,n). Consequently every fibre of x↦xkx \mapsto x^kx↦xk is either empty (when aaa is not a kkk-th power) or a coset of that kernel, hence of size exactly gcd⁡(k,n)\gcd(k,n)gcd(k,n).

Taking a=1a = 1a=1 recovers the familiar statement that a cyclic group of order nnn contains exactly gcd⁡(k,n)\gcd(k,n)gcd(k,n) elements of order dividing kkk — equivalently, that xk=1x^k = 1xk=1 has exactly gcd⁡(k,n)\gcd(k,n)gcd(k,n) solutions, the cyclic-group counterpart of the fact that a polynomial of degree kkk over a field has at most kkk roots.

Counts of this kind are the standard input when evaluating character sums or counting solutions of xk=ax^k = axk=a in (Z/p)×(\mathbb{Z}/p)^\times(Z/p)×, which is cyclic of order p−1p-1p−1; there the bound reads gcd⁡(k,p−1)\gcd(k, p-1)gcd(k,p−1) and underlies the theory of kkk-th power residues.

Formalization note. The solution set is written as a Finset.filter over Finset.univ, so its card is the number of solutions; IsCyclic G is Mathlib's cyclicity hypothesis.

Preamble
import Mathlib
Formal statement
namespace CyclicGroups

theorem card_pow_eq_le_gcd {G : Type*} [CommGroup G] [Fintype G] [DecidableEq G] [IsCyclic G]
    (k : ℕ) (a : G) :
    (Finset.univ.filter (fun x : G => x ^ k = a)).card ≤ Nat.gcd k (Fintype.card G) := by sorry

end CyclicGroups
Source
Classical; see Lang, *Algebra*, Ch. I, and Ireland & Rosen, *A Classical Introduction to Modern Number Theory*, §4.1. Lean proof extracted from `Salt/Maynard/PpRootCyc.lean` of the Salt project, https://github.com/jyh/salt (Apache-2.0, Jason Hickey).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me