{
  "id": "8379",
  "ident": "NS.08379",
  "slug": "wikipedia-regularprimes--regularprime-conjecture",
  "title": "Infinite Regular Primes · regularprime_conjecture",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Conjecture: The set of regular primes is infinite.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "wikipedia",
  "source_url": "https://en.wikipedia.org/wiki/Regular_prime",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "RegularPrimes.regularprime_conjecture",
  "statement_lean": "theorem regularprime_conjecture : RegularPrimeConjecture",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Infinite Regular Primes\n\nWe define the notion of regular primes, which are prime numbers that are coprime with the\ncardinality of the class group of the `p`-th cyclotomic field. We also state that there are\ninfinitely many regular primes.\n\n*Reference:* [Wikipedia](https://en.wikipedia.org/wiki/Regular_prime)\n-/\n\n@[expose] public section\n\nopen scoped NumberField\n\nvariable (p : ℕ)\n\nnamespace RegularPrimes\n\n/-- A natural prime number `p` is regular if `p` is coprime with the order of the class group\nof the `p`-th cyclotomic field. -/\nnoncomputable def IsRegularPrime [Fact p.Prime] : Prop :=\n  p.Coprime <| Fintype.card <| ClassGroup (𝓞 <| CyclotomicField p ℚ)\n\n/-- The prime 37 is not a regular prime. -/\n@[category textbook, AMS 11]\ntheorem not_isRegularPrime_37 : ¬ @IsRegularPrime 37 (by decide) := by\n  sorry\n\n/-- The set of regular primes. -/\ndef regularPrimes : Set ℕ := { p | ∃ (hp : Nat.Prime p), @IsRegularPrime p ⟨hp⟩ }\n\n/-- The set of irregular primes. -/\ndef irregularPrimes : Set ℕ := { p | ∃ (hp : Nat.Prime p), ¬ @IsRegularPrime p ⟨hp⟩ }\n\n/-- The primes 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31 are regular. -/\n@[category textbook, AMS 11]\nlemma small_regular_primes :\n    { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31 } ⊆ regularPrimes := by\n  sorry\n\n/-- **Kummer's criterion.** An equivalent definition of a regular prime `p` is that it does not\ndivide the numerator of any of the Bernoulli numbers $B_k$ for $k = 2, 4, 6, \\dots, p - 3$.\nNot in Mathlib. -/\n@[category textbook, AMS 11]\ntheorem isRegularPrime_iff_Bernoulli (p : ℕ) [Fact p.Prime] :\n    IsRegularPrime p ↔ ∀ k ∈ Finset.Icc 2 (p - 3), Even k → ¬ (p : ℤ) ∣ (bernoulli' k).num := by\n  sorry\n\n/-- The set of irregular primes is infinite. -/\n@[category research solved, AMS 11]\ntheorem infinitude_of_irregularprimes : irregularPrimes.Infinite := by\n  sorry\n\n/-- Conjecture: The set of regular primes is infinite. -/\ndef RegularPrimeConjecture : Prop :=\n  regularPrimes.Infinite\n\n/-- Conjecture: The set of regular primes is infinite. -/\n@[category research open, AMS 11]\ntheorem regularprime_conjecture : RegularPrimeConjecture := by\n  sorry\n\nend RegularPrimes\n",
  "statement_hash": "111c5107f3f107f408446400d459e8ed9b0f9d815999674d131c4bfa8c9ba4db",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}