FormalConjectures/Wikipedia/RegularPrimes.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
9 declarations, 5 contain sorry, 0 declared as axioms
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
Imports (1)
- def
RegularPrimes.IsRegularPrimeA natural prime numberpis regular ifpis coprime with the order of the class group of thep-th cyclotomic field line 40 sourceSource documentation
A natural prime number
pis regular ifpis coprime with the order of the class group of thep-th cyclotomic field.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fact,Nat.PrimeProof uses:
Nat.Coprime,Fintype.card,ClassGroup,NumberField.RingOfIntegers,CyclotomicField,Rat7 instances, coercions and auxiliary constants left out.
noncomputable def IsRegularPrime [Fact p.Prime] : Prop := …
- theorem
RegularPrimes.not_isRegularPrime_37The prime 37 is not a regular prime sorry line 45 sourceSource documentation
The prime 37 is not a regular prime.
depends on sorry what this means
Statement uses:
Not, RegularPrimes.IsRegularPrime,OfNat.ofNat,NatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous4 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
theorem not_isRegularPrime_37 : ¬ @IsRegularPrime 37 (by decide) := by …
Mentions: RegularPrimes.IsRegularPrime
- def
RegularPrimes.regularPrimesThe set of regular primes line 49 sourceSource documentation
The set of regular primes.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Set.ofPred,Exists,Nat.Prime, RegularPrimes.IsRegularPrime1 instances, coercions and auxiliary constants left out.
def regularPrimes : Set ℕ := { p | ∃ (hp : Nat.Prime p), @IsRegularPrime p ⟨hp⟩ }Mentions: RegularPrimes.IsRegularPrime
- def
RegularPrimes.irregularPrimesThe set of irregular primes line 52 sourceSource documentation
The set of irregular primes.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Set.ofPred,Exists,Nat.Prime,Not, RegularPrimes.IsRegularPrime1 instances, coercions and auxiliary constants left out.
def irregularPrimes : Set ℕ := { p | ∃ (hp : Nat.Prime p), ¬ @IsRegularPrime p ⟨hp⟩ } …Mentions: RegularPrimes.IsRegularPrime
- lemma
RegularPrimes.small_regular_primesThe primes 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31 are regular sorry line 56 sourceSource documentation
The primes 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31 are regular.
depends on sorry what this means
Statement uses:
LE.le,Set,Nat,Insert.insert,OfNat.ofNat,Singleton.singleton, RegularPrimes.regularPrimesProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous8 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
lemma small_regular_primes : { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31 } ⊆ regularPrimes := by …Mentions: RegularPrimes.regularPrimes
- theorem
RegularPrimes.isRegularPrime_iff_BernoulliKummer's criterion sorry line 64 sourceSource documentation
Kummer's criterion. An equivalent definition of a regular prime
pis 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.depends on sorry what this means
Statement uses:
Nat,Fact,Nat.Prime,Iff, RegularPrimes.IsRegularPrime,Membership.mem,Finset,Finset.Icc,OfNat.ofNat,HSub.hSub,Even,Not,Dvd.dvd,Int,Rat.num,bernoulli'Proof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous22 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem isRegularPrime_iff_Bernoulli (p : ℕ) [Fact p.Prime] : IsRegularPrime p ↔ ∀ k ∈ Finset.Icc 2 (p - 3), Even k → ¬ (p : ℤ) ∣ (bernoulli' k).num := by …Mentions: RegularPrimes.IsRegularPrime
- theorem
RegularPrimes.infinitude_of_irregularprimesThe set of irregular primes is infinite sorry line 70 sourceSource documentation
The set of irregular primes is infinite.
depends on sorry what this means
Statement uses:
Set.Infinite,Nat, RegularPrimes.irregularPrimesProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat1 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem infinitude_of_irregularprimes : irregularPrimes.Infinite := by …
- def
RegularPrimes.RegularPrimeConjectureConjecture: The set of regular primes is infinite line 74 sourceSource documentation
Conjecture: The set of regular primes is infinite.
standard axioms: Classical.choice, Quot.sound, propext what this means
Proof uses:
Set.Infinite,Nat, RegularPrimes.regularPrimesdef RegularPrimeConjecture : Prop := …
- theorem
RegularPrimes.regularprime_conjectureConjecture: The set of regular primes is infinite sorry line 79 sourceSource documentation
Conjecture: The set of regular primes is infinite.
depends on sorry what this means
Statement uses: RegularPrimes.RegularPrimeConjecture
Proof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat,Nat1 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem regularprime_conjecture : RegularPrimeConjecture := by …
Mentions: RegularPrimes.RegularPrimeConjecture