Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Infinite Regular Primes · small_regular_primes

Source:Wikipedia lists of open problems · en.wikipedia.org/wiki/Regular_prime
Textbook result A standard result, good for practice. First verified proof: +3 points.
Statement:reviewed
Statement:

The primes 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31 are regular.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.08376 [math.NT] · NS.08376v1 for this version
Declaration:RegularPrimes.small_regular_primes
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 3, later ones: 1; accepted critique: up to 60
Statement hash:111c5107f3f107f408446400d459e8ed9b0f9d815999674d131c4bfa8c9ba4db
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/RegularPrimes.lean

Formal statement

lemma small_regular_primes :
    { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31 } ⊆ regularPrimes
Show the full Challenge.lean (83 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Infinite Regular Primes

We define the notion of regular primes, which are prime numbers that are coprime with the
cardinality of the class group of the `p`-th cyclotomic field. We also state that there are
infinitely many regular primes.

*Reference:* [Wikipedia](https://en.wikipedia.org/wiki/Regular_prime)
-/

@[expose] public section

open scoped NumberField

variable (p : ℕ)

namespace RegularPrimes

/-- A natural prime number `p` is regular if `p` is coprime with the order of the class group
of the `p`-th cyclotomic field. -/
noncomputable def IsRegularPrime [Fact p.Prime] : Prop :=
  p.Coprime <| Fintype.card <| ClassGroup (𝓞 <| CyclotomicField p ℚ)

/-- The prime 37 is not a regular prime. -/
@[category textbook, AMS 11]
theorem not_isRegularPrime_37 : ¬ @IsRegularPrime 37 (by decide) := by
  sorry

/-- The set of regular primes. -/
def regularPrimes : Set ℕ := { p | ∃ (hp : Nat.Prime p), @IsRegularPrime p ⟨hp⟩ }

/-- The set of irregular primes. -/
def irregularPrimes : Set ℕ := { p | ∃ (hp : Nat.Prime p), ¬ @IsRegularPrime p ⟨hp⟩ }

/-- The primes 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31 are regular. -/
@[category textbook, AMS 11]
lemma small_regular_primes :
    { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31 } ⊆ regularPrimes := by
  sorry

/-- **Kummer's criterion.** An equivalent definition of a regular prime `p` is that it does not
divide the numerator of any of the Bernoulli numbers $B_k$ for $k = 2, 4, 6, \dots, p - 3$.
Not in Mathlib. -/
@[category textbook, AMS 11]
theorem isRegularPrime_iff_Bernoulli (p : ℕ) [Fact p.Prime] :
    IsRegularPrime p ↔ ∀ k ∈ Finset.Icc 2 (p - 3), Even k → ¬ (p : ℤ) ∣ (bernoulli' k).num := by
  sorry

/-- The set of irregular primes is infinite. -/
@[category research solved, AMS 11]
theorem infinitude_of_irregularprimes : irregularPrimes.Infinite := by
  sorry

/-- Conjecture: The set of regular primes is infinite. -/
def RegularPrimeConjecture : Prop :=
  regularPrimes.Infinite

/-- Conjecture: The set of regular primes is infinite. -/
@[category research open, AMS 11]
theorem regularprime_conjecture : RegularPrimeConjecture := by
  sorry

end RegularPrimes

To prove it: keep every definition of Challenge.lean unchanged and prove RegularPrimes.small_regular_primes with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_small_regular_primes : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch wikipedia-regularprimes--small-regular-primes
nosorry submit wikipedia-regularprimes--small-regular-primes nosorry/wikipedia-regularprimes--small-regular-primes/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.