FormalConjectures/ErdosProblems/17.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
6 declarations, 3 contain sorry, 0 declared as axioms
Erdős Problem 17
Reference: erdosproblems.com/17
Imports (1)
Imported by 1 file
- def
Erdos17.IsClusterPrimeA prime $p$ is a cluster prime if every even natural number $n \le p - 3$ can be written as a difference of two primes $q_1 - q_2$ with $q_1, q_2 \le p$ line 34 sourceSource documentation
A prime $p$ is a cluster prime if every even natural number $n \le p - 3$ can be written as a difference of two primes $q_1 - q_2$ with $q_1, q_2 \le p$.
standard axioms: propext what this means
Statement uses:
NatProof uses:
And,Nat.Prime,Even,LE.le,Int,HSub.hSub,OfNat.ofNat,Exists,Eq8 instances, coercions and auxiliary constants left out.
def IsClusterPrime (p : ℕ) : Prop := …
- theorem
Erdos17.erdos_17Erdős Problem 17 sorry line 42 sourceSource documentation
Erdős Problem 17. Are there infinitely many cluster primes?
depends on sorry what this means
Statement uses:
Iff,True,Set.Infinite,Nat,Set.ofPred, Erdos17.IsClusterPrimeProof 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 erdos_17 : answer(sorry) ↔ {p : ℕ | IsClusterPrime p}.Infinite := by …Mentions: Erdos17.IsClusterPrime
- def
Erdos17.clusterPrimeCountThe counting function of cluster primes $\le n$ line 46 sourceSource documentation
The counting function of cluster primes $\le n$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Nat.card,Set.ofPred,And,LE.le, Erdos17.IsClusterPrime2 instances, coercions and auxiliary constants left out.
noncomputable def clusterPrimeCount (n : ℕ) : ℕ := …
- theorem
Erdos17.erdos_17.variants.upper_BESIn 1999 Blecksmith, Erdős, and Selfridge [BES99] proved the upper bound $$\pi^{\mathcal{C}}(x) \ll_A x(\log x)^{-A}$$ for every real $A > 0$ sorry line 56 sourceSource documentation
In 1999 Blecksmith, Erdős, and Selfridge [BES99] proved the upper bound $$\pi^{\mathcal{C}}(x) \ll_A x(\log x)^{-A}$$ for every real $A > 0$.
[BES99] Blecksmith, Richard and Erd\H os, Paul and Selfridge, J. L., Cluster primes. Amer. Math. Monthly (1999), 43--48.
depends on sorry what this means
Statement uses:
Real,LT.lt,OfNat.ofNat,Asymptotics.IsBigO,Nat,Filter.atTop, Erdos17.clusterPrimeCount,HDiv.hDiv,HPow.hPow,Real.logProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous25 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_17.variants.upper_BES {A : ℝ} (hA : 0 < A) : (fun x ↦ (clusterPrimeCount x : ℝ)) =O[atTop] fun x ↦ x / (log x) ^ A := by …Mentions: Erdos17.clusterPrimeCount
- theorem
Erdos17.erdos_17.variants.upper_ElsholtzIn 2003, Elsholtz [El03] refined the upper bound to $$\pi^{\mathcal{C}}(x) \ll x\,\exp\!\bigl(-c(\log\log x)^2\bigr)$$ for every real $0 < c < 1/8$ sorry line 68 sourceSource documentation
In 2003, Elsholtz [El03] refined the upper bound to $$\pi^{\mathcal{C}}(x) \ll x\,\exp\!\bigl(-c(\log\log x)^2\bigr)$$ for every real $0 < c < 1/8$.
[El03] Elsholtz, Christian, On cluster primes. Acta Arith. (2003), 281--284.
depends on sorry what this means
Statement uses:
Exists,Real,And,LT.lt,OfNat.ofNat,Membership.mem,Set,Set.Ioo,HDiv.hDiv,Nat,Asymptotics.IsBigOWith,Filter.atTop, Erdos17.clusterPrimeCount,HMul.hMul,Real.exp,Neg.neg,HPow.hPow,Real.logProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous50 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_17.variants.upper_Elsholtz : ∃ C : ℝ, 0 < C ∧ ∀ c ∈ Set.Ioo 0 (1 / 8), IsBigOWith C atTop (fun x ↦ (clusterPrimeCount x : ℝ)) (fun x ↦ x * exp (-c * (log (log x)) ^ 2)) := by …Mentions: c, Erdos17.clusterPrimeCount
- theorem
Erdos17.isClusterPrime_97_isLeast_non_cluster$97$ is the smallest prime that is not a cluster prime line 77 sourceSource documentation
$97$ is the smallest prime that is not a cluster prime.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
IsLeast,Nat,Set.ofPred,And,Nat.Prime,Not, Erdos17.IsClusterPrime,OfNat.ofNatProof uses:
Iff,Membership.mem,Finset,Finset.range,HSub.hSub,Even,Exists,HAdd.hAdd,LE.le,Iff.intro,Int,Eq,Decidable.byContradiction,Eq.mp,LT.lt,Exists.intro,And.intro,Eq.mpr,id,congrArgand 82 more92 instances, coercions and auxiliary constants left out.
Tactic trace: 70 steps
Open to load the checked before-and-after goal states.
theorem isClusterPrime_97_isLeast_non_cluster : IsLeast {p : ℕ | p.Prime ∧ ¬ IsClusterPrime p} 97 := by …Mentions: Erdos17.IsClusterPrime