FormalConjectures/ErdosProblems/375.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 375
References:
- erdosproblems.com/375
- [ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number theory. Monographies de L'Enseignement Mathematique (1980).
- [RST75] Ramachandra, K. and Shorey, T. N. and Tijdeman, R., On Grimm's problem relating to factorisation of a block of consecutive integers. J. Reine Angew. Math. (1975), 109-124.
- def
Erdos375.Erdos375PropThis is a proposition saying that for anyn ≥ 1and anyk, ifn + 1, ..., n + kare all composite, then there are distinct primes `p₁, line 42 sourceSource documentation
This is a proposition saying that for any
n ≥ 1and anyk, ifn + 1, ..., n + kare all composite, then there are distinct primesp₁, ... pₖsuch thatpᵢ ∣ n + ifor all1 ≤ i ≤ k.standard axioms: propext what this means
Proof uses:
Nat,GE.ge,OfNat.ofNat,LT.lt,Not,Nat.Prime,HAdd.hAdd,Exists,Fin,And,Function.Injective,Dvd.dvd7 instances, coercions and auxiliary constants left out.
def Erdos375Prop : Prop := ∀ n ≥ 1, ∀ k, (∀ i < k, ¬ (n + i + 1).Prime) → …
- theorem
Erdos375.erdos_375IsErdos375Proptrue? sorry line 47 sourceSource documentation
Is
Erdos375Proptrue?depends on sorry what this means
Statement uses:
Iff,True, Erdos375.Erdos375PropProof 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 erdos_375 : answer(sorry) ↔ Erdos375Prop := by …
Mentions: Erdos375.Erdos375Prop
- theorem
Erdos375.erdos_375.variants.bounded_gapIfErdos375Propis true, then(n + 1).nth Prime - n.nth Prime < (n.nth Prime) ^ (1 / 2 - c)for somec > 0sorry line 53 sourceSource documentation
If
Erdos375Propis true, then(n + 1).nth Prime - n.nth Prime < (n.nth Prime) ^ (1 / 2 - c)for somec > 0.depends on sorry what this means
Statement uses: Erdos375.Erdos375Prop,
Exists,Real,And,GT.gt,OfNat.ofNat,Filter.Eventually,Nat,LT.lt,HSub.hSub,Nat.nth,Nat.Prime,HAdd.hAdd,HPow.hPow,HDiv.hDiv,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous42 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_375.variants.bounded_gap : Erdos375Prop → ∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime < (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c) := by …Mentions: Erdos375.Erdos375Prop, c
- theorem
Erdos375.erdos_375.variants.legendreIn particular, ifErdos375Propis true, then Legendre's conjecture is asymptotically true line 60 sourceSource documentation
In particular, if
Erdos375Propis true, then Legendre's conjecture is asymptotically true.depends on sorry what this means
Statement uses: Erdos375.Erdos375Prop,
Filter.Eventually,Nat,Exists,And,Membership.mem,Set,Set.Ioo,HPow.hPow,OfNat.ofNat,HAdd.hAdd,Nat.Prime,Filter.atTopProof uses: LegendreConjecture.bounded_gap_legendre, Erdos375.erdos_375.variants.bounded_gap
9 instances, coercions and auxiliary constants left out.
theorem erdos_375.variants.legendre : Erdos375Prop → (∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p) := …Mentions: Erdos375.Erdos375Prop
- theorem
Erdos375.erdos_375.variants.le_twoIt is easy to see that for anyn ≥ 1andk ≤ 2, ifn + 1, ..., n + kare all composite, then there are distinct primes `p₁, line 67 sourceSource documentation
It is easy to see that for any
n ≥ 1andk ≤ 2, ifn + 1, ..., n + kare all composite, then there are distinct primesp₁, ... pₖsuch thatpᵢ ∣ n + ifor all1 ≤ i ≤ k.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,GE.ge,OfNat.ofNat,LE.le,LT.lt,Not,Nat.Prime,HAdd.hAdd,Exists,Fin,And,Function.Injective,Dvd.dvdProof uses:
dite,Exists.intro,And.intro,Eq,Decidable.byContradiction,Or,False,Classical.em,Ne,List,List.Mem,List.finRange,HEq,Membership.mem,Finset,Fintype.elems,Fintype.complete,List.cons,List.Mem.head,Fin.mkand 95 more132 instances, coercions and auxiliary constants left out.
Tactic trace: 30 steps
Open to load the checked before-and-after goal states.
theorem erdos_375.variants.le_two : ∀ n ≥ 1, ∀ k ≤ 2, (∀ i < k, ¬ (n + i + 1).Prime) → ∃ p : Fin k → ℕ, p.Injective ∧ ∀ i, (p i).Prime ∧ p i ∣ n + i + 1 := by … - theorem
Erdos375.erdos_375.variants.logThere exists a constantc > 0such that for alln, ifk < c * (log n / (log (log n))) ^ 3 → (∀ i < k, ¬ (n + i + 1).Prime), then there are distinct primes `p₁, sorry line 91 sourceSource documentation
There exists a constant
c > 0such that for alln, ifk < c * (log n / (log (log n))) ^ 3 → (∀ i < k, ¬ (n + i + 1).Prime), then there are distinct primesp₁, ... pₖsuch thatpᵢ ∣ n + ifor all1 ≤ i ≤ k. This is proved in [RST75]. There is no need to only consider sufficiently largenbecause one can always takecsmall enough so thatk < c * (log n / (log (log n))) ^ 3implies thatk = 0untilnis large.depends on sorry what this means
Statement uses:
Exists,Real,And,GT.gt,OfNat.ofNat,Nat,LT.lt,HMul.hMul,HPow.hPow,HDiv.hDiv,Real.log,Not,Nat.Prime,HAdd.hAdd,Fin,Function.Injective,Dvd.dvdProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous40 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_375.variants.log : ∃ c > 0, ∀ n k : ℕ, k < c * (Real.log n / (Real.log (Real.log n))) ^ 3 → (∀ i < k, ¬ (n + i + 1).Prime) → ∃ p : Fin k → ℕ, p.Injective ∧ ∀ i, (p i).Prime ∧ p i ∣ n + i + 1 := by …Mentions: c