{
  "id": "3429",
  "ident": "NS.03429",
  "slug": "erdos-862",
  "title": "Erdős Problem 862",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A_1(N)$ be the number of maximal Sidon subsets of $\\{1,\\ldots,N\\}$. Is it true that\n$$A_1(N) < 2^{o(N^{1/2})}?$$\n\nA problem of Cameron and Erdős. This is resolved as a consequence of results of Saxton and\nThomason [SaTh15] - they prove that the number of Sidon sets in $\\{1,\\ldots,N\\}$ is at least\n$2^{(1.16+o(1))N^{1/2}}$. Since each Sidon set is contained in a maximal Sidon set, and each\nmaximal Sidon set contains at most $2^{(1+o(1))N^{1/2}}$ Sidon sets, it follows that\n$$A_1(N) \\geq 2^{(0.16+o(1))N^{1/2}}.$$",
  "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": "Erdos862.erdos_862.parts.i",
  "statement_lean": "theorem erdos_862.parts.i :\n    ¬ (fun N : ℕ => Real.logb 2 (numMaximalSidonSets N : ℝ)) =o[atTop]\n      (fun N : ℕ => (N : ℝ) ^ (1 / 2 : ℝ))",
  "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 862\n\n*References:*\n- [erdosproblems.com/862](https://www.erdosproblems.com/862)\n- [Er92c] Erdős, P., *Some of my forgotten problems in number theory*. Hardy-Ramanujan J. (1992),\n  34-50.\n- [SaTh15] Saxton, David and Thomason, Andrew, *Hypergraph containers*. Invent. Math. (2015),\n  925-992.\n-/\n\n@[expose] public section\n\nopen Finset Filter\n\nnamespace Erdos862\n\n/--\n$A_1(N)$, the number of maximal Sidon subsets of $\\{1, \\dots, N\\}$.\n-/\nnoncomputable def numMaximalSidonSets (N : ℕ) : ℕ :=\n  {A : Finset ℕ | A ⊆ Icc 1 N ∧ Set.IsMaximalSidonSetIn (A : Set ℕ) N}.ncard\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A_1(N)$ be the number of maximal Sidon subsets of $\\{1,\\ldots,N\\}$. Is it true that\n$$A_1(N) < 2^{o(N^{1/2})}?$$\n\nA problem of Cameron and Erdős. This is resolved as a consequence of results of Saxton and\nThomason [SaTh15] - they prove that the number of Sidon sets in $\\{1,\\ldots,N\\}$ is at least\n$2^{(1.16+o(1))N^{1/2}}$. Since each Sidon set is contained in a maximal Sidon set, and each\nmaximal Sidon set contains at most $2^{(1+o(1))N^{1/2}}$ Sidon sets, it follows that\n$$A_1(N) \\geq 2^{(0.16+o(1))N^{1/2}}.$$\n-/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos862.lean\"]\ntheorem erdos_862.parts.i :\n    ¬ (fun N : ℕ => Real.logb 2 (numMaximalSidonSets N : ℝ)) =o[atTop]\n      (fun N : ℕ => (N : ℝ) ^ (1 / 2 : ℝ)) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A_1(N)$ be the number of maximal Sidon subsets of $\\{1,\\ldots,N\\}$. Is it true that\n$$A_1(N) > 2^{N^c}$$\nfor some constant $c>0$?\n\nA problem of Cameron and Erdős. This is resolved as a consequence of results of Saxton and\nThomason [SaTh15] - they prove that the number of Sidon sets in $\\{1,\\ldots,N\\}$ is at least\n$2^{(1.16+o(1))N^{1/2}}$. Since each Sidon set is contained in a maximal Sidon set, and each\nmaximal Sidon set contains at most $2^{(1+o(1))N^{1/2}}$ Sidon sets, it follows that\n$$A_1(N) \\geq 2^{(0.16+o(1))N^{1/2}}.$$\n-/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos862.lean\"]\ntheorem erdos_862.parts.ii :\n    ∃ c : ℝ, 0 < c ∧ ∀ᶠ N : ℕ in atTop,\n      (2 : ℝ) ^ ((N : ℝ) ^ c) < (numMaximalSidonSets N : ℝ) := by\n  sorry\n\n/--\nThis is resolved as a consequence of results of Saxton and Thomason [SaTh15] - they prove that\nthe number of Sidon sets in $\\{1,\\ldots,N\\}$ is at least $2^{(1.16+o(1))N^{1/2}}$. Since each\nSidon set is contained in a maximal Sidon set, and each maximal Sidon set contains at most\n$2^{(1+o(1))N^{1/2}}$ Sidon sets, it follows that\n$$A_1(N) \\geq 2^{(0.16+o(1))N^{1/2}}.$$\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_862.variants.lower_bound (ε : ℝ) (hε : 0 < ε) :\n    ∀ᶠ N : ℕ in atTop,\n      (2 : ℝ) ^ (((0.16 : ℝ) - ε) * (N : ℝ) ^ (1 / 2 : ℝ)) ≤ (numMaximalSidonSets N : ℝ) := by\n  sorry\n\nend Erdos862\n",
  "statement_hash": "499a08ae810fc240e039ece55f024d01f14cb942aecbdc9ca7e7774d155cc090",
  "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."
}