FormalConjectures/Wikipedia/WolstenholmePrime.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
7 declarations, 4 contain sorry, 0 declared as axioms
Wolstenholme Prime
Reference: Wikipedia
Imports (1)
- theorem
WolstenholmePrime.wolstenholme_theoremsorry line 39 sourcedepends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,Nat.Prime,Nat.ModEq,HPow.hPow,Nat.choose,HSub.hSub,HMul.hMulProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous20 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- def
WolstenholmePrime.IsWolstenholmePrimeA prime $p > 7$ is called a Wolstenholme prime if $\binom{2p-1}{p-1} \equiv 1 (\pmod{p^4})$ line 47 sourceSource documentation
A prime $p > 7$ is called a Wolstenholme prime if $\binom{2p-1}{p-1} \equiv 1 (\pmod{p^4})$.
standard axioms: propext what this means
Statement uses:
NatProof uses:
And,GT.gt,OfNat.ofNat,Nat.Prime,Nat.ModEq,HPow.hPow,Nat.choose,HSub.hSub,HMul.hMul10 instances, coercions and auxiliary constants left out.
def IsWolstenholmePrime (p : ℕ) : Prop := …
- theorem
WolstenholmePrime.wolstenholme_prime_16483Two known Wolstenholme primes: 16843 and 2124679 line 56 sourceSource documentation
Two known Wolstenholme primes: 16843 and 2124679.
Formal proof linked here provided by AlphaProof
extra axioms: _private.0.WolstenholmePrime.wolstenholme_prime_16483._native.native_decide.ax_1 what this means
Statement uses: WolstenholmePrime.IsWolstenholmePrime,
OfNat.ofNat,NatProof uses:
id,And,GT.gt,Nat.Prime,Nat.ModEq,HPow.hPow,Nat.choose,HSub.hSub,HMul.hMul,And.intro,Eq,HMod.hMod,Mathlib.Meta.NormNum.isNat_lt_true,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.false,Mathlib.Meta.NormNum.isNat_prime_2,Bool.true,Mathlib.Meta.NormNum.isNat_minFac_4and 6 more23 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
theorem wolstenholme_prime_16483 : IsWolstenholmePrime 16843 := by …
Mentions: WolstenholmePrime.IsWolstenholmePrime
- theorem
WolstenholmePrime.wolstenholme_prime_2124679line 62 sourceextra axioms: _private.0.WolstenholmePrime.wolstenholme_prime_2124679._native.native_decide.ax_1 what this means
Statement uses: WolstenholmePrime.IsWolstenholmePrime,
OfNat.ofNat,NatProof uses:
id,And,GT.gt,Nat.Prime,Nat.ModEq,HPow.hPow,Nat.choose,HSub.hSub,HMul.hMul,And.intro,Eq,HMod.hMod,Mathlib.Meta.NormNum.isNat_lt_true,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.false,Mathlib.Meta.NormNum.isNat_prime_2,Bool.true,Mathlib.Meta.NormNum.isNat_minFac_4and 6 more23 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- theorem
WolstenholmePrime.wolstenholme_bernoulliEquivalently, a prime $p > 7$ is a Wolstenholme prime if it divides the numerator of the Bernoulli number $B_{p-3}$ sorry line 71 sourceSource documentation
Equivalently, a prime $p > 7$ is a Wolstenholme prime if it divides the numerator of the Bernoulli number $B_{p-3}$.
depends on sorry what this means
Statement uses:
Nat,Iff, WolstenholmePrime.IsWolstenholmePrime,And,GT.gt,OfNat.ofNat,Nat.Prime,Dvd.dvd,Int,Rat.num,bernoulli',HSub.hSubProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous14 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem wolstenholme_bernoulli (p : ℕ) : IsWolstenholmePrime p ↔ (p > 7) ∧ Nat.Prime p ∧ ↑p ∣ (bernoulli' (p - 3)).num := by …Mentions: WolstenholmePrime.IsWolstenholmePrime
- theorem
WolstenholmePrime.wolstenholme_harmonicAnother equivalent definition is that a prime $p > 7$ is a Wolstenholme prime if it $p^3$ divides the numerator of the harmonic number $H_{p-1}$ sorry line 80 sourceSource documentation
Another equivalent definition is that a prime $p > 7$ is a Wolstenholme prime if it $p^3$ divides the numerator of the harmonic number $H_{p-1}$.
depends on sorry what this means
Statement uses:
Nat,Iff, WolstenholmePrime.IsWolstenholmePrime,And,GT.gt,OfNat.ofNat,Nat.Prime,Dvd.dvd,Int,HPow.hPow,Rat.num,harmonic,HSub.hSubProof 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 wolstenholme_harmonic (p : ℕ) : IsWolstenholmePrime p ↔ (p > 7) ∧ Nat.Prime p ∧ ↑(p ^ 3) ∣ (harmonic (p - 1)).num := by …Mentions: WolstenholmePrime.IsWolstenholmePrime
- theorem
WolstenholmePrime.wolstenholme_prime_infiniteIt is conjectured that there are infinitely many Wolstenholme primes sorry line 90 sourceSource documentation
It is conjectured that there are infinitely many Wolstenholme primes.
Reference: Wikipedia
L4DEL explanation
It is conjectured that there are infinitely many Wolstenholme primes. Reference: Wikipedia
Sources and attribution: Pinned Lean source (1646ca16afd6)
depends on sorry what this means
Statement uses:
Set.Infinite,Nat,Set.ofPred, WolstenholmePrime.IsWolstenholmePrimeProof 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 wolstenholme_prime_infinite : {p : ℕ | IsWolstenholmePrime p}.Infinite := by …Mentions: WolstenholmePrime.IsWolstenholmePrime