{
  "id": "1731",
  "ident": "NS.01731",
  "slug": "erdos-337",
  "title": "Erdős Problem 337",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A\\subseteq \\mathbb{N}$ be an additive basis (of any finite order) such that\n$\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert=o(N)$. Is it true that\n$$\n\\lim_{N\\to \\infty}\\frac{\\lvert (A+A)\\cap \\{1,\\ldots,N\\}\\rvert}\n{\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert}=\\infty?\n$$\n\nThe answer is no, and a counterexample was provided by Turjányi [Tu84]. This was generalised (to\nthe replacement of $A+A$ by the $h$-fold sumset $hA$ for any $h\\geq 2$) by Ruzsa and Turjányi\n[RT85].\n\n\"Additive basis\" is `Set.IsAsymptoticAddBasis`: some finite $h$ has $hA$ containing every\nsufficiently large integer. The exact notion `Set.IsAddBasis`, which asks that $hA$ be all of\n$\\mathbb{N}$, would force $0, 1 \\in A$ and is not the class these results are about.\n\nThe linked file states the basis hypothesis as `∃ N₀, Set.Ici N₀ ⊆ iterated_sumset A k` and\nindexes both counting functions by a real $x$ through $\\lfloor x\\rfloor$, where the counting\nfunctions here are indexed by $N : \\mathbb{N}$.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos337.erdos_337",
  "statement_lean": "theorem erdos_337 :\n    ¬ ∀ A : Set ℕ, A.IsAsymptoticAddBasis →\n      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) →\n      Tendsto (fun N : ℕ ↦ (((A + A) ∩ Icc 1 N).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))\n        atTop atTop",
  "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 337\n\n*References:*\n- [erdosproblems.com/337](https://www.erdosproblems.com/337)\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathematique (1980).\n- [ErGr80b] Erdős, P. and Graham, R. L., *On bases with an exact order*. Acta Arith. (1980),\n  201-207.\n- [RT85] Ruzsa, I. Z. and Turjányi, S., *A note on additive bases of integers*. Publ. Math.\n  Debrecen (1985), 101-104.\n- [Tu84] Turjányi, S., *A note on basis sequences*. Topics in classical number theory, Vol. I, II\n  (Budapest, 1981) (1984), 1571-1576.\n-/\n\n@[expose] public section\n\nnamespace Erdos337\n\nopen Filter Set Asymptotics\n\nopen scoped Pointwise\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A\\subseteq \\mathbb{N}$ be an additive basis (of any finite order) such that\n$\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert=o(N)$. Is it true that\n$$\n\\lim_{N\\to \\infty}\\frac{\\lvert (A+A)\\cap \\{1,\\ldots,N\\}\\rvert}\n{\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert}=\\infty?\n$$\n\nThe answer is no, and a counterexample was provided by Turjányi [Tu84]. This was generalised (to\nthe replacement of $A+A$ by the $h$-fold sumset $hA$ for any $h\\geq 2$) by Ruzsa and Turjányi\n[RT85].\n\n\"Additive basis\" is `Set.IsAsymptoticAddBasis`: some finite $h$ has $hA$ containing every\nsufficiently large integer. The exact notion `Set.IsAddBasis`, which asks that $hA$ be all of\n$\\mathbb{N}$, would force $0, 1 \\in A$ and is not the class these results are about.\n\nThe linked file states the basis hypothesis as `∃ N₀, Set.Ici N₀ ⊆ iterated_sumset A k` and\nindexes both counting functions by a real $x$ through $\\lfloor x\\rfloor$, where the counting\nfunctions here are indexed by $N : \\mathbb{N}$.\n-/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/68da20b96673899166e94638f5a7fffeb7231d35/src/latest/ErdosProblems/Erdos337.lean\"]\ntheorem erdos_337 :\n    ¬ ∀ A : Set ℕ, A.IsAsymptoticAddBasis →\n      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) →\n      Tendsto (fun N : ℕ ↦ (((A + A) ∩ Icc 1 N).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))\n        atTop atTop := by\n  sorry\n\n/--\nThis was generalised (to the replacement of $A+A$ by the $h$-fold sumset $hA$ for any $h\\geq 2$)\nby Ruzsa and Turjányi [RT85].\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_337.variants.h_fold : ∀ h : ℕ, 2 ≤ h →\n    ∃ A : Set ℕ, A.IsAsymptoticAddBasis ∧\n      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) ∧\n      ¬ Tendsto (fun N : ℕ ↦\n          ((h • A ∩ Icc 1 N).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))\n        atTop atTop := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nRuzsa and Turjányi do prove (under the same hypotheses) that\n$$\n\\lim_{N\\to \\infty}\\frac{\\lvert (A+A+A)\\cap \\{1,\\ldots,3N\\}\\rvert}\n{\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert}=\\infty,\n$$\nand conjecture that the same should be true with $(A+A)\\cap \\{1,\\ldots,2N\\}$ in the numerator.\n\nThis follows from the Plünnecke–Ruzsa inequality applied to $B=A\\cap\\{0,\\ldots,N\\}$: if $A$ is a\nbasis of order $h$ then $hB$ contains every element of $\\{N_0,\\ldots,N\\}$, so\n$(\\lvert B+B\\rvert/\\lvert B\\rvert)^h\\geq \\lvert hB\\rvert/\\lvert B\\rvert\\gg N/\\lvert B\\rvert$,\nwhich tends to infinity since $\\lvert B\\rvert=o(N)$.\n-/\n@[category research solved, AMS 5 11, formal_proof using formal_conjectures at\n\"https://github.com/mo271/formal-conjectures/blob/9e4cd5617edacb313fb1da32adb4751f1fa8f603/FormalConjectures/ErdosProblems/337.lean#L95\"]\ntheorem erdos_337.variants.ruzsa_turjanyi :\n    ∀ A : Set ℕ, A.IsAsymptoticAddBasis →\n      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) →\n      Tendsto (fun N : ℕ ↦\n          (((A + A) ∩ Icc 1 (2 * N)).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))\n        atTop atTop := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nRuzsa and Turjányi do prove (under the same hypotheses) that\n$$\n\\lim_{N\\to \\infty}\\frac{\\lvert (A+A+A)\\cap \\{1,\\ldots,3N\\}\\rvert}\n{\\lvert A\\cap \\{1,\\ldots,N\\}\\rvert}=\\infty.\n$$\n\nThis is weaker than `Erdos337.erdos_337.variants.ruzsa_turjanyi`: translating by a fixed\n$a\\in A$ with $1\\leq a\\leq N$ embeds $(A+A)\\cap\\{1,\\ldots,2N\\}$ into\n$(A+A+A)\\cap\\{1,\\ldots,3N\\}$.\n-/\n@[category research solved, AMS 5 11, formal_proof using formal_conjectures at\n\"https://github.com/mo271/formal-conjectures/blob/9e4cd5617edacb313fb1da32adb4751f1fa8f603/FormalConjectures/ErdosProblems/337.lean#L240\"]\ntheorem erdos_337.variants.three_fold :\n    ∀ A : Set ℕ, A.IsAsymptoticAddBasis →\n      (fun N : ℕ ↦ ((A ∩ Icc 1 N).ncard : ℝ)) =o[atTop] (fun N : ℕ ↦ (N : ℝ)) →\n      Tendsto (fun N : ℕ ↦\n          (((A + A + A) ∩ Icc 1 (3 * N)).ncard : ℝ) / ((A ∩ Icc 1 N).ncard : ℝ))\n        atTop atTop := by\n  sorry\n\nend Erdos337\n",
  "statement_hash": "112669026145f0eaa9d429763679d0fa26a1212fa541776cb0dabaadc367bd88",
  "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."
}