FormalConjectures/ErdosProblems/287.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, 4 contain sorry, 0 declared as axioms
Erdős Problem 287
Reference: erdosproblems.com/287
Imports (1)
- def
Erdos287.max_gapThe maximum gap between consecutive terms of a finite sequences : Fin k → ℕ, i.e., $\max_{0 \le i < k-1} (s(i+1) - s(i))$ line 33 sourceSource documentation
The maximum gap between consecutive terms of a finite sequence
s : Fin k → ℕ, i.e., $\max_{0 \le i < k-1} (s(i+1) - s(i))$.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,FinProof uses:
Finset.sup,HSub.hSub,OfNat.ofNat,Finset.univ,Fin.mk,HAdd.hAdd12 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
def max_gap (k : ℕ) (s : Fin k → ℕ ) : ℕ := …
- theorem
Erdos287.erdos_287Let $k\geq2$ sorry line 43 sourceSource documentation
Let $k\geq2$. Is it true that, for any distinct integers $1 < n_1 < \cdots < n_k$ such that $\sum_{i=1}^k \frac{1}{n_i} = 1$, we must have $\max(n_{i+1} - n_i) \geq 3$?
depends on sorry what this means
Statement uses:
Iff,True,Nat,LE.le,OfNat.ofNat,Fin,StrictMono,LT.lt,Fin.mk,Eq,Real,Finset.sum,Finset.univ,HDiv.hDiv, Erdos287.max_gapProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous32 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
theorem erdos_287 : answer(sorry) ↔ ∀ (k : ℕ) (hk : 2 ≤ k) (s : Fin k → ℕ), StrictMono s → 1 < s ⟨0, by omega⟩ → ∑ i : Fin k, 1/ (s i : ℝ) = 1 → 3 ≤ max_gap k s:= by …Mentions: Erdos287.max_gap
- theorem
Erdos287.erdos_287.variants.gap_at_least_twosorry line 57 sourcedepends on sorry what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,Fin,StrictMono,LT.lt,Fin.mk,Eq,Real,Finset.sum,Finset.univ,HDiv.hDiv, Erdos287.max_gapProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous32 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos287.erdos_287.test.best_possibleDocumented declaration: best_possible line 70 sourceSource documentation
The example $1 = \frac{1}{2}+\frac{1}{3}+\frac{1}{6}$ shows that $3$ would be best possible here: the sequence $(2, 3, 6)$ is a valid Egyptian fraction representation of $1$ with
max_gap = 3.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Matrix.vecCons,Matrix.vecEmpty,And,StrictMono,LT.lt,Eq,Real,Finset.sum,Finset.univ,HDiv.hDiv, Erdos287.max_gapProof uses:
And.intro,of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl,of_eq_true,Eq.trans,True,Mathlib.Meta.NormNum.instAddMonoidWithOne',congrFun',congrArg,HAdd.hAdd,Inv.inv,Finset.sum_congr,Finset,Membership.mem,one_div,Fin.sum_univ_threeand 19 more76 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
theorem erdos_287.test.best_possible : let s : Fin 3 → ℕ := ![2, 3, 6] … - theorem
Erdos287.erdos_287.variants.prime_conjectureFor all large $N$, there exists a prime $p \in [N, 2N]$ such that $\frac{p+1}{2}$ is also prime sorry line 91 sourceSource documentation
For all large $N$, there exists a prime $p \in [N, 2N]$ such that $\frac{p+1}{2}$ is also prime.
This is an open conjecture. If true, it would imply
erdos_287for all but at most finitely many exceptions (seeerdos_287.variants.prime_conjecture_implies).depends on sorry what this means
Statement uses:
Iff,True,Exists,Nat,LE.le,And,Nat.Prime,HMul.hMul,OfNat.ofNat,HDiv.hDiv,HAdd.hAddProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous16 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_287.variants.prime_conjecture : answer(sorry) ↔ ∃ N₀ : ℕ, ∀ N : ℕ, N₀ ≤ N → ∃ p : ℕ, Nat.Prime p ∧ N ≤ p ∧ p ≤ 2 * N ∧ Nat.Prime ((p + 1) / 2) := by … - theorem
Erdos287.erdos_287.variants.prime_conjecture_impliessorry line 108 sourcedepends on sorry what this means
Statement uses:
Iff,True,Exists,Nat,LE.le,And,Nat.Prime,HMul.hMul,OfNat.ofNat,HDiv.hDiv,HAdd.hAdd,Fin,StrictMono,LT.lt,Fin.mk,Eq,Real,Finset.sum,Finset.univ, Erdos287.max_gapProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous42 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.