Title:Erdős Problem 473
Statement:Is there a permutation of the positive integers such that is always prime?
A question of Segal [ErGr80, p.94]. The answer is yes, as shown by Odlyzko. The linked formal proof (Codex and GPT-5.6 Sol) builds the permutation as a spanning one-way ray of the graph on the positive integers in which two numbers are adjacent when their sum is prime.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question, formal_proof |
| Cite as: | NS.02230 [math.NT] · NS.02230v1 for this version |
| Declaration: | Erdos473.erdos_473 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 80524577ec4df5884e1244115e544de0bc96581779926043bac2d304c3b6563a |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/473.lean |
Formal statement
theorem erdos_473 :
∃ a : ℕ ≃ ℕ+, ∀ n : ℕ, ((a n : ℕ) + (a (n + 1) : ℕ)).PrimeShow the full Challenge.lean (61 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 473
*References:*
- [erdosproblems.com/473](https://www.erdosproblems.com/473)
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial
number theory*, Monographies de L'Enseignement Mathématique (1980).
-/
@[expose] public section
namespace Erdos473
set_option linter.style.formal_proof_palomar false in
/--
Is there a permutation $a_1, a_2, \ldots$ of the positive integers such that $a_k + a_{k+1}$ is
always prime?
A question of Segal [ErGr80, p.94]. The answer is yes, as shown by Odlyzko. The linked formal
proof (Codex and GPT-5.6 Sol) builds the permutation as a spanning one-way ray of the graph on the
positive integers in which two numbers are adjacent when their sum is prime.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos473.lean#L236"]
theorem erdos_473 :
∃ a : ℕ ≃ ℕ+, ∀ n : ℕ, ((a n : ℕ) + (a (n + 1) : ℕ)).Prime := by
sorry
/--
Segal also asked whether for every $n \ge 2$ there is a permutation $a_1, \ldots, a_n$ of
$\{1, \ldots, n\}$ such that $a_k + a_{k+1}$ is prime for all $1 \le k < n$. This is conjectured to
be true, and has been verified for infinitely many $n$.
-/
@[category research open, question, AMS 11]
theorem erdos_473.variants.finite :
∀ n : ℕ, 2 ≤ n → ∃ a : Fin n ≃ Fin n, ∀ k : Fin n, ∀ h : k.val + 1 < n,
((a k).val + 1 + ((a ⟨k.val + 1, h⟩).val + 1)).Prime := by
sorry
end Erdos473
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos473.erdos_473 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_473 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-473 nosorry submit erdos-473 nosorry/erdos-473/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-473-variants-finite — open
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.