Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 473 · variants.finite

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Segal also asked whether for every n≥2n \ge 2 there is a permutation a1,…,ana_1, \ldots, a_n of {1,…,n}\{1, \ldots, n\} such that ak+ak+1a_k + a_{k+1} is prime for all 1≤k<n1 \le k < n. This is conjectured to be true, and has been verified for infinitely many nn.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.02231 [math.NT] · NS.02231v1 for this version
Declaration:Erdos473.erdos_473.variants.finite
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100; accepted critique: up to 100
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.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
Show 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.variants.finite with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_finite : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-473--erdos-473-variants-finite      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-473--erdos-473-variants-finite
nosorry submit erdos-473--erdos-473-variants-finite nosorry/erdos-473--erdos-473-variants-finite/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.