Title:Erdős Problem 287 · variants.prime_conjecture_implies
Statement:The conjecture
erdos_287would follow for all but at most finitely many exceptions if it were known that, for all large , there exists a prime such that is also prime.More precisely: if the prime conjecture holds, then there exists such that for all , any Egyptian fraction representation of with terms and all terms must have .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.01558 [math.NT] · NS.01558v1 for this version |
| Declaration: | Erdos287.erdos_287.variants.prime_conjecture_implies |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 3; accepted critique: up to 100 |
| Statement hash: | 9f07f727cf18c0518a23912a44904aaf67156892979c02e7ed4781df2ddd2b08 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/287.lean |
Formal statement
theorem erdos_287.variants.prime_conjecture_implies : type_of% erdos_287.variants.prime_conjecture →
∃ (k₀ : ℕ), ∀ᵉ (k : ℕ) (hk₀ : k₀ ≤ 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 sShow the full Challenge.lean (117 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 287
*Reference:* [erdosproblems.com/287](https://www.erdosproblems.com/287)
-/
@[expose] public section
namespace Erdos287
/-- 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))$. -/
def max_gap (k : ℕ) (s : Fin k → ℕ ) : ℕ :=
Finset.sup Finset.univ (fun i : Fin (k - 1) =>
s ⟨i.val + 1, by omega⟩ - s ⟨i.val, by omega⟩)
/--
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$?
-/
@[category research open, question, AMS 11]
theorem erdos_287 :
∀ (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
sorry
set_option linter.style.formal_proof_palomar false in
/--
The lower bound of $\geq 2$ is equivalent to saying that $1$ is not the sum of reciprocals of
consecutive integers, proved by Erdős [Er32].
-/
@[category research solved, AMS 11,
formal_proof using lean4 at
"https://github.com/Zed-Rez/erdos-287-lean/blob/8bf27b1915ffbd155f071acbc57ba223451dc8ef/P287/gap_full.lean#L276-L281"]
theorem erdos_287.variants.gap_at_least_two :
∀ (k : ℕ) (_ : 2 ≤ k) (s : Fin k → ℕ),
StrictMono s → 1 < s ⟨0, by omega⟩ →
∑ i : Fin k, 1 / (s i : ℝ) = 1 →
2 ≤ max_gap k s := by
sorry
/--
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`.
-/
@[category test, AMS 11]
theorem erdos_287.test.best_possible :
let s : Fin 3 → ℕ := ![2, 3, 6]
StrictMono s ∧
1 < s 0 ∧
∑ i : Fin 3, 1 / (s i : ℝ) = 1 ∧
max_gap 3 s = 3 := by
refine ⟨?_, ?_, ?_, ?_⟩
· decide
· decide
· norm_num [Fin.sum_univ_three, max_gap, show (![2, 3, 6] : Fin 3 → ℕ) 0 = 2 from rfl,
show (![2, 3, 6] : Fin 3 → ℕ) 1 = 3 from rfl,
show (![2, 3, 6] : Fin 3 → ℕ) 2 = 6 from rfl]
· rfl
/--
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_287` for all but at most finitely
many exceptions (see `erdos_287.variants.prime_conjecture_implies`).
-/
@[category research open, question, AMS 11]
theorem erdos_287.variants.prime_conjecture :
∃ N₀ : ℕ, ∀ N : ℕ, N₀ ≤ N →
∃ p : ℕ, Nat.Prime p ∧ N ≤ p ∧ p ≤ 2 * N ∧ Nat.Prime ((p + 1) / 2) := by
sorry
/--
The conjecture `erdos_287` would follow for all but at most finitely many exceptions if it were
known that, for all large $N$, there exists a prime $p \in [N, 2N]$ such that $\frac{p+1}{2}$
is also prime.
More precisely: if the prime conjecture holds, then there exists $k_0$ such that for all
$k \geq k_0$, any Egyptian fraction representation of $1$ with $k$ terms and all terms $> 1$
must have $\max(n_{i+1} - n_i) \geq 3$.
-/
@[category textbook, AMS 11,
formal_proof using lean4 at
"https://github.com/Zed-Rez/erdos-287-lean/blob/43c2ef1c8f534d1c7547b1e18310daacba936083/P287/Part3.lean#L39-L47"]
theorem erdos_287.variants.prime_conjecture_implies : type_of% erdos_287.variants.prime_conjecture →
∃ (k₀ : ℕ), ∀ᵉ (k : ℕ) (hk₀ : k₀ ≤ 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
sorry
end Erdos287
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos287.erdos_287.variants.prime_conjecture_implies with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_prime_conjecture_implies : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk erdos-287--erdos-287-variants-prime-conjecture-implies # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch erdos-287--erdos-287-variants-prime-conjecture-implies nosorry submit erdos-287--erdos-287-variants-prime-conjecture-implies nosorry/erdos-287--erdos-287-variants-prime-conjecture-implies/Solution.lean --wait
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.