{
  "id": "3447",
  "ident": "NS.03447",
  "slug": "erdos-868",
  "title": "Erdős Problem 868",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A$ be an additive basis of order $2$, let $f(n)$ denote the number of ways in which\n$n$ can be written as the sum of two elements from $A$. If $f(n) \\to \\infty$ as $n \\to \\infty$, then\nmust $A$ contain a minimal additive basis of order $2$?\n\nLarsen and Larsen [LaLa26] answered this in the negative.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos868.erdos_868.parts.i",
  "statement_lean": "theorem erdos_868.parts.i :\n    ¬ ∀ (A : Set ℕ), A.IsAsymptoticAddBasisOfOrder 2 →\n      atTop.Tendsto (fun n => ncard_add_repr A 2 n) atTop → ∃ B ⊆ A,\n      B.IsAsymptoticAddBasisOfOrder 2 ∧ ∀ b ∈ B, ¬(B \\ {b}).IsAsymptoticAddBasisOfOrder 2",
  "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 868\n\n*References:*\n- [erdosproblems.com/868](https://www.erdosproblems.com/868)\n- [LaLa26] Larsen and Larsen, [Erdős problem 868](https://github.com/Larsen-Daniel/Erdos-868/blob/main/868.pdf) (2026)\n-/\n\n@[expose] public section\n\nopen Filter\n\nopen scoped Pointwise\n\nnamespace Erdos868\n\n/-- The number of ways in which a natural `n` can be written as the sum of\n`o` members of the set `A`. Representations are counted as nondecreasing tuples, so that\ntwo representations differing only in the order of their summands are counted once. -/\nnoncomputable\ndef ncard_add_repr (A : Set ℕ) (o : ℕ) (n : ℕ) : ℕ :=\n  { a : Fin o → ℕ | Monotone a ∧ Set.range a ⊆ A ∧ ∑ i, a i = n }.ncard\n\n/-- Let $A$ be an additive basis of order $2$, let $f(n)$ denote the number of ways in which\n$n$ can be written as the sum of two elements from $A$. If $f(n) \\to \\infty$ as $n \\to \\infty$, then\nmust $A$ contain a minimal additive basis of order $2$?\n\nLarsen and Larsen [LaLa26] answered this in the negative.\n-/\n@[category research solved, question, AMS 5 11]\ntheorem erdos_868.parts.i :\n    ¬ ∀ (A : Set ℕ), A.IsAsymptoticAddBasisOfOrder 2 →\n      atTop.Tendsto (fun n => ncard_add_repr A 2 n) atTop → ∃ B ⊆ A,\n      B.IsAsymptoticAddBasisOfOrder 2 ∧ ∀ b ∈ B, ¬(B \\ {b}).IsAsymptoticAddBasisOfOrder 2 := by\n  sorry\n\n/-- Let $A$ be an additive basis of order $2$, let $f(n)$ denote the number of ways in which\n$n$ can be written as the sum of two elements from $A$. If $f(n) > \\epsilon \\log n$ for large $n$\nand an arbitrary fixed $\\epsilon > 0$, then must $A$ contain a minimal additive\nbasis of order $2$?\n\nLarsen and Larsen [LaLa26] constructed a counterexample with $f(n) > c \\log n$ for all large $n$.\n-/\n@[category research solved, question, AMS 5 11]\ntheorem erdos_868.parts.ii :\n    ¬ ∀ᵉ (A : Set ℕ) (ε > 0), A.IsAsymptoticAddBasisOfOrder 2 →\n      (∀ᶠ (n : ℕ) in atTop, ε * Real.log n < ncard_add_repr A 2 n) → ∃ B ⊆ A,\n      B.IsAsymptoticAddBasisOfOrder 2 ∧ ∀ b ∈ B, ¬(B \\ {b}).IsAsymptoticAddBasisOfOrder 2 := by\n  sorry\n\n/-- Erdős and Nathanson proved that this is true if $f(n) > c \\log n$ for all large $n$, for\nsome fixed constant $c > (\\log \\frac{4}{3})^{-1}$. -/\n@[category research solved, question, AMS 5 11]\ntheorem erdos_868.variants.fixed_ε :\n    ∀ᵉ (A : Set ℕ) (c > (Real.log (4 / 3))⁻¹), A.IsAsymptoticAddBasisOfOrder 2 →\n      (∀ᶠ (n : ℕ) in atTop, c * Real.log n < ncard_add_repr A 2 n) → ∃ B ⊆ A,\n      B.IsAsymptoticAddBasisOfOrder 2 ∧ ∀ b ∈ B, ¬(B \\ {b}).IsAsymptoticAddBasisOfOrder 2 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Härtter and Nathanson proved that there exist additive bases which do not contain\nany minimal additive bases. -/\n@[category research solved, AMS 5 11,\n  formal_proof using formal_conjectures at\n    \"https://github.com/hjyuh/formal-conjectures/blob/e0da6ec78953b17618895a093d4bee90fd3f6f67/FormalConjectures/ErdosProblems/868.lean#L132\"]\ntheorem erdos_868.variants.Hartter_Nathanson (o : ℕ) (ho : 1 < o) : ∃ (A : Set ℕ),\n    A.IsAsymptoticAddBasisOfOrder o ∧ ∀ B ⊆ A, B.IsAsymptoticAddBasisOfOrder o →\n    ∃ b ∈ B, (B \\ {b}).IsAsymptoticAddBasisOfOrder o := by\n  sorry\n\nend Erdos868\n",
  "statement_hash": "e624462bb5a7171a997247b78f22b49d104e3c4eb4bf2735e48762d73745db81",
  "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."
}