FormalConjectures/ErdosProblems/456.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
Erdős Problem 456
References:
- erdosproblems.com/456
- [Er79e] Erdős, Paul, Some unconventional problems in number theory. Astérisque (1979), 73--82.
Imports (1)
- def
Erdos456.pLet $p_n$ be the smallest prime $\equiv 1\pmod{n}$ line 38 sourceSource documentation
Let $p_n$ be the smallest prime $\equiv 1\pmod{n}$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
InfSet.sInf,Set.ofPred,And,Nat.Prime,Nat.ModEq,OfNat.ofNat2 instances, coercions and auxiliary constants left out.
noncomputable def p (n : ℕ) : ℕ := …
- def
Erdos456.mLet $m_n$ be the smallest integer such that $n\mid \phi(m_n)$ line 44 sourceSource documentation
Let $m_n$ be the smallest integer such that $n\mid \phi(m_n)$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
InfSet.sInf,Set.ofPred,And,LT.lt,OfNat.ofNat,Dvd.dvd,Nat.totient4 instances, coercions and auxiliary constants left out.
noncomputable def m (n : ℕ) : ℕ := …
- theorem
Erdos456.erdos_456.parts.iIs it true that $m_n<p_n$ for almost all $n$? sorry line 52 sourceSource documentation
Is it true that $m_n<p_n$ for almost all $n$?
depends on sorry what this means
Statement uses:
Iff,True,Filter.Tendsto,Nat,Real,HDiv.hDiv,Nat.count,LT.lt, Erdos456.m, Erdos456.p,Filter.atTop,nhds,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous27 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_456.parts.i : answer(sorry) ↔ Tendsto (fun N ↦ (count (fun n ↦ m n < p n) N : ℝ) / (N : ℝ)) atTop (𝓝 1) := by …Mentions: Erdos456.m, Erdos456.p
- theorem
Erdos456.erdos_456.parts.iiDoes $p_n/m_n \to \infty$ for almost all $n$? sorry line 62 sourceSource documentation
Does $p_n/m_n \to \infty$ for almost all $n$?
depends on sorry what this means
Statement uses:
Iff,True,Exists,Set,Nat,And,Filter.Tendsto,Real,HDiv.hDiv,Nat.count,Membership.mem,Classical.propDecidable,Filter.atTop,nhds,OfNat.ofNat, Erdos456.p, Erdos456.m,Min.min,Filter,Filter.principalProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous29 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_456.parts.ii : answer(sorry) ↔ ∃ A : Set ℕ, Tendsto (fun N ↦ (count (· ∈ A) N : ℝ) / (N : ℝ)) atTop (𝓝 1) ∧ Tendsto (fun n ↦ (p n : ℝ) / (m n : ℝ)) (atTop ⊓ 𝓟 A) atTop := by …Mentions: Erdos456.p, Erdos456.m
- theorem
Erdos456.erdos_456.parts.iiiAre there infinitely many primes $p$ such that $p-1$ is the only $n$ for which $m_n=p$? sorry line 72 sourceSource documentation
Are there infinitely many primes $p$ such that $p-1$ is the only $n$ for which $m_n=p$?
depends on sorry what this means
Statement uses:
Iff,True,Set.Infinite,Nat,Set.ofPred,And,Nat.Prime,Eq, Erdos456.m,HSub.hSub,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous6 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_456.parts.iii : answer(sorry) ↔ { q | q.Prime ∧ ∀ n, m n = q ↔ n = q - 1 }.Infinite := by …Mentions: Erdos456.m
- theorem
Erdos456.erdos_456.variants.linniks_theoremLinnik's theorem implies that $p_n\leq n^{O(1)}$ sorry line 81 sourceSource documentation
Linnik's theorem implies that $p_n\leq n^{O(1)}$.
depends on sorry what this means
Statement uses:
Exists,Real,Asymptotics.IsBigO,Nat,Filter.atTop, Erdos456.p,HPow.hPowProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat13 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_456.variants.linniks_theorem : ∃ L : ℝ, (fun n ↦ (p n : ℝ)) =O[atTop] (fun n ↦ (n : ℝ) ^ L) := by …Mentions: Erdos456.p
- theorem
Erdos456.erdos_456.variants.mn_leq_pnIt is trivial that $m_n \leq p_n$ always line 89 sourceSource documentation
It is trivial that $m_n \leq p_n$ always.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le, Erdos456.m, Erdos456.pProof uses:
id,InfSet.sInf,Set.ofPred,And,LT.lt,OfNat.ofNat,Dvd.dvd,Nat.totient,Eq,Ne,Or,Nat.Prime,Nat.ModEq,eq_or_ne,Set,EmptyCollection.emptyCollection,Set.ext,Eq.mpr,Iff,Membership.memand 28 more23 instances, coercions and auxiliary constants left out.
Tactic trace: 22 steps
Open to load the checked before-and-after goal states.
theorem erdos_456.variants.mn_leq_pn (n : ℕ) : m n ≤ p n := by …Mentions: Erdos456.m, Erdos456.p
- theorem
Erdos456.erdos_456.variants.infinitely_many_nErdős [Er79e] writes it is 'easy to show' that for infinitely many $n$ we have $m_n < p_n$ line 117 sourceSource documentation
Erdős [Er79e] writes it is 'easy to show' that for infinitely many $n$ we have $m_n < p_n$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set.Infinite,Nat,Set.ofPred,LT.lt, Erdos456.m, Erdos456.pProof uses:
Set.infinite_of_injective_forall_mem,HPow.hPow,OfNat.ofNat,HAdd.hAdd,HMul.hMul,Eq,Decidable.byContradiction,Not,Nat.pow_right_injective,of_decide_eq_true,LE.le,id,Bool,Decidable.decide,Bool.true,Eq.refl,Membership.mem,Set,Nat.sInf_le,Andand 51 more88 instances, coercions and auxiliary constants left out.
Tactic trace: 51 steps
Open to load the checked before-and-after goal states.
theorem erdos_456.variants.infinitely_many_n : { n | m n < p n }.Infinite := by …Mentions: Erdos456.m, Erdos456.p
- theorem
Erdos456.erdos_456.variants.m_div_nErdős [Er79e] writes it is 'easy to show' that $m_n/n \to \infty$ for almost all $n$ sorry line 164 sourceSource documentation
Erdős [Er79e] writes it is 'easy to show' that $m_n/n \to \infty$ for almost all $n$.
depends on sorry what this means
Statement uses:
Exists,Set,Nat,And,Filter.Tendsto,Real,HDiv.hDiv,Nat.count,Membership.mem,Classical.propDecidable,Filter.atTop,nhds,OfNat.ofNat, Erdos456.m,Min.min,Filter,Filter.principalProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous29 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_456.variants.m_div_n : ∃ A : Set ℕ, Tendsto (fun N ↦ (count (· ∈ A) N : ℝ) / N) atTop (𝓝 1) ∧ Tendsto (fun n ↦ (m n : ℝ) / (n : ℝ)) (atTop ⊓ 𝓟 A) atTop := by …Mentions: Erdos456.m