{
  "id": "1939",
  "ident": "NS.01939",
  "slug": "erdos-38",
  "title": "Erdős Problem 38",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Does there exist $B \\subset \\mathbb{N}$ which is not an additive basis,\nbut is such that for every set $A \\subseteq \\mathbb{N}$ of Schnirelmann density $\\alpha$\nand every $N$ there exists $b \\in B$ such that\n$$\n  \\lvert (A \\cup (A+b)) \\cap \\{1, \\ldots, N\\} \\rvert \\geq (\\alpha + f(\\alpha)) N\n$$\nwhere $f(\\alpha) > 0$ for $0 < \\alpha < 1$?\n\nNote: here Erdős seems to use a slightly weaker notion of an additive basis (see [Er56] at the top\nof page 135). In particular, for this problem, a set is an additive basis of order $k$ if every\nnatural number can be written as a sum of _at most_ $k$ elements of the set, rather than as a sum of\n_precisely_ $k$ elements.\n\nA positive [solution](https://github.com/spicylemonade/erdos-38) was given by GPT 5.5 Pro\n(prompted by gebyjaff, cleanup by Liam Price); in fact a sparse random set $B$ has this property,\nwith $f(\\alpha)\\gg \\alpha (1-\\alpha)^2$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos38.erdos_38",
  "statement_lean": "theorem erdos_38 :\n    ∃ B : Set ℕ, ¬ B.IsWeakAddBasis ∧ ∃ f : ℝ → ℝ, (∀ α, 0 < α → α < 1 → f α > 0) ∧\n      ∀ (A : Set ℕ) (N : ℕ),\n        let α := schnirelmannDensity A\n        ∃ b ∈ B, (Ioc 0 N ∩ (A ∪ (A + {b}))).ncard ≥ (α + f α) * N",
  "challenge_source": "/-\nCopyright 2025 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 38\n\n*Reference:*\n- [erdosproblems.com/38](https://www.erdosproblems.com/38)\n- [Er56](Erdős, P., Problems and results in additive number theory.\n  Colloque sur la Théorie des Nombres, Bruxelles, 1955 (1956), 127-137.)\n-/\n\n@[expose] public section\n\nopen Set Pointwise\n\nnamespace Erdos38\n\nopen scoped Classical in\nset_option linter.style.formal_proof_palomar false in\n/--\nDoes there exist $B \\subset \\mathbb{N}$ which is not an additive basis,\nbut is such that for every set $A \\subseteq \\mathbb{N}$ of Schnirelmann density $\\alpha$\nand every $N$ there exists $b \\in B$ such that\n$$\n  \\lvert (A \\cup (A+b)) \\cap \\{1, \\ldots, N\\} \\rvert \\geq (\\alpha + f(\\alpha)) N\n$$\nwhere $f(\\alpha) > 0$ for $0 < \\alpha < 1$?\n\nNote: here Erdős seems to use a slightly weaker notion of an additive basis (see [Er56] at the top\nof page 135). In particular, for this problem, a set is an additive basis of order $k$ if every\nnatural number can be written as a sum of _at most_ $k$ elements of the set, rather than as a sum of\n_precisely_ $k$ elements.\n\nA positive [solution](https://github.com/spicylemonade/erdos-38) was given by GPT 5.5 Pro\n(prompted by gebyjaff, cleanup by Liam Price); in fact a sparse random set $B$ has this property,\nwith $f(\\alpha)\\gg \\alpha (1-\\alpha)^2$.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n\"https://www.erdosproblems.com/forum/thread/38#post-6131\"]\ntheorem erdos_38 :\n    ∃ B : Set ℕ, ¬ B.IsWeakAddBasis ∧ ∃ f : ℝ → ℝ, (∀ α, 0 < α → α < 1 → f α > 0) ∧\n      ∀ (A : Set ℕ) (N : ℕ),\n        let α := schnirelmannDensity A\n        ∃ b ∈ B, (Ioc 0 N ∩ (A ∪ (A + {b}))).ncard ≥ (α + f α) * N := by\n  sorry\n\nend Erdos38\n",
  "statement_hash": "9a7d7f0a802df80aded0076b5d07dd9ac9fba51364bc1ee228ba7d7ee8139235",
  "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."
}