OpenFrontiers
← Back to the index
OP-9968Status unassessedNumber theory

Artin's conjecture on primitive roots

Artin's conjecture on primitive roots

Inferred from the community field; finer classification has not been reviewed.

Specialist source · status unassessedAs of 2026-09-10Source & evidence ↓

Problem statement

artin_primitive_roots.parts.i

Artin's Conjecture on Primitive Roots, first half. Let aa be an integer that is not a square number and not −1−1. Then the set S(a)S(a) of primes pp such that aa is a primitive root modulo pp has a positive asymptotic density inside the set of primes. In particular, S(a)S(a) is infinite.

artin_primitive_roots.parts.ii

Artin's Conjecture on Primitive Roots, second half. Write a=a0b2a = a_0 b^2 where a0a_0 is squarefree. Under the conditions that aa is not a perfect power and a0≢1(mod4)a_0\not\equiv 1\pmod{4} (sequence A85397 in the OEIS), the density of the set S(a)S(a) of primes pp such that aa is a primitive root modulo pp is independent of aa and equals Artin's constant.

artin_primitive_roots.variants.part_ii_power_squarefreePart_not_modeq_one

Artin's Conjecture on Primitive Roots, second half, power version If a=bma = b^m is a perfect odd power of a number bb whose squarefree part b0≢1(mod4)b_0\not\equiv 1 \pmod{4}, then the density of the set S(a)S(a) of primes pp such that aa is a primitive root modulo pp is given by

C∏p∣mp(p−2)p2−p−1C\prod_{p \mid m} \frac{p(p - 2)}{p^2 - p - 1}

, where CC is Artin's constant.

artin_primitive_roots.variants.part_ii_power_squarefreePart_modeq_one

Artin's Conjecture on Primitive Roots, second half, power version If a=bma = b^m is a perfect power of a number bb whose squarefree part b0≡1(mod4)b_0\equiv 1 \pmod{4}, then the density of the set S(a)S(a) of primes pp such that aa is a primitive root modulo pp is given by

C(∏p∣mp(p−2)(p2−p−1))(1−∏p∣gcd⁡(b0,m)12−p∏p∣b0,p∤m1(1+p−p2)),C \left(\prod_{p \mid m} \frac{p(p-2)}{(p ^ 2 - p - 1)}\right) \left(1 - \prod_{p \mid \gcd(b_0, m)} \frac{1}{2 - p} \prod_{p \mid b_0, p\nmid m} \frac{1}{(1 + p - p ^ 2)}\right),

where CC is Artin's constant.

Lean 4

No Lean submitted

Formal statement

Lean 4
/-
Copyright 2025 The Formal Conjectures Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/

import FormalConjecturesUtil
import FormalConjectures.Millenium.RiemannHypothesis

/-!
# Artin's conjecture on primitive roots

Artin's conjecture predicts, given an integer $a$, densities of primes $p$ for which
$a$ is a primitive root modulo $p$. Under certain conditions (when $a$ is not a
power and its squarefree part is $1\pmod{4}$) the density is given by Artin's constant
$$\prod_{p\ \text{prime}} \left(1 - \frac{1}{p(p - 1)}\right).$$
For more general values of $a$, this constant must be corrected by certain factors.
- When $a = b^m$, $m$ is a maximal odd power, the squarefree part of $b$ satisfies
  $b_0 \not\equiv 1\pmod{4}$. Then Artin's constant should be multiplied by
  $$\prod_{p \mid m} \frac{p(p - 2)}{p^2 - p - 1}.$$
- When $a = b^m$, $m$ is a maximal power, the squarefree part of $b$ satisfies
  $b_0\equiv 1\pmod{4}$. Then Artin's constant should be multiplied by the factor in
  the above bullet, as well as an additional entanglement factor from the primes dividing
  $\gcd(b_0, m)$ and primes dividing $b_0$:
  $$1 - \prod_{p \mid \gcd(b_0, m)} \frac{1}{2 - p}
  \prod_{p \mid b_0, p\nmid m} \frac{1}{1 + p - p^2}.$$
- When $a = -1$ or $a$ is a square, then the density is $0$.

Note that Artin's conjecture has been proved subject to the Generalized Riemann Hypothesis
[Ho67].

*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/Artin%27s_conjecture_on_primitive_roots)
- [A85397](https://oeis.org/A85397)
- [LMS14](https://arxiv.org/pdf/1112.4816) Lenstra, H.W. et al. "Character sums for primitive root densities" _arXiv:1112.4816_ [math.NT] (2014).
- [Ho67] Hooley, C. "On Artin's conjecture." _Journal für die reine und angewandte Mathematik_ 225 (1967): 209-220.
-/

open GRH
open scoped Topology Nat

namespace ArtinPrimitiveRootsConjecture

/-- Let $S(a)$ be the set of primes such that $a$ is a primitive root modulo $p$. -/
abbrev S (a : ℤ) : Set ℕ :=
  {p : ℕ | p.Prime ∧ orderOf (a : ZMod p) = (p-1 : ℕ)}

/--
**Artin's Constant** is defined to be the product
$$\prod_{p\ \text{prime}} \left(1 - \frac{1}{p(p - 1)}\right)$$.
-/
noncomputable def ArtinConstant : ℝ :=
  ∏' p : Nat.Primes, (1 - 1 / (p * (p - 1)) : ℝ)

/--
Artin's conjecture on $S(a)$ when $a = b^m$ is a power, where $m$ is odd and maximal,
requires a correction factor to multiply `ArtinConstant` and is given by
$$\prod_{p \mid m} \frac{p(p - 2)}{p^2 - p - 1}.$$
-/
-- Eq. (1.2) of https://arxiv.org/pdf/1112.4816
noncomputable def powCorrectionFactor (m : ℕ) : ℝ :=
  ∏ p ∈ m.primeFactors, p * (p - 2 : ℝ) / (p ^ 2 - p - 1)

/--
Artin's conjecture on $S(a)$ when $a = b^m$ is a power, and the squarefree part
of $b_0\equiv 1\pmod{4}$, requires a further correct factor to
`ArtinConstant * powCorrectionFactor m`, which modifies primes which divide
$\gcd(b_0, m)$ and primes which do not divide $m$ separately as
$$ 1 - \prod_{p \mid \gcd(b_0, m)} \frac{1}{2 - p}
  \prod_{p \mid b_0, p\nmid m} \frac{1}{1 + p - p^2}.$$
-/
-- Eq. (1.4) of https://arxiv.org/pdf/1112.4816
noncomputable def entanglementFactor (b : ℕ) (m : ℕ) : ℝ :=
  (1 - (∏ p ∈ (b.squarefreePart.gcd m).primeFactors, 1 / (2 - p : ℝ)) *
    (∏ p ∈ b.squarefreePart.primeFactors \ m.primeFactors, 1 / (1 + p - p ^ 2 : ℝ)))
/--
**Artin's Conjecture on Primitive Roots**, first half.
Let $a$ be an integer that is not a square number and not $−1$. Then the set $S(a)$
of primes $p$ such that $a$ is a primitive root modulo $p$ has a positive asymptotic
density inside the set of primes. In particular, $S(a)$ is infinite.
-/
@[category research open, AMS 11]
theorem artin_primitive_roots.parts.i (a : ℤ) (ha : ¬IsSquare a) (ha' : a ≠ -1) :
    ∃ x > 0, (S a).HasDensity x {p | p.Prime} := by
  sorry

/--
**Artin's Conjecture on Primitive Roots**, first half, conditional on GRH.
-/
@[category research solved, AMS 11]
theorem conditional_artin_primitive_roots.parts.i (a : ℤ) (ha : ¬IsSquare a) (ha' : a ≠ -1)
    (h : type_of% generalized_riemann_hypothesis) :
    ∃ x > 0, (S a).HasDensity x {p | p.Prime} := by
  sorry

/--
**Artin's Conjecture on Primitive Roots**, second half.
Write $a = a_0 b^2$ where $a_0$ is squarefree. Under the conditions that $a$ is not a perfect
power and $a_0\not\equiv 1\pmod{4}$ (sequence A85397 in the OEIS), the density of the set
$S(a)$ of primes $p$ such that $a$ is a primitive root modulo $p$ is independent of $a$ and
equals Artin's constant.
-/
@[category research open, AMS 11]
theorem artin_primitive_roots.parts.ii
    (a a_0 b : ℤ) (ha : a = a_0 * b ^ 2)
    (ha' : ∀ n m, m ≠ 1 → a ≠ n ^ m) (ha_0 : Squarefree a_0)
    (ha_0' : ¬a_0 ≡ 1 [ZMOD 4]) :
    (S a).HasDensity ArtinConstant {p | p.Prime} := by
  sorry


/--
**Artin's Conjecture on Primitive Roots**, second half, conditional on GRH.
-/
@[category research solved, AMS 11]
theorem conditional_artin_primitive_roots.parts.ii
    (a a_0 b : ℤ) (ha : a = a_0 * b ^ 2)
    (ha' : ∀ n m, m ≠ 1 → a ≠ n ^ m) (ha_0 : Squarefree a_0)
    (ha_0' : ¬a_0 ≡ 1 [ZMOD 4])
    (h : type_of% generalized_riemann_hypothesis) :
    (S a).HasDensity ArtinConstant {p | p.Prime} := by
  sorry

/--
**Artin's Conjecture on Primitive Roots**, second half, different residue version
If $a$ is a square number or $a = −1$, then the density of the set $S(a)$ of primes
$p$ such that $a$ is a primitive root modulo $p$ is $0$.
-/
@[category research solved, AMS 11]
--See https://math.stackexchange.com/questions/2780014/prove-that-a-perfect-square-is-not-a-primitive-root-modulo-p-for-any-prime-p
theorem artin_primitive_roots.variants.part_ii_square_or_minus_one
    (a : ℤ) (ha : IsSquare a ∨ a = -1) :
    (S a).HasDensity 0 {p | p.Prime} := by
  sorry

/--
**Artin's Conjecture on Primitive Roots**, second half, power version
If $a = b^m$ is a perfect odd power of a number $b$ whose squarefree part
$b_0\not\equiv 1 \pmod{4}$, then the density of the set $S(a)$ of primes $p$ such that
$a$ is a primitive root modulo $p$ is given by
$$C\prod_{p \mid m} \frac{p(p - 2)}{p^2 - p - 1}$$,
where $C$ is Artin's constant.
-/
@[category research open, AMS 11]
theorem artin_primitive_roots.variants.part_ii_power_squarefreePart_not_modeq_one
    (a m b : ℕ) (ha : a = b ^ m) (hb : ∀ u v, 1 < u → b ≠ v^u) (hm₁ : 1 < m)
    (hm₂ : Odd m) (hb' : ¬ b.squarefreePart ≡ 1 [MOD 4]) :
    (S a).HasDensity (ArtinConstant * powCorrectionFactor m) {p | p.Prime} := by
  sorry

/--
**Artin's Conjecture on Primitive Roots**, second half, power version, conditional on GRH
-/
@[category research solved, AMS 11]
theorem conditional_artin_primitive_roots.variants.part_ii_power_squarefreePart_not_modeq_one
    (a m b : ℕ) (ha : a = b ^ m) (hb : ∀ u v, 1 < u → b ≠ v ^ u) (hm₁ : 1 < m)
    (hm₂ : Odd m) (hb' : ¬ b.squarefreePart ≡ 1 [MOD 4])
    (h : type_of% generalized_riemann_hypothesis) :
    (S a).HasDensity (ArtinConstant * powCorrectionFactor m) {p | p.Prime} := by
  sorry

/--
**Artin's Conjecture on Primitive Roots**, second half, power version
If $a = b^m$ is a perfect power of a number $b$ whose squarefree part $b_0\equiv 1 \pmod{4}$,
then the density of the set $S(a)$ of primes $p$ such that $a$ is a primitive root modulo $p$
is given by
$$C \left(\prod_{p \mid m} \frac{p(p-2)}{(p ^ 2 - p - 1)}\right)
\left(1 - \prod_{p \mid \gcd(b_0, m)} \frac{1}{2 - p}
\prod_{p \mid b_0, p\nmid m} \frac{1}{(1 + p - p ^ 2)}\right),$$
where $C$ is Artin's constant.
-/
@[category research open, AMS 11]
theorem artin_primitive_roots.variants.part_ii_power_squarefreePart_modeq_one
    (a m b : ℕ) (ha : a = b ^ m) (hb : ∀ u v, 1 < u → b ≠ v ^ u) (hm₁ : 1 < m)
    (hm₂ : Odd m) (hb' : b.squarefreePart ≡ 1 [MOD 4]) :
    (S a).HasDensity
      (ArtinConstant * powCorrectionFactor m * entanglementFactor b m)
      {p | p.Prime} := by
  sorry

/--
**Artin's Conjecture on Primitive Roots**, second half, power version, conditional on GRH.
-/
@[category research solved, AMS 11]
theorem conditional_artin_primitive_roots.variants.part_ii_power_squarefreePart_modeq_one
    (a m b : ℕ) (ha : a = b ^ m) (hb : ∀ u v, 1 < u → b ≠ v ^ u) (hm₁ : 1 < m)
    (hm₂ : Odd m) (hb' : b.squarefreePart ≡ 1 [MOD 4])
    (h : type_of% generalized_riemann_hypothesis) :
    (S a).HasDensity
      (ArtinConstant * powCorrectionFactor m * entanglementFactor b m)
      {p | p.Prime} := by
  sorry

end ArtinPrimitiveRootsConjecture

On-site verification needs an executable Lean target. None is attached yet.

A source attachment or link is not a verified proof. The statement’s correspondence with the original question needs human review.

Proofs & verification

No Lean has been submitted for this problem yet. A Lean file can be attached to a submission for review, though with no target here it cannot be machine-checked.

Background

Source snapshot inspected on 10 September 2026. Subsequent research status and the accuracy of source formalizations have not been independently certified.

Fixed commit b82b08faa9006484021c12005ab41287fb2ffb69. This file contains 4 source-labeled research-open declarations. Other declarations in the attached file can be definitions, solved results or tests. The file is preserved as source material; it has not been compiled or proved by this import.

Copyright The Formal Conjectures Authors. Code: Apache-2.0; other original material: CC BY 4.0. Third-party sources retain their own licenses. Original source files and notices preserved.

References
  1. [1]Formal Conjectures — Artin's conjecture on primitive roots link
  2. [2]Original reference cited in the formalization link
  3. [3]Original reference cited in the formalization link
  4. [4]Original reference cited in the formalization link

Recorded progress

Add yours →

Nothing recorded yet. A pointer to a paper the entry is missing counts.

Machine attempts

0 recorded

Attempts run against the statement below and are recorded in full, including the failures. The point is to stop the next model — and the next person — from re-walking a road that is already known to end. Each attempt costs 25 credits.

No machine attempts recorded.

Sign in to run an attempt. New accounts start with enough credits for ten.

Discussion

0 notes

Notes are for clarifying the statement, flagging a missing reference, or recording why an approach fails. Claimed solutions belong in a submission, where they can be reviewed.

No notes yet.

Sign in to add a note.