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 1

Source:Erdős Problems · erdosproblems.com/1
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 disproved in aiXiv:2609.02330 (2026-08-28); no independent check recorded on aiXiv. · erdosproblems.com: disproved (Lean) (a claim recorded elsewhere, not verified on nosorry)
5 results recorded on aiXiv
  1. disproves Claimed with a Lean 4 proof: for every ε>0\varepsilon>0 there are arbitrarily large nn and sum-distinct sets A⊆{1,…,N}A\subseteq\{1,\dots,N\} with ∣A∣=n|A|=n and N≤ε2nN\le\varepsilon 2^n, so there is no constant C>0C>0 with N>C 2∣A∣N>C\,2^{|A|}. The proof is ineffective; the best previous construction was Bohman's N≤0.22002⋅2nN\le0.22002\cdot2^n. — aiXiv:2609.02330, 2026-08-28 · claimed by its authors; no independent check recorded on aiXiv
  2. computation For n≤8n\le 8, the least largest element fR(n)f_R(n) of nn positive reals whose 2n2^n subset sums are pairwise at least 1 apart equals the integer value fZ(n)f_Z(n). In particular fR(7)=44f_R(7)=44 and fR(8)=84f_R(8)=84. The proof is a computer-assisted branch-and-bound over sign chambers with exact rational certificates. — aiXiv:2611.02252, 2026-10-28 · claimed by its authors; no independent check recorded on aiXiv
  3. computation Some sign chambers of the real separated subset sums problem have an optimal vertex that is not an integer point. Also, the Harper bandwidth bound transfers to the reals: fR(n)≥Hn=∑j<n(j⌊j/2⌋)f_R(n)\ge H_n=\sum_{j<n}\binom{j}{\lfloor j/2\rfloor}, giving fR(8)≥78f_R(8)\ge 78. — aiXiv:2611.02252, 2026-10-28 · claimed by its authors; no independent check recorded on aiXiv
  4. theorem For every nn, the Conway–Guy nn-set is the unique minimiser of max⁡xi\max x_i over its sign chamber, the polyhedron of x∈Rnx\in\mathbb{R}^n where every signed relation ε⋅x\varepsilon\cdot x, ε∈{−1,0,1}n\varepsilon\in\{-1,0,1\}^n, keeps its sign and has absolute value at least 1. The proof is an explicit positive LP dual certificate made of nn tight signed relations that are unit lower triangular in gap coordinates. — aiXiv:2611.02252, 2026-10-28 · claimed by its authors; no independent check recorded on aiXiv
  5. theorem Every set in both of Bohman's families of distinct-subset-sum sets is the unique optimum of its sign chamber, with an explicit block-triangular positive dual certificate. These families first beat Conway–Guy at n=12n=12 (1159<11641159<1164) and n=13n=13 (2262<22842262<2284). — aiXiv:2611.02252, 2026-10-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:

If A⊆{1,...,N}A\subseteq\{1, ..., N\} with ∣A∣=n|A| = n is such that the subset sums ∑a∈Sa\sum_{a\in S}a are distinct for all S⊆AS\subseteq A then N≫2n. N \gg 2 ^ n.

This conjecture is false. A machine-checked disproof constructs sum-distinct sets for which N/2nN / 2^n tends to zero.

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

Formal statement

theorem erdos_1 : ¬ ∃ C > (0 : ℝ), ∀ (N : ℕ) (A : Finset ℕ) (_ : IsSumDistinctSet A N),
    N ≠ 0 → C * 2 ^ A.card < N
Show the full Challenge.lean (308 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1

*Reference:* [erdosproblems.com/1](https://www.erdosproblems.com/1)
-/

@[expose] public section

open Filter

open scoped Topology Real

namespace Erdos1

/--
A finite set of naturals $A$ is said to be a sum-distinct set for $N \in \mathbb{N}$ if
$A\subseteq\{1, ..., N\}$ and the sums $\sum_{a\in S}a$ are distinct for all $S\subseteq A$
-/
abbrev IsSumDistinctSet (A : Finset ℕ) (N : ℕ) : Prop :=
    A ⊆ Finset.Icc 1 N ∧ (fun (⟨S, _⟩ : A.powerset) => S.sum id).Injective

set_option linter.style.formal_proof_palomar false in
/--
If $A\subseteq\{1, ..., N\}$ with $|A| = n$ is such that the subset sums $\sum_{a\in S}a$ are
distinct for all $S\subseteq A$ then
$$
  N \gg 2 ^ n.
$$

This conjecture is false. A machine-checked disproof constructs sum-distinct sets for which
$N / 2^n$ tends to zero.
-/
@[category research solved, AMS 5 11, formal_proof using lean4 at
  "https://github.com/tadamcz/erdos1/blob/0e395153306f34b3829d118b85bdd704136f2843/Erdos1/Resolutions/Erdos1_219usd_38h.lean#L2419"]
theorem erdos_1 : ¬ ∃ C > (0 : ℝ), ∀ (N : ℕ) (A : Finset ℕ) (_ : IsSumDistinctSet A N),
    N ≠ 0 → C * 2 ^ A.card < N := by
  sorry

/--
The trivial lower bound is $N \gg 2^n / n$.
-/
@[category textbook, AMS 5 11]
theorem erdos_1.variants.weaker : ∃ C > (0 : ℝ), ∀ (N : ℕ) (A : Finset ℕ)
    (_ : IsSumDistinctSet A N), N ≠ 0 → C * 2 ^ A.card / A.card < N := by
  refine ⟨1/3, by norm_num, fun N A ⟨hA1, hA2⟩ hN => ?_⟩
  have key : 2 ^ A.card ≤ A.card * N + 1 := by
    rw [← Finset.card_powerset]
    exact (Finset.card_le_card_of_injOn (Finset.sum · id)
      (fun S hS => Finset.mem_range.mpr <| Nat.lt_add_one_of_le <|
        (Finset.sum_le_card_nsmul S id N fun i hi =>
          (Finset.mem_Icc.mp (hA1 (Finset.mem_powerset.mp hS hi))).2).trans
          (Nat.mul_le_mul_right N (Finset.card_le_card (Finset.mem_powerset.mp hS))))
      (fun a ha b hb hab => by
        have := @hA2 ⟨a, ha⟩ ⟨b, hb⟩ hab; simp at this; exact this)).trans_eq
      (Finset.card_range _)
  rcases eq_or_ne A.card 0 with hc | hc
  · simp [hc]; positivity
  · rw [div_lt_iff₀ (Nat.cast_pos.mpr (Nat.pos_of_ne_zero hc))]
    nlinarith [show (2 : ℝ) ^ A.card ≤ ↑A.card * ↑N + 1 from by exact_mod_cast key,
      show (1 : ℝ) ≤ ↑A.card from by exact_mod_cast Nat.pos_of_ne_zero hc,
      show (1 : ℝ) ≤ (N : ℝ) from by exact_mod_cast Nat.pos_of_ne_zero hN]

/--
Erdős and Moser [Er56] proved
$$
  N \geq (\tfrac{1}{4} - o(1)) \frac{2^n}{\sqrt{n}}.
$$

[Er56] Erdős, P., _Problems and results in additive number theory_. Colloque sur la Th\'{E}orie des Nombres, Bruxelles, 1955 (1956), 127-137.
-/
@[category research solved, AMS 5 11]
theorem erdos_1.variants.lb : ∃ (o : ℕ → ℝ) (_ : o =o[atTop] (1 : ℕ → ℝ)),
    ∀ (N : ℕ) (A : Finset ℕ) (h : IsSumDistinctSet A N),
      (1 / 4 - o A.card) * 2 ^ A.card / (A.card : ℝ).sqrt ≤ N := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
A number of improvements of the constant $\frac{1}{4}$ have been given, with the current
record $\sqrt{2 / \pi}$ first provided in unpublished work of Elkies and Gleason.
-/
@[category research solved, AMS 5 11,
  formal_proof using formal_conjectures at
    "https://github.com/MyTH-zyxeon/formal-conjectures/blob/362eed1a8864d142ae65f51af7981a7c7530956e/FormalConjectures/Scratch/HarperCompression.lean#L2174"]
theorem erdos_1.variants.lb_strong : ∃ (o : ℕ → ℝ) (_ : o =o[atTop] (1 : ℕ → ℝ)),
    ∀ (N : ℕ) (A : Finset ℕ) (h : IsSumDistinctSet A N),
      (√(2 / π) - o A.card) * 2 ^ A.card / (A.card : ℝ).sqrt ≤ N := by
  sorry

/--
A finite set of real numbers is said to be sum-distinct if all the subset sums differ by
at least $1$.
-/
abbrev IsSumDistinctRealSet (A : Finset ℝ) (N : ℕ) : Prop :=
  ↑A ⊆ Set.Ioc (0 : ℝ) N ∧ (A.powerset : Set (Finset ℝ)).Pairwise fun S₁ S₂ =>
    1 ≤ dist (S₁.sum id) (S₂.sum id)

/--
A generalisation of the problem to sets $A \subseteq (0, N]$ of real numbers, such that the subset
sums all differ by at least $1$ is proposed in [Er73] and [ErGr80].

The positive statement is false: every natural-number counterexample to `erdos_1` embeds into
$\mathbb{R}$, and distinct integer subset sums differ by at least one.

[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.

[ErGr80] Erdős, P. and Graham, R., _Old and new problems and results in combinatorial number theory_. Monographies de L'Enseignement Mathematique (1980).
-/
@[category research solved, AMS 5 11]
theorem erdos_1.variants.real : ¬ ∃ C > (0 : ℝ), ∀ (N : ℕ) (A : Finset ℝ)
    (_ : IsSumDistinctRealSet A N), N ≠ 0 → C * 2 ^ A.card < N := by
  intro hreal
  apply erdos_1
  rcases hreal with ⟨C, hC, hreal⟩
  refine ⟨C, hC, ?_⟩
  intro N A hA hN
  let e : ℕ ↪ ℝ := ⟨fun n => (n : ℝ), Nat.cast_injective⟩
  let B : Finset ℝ := A.map e
  have hB : IsSumDistinctRealSet B N := by
    constructor
    · intro x hx
      change x ∈ B at hx
      simp only [B, Finset.mem_map] at hx
      rcases hx with ⟨n, hn, rfl⟩
      have hnIcc := hA.1 hn
      simp only [Finset.mem_Icc] at hnIcc
      change (0 : ℝ) < (n : ℝ) ∧ (n : ℝ) ≤ (N : ℝ)
      exact ⟨by exact_mod_cast hnIcc.1, by exact_mod_cast hnIcc.2⟩
    · intro S₁ hS₁ S₂ hS₂ hne
      change S₁ ∈ B.powerset at hS₁
      change S₂ ∈ B.powerset at hS₂
      have hS₁' : S₁ ⊆ B := Finset.mem_powerset.mp hS₁
      have hS₂' : S₂ ⊆ B := Finset.mem_powerset.mp hS₂
      let T₁ := S₁.preimage e (Set.injOn_of_injective e.injective)
      let T₂ := S₂.preimage e (Set.injOn_of_injective e.injective)
      have hm₁ : T₁.map e = S₁ := by
        ext x
        simp only [Finset.mem_map]
        constructor
        · rintro ⟨n, hn, rfl⟩
          exact Finset.mem_preimage.mp hn
        · intro hx
          have hxB := hS₁' hx
          simp only [B, Finset.mem_map] at hxB
          rcases hxB with ⟨n, hn, rfl⟩
          exact ⟨n, Finset.mem_preimage.mpr hx, rfl⟩
      have hm₂ : T₂.map e = S₂ := by
        ext x
        simp only [Finset.mem_map]
        constructor
        · rintro ⟨n, hn, rfl⟩
          exact Finset.mem_preimage.mp hn
        · intro hx
          have hxB := hS₂' hx
          simp only [B, Finset.mem_map] at hxB
          rcases hxB with ⟨n, hn, rfl⟩
          exact ⟨n, Finset.mem_preimage.mpr hx, rfl⟩
      have hT₁A : T₁ ⊆ A := by
        intro n hn
        have : e n ∈ S₁ := by
          rw [← hm₁]
          exact Finset.mem_map.mpr ⟨n, hn, rfl⟩
        exact hS₁' this |> fun h => by simpa [B] using h
      have hT₂A : T₂ ⊆ A := by
        intro n hn
        have : e n ∈ S₂ := by
          rw [← hm₂]
          exact Finset.mem_map.mpr ⟨n, hn, rfl⟩
        exact hS₂' this |> fun h => by simpa [B] using h
      have hTne : T₁ ≠ T₂ := by
        intro heq
        apply hne
        rw [← hm₁, ← hm₂, heq]
      have hsumne : T₁.sum id ≠ T₂.sum id := by
        intro hsum
        apply hTne
        have hsubeq :
            (⟨T₁, Finset.mem_powerset.mpr hT₁A⟩ : A.powerset) =
              ⟨T₂, Finset.mem_powerset.mpr hT₂A⟩ := hA.2 hsum
        exact congrArg Subtype.val hsubeq
      rw [← hm₁, ← hm₂, Finset.sum_map, Finset.sum_map]
      simp only [e, Function.Embedding.coeFn_mk, id_eq]
      have hs₁ : (∑ n ∈ T₁, (n : ℝ)) = ((T₁.sum id : ℕ) : ℝ) := by
        rw [Nat.cast_sum]
        rfl
      have hs₂ : (∑ n ∈ T₂, (n : ℝ)) = ((T₂.sum id : ℕ) : ℝ) := by
        rw [Nat.cast_sum]
        rfl
      rw [hs₁, hs₂, Real.dist_eq]
      rcases lt_or_gt_of_ne hsumne with hlt | hgt
      · rw [abs_of_nonpos (sub_nonpos.mpr (by exact_mod_cast Nat.le_of_lt hlt))]
        have hgap : T₁.sum id + 1 ≤ T₂.sum id := by omega
        have hgapR : (((T₁.sum id + 1 : ℕ) : ℝ)) ≤ T₂.sum id := by exact_mod_cast hgap
        norm_num at hgapR ⊢
        linarith
      · rw [abs_of_nonneg (sub_nonneg.mpr (by exact_mod_cast Nat.le_of_lt hgt))]
        have hgap : T₂.sum id + 1 ≤ T₁.sum id := by omega
        have hgapR : (((T₂.sum id + 1 : ℕ) : ℝ)) ≤ T₁.sum id := by exact_mod_cast hgap
        norm_num at hgapR ⊢
        linarith
  have := hreal N B hB hN
  simpa [B] using this

/--
The minimal value of $N$ such that there exists a sum-distinct set with three
elements is $4$.

https://oeis.org/A276661
-/
@[category textbook, AMS 5 11]
theorem erdos_1.variants.least_N_3 :
    IsLeast { N | ∃ A, IsSumDistinctSet A N ∧ A.card = 3 } 4 := by
  refine ⟨⟨{1, 2, 4}, ?_⟩, ?_⟩
  · simp
    refine ⟨by decide, ?_⟩
    let P := Finset.powerset {1, 2, 4}
    have : Finset.univ.image (fun p : P ↦ ∑ x ∈ p, x) = {0, 1, 2, 4, 3, 5, 6, 7} := by
      refine Finset.ext_iff.mpr (fun n => ?_)
      simp [show P = {{}, {1}, {2}, {4}, {1, 2}, {1, 4}, {2, 4}, {1, 2, 4}} by decide]
      omega
    rw [← Set.injOn_univ, ← Finset.coe_univ]
    have : (Finset.univ.image (fun p : P ↦ ∑ x ∈ p.1, x)).card = (Finset.univ (α := P)).card := by
      rw [this]; aesop
    exact Finset.injOn_of_card_image_eq this
  · simp [mem_lowerBounds]
    intro n S h h_inj hcard3
    by_contra hn
    interval_cases n; aesop; aesop
    · have := Finset.card_le_card h
      aesop
    · absurd h_inj
      rw [(Finset.subset_iff_eq_of_card_le (Nat.le_of_eq (by rw [hcard3]; decide))).mp h]
      decide

/--
The minimal value of $N$ such that there exists a sum-distinct set with four
elements is $7$.

https://oeis.org/A276661
-/
@[category textbook, AMS 5 11]
theorem erdos_1.variants.least_N_4 :
    IsLeast { N | ∃ A, IsSumDistinctSet A N ∧ A.card = 4 } 7 := by
  refine ⟨⟨{3, 5, 6, 7}, ⟨by decide, by decide⟩, by decide⟩, ?_⟩
  rintro N ⟨A, ⟨hA, hinj⟩, hcard⟩
  by_contra! hN
  have hA6 : A ∈ (Finset.Icc 1 6).powersetCard 4 :=
    Finset.mem_powersetCard.mpr ⟨fun x hx => by
      have := Finset.mem_Icc.mp (hA hx)
      exact Finset.mem_Icc.mpr ⟨this.1, by omega⟩, hcard⟩
  have key : ∀ B ∈ (Finset.Icc 1 6).powersetCard 4,
      ¬ (fun (⟨S, _⟩ : B.powerset) => S.sum id).Injective := by
    decide
  exact key A hA6 hinj

/--
The minimal value of $N$ such that there exists a sum-distinct set with five
elements is $13$.

https://oeis.org/A276661
-/
@[category research solved, AMS 5 11]
theorem erdos_1.variants.least_N_5 :
    IsLeast { N | ∃ A, IsSumDistinctSet A N ∧ A.card = 5 } 13 := by
  refine ⟨⟨{6, 9, 11, 12, 13}, ⟨by decide, by decide⟩, by decide⟩, ?_⟩
  rintro N ⟨A, ⟨hA, hinj⟩, hcard⟩
  by_contra! hN
  have hA12 : A ∈ (Finset.Icc 1 12).powersetCard 5 :=
    Finset.mem_powersetCard.mpr ⟨fun x hx => by
      have := Finset.mem_Icc.mp (hA hx)
      exact Finset.mem_Icc.mpr ⟨this.1, by omega⟩, hcard⟩
  have key : ∀ B ∈ (Finset.Icc 1 12).powersetCard 5,
      ¬ (fun (⟨S, _⟩ : B.powerset) => S.sum id).Injective := by
    decide +kernel
  exact key A hA12 hinj

/--
The minimal value of $N$ such that there exists a sum-distinct set with nine
elements is $161$.

https://oeis.org/A276661
-/
@[category research solved, AMS 5 11]
theorem erdos_1.variants.least_N_9 :
    IsLeast { N | ∃ A, IsSumDistinctSet A N ∧ A.card = 9 } 161 := by
  sorry

end Erdos1

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

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