{
  "id": "2119",
  "ident": "NS.02119",
  "slug": "erdos-43",
  "title": "Erdős Problem 43",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "If $A$ and $B$ are Sidon sets in $\\{1,\\ldots,N\\}$ with\n$(A-A)\\cap(B-B)=\\{0\\}$, is it true that\n$$\\binom{\\lvert A\\rvert}{2}+\\binom{\\lvert B\\rvert}{2}\\leq\\binom{f(N)}{2}+O(1)?$$\n\nThe answer is no; the Erdős Problems page notes that this follows from the solution to\nErdős Problem 42.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/43",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos43.erdos_43.parts.i",
  "statement_lean": "theorem erdos_43.parts.i :\n    ¬ ∃ C : ℝ, ∀ᶠ N in Filter.atTop, ∀ (A B : Finset ℕ),\n      A ⊆ Finset.Icc 1 N →\n      B ⊆ Finset.Icc 1 N →\n      IsSidon (A : Set ℕ) →\n      IsSidon (B : Set ℕ) →\n      (A - A) ∩ (B - B) = {0} →\n      ((A.card.choose 2 + B.card.choose 2 : ℕ) : ℝ) ≤ ((f N).choose 2 : ℝ) + C",
  "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 43\n\n*Reference:* [erdosproblems.com/43](https://www.erdosproblems.com/43)\n-/\n\n@[expose] public section\n\nopen scoped Pointwise\n\nnamespace Erdos43\n\n/--\nLet $f(N)$ be the maximum possible size of a Sidon set in $\\{1,\\ldots,N\\}$.\n-/\nnoncomputable abbrev f (N : ℕ) : ℕ := Finset.maxSidonSubsetCard (Finset.Icc 1 N)\n\n/--\nIf $A$ and $B$ are Sidon sets in $\\{1,\\ldots,N\\}$ with\n$(A-A)\\cap(B-B)=\\{0\\}$, is it true that\n$$\\binom{\\lvert A\\rvert}{2}+\\binom{\\lvert B\\rvert}{2}\\leq\\binom{f(N)}{2}+O(1)?$$\n\nThe answer is no; the Erdős Problems page notes that this follows from the solution to\nErdős Problem 42.\n-/\n@[category research solved, question, AMS 5 11]\ntheorem erdos_43.parts.i :\n    ¬ ∃ C : ℝ, ∀ᶠ N in Filter.atTop, ∀ (A B : Finset ℕ),\n      A ⊆ Finset.Icc 1 N →\n      B ⊆ Finset.Icc 1 N →\n      IsSidon (A : Set ℕ) →\n      IsSidon (B : Set ℕ) →\n      (A - A) ∩ (B - B) = {0} →\n      ((A.card.choose 2 + B.card.choose 2 : ℕ) : ℝ) ≤ ((f N).choose 2 : ℝ) + C := by\n  sorry\n\n/--\nIf $A$ and $B$ are equal-sized Sidon sets in $\\{1,\\ldots,N\\}$ with\n$(A-A)\\cap(B-B)=\\{0\\}$, can the bound be improved to\n$$\\binom{\\lvert A\\rvert}{2}+\\binom{\\lvert B\\rvert}{2}\n    \\leq (1-c+o(1))\\binom{f(N)}{2}$$\nfor some constant $c>0$?\n\nThe answer is no; the Erdős Problems page records a negative answer due to Barreto.\n-/\n@[category research solved, question, AMS 5 11]\ntheorem erdos_43.parts.ii :\n    ¬ ∃ᵉ (c > 0), ∃ o : ℕ → ℝ, o =o[Filter.atTop] (1 : ℕ → ℝ) ∧\n    ∀ᶠ N in Filter.atTop, ∀ (A B : Finset ℕ),\n      A ⊆ Finset.Icc 1 N →\n      B ⊆ Finset.Icc 1 N →\n      IsSidon (A : Set ℕ) →\n      IsSidon (B : Set ℕ) →\n      A.card = B.card →\n      (A - A) ∩ (B - B) = {0} →\n      ((A.card.choose 2 + B.card.choose 2 : ℕ) : ℝ) ≤\n        (1 - c + o N) * ((f N).choose 2 : ℝ) := by\n  sorry\n\nend Erdos43\n",
  "statement_hash": "873e826bb1b9fb5be325982fbbc2e4275c89ae477d5e7a3edb33a0323795d785",
  "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."
}