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 792

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:

Let f(n)f(n) be maximal such that in any A⊂ZA\subset \mathbb{Z} with ∣A∣=n\lvert A\rvert=n there exists some sum-free subset B⊆AB\subseteq A with ∣B∣≥f(n)\lvert B\rvert \geq f(n), so that there are no solutions to a+b=ca+b=c with a,b,c∈Ba,b,c\in B, allowing a=ba=b. Estimate f(n)f(n).

Since f(n)=n/3+o(n)f(n) = n/3 + o(n) is known, we interpret "estimate" as determining the order of magnitude of the excess f(n)−n/3f(n) - n/3.

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

Formal statement

theorem erdos_792 :
    (fun n : ℕ => (f n : ℝ) - n / 3) =Θ[atTop] erdos_792.answer
Show the full Challenge.lean (150 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 792

*References:*
- [erdosproblems.com/792](https://www.erdosproblems.com/792)
- [Ben Green's Open Problem 1](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#section.1):
  a related question for sets of positive integers; see `Green1.green_1` in
  `FormalConjectures.GreensOpenProblems.«1»`.
- [AlKl90] Alon, N. and Kleitman, D. J., *Sum-free subsets*. A tribute to Paul Erdős (1990),
  13-26.
  [PDF](https://web.math.princeton.edu/~nalon/PDFS/Publications2/Sum-free%20subsets.pdf)
- [Be25b] Bedert, B., *Large sum-free subsets of sets of integers via $L^1$-estimates for
  trigonometric series*. [arXiv:2502.08624](https://arxiv.org/abs/2502.08624) (2025).
- [Bo97] Bourgain, Jean, *Estimates related to sumfree subsets of sets of integers*. Israel J.
  Math. 97 (1997), 71-92.
  [DOI](https://doi.org/10.1007/BF02774027)
- [EGM14] Eberhard, Sean and Green, Ben and Manners, Freddie, *Sets of integers with no large
  sum-free subset*. Ann. of Math. (2) 180 (2014), 621-652.
- [Er65] Erdős, P., *Extremal problems in number theory*. Proc. Sympos. Pure Math., Vol. VIII
  (1965), 181-189. [PDF](https://www.renyi.hu/~p_erdos/1965-02.pdf)
- [Er73] Erdős, P., *Problems and results on combinatorial number theory*. A survey of
  combinatorial theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo.,
  1971) (1973), 117-138. [PDF](https://www.renyi.hu/~p_erdos/1973-21.pdf)
-/

@[expose] public section

open Filter Asymptotics

namespace Erdos792

/--
The largest size we can guarantee for a sum-free subset of any set of `n` integers.

Zero is allowed, as in the problem's wording. This gives `f 1 = 0`.
The same number can be used twice in a sum, so `a + a = c` is forbidden too.
-/
noncomputable def f (n : ℕ) : ℕ :=
  sSup {m : ℕ |
    ∀ A : Finset ℤ, A.card = n →
      ∃ B : Finset ℤ,
        B ⊆ A ∧ IsSumFree (B : Set ℤ) ∧ m ≤ B.card}

/-- The set `{0}` has no nonempty sum-free subset, so `f 1 = 0`. -/
@[category test, AMS 5 11]
theorem f_one : f 1 = 0 := by
  apply Nat.eq_zero_of_le_zero
  unfold f
  apply csSup_le
  · -- The empty subset shows that zero is a valid guarantee.
    refine ⟨0, ?_⟩
    intro A _
    refine ⟨∅, ?_, ?_, ?_⟩
    · exact Finset.empty_subset A
    · simp [IsSumFree]
    · simp
  · -- Apply the guarantee to {0}, whose only sum-free subset is empty.
    intro m h_guarantee
    obtain ⟨B, h_subset, h_sum_free, h_size⟩ := h_guarantee {0} (by simp)
    have h_cases : B = ∅ ∨ B = {0} :=
      Finset.subset_singleton_iff.mp h_subset
    rcases h_cases with h_empty | h_zero
    · rw [h_empty] at h_size
      simpa using h_size
    · -- But {0} is not sum-free: 0 + 0 = 0.
      rw [h_zero] at h_sum_free
      simp [isSumFree_iff] at h_sum_free

/-- The set `{1, 2}` is not sum-free because `1 + 1 = 2`. -/
@[category test, AMS 5 11]
theorem not_isSumFree_one_two : ¬ IsSumFree ({1, 2} : Set ℤ) := by
  rw [isSumFree_iff]
  norm_num

/-- The set `{1, 3}` is sum-free, even when we use the same number twice. -/
@[category test, AMS 5 11]
theorem isSumFree_one_three : IsSumFree ({1, 3} : Set ℤ) := by
  rw [isSumFree_iff]
  norm_num

def erdos_792.answer : ℕ → ℝ := by
  sorry

/--
Let $f(n)$ be maximal such that in any $A\subset \mathbb{Z}$ with $\lvert A\rvert=n$ there exists
some sum-free subset $B\subseteq A$ with $\lvert B\rvert \geq f(n)$, so that there are no
solutions to
$$a+b=c$$
with $a,b,c\in B$, allowing $a=b$. Estimate $f(n)$.

Since $f(n) = n/3 + o(n)$ is known, we interpret "estimate" as
determining the order of magnitude of the excess $f(n) - n/3$.
-/
@[category research open, question value, AMS 5 11]
theorem erdos_792 :
    (fun n : ℕ => (f n : ℝ) - n / 3) =Θ[atTop] erdos_792.answer := by
  sorry

/--
Alon and Kleitman [AlKl90, Proposition 1.1] improved the lower bound to $(n+1)/3$.
Here we restrict to sets of $n \geq 3$ positive integers, to match Bourgain's bound below.
-/
@[category research solved, AMS 5 11]
theorem erdos_792.variants.alon_kleitman (A : Finset ℤ)
    (h_positive : ∀ a ∈ A, 0 < a) (h_card : 3 ≤ A.card) :
    ∃ B ⊆ A, IsSumFree (B : Set ℤ) ∧ A.card + 1 ≤ 3 * B.card := by
  sorry

/--
Bourgain [Bo97, Proposition 1.3] further improved the lower bound to $(n+2)/3$
for sets of $n \geq 3$ positive integers. The size restriction appears in the proof on p. 76;
the set $\{1,2\}$ shows why it cannot be omitted.
-/
@[category research solved, AMS 5 11]
theorem erdos_792.variants.bourgain (A : Finset ℤ)
    (h_positive : ∀ a ∈ A, 0 < a) (h_card : 3 ≤ A.card) :
    ∃ B ⊆ A, IsSumFree (B : Set ℤ) ∧ A.card + 2 ≤ 3 * B.card := by
  sorry

/-- Bourgain's bound [Bo97] implies Alon and Kleitman's bound [AlKl90] on this domain. -/
@[category test, AMS 5 11]
theorem erdos_792.variants.bourgain_implies_alon_kleitman :
    type_of% erdos_792.variants.bourgain →
    type_of% erdos_792.variants.alon_kleitman := by
  intro h A h_positive h_card
  obtain ⟨B, h_subset, h_sum_free, h_size⟩ := h A h_positive h_card
  refine ⟨B, h_subset, h_sum_free, ?_⟩
  omega

end Erdos792

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

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