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 341

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let A={a1<⋯<ak}A=\{a_1 < \cdots < a_k\} be a finite set of positive integers and extend it to an infinite sequence A‾={a1<a2<⋯ }\overline{A}=\{a_1 < a_2 < \cdots \} by defining an+1a_{n+1} for n≥kn \geq k to be the least integer exceeding ana_n which is not of the form ai+aja_i + a_j with i,j≤ni,j \leq n. Is it true that the sequence of differences am+1−ama_{m+1}-a_m is eventually periodic?

This problem is discussed under Problem 7 on Green's open problems list.

The answer is no: Li [Li26] (with GPT-5.6 Sol) showed that the greedy extension of the seed set A={1,2,3,5,7,13,22,27,28,32,36,40,47,48,52,63,71,77,81,89,97}A = \{1, 2, 3, 5, 7, 13, 22, 27, 28, 32, 36, 40, 47, 48, 52, 63, 71, 77, 81, 89, 97\} has a sequence of differences that is not eventually periodic. The linked formal proof exhibits such a sequence a : ℕ → ℕ (strictly increasing, with the greedy rule holding from some index on, and with n ↦ a (n + 1) - a n not eventually periodic), which is a counterexample to the statement below.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question, formal_proof
Cite as:NS.01773 [math.NT] · NS.01773v1 for this version
Declaration:Erdos341.erdos_341
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:ce234d35b2ecfd2feba476e892c6ac60fcd503f5440aa6e63641e3465b1e9520
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/341.lean

Formal statement

theorem erdos_341 :
    ¬ ∀ (a : ℕ → ℕ), StrictMono a → 0 < a 0 →
      (∀ᶠ n in atTop,
        IsLeast { x | a n < x ∧ x ∉ { a i + a j | (i ≤ n) (j ≤ n) } } (a (n + 1))) →
      let d := fun i ↦ (a (i + 1) : ℤ) - a i
      ∃ p > 0, ∀ᶠ m in atTop, d (m + p) = d m
Show the full Challenge.lean (64 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 341

*References:*
* [erdosproblems.com/341](https://www.erdosproblems.com/341)
* [Ben Green's Open Problem 7](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#section.1)
* [Li26] Li, Z., *Counterexamples to Erdős Problem 341* (2026),
  https://github.com/LiAlreadyExists/Erdos-341/blob/main/paper/Erdos341.pdf
-/

@[expose] public section

open Nat Set Filter
open scoped Topology

namespace Erdos341

set_option linter.style.formal_proof_palomar false in
/--
Let $A=\{a_1 < \cdots < a_k\}$ be a finite set of positive integers and extend it to an infinite
sequence $\overline{A}=\{a_1 < a_2 < \cdots \}$ by defining $a_{n+1}$ for $n \geq k$ to be
the least integer exceeding $a_n$ which is not of the form $a_i + a_j$ with $i,j \leq n$.
Is it true that the sequence of differences $a_{m+1}-a_m$ is eventually periodic?

This problem is discussed under Problem 7 on Green's open problems list.

The answer is no: Li [Li26] (with GPT-5.6 Sol) showed that the greedy extension of the seed set
$A = \{1, 2, 3, 5, 7, 13, 22, 27, 28, 32, 36, 40, 47, 48, 52, 63, 71, 77, 81, 89, 97\}$ has a
sequence of differences that is not eventually periodic. The linked formal proof
exhibits such a sequence `a : ℕ → ℕ` (strictly increasing, with the greedy rule holding from
some index on, and with `n ↦ a (n + 1) - a n` not eventually periodic), which is a
counterexample to the statement below.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos341.lean#L12"]
theorem erdos_341 :
    ¬ ∀ (a : ℕ → ℕ), StrictMono a → 0 < a 0 →
      (∀ᶠ n in atTop,
        IsLeast { x | a n < x ∧ x ∉ { a i + a j | (i ≤ n) (j ≤ n) } } (a (n + 1))) →
      let d := fun i ↦ (a (i + 1) : ℤ) - a i
      ∃ p > 0, ∀ᶠ m in atTop, d (m + p) = d m := by
  sorry

end Erdos341

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos341.erdos_341 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_341 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-341
nosorry submit erdos-341 nosorry/erdos-341/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.