{
  "id": "2408",
  "ident": "NS.02408",
  "slug": "erdos-539",
  "title": "Erdős Problem 539",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $h(n)$ be maximal such that, for any set $A\\subseteq \\mathbb{N}$ of size $n$, the\nset$$\\left\\{ \\frac{a}{(a,b)}: a,b\\in A\\right\\}$$has size at least $h(n)$. Estimate $h(n)$.",
  "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": "Erdos539.erdos_539",
  "statement_lean": "theorem erdos_539 :\n    (fun n ↦ (cofactorThreshold n : ℝ)) =Θ[atTop] erdos_539.answer",
  "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 539\n\nIn this problem, a function $h : \\mathbb{N} \\to\\mathbb{N}$ is defined maximally by a specified\ncounting property.\n\nThe problem asks to estimate $h(n)$. This has been interpreted here as asking for $\\Theta(h(n))$.\nThe principal version includes the unknown function `erdos_539.answer`. On the other hand, the best\nknown upper bound is $n^{2/3}$ and the best known lower bound is $\\sqrt{n}$ so we\nalso provide these candidates as variants. Moreover, it suffices to show $O(h(n))$ and\n$O(\\sqrt{n})$ respectively for each, so further variants are provided for those.\n\nIn the source paper [Er73], Erdős also remarks that it should not be too difficult\nto determine $\\lim_{n\\to\\infty}\\log(h(n))/\\log(n)$. This does not appear on the website, and\nit is not clear whether this remains open, but we include it here either way.\n\n*References:*\n- [erdosproblems.com/539](https://www.erdosproblems.com/539)\n- [GR99] Granville, A., & Roesler, F. (1999). _The Set of Differences of a Given Set_. The American Mathematical Monthly, 106(4), 338–344.\n- [Er73] Erdős, P., _Problems and results on combinatorial number theory_. A survey of combinatorial theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo., 1971) (1973), 117-138.\n- [Sc+26] Schmitt, J., Gehrunger, T., Dekoninck, J., Bérczi, G., Kreitner, U., Price, L., & Holmes, D. (2026). _ProofCouncil: An LLM Agent for Solving Open Mathematical Problems_. [arXiv:2607.09474](https://arxiv.org/abs/2607.09474), Appendix A, Theorem A.1.\n-/\n\n@[expose] public section\n\nopen Filter\n\nopen scoped Asymptotics Finset\n\nnamespace Erdos539\n\n/-- We say that $m$ is a cofactor lower bound for a given $n$ if, for every set $A$ of $n$\nnon-negative integers, there are at least $m$ cofactors $a / (a, b)$, where $a, b\\in A$.-/\ndef IsCofactorLowerBound (n m : ℕ) : Prop := ∀ A : Finset ℕ, #A = n →\n  m ≤ #((A ×ˢ A).image fun (a, b) ↦ a / a.gcd b)\n\n/-- The cofactor threshold $h(n)$, for every positive $n$, is the largest cofactor lower bound\nfor $n$. -/\nnoncomputable def cofactorThreshold (n : ℕ) : ℕ :=\n  sSup {m | IsCofactorLowerBound n m}\n\ndef erdos_539.answer : ℕ → ℝ := sorry\n\n/-- Let $h(n)$ be maximal such that, for any set $A\\subseteq \\mathbb{N}$ of size $n$, the\nset$$\\left\\{ \\frac{a}{(a,b)}: a,b\\in A\\right\\}$$has size at least $h(n)$. Estimate $h(n)$. -/\n@[category research open, question value, AMS 5 11]\ntheorem erdos_539 :\n    (fun n ↦ (cofactorThreshold n : ℝ)) =Θ[atTop] erdos_539.answer := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Let $h(n)$ be maximal such that, for any set $A\\subseteq \\mathbb{N}$ of size $n$, the\nset$$\\left\\{ \\frac{a}{(a,b)}: a,b\\in A\\right\\}$$has size at least $h(n)$.\nIs $h(n) = \\Theta(\\sqrt{n})$? -/\n@[category research solved, question, AMS 5 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/erdos-539-sqrt-disproof/blob/f4b14f9ef32c111162d3fd587e1c65b27a1524d5/lean/Erdos539SqrtFC.lean#L41-L44\"]\ntheorem erdos_539.variants.sq :\n    ¬ ((fun n ↦ (cofactorThreshold n : ℝ)) =Θ[atTop] fun n ↦ √n) := by\n  sorry\n\n/-- Erdős and Szemerédi proved that$$n^{1/2} \\ll h(n)$$. -/\n@[category research solved, AMS 5 11]\ntheorem erdos_539.variants.sq_isBigO :\n    (fun n : ℕ ↦ √n) =O[atTop] fun n ↦ (cofactorThreshold n : ℝ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Is $h(n) = O(\\sqrt{n})$? -/\n@[category research solved, question, AMS 5 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/erdos-539-sqrt-disproof/blob/f4b14f9ef32c111162d3fd587e1c65b27a1524d5/lean/Erdos539SqrtFC.lean#L36-L39\"]\ntheorem erdos_539.variants.isBigO_sq :\n    ¬ ((fun n ↦ (cofactorThreshold n : ℝ)) =O[atTop] fun n ↦ √n) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Let $h(n)$ be maximal such that, for any set $A\\subseteq \\mathbb{N}$ of size $n$, the\nset$$\\left\\{ \\frac{a}{(a,b)}: a,b\\in A\\right\\}$$has size at least $h(n)$.\nIs $h(n) = \\Theta(n^{2/3})$?\nThe answer is negative; see [Sc+26, Theorem A.1] and the linked Lean proof. -/\n@[category research solved, question, AMS 5 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/erdos-539-formal-conjectures/blob/79897cf9241390eb168572f4a481e29e0e64b5f7/lean/Erdos539/FC.lean#L282-L296\"]\ntheorem erdos_539.variants.sq_cube_root :\n    ¬ ((fun n ↦ (cofactorThreshold n : ℝ)) =Θ[atTop]\n      fun n ↦ (n : ℝ) ^ ((2 : ℝ) / 3)) := by\n  sorry\n\n/-- Granville and Roesler [GR99] showed that $$h(n)\\ll n^{2/3}$$.-/\n@[category research solved, AMS 5 11]\ntheorem erdos_539.variants.isBigO_sq_cube_root :\n    (fun n ↦ (cofactorThreshold n : ℝ)) =O[atTop] fun n ↦ (n : ℝ) ^ ((2 : ℝ) / 3) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- This lower bound is false; see [Sc+26, Theorem A.1] and the linked Lean proof. -/\n@[category research solved, question, AMS 5 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/erdos-539-formal-conjectures/blob/79897cf9241390eb168572f4a481e29e0e64b5f7/lean/Erdos539/FC.lean#L282-L296\"]\ntheorem erdos_539.variants.sq_cube_root_isBigO :\n    ¬ ((fun n : ℕ ↦ (n : ℝ) ^ ((2 : ℝ) / 3)) =O[atTop]\n      fun n ↦ (cofactorThreshold n : ℝ)) := by\n  sorry\n\nnoncomputable def erdos_539.variants.limit.answer : Filter ℝ := nhds ((1 : ℝ) / 2)\n\nset_option linter.style.formal_proof_palomar false in\n/-- From [Er73]: The determination of\n$$\n  \\lim_{n\\to\\infty}\\frac{\\log(h(n))}{\\log(n)}\n$$\nwill perhaps be not too difficult.\nThe limit is $1/2$; see [Sc+26, Theorem A.1] and the linked Lean proof.\n-/\n@[category research solved, question value, AMS 5 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/erdos-539-formal-conjectures/blob/79897cf9241390eb168572f4a481e29e0e64b5f7/lean/Erdos539/FC.lean#L282-L296\"]\ntheorem erdos_539.variants.limit :\n    atTop.Tendsto\n      (fun n ↦ Real.log (cofactorThreshold n) / Real.log n)\n      erdos_539.variants.limit.answer := by\n  sorry\n\nend Erdos539\n",
  "statement_hash": "6fac234cb67dd64250adb8a3825d9a5f373f4138a344027c9bc44eaec0932415",
  "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."
}