{
  "id": "3471",
  "ident": "NS.03471",
  "slug": "erdos-876",
  "title": "Erdős Problem 876",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $A=\\{a_1<a_2<\\cdots\\}\\subset \\mathbb{N}$ be an infinite sum-free set - that is, there are no\nsolutions to\n$$a=b_1+\\cdots+b_r$$\nwith $b_1<\\cdots<b_r<a\\in A$. How small can $a_{n+1}-a_n$ be? Is it possible that\n$a_{n+1}-a_n<n$?\n\nThe gap question is discussed by Erdős in [Er98]. We state the second question. The inequality\n$a_{n+1}-a_n<n$ is required for all large $n$, because it fails for $n=1$. The first question is\nvaguer and is not formalised.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos876.erdos_876.parts.i",
  "statement_lean": "theorem erdos_876.parts.i :\n    ∃ A : Set ℕ, A.Infinite ∧ IsSubsetSumFree A ∧ ∀ᶠ n : ℕ in atTop, gap A n < n",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 876\n\n*References:*\n- [erdosproblems.com/876](https://www.erdosproblems.com/876)\n- [Er62c] Erdős, P., *Some remarks on number theory. III* (in Hungarian). Mat. Lapok 13 (1962),\n  28-38. [PDF](https://www.renyi.hu/~p_erdos/1962-22.pdf)\n- [Er75b] Erdős, P., *Problems and results in combinatorial number theory*. Journées Arithmétiques\n  de Bordeaux (Conf., Univ. Bordeaux, 1974), Astérisque 24-25 (1975), 295-310.\n  [PDF](https://www.renyi.hu/~p_erdos/1975-30.pdf)\n- [Er77c] Erdős, P., *Problems and results on combinatorial number theory. III*. Number theory day\n  (Proc. Conf., Rockefeller Univ., New York, 1976), Lecture Notes in Math. 626 (1977), 43-72.\n  [PDF](https://www.renyi.hu/~p_erdos/1977-27.pdf)\n- [Er98] Erdős, P., *Some of my new and almost new problems and results in combinatorial number\n  theory*. Number theory (Eger, 1996) (1998), 169-180.\n- [DEM99] Deshouillers, J.-M., Erdős, P. and Melfi, G., *On a question about sum-free sequences*.\n  Discrete Math. 200 (1999), 49-54.\n- [LeOS77] Levine, E. and O'Sullivan, J., *An upper estimate for the reciprocal sum of a sum-free\n  sequence*. Acta Arith. 34 (1977), 9-24.\n- [Ab87] Abbott, H. L., *On sum-free sequences*. Acta Arith. 48 (1987), 93-96.\n\nSee also [erdosproblems.com/790](https://www.erdosproblems.com/790).\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos876\n\n/-- `A` is *sum-free* in the sense of Erdős: its elements are positive and no element is a sum of\ndistinct smaller elements of `A`. The condition `0 < a` fits $A\\subset\\mathbb{N}$ with\n$\\mathbb{N}=\\{1,2,\\ldots\\}$ and makes the empty sum $0$ harmless. A single smaller element cannot\nequal `a`, so only sums of $r\\geq 2$ elements matter. This differs from the usual `IsSumFree`:\nsums of any number of distinct smaller elements are forbidden, but $a=b+b$ is allowed. -/\ndef IsSubsetSumFree (A : Set ℕ) : Prop :=\n  ∀ a ∈ A, 0 < a ∧ a ∉ subsetSums (A ∩ Set.Iio a)\n\n/-- For an infinite set `A = {a₁ < a₂ < ⋯}`, `Nat.nth (· ∈ A) k` is $a_{k+1}$, because the\nenumeration starts at index `0`. Hence `gap A n` is $a_{n+1}-a_n$ for $n\\geq 1$. The value at\n`n = 0` is junk and is never used, since the statements below only concern large `n`. -/\nnoncomputable def gap (A : Set ℕ) (n : ℕ) : ℕ :=\n  Nat.nth (· ∈ A) n - Nat.nth (· ∈ A) (n - 1)\n\n/-- `maxRecipSum` is the supremum of $\\sum_{a\\in A}1/a$ over infinite sum-free sets `A`. Only\nconvergent sums are taken (`HasSum`), so no junk value occurs. The set of values is nonempty (the\npowers of $2$ give $2$) and bounded above by $103$ [Er62c], so `sSup` is the true supremum, which\nmay or may not be attained. -/\nnoncomputable def maxRecipSum : ℝ :=\n  sSup {s : ℝ | ∃ A : Set ℕ, A.Infinite ∧ IsSubsetSumFree A ∧\n    HasSum (fun a : A ↦ (1 : ℝ) / (a : ℕ)) s}\n\n/-- The set `{1, 2, 3}` is not sum-free, since $3=1+2$. -/\n@[category test, AMS 11]\ntheorem not_isSubsetSumFree_one_two_three : ¬ IsSubsetSumFree ({1, 2, 3} : Set ℕ) := by\n  intro h\n  refine (h 3 (by simp)).2 ⟨{1, 2}, ?_, by decide⟩\n  intro x hx\n  simp at hx\n  rcases hx with rfl | rfl <;> simp\n\n/--\nLet $A=\\{a_1<a_2<\\cdots\\}\\subset \\mathbb{N}$ be an infinite sum-free set - that is, there are no\nsolutions to\n$$a=b_1+\\cdots+b_r$$\nwith $b_1<\\cdots<b_r<a\\in A$. How small can $a_{n+1}-a_n$ be? Is it possible that\n$a_{n+1}-a_n<n$?\n\nThe gap question is discussed by Erdős in [Er98]. We state the second question. The inequality\n$a_{n+1}-a_n<n$ is required for all large $n$, because it fails for $n=1$. The first question is\nvaguer and is not formalised.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_876.parts.i :\n    ∃ A : Set ℕ, A.Infinite ∧ IsSubsetSumFree A ∧ ∀ᶠ n : ℕ in atTop, gap A n < n := by\n  sorry\n\ndef erdos_876.parts.ii.answer : ℝ := sorry\n\n/--\nIn [Er75b] and [Er77c] Erdős asks to determine the maximum possible value of\n$\\sum_{n\\in A}\\frac{1}{n}$. Erdős had proved this is $<100$, and Sullivan had shown that this is\n$<4$, and Sullivan conjectured the maximum is slightly larger than $2$ [Er77c, p. 52].\n\nHere $A$ ranges over infinite sum-free sets, and the maximum is read as the supremum\n`maxRecipSum`.\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_876.parts.ii : maxRecipSum = erdos_876.parts.ii.answer := by\n  sorry\n\n/--\nErdős [Er62c, Theorem I] proved that a sum-free set has density zero (restated as\n[DEM99, Theorem 1]).\n-/\n@[category research solved, AMS 11]\ntheorem erdos_876.variants.density_zero (A : Set ℕ) (hA : A.Infinite) (hs : IsSubsetSumFree A) :\n    A.HasDensity 0 := by\n  sorry\n\n/--\nErdős [Er62c, Theorem II] proved that $\\sum_{a\\in A}1/a$ converges and is $<103$ for every\ninfinite sum-free set $A$; see also [Er75b, p. 302] and [DEM99, p. 49]. The later paper\n[Er77c, p. 52] states the bound as $100$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_876.variants.recip_sum_lt (A : Set ℕ) (hA : A.Infinite) (hs : IsSubsetSumFree A) :\n    ∃ s : ℝ, s < 103 ∧ HasSum (fun a : A ↦ (1 : ℝ) / (a : ℕ)) s := by\n  sorry\n\n/--\nLet $R$ be the supremum of $\\sum_j 1/n_j$ over sum-free sequences $\\{n_j\\}$. Levine and O'Sullivan\n[LeOS77] proved $R<4$ (and $R>2.035$), and Abbott [Ab87] improved the lower bound to $R>2.064$,\nas reported in [DEM99, p. 50].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_876.variants.recip_sum_bounds : 2.064 < maxRecipSum ∧ maxRecipSum < 4 := by\n  sorry\n\n/--\nDeshouillers, Erdős and Melfi [DEM99, Theorem 3] constructed an infinite sum-free set with\n$a_{n+1}/a_n\\to 1$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_876.variants.dem_ratio :\n    ∃ A : Set ℕ, A.Infinite ∧ IsSubsetSumFree A ∧\n      Tendsto (fun k : ℕ ↦ (Nat.nth (· ∈ A) (k + 1) : ℝ) / (Nat.nth (· ∈ A) k : ℝ))\n        atTop (nhds 1) := by\n  sorry\n\n/--\nDeshouillers, Erdős and Melfi [DEM99, Theorem 4] proved that for every $\\delta>0$ there is an\ninfinite sum-free set with $a_n\\sim n^{3+\\delta}$; we state the consequence $a_n\\ll n^{3+\\delta}$.\nThe site writes $a_n\\sim n^{3+o(1)}$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_876.variants.dem_polynomial (δ : ℝ) (hδ : 0 < δ) :\n    ∃ A : Set ℕ, A.Infinite ∧ IsSubsetSumFree A ∧\n      ∃ C : ℝ, ∀ k : ℕ, (Nat.nth (· ∈ A) k : ℝ) ≤ C * ((k : ℝ) + 1) ^ (3 + δ) := by\n  sorry\n\nend Erdos876\n",
  "statement_hash": "10146a59c7c4c364c665d8a56d492e918952c230d7a1dfff2542e183c9be1df1",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}