{
  "id": "1726",
  "ident": "NS.01726",
  "slug": "erdos-330",
  "title": "Erdős Problem 330",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Does there exist a minimal basis $A \\subset \\mathbb{N}$ with positive density\nsuch that, for any $n \\in A$, the (upper) density of integers which\ncannot be represented without using $n$ is positive?\n\nNeither set is asked to have a density, only to have positive upper density, so\n`Set.upperDensity` is used for both rather than `Set.HasPosDensity`. As with many of Erdős'\nquestions \"positive density\" here most likely means positive upper density, and in [Er80] he\nconsiders either the lower or the upper density for the integers not representable without a\nfixed `n`. Requiring the density to exist would ask a strictly harder question than the one\nposed. See #3979.\n\nSuch a set exists, so the answer is yes. The linked proof gives one of order `2`.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/330",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos330.erdos_330_statement",
  "statement_lean": "theorem erdos_330_statement :\n    ∃ (A : Set ℕ), ∃ h, MinAsymptoticAddBasisOfOrder A h ∧\n    0 < A.upperDensity ∧ ∀ n ∈ A, 0 < (UnrepWithout A n h).upperDensity",
  "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 330\n\n*Reference:* [erdosproblems.com/330](https://www.erdosproblems.com/330)\n-/\n\n@[expose] public section\n\nnamespace Erdos330\n\nopen Set\nopen scoped BigOperators Pointwise\n\n/-- `Rep A m h` means `m` is a sum of exactly `h` elements of `A`, which is `m ∈ h • A`.\n\nExactly `h` rather than at most `h`, for two reasons. It is the notion Erdős states the problem\nwith, via `f_2(m)`, the number of solutions of `m = a_i + a_j` [Er80]. And it is the notion\n`IsAsymptoticAddBasisOfOrder` uses below, so the statement is not switching between two meanings\nof \"representable\" partway through.\n\nAllowing fewer than `h` summands also breaks the statement outright: taking one summand makes\nevery element of `A` count as represented, so `UnrepWithout A n h` would contain no element of\n`A` besides possibly `n`. Those are exactly the integers the problem is about. If `a ∈ A` with\n`a ≠ n` is only expressible as `a = n + b`, it cannot be represented without `n` and belongs in\nthe set, but the one-element sum `a` itself would have excluded it. -/\ndef Rep (A : Set ℕ) (m h : ℕ) : Prop := m ∈ h • A\n\n/-- Integers **not** representable as a sum of exactly `h` elements of `A`\n**while avoiding** `n`. -/\ndef UnrepWithout (A : Set ℕ) (n h : ℕ) : Set ℕ :=\n  {m | ¬ Rep (A \\ {n}) m h}\n\n/-- An asymptotic additive basis of order `h` is minimal when one cannot obtain an asymptotic\nadditive basis by removing any element from it. -/\ndef MinAsymptoticAddBasisOfOrder (A : Set ℕ) (h : ℕ) : Prop :=\n  IsAsymptoticAddBasisOfOrder A h ∧ ∀ n ∈ A, ¬ IsAsymptoticAddBasisOfOrder (A \\ {n}) h\n\nset_option linter.style.formal_proof_palomar false in\n/--\nDoes there exist a minimal basis $A \\subset \\mathbb{N}$ with positive density\nsuch that, for any $n \\in A$, the (upper) density of integers which\ncannot be represented without using $n$ is positive?\n\nNeither set is asked to have a density, only to have positive upper density, so\n`Set.upperDensity` is used for both rather than `Set.HasPosDensity`. As with many of Erdős'\nquestions \"positive density\" here most likely means positive upper density, and in [Er80] he\nconsiders either the lower or the upper density for the integers not representable without a\nfixed `n`. Requiring the density to exist would ask a strictly harder question than the one\nposed. See #3979.\n\nSuch a set exists, so the answer is yes. The linked proof gives one of order `2`.\n-/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at\n  \"https://github.com/Jayyhk/erdos-lean/blob/a5ffc87b3d684fc00ea906b9e746c283740da900/problems/330/Erdos330.lean\"]\ntheorem erdos_330_statement :\n    ∃ (A : Set ℕ), ∃ h, MinAsymptoticAddBasisOfOrder A h ∧\n    0 < A.upperDensity ∧ ∀ n ∈ A, 0 < (UnrepWithout A n h).upperDensity := by\n  sorry\n\nend Erdos330\n",
  "statement_hash": "3c6939e2125be62e279dd6b40f3dfda1d9929765f4c074e8cfcf927f45970620",
  "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."
}