{
  "id": "3466",
  "ident": "NS.03466",
  "slug": "erdos-875",
  "title": "Erdős Problem 875",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $A=\\{a_1<a_2<\\cdots\\}\\subset \\mathbb{N}$ be an infinite set such that the sets\n$$S_r = \\{ a_1+\\cdots +a_r : a_1<\\cdots<a_r\\in A\\}$$\nare disjoint for distinct $r\\geq 1$. How fast can such a sequence grow? How small can\n$a_{n+1}-a_n$ be? In particular, for which $c$ is it possible that $a_{n+1}-a_n\\leq n^{c}$?\n\nA problem of Deshouillers and Erdős [Er98] (an infinite version of\n[874](https://www.erdosproblems.com/874)). Such sets are sometimes called admissible. We state the\nlast question: the set of such $c$ is `erdos_875.answer`. The bound is required for all large $n$,\nsince otherwise the first few $n$ would constrain the answer. The first two questions are not\nformalised separately. Erdős also writes that it is not completely trivial to find such a sequence\nwith $a_{n+1}/a_n\\to 1$ (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": "Erdos875.erdos_875",
  "statement_lean": "theorem erdos_875 :\n    {c : ℝ | ∃ A : Set ℕ, A.Infinite ∧ IsAdmissible A ∧\n      ∀ᶠ n : ℕ in atTop, (gap A n : ℝ) ≤ (n : ℝ) ^ c} = erdos_875.answer",
  "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 875\n\n*References:*\n- [erdosproblems.com/875](https://www.erdosproblems.com/875)\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- [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- [ENS91] Erdős, P., Nicolas, J.-L. and Sárközy, A., *Sommes de sous-ensembles*. J. Théor. Nombres\n  Bordeaux 3 (1991), 55-72. [Numdam](https://www.numdam.org/item/JTNB_1991__3_1_55_0/)\n- [DeFr99] Deshouillers, J.-M. and Freiman, G. A., *On an additive problem of Erdős and Straus,\n  2*. Astérisque 258 (1999), 141-148. [Numdam](https://www.numdam.org/item/AST_1999__258__141_0/)\n\nThe finite version of this problem is [erdosproblems.com/874](https://www.erdosproblems.com/874).\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos875\n\n/-- `rSums A r` is the set $S_r$ of all sums $a_1+\\cdots+a_r$ of $r$ distinct elements of `A`.\nFor `r = 0` it is `{0}`. -/\ndef rSums (A : Set ℕ) (r : ℕ) : Set ℕ :=\n  {s | ∃ T : Finset ℕ, (T : Set ℕ) ⊆ A ∧ T.card = r ∧ ∑ x ∈ T, x = s}\n\n/-- A set `A` of natural numbers is *admissible* if the sets $S_r$ of sums of $r$ distinct\nelements of `A` are pairwise disjoint for $r\\geq 1$. Here `ℕ` contains $0$, but an infinite\nadmissible set does not contain $0$: for any other element $a$ we would have\n$a=0+a\\in S_1\\cap S_2$. -/\ndef IsAdmissible (A : Set ℕ) : Prop :=\n  (Set.Ici (1 : ℕ)).PairwiseDisjoint (rSums A)\n\n/-- The counting function $A(x)$: the number of elements of `A` that are at most `x`. The set is\nfinite, so `ncard` is the true cardinality. -/\nnoncomputable def countingFunction (A : Set ℕ) (x : ℕ) : ℕ :=\n  (A ∩ Set.Iic x).ncard\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/-- The sums of one element are the elements: $S_1=A$. -/\n@[category API, AMS 11]\ntheorem rSums_one (A : Set ℕ) : rSums A 1 = A := by\n  ext s\n  constructor\n  · rintro ⟨T, hT, hc, rfl⟩\n    obtain ⟨a, rfl⟩ := Finset.card_eq_one.mp hc\n    simpa using hT\n  · intro hs\n    exact ⟨{s}, by simpa using hs, by simp, by simp⟩\n\ndef erdos_875.answer : Set ℝ := sorry\n\n/--\nLet $A=\\{a_1<a_2<\\cdots\\}\\subset \\mathbb{N}$ be an infinite set such that the sets\n$$S_r = \\{ a_1+\\cdots +a_r : a_1<\\cdots<a_r\\in A\\}$$\nare disjoint for distinct $r\\geq 1$. How fast can such a sequence grow? How small can\n$a_{n+1}-a_n$ be? In particular, for which $c$ is it possible that $a_{n+1}-a_n\\leq n^{c}$?\n\nA problem of Deshouillers and Erdős [Er98] (an infinite version of\n[874](https://www.erdosproblems.com/874)). Such sets are sometimes called admissible. We state the\nlast question: the set of such $c$ is `erdos_875.answer`. The bound is required for all large $n$,\nsince otherwise the first few $n$ would constrain the answer. The first two questions are not\nformalised separately. Erdős also writes that it is not completely trivial to find such a sequence\nwith $a_{n+1}/a_n\\to 1$ (not formalised).\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_875 :\n    {c : ℝ | ∃ A : Set ℕ, A.Infinite ∧ IsAdmissible A ∧\n      ∀ᶠ n : ℕ in atTop, (gap A n : ℝ) ≤ (n : ℝ) ^ c} = erdos_875.answer := by\n  sorry\n\n/--\nErdős, Nicolas and Sárközy [ENS91, Theorem 2] constructed an infinite admissible set $A$ with\n$$A(x)=\\lvert\\{a\\in A: a\\leq x\\}\\rvert \\gg x^{5-2\\sqrt6}.$$\nThe implied constant is positive and the inequality is required for all large $x$. This improves\na result of Erdős [Er62c], who obtained $A(x)\\gg x^{c}$ for some unspecified $c>0$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_875.variants.erdos_nicolas_sarkozy :\n    ∃ A : Set ℕ, A.Infinite ∧ IsAdmissible A ∧ ∃ c : ℝ, 0 < c ∧\n      ∀ᶠ x : ℕ in atTop, c * (x : ℝ) ^ (5 - 2 * Real.sqrt 6) ≤ (countingFunction A x : ℝ) := by\n  sorry\n\n/--\nSince $5-2\\sqrt6=(5+2\\sqrt6)^{-1}$, the result of [ENS91, Theorem 2] gives\n$a_n\\ll n^{5+2\\sqrt6}$, hence $a_{n+1}-a_n\\leq a_{n+1}\\ll n^{5+2\\sqrt6}$. So every\n$c>5+2\\sqrt6$ is possible in the main question.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_875.variants.polynomial_gaps (c : ℝ) (hc : 5 + 2 * Real.sqrt 6 < c) :\n    ∃ A : Set ℕ, A.Infinite ∧ IsAdmissible A ∧\n      ∀ᶠ n : ℕ in atTop, (gap A n : ℝ) ≤ (n : ℝ) ^ c := by\n  sorry\n\n/--\nDeshouillers and Freiman [DeFr99, Theorem 1] proved a conjecture of Erdős on the finite version\n([874](https://www.erdosproblems.com/874)): for all sufficiently large $N$, every admissible set\n$A\\subseteq\\{1,\\ldots,N\\}$ satisfies\n$$\\lvert A\\rvert\\leq 2\\sqrt{N+\\tfrac14}-1.$$\nThis is sharp: by Straus, the set of $k$ consecutive integers ending at $N$ is admissible if and\nonly if $k\\leq 2\\sqrt{N+\\frac14}-1$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_875.variants.deshouillers_freiman :\n    ∃ N₀ : ℕ, ∀ N : ℕ, N₀ ≤ N → ∀ A : Finset ℕ, (A : Set ℕ) ⊆ Set.Icc 1 N →\n      IsAdmissible (A : Set ℕ) → (A.card : ℝ) ≤ 2 * Real.sqrt ((N : ℝ) + 1 / 4) - 1 := by\n  sorry\n\nend Erdos875\n",
  "statement_hash": "470cbf8352955bb0370621fe024f321ae981fcb4771911203dc90753c3f82695",
  "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."
}