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 865

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Elsewhere:on aiXiv: claimed solved — Claimed proved in aiXiv:2609.00197 (2026-06-28); no independent check recorded on aiXiv. · erdosproblems.com: proved (Lean) (a claim recorded elsewhere, not verified on nosorry)
2 results recorded on aiXiv
  1. solves Let f3(N)f_3(N) be the least size such that every A⊆{1,…,N}A\subseteq\{1,\dots,N\} with ∣A∣≥f3(N)|A|\ge f_3(N) contains distinct a,b,ca,b,c with a+b,a+c,b+c∈Aa+b,a+c,b+c\in A. Then f3(N)≤5N/8+O(1)f_3(N)\le 5N/8+O(1), which together with the construction [N/8,N/4]∪[N/2,N][N/8,N/4]\cup[N/2,N] gives f3(N)=5N/8+O(1)f_3(N)=5N/8+O(1). — aiXiv:2609.00197, 2026-06-28 · claimed by its authors; no independent check recorded on aiXiv
  2. Lean formalization A Lean 4/Mathlib formalization, without sorries, of an earlier conditional reduction from a coarse 2/32/3 theorem to the 5N/85N/8 bound, including the folding reduction, the centering argument and the sharpness construction. — aiXiv:2609.00197, 2026-06-28 · claimed by its authors; no independent check recorded on aiXiv

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

There exists a constant C>0C>0 such that, for all large NN, if A⊆{1,…,N}A\subseteq \{1,\ldots,N\} has size at least 58N+C\frac{5}{8}N+C then there are distinct a,b,c∈Aa,b,c\in A such that a+b,a+c,b+c∈Aa+b,a+c,b+c\in A.

A problem of Erdős and Sós (also earlier considered by Choi, Erdős, and Szemerédi [CES75], but Erdős had forgotten this).

This problem was solved in the affirmative by Cipollini and GPT Pro [Ci26].

This is true. The linked proof gives it in the contrapositive and with the constant cleared: every triple-free A⊆{1,…,N}A\subseteq\{1,\ldots,N\} satisfies 8∣A∣≤5N+C8\lvert A\rvert\leq 5N+C for a fixed CC, for every NN rather than only for large NN. It also shows the threshold is sharp, by exhibiting triple-free sets of size (5N+16)/8(5N+16)/8 for every NN divisible by 88.

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

Formal statement

theorem erdos_865 :
    ∃ C > 0, ∀ᶠ (N : ℕ) in atTop,
      ∀ A ⊆ Icc 1 N, A.card ≥ (5 / 8 : ℝ) * N + C →
      ∃ a ∈ A, ∃ b ∈ A, ∃ c ∈ A, a ≠ b ∧ a ≠ c ∧ b ≠ c ∧
      a + b ∈ A ∧ a + c ∈ A ∧ b + c ∈ A
Show the full Challenge.lean (128 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 865

*References:*
- [erdosproblems.com/865](https://www.erdosproblems.com/865)
- [CES75] Choi, S. L. G. and Erdős, P. and Szemerédi, E., Some additive and multiplicative problems
  in number theory. Acta Arith. (1975), 37--50.
- [Ci26] R. Cipollini, [A sharp $5/8$ bound for an Erdős–Sós pairwise-sums problem](https://arxiv.org/html/2606.29361)
  (2026).
-/

@[expose] public section

open Finset Filter
open scoped Asymptotics

namespace Erdos865

set_option linter.style.formal_proof_palomar false in
/--
There exists a constant $C>0$ such that, for all large $N$, if $A\subseteq \{1,\ldots,N\}$ has
size at least $\frac{5}{8}N+C$ then there are distinct $a,b,c\in A$ such that $a+b,a+c,b+c\in A$.

A problem of Erdős and Sós (also earlier considered by Choi, Erdős, and Szemerédi [CES75], but Erdős
had forgotten this).

This problem was solved in the affirmative by Cipollini and GPT Pro [Ci26].

This is true. The linked proof gives it in the contrapositive and with the constant cleared:
every triple-free $A\subseteq\{1,\ldots,N\}$ satisfies $8\lvert A\rvert\leq 5N+C$ for a fixed
$C$, for every $N$ rather than only for large $N$. It also shows the threshold is sharp, by
exhibiting triple-free sets of size $(5N+16)/8$ for every $N$ divisible by $8$.
-/
@[category research solved, AMS 5 11,
  formal_proof using lean4 at "https://github.com/Jayyhk/erdos-lean/blob/f8a51976fd2e66a52b4928c109fb9ae877a1a507/problems/865/Erdos865.lean",
  formal_proof using lean4 at "https://github.com/mrricky22/erdos-865-lean/blob/f861539107a7adeaa97462ce7c7171127696b63a/RequestProject/Main.lean#L45"]
theorem erdos_865 :
    ∃ C > 0, ∀ᶠ (N : ℕ) in atTop,
      ∀ A ⊆ Icc 1 N, A.card ≥ (5 / 8 : ℝ) * N + C →
      ∃ a ∈ A, ∃ b ∈ A, ∃ c ∈ A, a ≠ b ∧ a ≠ c ∧ b ≠ c ∧
      a + b ∈ A ∧ a + c ∈ A ∧ b + c ∈ A := by
  sorry

/--
It is a classical folklore fact that if $A\subseteq \{1,\ldots,2N\}$ has size $\geq N+2$ then
there are distinct $a,b\in A$ such that $a+b\in A$, which establishes the $k=2$ case.
-/
@[category research solved, AMS 5 11]
theorem erdos_865.variants.k2 (N : ℕ) :
    ∀ A ⊆ Icc 1 (2 * N), A.card ≥ N + 2 →
    ∃ a ∈ A, ∃ b ∈ A, a ≠ b ∧ a + b ∈ A := by
  intro A hA hcard
  have hne : A.Nonempty := by
    rw [← Finset.card_pos]; omega
  set m := A.max' hne with hm
  have hmA : m ∈ A := Finset.max'_mem A hne
  have hmle : m ≤ 2 * N := by
    have := hA hmA
    rw [Finset.mem_Icc] at this
    omega
  have hcard' : (Icc 1 N).card < (A.erase m).card := by
    rw [Finset.card_erase_of_mem hmA, Nat.card_Icc]
    omega
  have hmaps : ∀ x ∈ A.erase m, min x (m - x) ∈ Icc 1 N := by
    intro x hx
    obtain ⟨hxm, hxA⟩ := Finset.mem_erase.mp hx
    have hxle : x ≤ m := Finset.le_max' A x hxA
    have hx1 := (Finset.mem_Icc.mp (hA hxA)).1
    rw [Finset.mem_Icc]
    omega
  obtain ⟨x, hx, y, hy, hxy, hxyeq⟩ :=
    Finset.exists_ne_map_eq_of_card_lt_of_maps_to hcard' hmaps
  obtain ⟨hxm, hxA⟩ := Finset.mem_erase.mp hx
  obtain ⟨hym, hyA⟩ := Finset.mem_erase.mp hy
  have hxle : x ≤ m := Finset.le_max' A x hxA
  have hyle : y ≤ m := Finset.le_max' A y hyA
  refine ⟨x, hxA, y, hyA, hxy, ?_⟩
  have : x + y = m := by omega
  rw [this]
  exact hmA

noncomputable def f (N k : ℕ) : ℕ :=
  sInf {m | ∀ A ⊆ Icc 1 N, A.card ≥ m →
    ∃ S ⊆ A, S.card = k ∧ ∀ x ∈ S, ∀ y ∈ S, x ≠ y → x + y ∈ A}

/--
Erdős and Sós conjectured that
$f_k(N)\sim \frac{1}{2}\left(1+\sum_{1\leq r\leq k-2}\frac{1}{4^r}\right) N$,
where $f_k(N)$ is the minimal size of a subset of $\{1, \dots, N\}$ guaranteeing $k$ elements
have all pairwise sums in the set.
-/
@[category research open, AMS 5 11]
theorem erdos_865.variants.sos :
    ∀ᵉ (k : ℕ) (hk : 2 ≤ k),
    (fun N ↦ (f N k : ℝ)) ~[atTop] (fun N ↦ (1 / 2 : ℝ) * (1 + ∑ r ∈ Icc 1 (k - 2),
      (1 / 4 : ℝ) ^ r) * N) := by
  sorry

/--
Choi, Erdős, and Szemerédi [CES75] have proved that, for all $k\geq 3$, there exists $\epsilon_k>0$
such that (for large enough $N$) $f_k(N)\leq \left(\frac{2}{3}-\epsilon_k\right)N$.
-/
@[category research solved, AMS 5 11]
theorem erdos_865.variants.upper_bound (k : ℕ) (hk : 3 ≤ k) :
    ∃ ε > 0, ∀ᶠ N in atTop, (f N k : ℝ) ≤ (2 / 3 - ε) * N := by
  sorry

end Erdos865

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

nosorry fetch erdos-865
nosorry submit erdos-865 nosorry/erdos-865/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.