FormalConjectures/ErdosProblems/235.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
11 declarations, 2 contain sorry, 0 declared as axioms
Erdős Problem 235
References:
- erdosproblems.com/235
- [Ho65] Hooley, Christopher, On the difference between consecutive numbers prime to $n$. II. Publ. Math. Debrecen (1965), 39--49.
Imports (1)
- def
Erdos235.NThe product of the firstk + 1primes line 39 sourceSource documentation
The product of the first
k + 1primes. On erdosproblems.com/235 this is $N_{k+1}=2\cdot 3\cdots p_{k+1}$. The limit as $k\to\infty$ is the same for either indexing.L4DEL explanation
The product of the first
k + 1primes. On erdosproblems.com/235 this is $N_{k+1}=2\cdot 3\cdots p_{k+1}$. The limit as $k\to\infty$ is the same for either indexing.Sources and attribution: Pinned Lean source (1646ca16afd6)
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
primorial,Nat.nth,Nat.Primenoncomputable def N (k : ℕ) : ℕ := …
- def
Erdos235.coprimeListThe increasing list of integers< nthat are coprime tonline 43 sourceSource documentation
The increasing list of integers
< nthat are coprime ton.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,ListProof uses:
Finset.sort,Finset.filter,Nat.Coprime,Finset.range,LE.le8 instances, coercions and auxiliary constants left out.
def coprimeList (n : ℕ) : List ℕ := …
- def
Erdos235.gapsThe gaps $a_i - a_{i-1}$ between consecutive entries ofcoprimeList nline 47 sourceSource documentation
The gaps $a_i - a_{i-1}$ between consecutive entries of
coprimeList n.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,ListProof uses:
List.zipWith,HSub.hSub, Erdos235.coprimeList,List.tail2 instances, coercions and auxiliary constants left out.
def gaps (n : ℕ) : List ℕ := …
- def
Erdos235.countGapsThe number of gaps of size at most $c \cdot n / \varphi(n)$ line 51 sourceSource documentation
The number of gaps of size at most $c \cdot n / \varphi(n)$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
List.countP,Decidable.decide,LE.le,HDiv.hDiv,HMul.hMul,Nat.totient,Bind.bind,List, Erdos235.gaps,Pure.pure13 instances, coercions and auxiliary constants left out.
noncomputable def countGaps (n : ℕ) (c : ℝ) : ℕ := …
Mentions: c
- def
Erdos235.proportionThe proportion appearing inerdos_235, for the primorialN kline 55 sourceSource documentation
The proportion appearing in
erdos_235, for the primorialN k.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
HDiv.hDiv, Erdos235.countGaps, Erdos235.N,Nat.totient5 instances, coercions and auxiliary constants left out.
noncomputable def proportion (k : ℕ) (c : ℝ) : ℝ := …
Mentions: c
- theorem
Erdos235.N_zeroN 0is the primorial of $2$ line 60 sourceSource documentation
N 0is the primorial of $2$.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, Erdos235.N,OfNat.ofNatProof uses:
of_eq_true,Eq.trans,True,congrFun',congrArg,primorial,Nat.nth,Nat.Prime,Nat.nth_prime_zero_eq_two,primorial_two,eq_self2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem N_zero : N 0 = 2 := by …
Mentions: Erdos235.N
- theorem
Erdos235.N_oneN 1is the primorial of $3$ line 65 sourceSource documentation
N 1is the primorial of $3$.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, Erdos235.N,OfNat.ofNatProof uses:
Eq.mpr,primorial,id,congrFun',congrArg,Nat.nth,Nat.Prime,Nat.nth_prime_one_eq_three,of_decide_eq_true,Bool,Decidable.decide,Bool.true,Eq.refl3 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
theorem N_one : N 1 = 6 := by …
Mentions: Erdos235.N
- theorem
Erdos235.coprimeList_lengthcoprimeList nhas length $\varphi(n)$ line 71 sourceSource documentation
coprimeList nhas length $\varphi(n)$.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Eq,List.length, Erdos235.coprimeList,Nat.totientProof uses:
Eq.mpr,Finset.sort,Finset.filter,Nat.Coprime,Finset.range,LE.le,id,congrArg,List,Erdos235.coprimeList.eq_1,Finset.card,Finset.length_sort,Nat.totient_eq_card_coprime,Eq.refl8 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem coprimeList_length (n : ℕ) : (coprimeList n).length = n.totient := by …
Mentions: Erdos235.coprimeList
- theorem
Erdos235.totient_N_pos$\varphi(N_k)$ is positive, so the proportion is not a division by zero line 76 sourceSource documentation
$\varphi(N_k)$ is positive, so the proportion is not a division by zero.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,Nat.totient, Erdos235.NProof uses:
Eq.mpr,id,Eq,congrArg,propext,Nat.totient_pos,primorial_pos,Nat.nth,Nat.Prime4 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
theorem totient_N_pos (k : ℕ) : 0 < (N k).totient := by …
Mentions: Erdos235.N
- theorem
Erdos235.erdos_235sorry line 96 sourcedepends on sorry what this means
Statement uses:
Exists,Real,And,ContinuousOn,Set.Ici,OfNat.ofNat,LE.le,Filter.Tendsto,Nat, Erdos235.proportion,Filter.atTop,nhdsProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous17 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos235.erdos_235.variants.hooleysorry line 109 sourcedepends on sorry what this means
Statement uses:
Real,LE.le,OfNat.ofNat,Filter.Tendsto,Nat, Erdos235.proportion,Filter.atTop,nhds,HSub.hSub,Real.exp,Neg.negProof 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.