{
  "id": "2397",
  "ident": "NS.02397",
  "slug": "erdos-535",
  "title": "Erdős Problem 535",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $r \\geq 3$, and let $f_r(N)$ denote the size of the largest subset of $\\{1,\\ldots,N\\}$\nsuch that no subset of size $r$ has the same pairwise greatest common divisor between all\nelements. Erdős [Er64] proved that $f_3(N) > N^{c/\\log\\log N}$ for some constant $c > 0$, and\nconjectured this should also be an upper bound; here we state the conjectural upper bound\nfor all $r \\geq 3$.\n\nSee also [536].",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos535.erdos_535",
  "statement_lean": "theorem erdos_535 : ∀ r ≥ 3, ∃ c > (0 : ℝ),\n    ∀ᶠ (N : ℕ) in atTop,\n      (f r N : ℝ) ≤ (N : ℝ) ^ (c / log (log (N : ℝ)))",
  "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 535\n\n*References:*\n- [erdosproblems.com/535](https://www.erdosproblems.com/535)\n- [Er64] P. Erdős, _On a problem in elementary number theory and a combinatorial problem_. Math.\n  Comp. (1964), 644–646.\n- [AbHa70] H. L. Abbott and D. Hanson, _An extremal problem in number theory_. Bull. London Math.\n  Soc. (1970), 324–326.\n- [Er73] P. Erdős, _Problems and results on combinatorial number theory_, in\n  *A Survey of Combinatorial Theory*, North-Holland, 1973.\n-/\n\n@[expose] public section\n\nopen ArithmeticFunction\nopen Filter Real\nopen scoped omega Omega\n\nnamespace Erdos535\n\n/-- No `r`-subset has constant pairwise GCD with coprime quotients. -/\ndef NoConstantPairwiseGcdCoprimeSubsets (r : ℕ) (A : Finset ℕ) : Prop :=\n  ∀ S ⊆ A, S.card = r →\n    ¬ (∃ d, 0 < d ∧ (S : Set ℕ).Pairwise (fun a b => Nat.gcd a b = d) ∧\n      ∀ a ∈ S, ∃ b, a = d * b ∧ Nat.gcd b d = 1)\n\n/--\nAll elements of `A` are positive and have exactly `k` prime factors,\ncounted with multiplicity.\n\nErdős [Er73] explains that Abbott pointed out the ordinary sunflower conjecture\ndoes not seem to suffice for Problem 535; the corrected stronger auxiliary\nstatement uses $Ω$, not $ω$.\n-/\ndef AllBigOmega (k : ℕ) (A : Finset ℕ) : Prop :=\n  ∀ a ∈ A, 1 ≤ a ∧ Ω a = k\n\n/-- `f r N` is the maximum size of a subset `A ⊆ {1,…,N}` such that no `r`-element\nsubset of `A` has constant pairwise GCD. -/\nnoncomputable def f (r N : ℕ) : ℕ :=\n  sSup {k : ℕ | ∃ A : Finset ℕ, A ⊆ Finset.Icc 1 N ∧\n    (∀ S ⊆ A, S.card = r →\n      ¬ (∃ d, (S : Set ℕ).Pairwise fun a b => Nat.gcd a b = d)) ∧\n    A.card = k}\n\n/--\nLet $r \\geq 3$, and let $f_r(N)$ denote the size of the largest subset of $\\{1,\\ldots,N\\}$\nsuch that no subset of size $r$ has the same pairwise greatest common divisor between all\nelements. Erdős [Er64] proved that $f_3(N) > N^{c/\\log\\log N}$ for some constant $c > 0$, and\nconjectured this should also be an upper bound; here we state the conjectural upper bound\nfor all $r \\geq 3$.\n\nSee also [536].\n-/\n@[category research open, AMS 5 11]\ntheorem erdos_535 : ∀ r ≥ 3, ∃ c > (0 : ℝ),\n    ∀ᶠ (N : ℕ) in atTop,\n      (f r N : ℝ) ≤ (N : ℝ) ^ (c / log (log (N : ℝ))) := by\n  sorry\n\n/--\nThe first open case of Erdős Problem 535 is $r = 3$: there should exist $c > 0$ such that\n$f_3(N) \\leq N^{c/\\log\\log N}$ for all sufficiently large $N$.\n-/\n@[category research open, AMS 5 11]\ntheorem erdos_535.variants.first_open_case : ∃ c > (0 : ℝ),\n    ∀ᶠ (N : ℕ) in atTop,\n      (f 3 N : ℝ) ≤ (N : ℝ) ^ (c / log (log (N : ℝ))) := by\n  sorry\n\n/-- Erdős [Er64] proved that $f_r(N) \\leq N^{3/4+o(1)}$ for all $r \\geq 3$. -/\n@[category research solved, AMS 5 11]\ntheorem erdos_535.variants.erdos_upper_bound {r : ℕ} (hr : 3 ≤ r) :\n    ∀ ε > (0 : ℝ), ∀ᶠ (N : ℕ) in atTop,\n      (f r N : ℝ) ≤ (N : ℝ) ^ ((3 : ℝ) / 4 + ε) := by\n  sorry\n\n/-- Erdős [Er64] proved that $f_3(N) > N^{c/\\log\\log N}$ for some constant $c > 0$. -/\n@[category research solved, AMS 5 11]\ntheorem erdos_535.variants.lower_bound : ∃ c > (0 : ℝ),\n    ∀ᶠ (N : ℕ) in atTop,\n      (N : ℝ) ^ (c / log (log (N : ℝ))) ≤ (f 3 N : ℝ) := by\n  sorry\n\n/-- Abbott and Hanson [AbHa70] improved Erdős's upper bound to $f_r(N) \\leq N^{1/2+o(1)}$\nfor all $r \\geq 3$. -/\n@[category research solved, AMS 5 11]\ntheorem erdos_535.variants.abbott_hanson {r : ℕ} (hr : 3 ≤ r) :\n    ∀ ε > (0 : ℝ), ∀ᶠ (N : ℕ) in atTop,\n      (f r N : ℝ) ≤ (N : ℝ) ^ ((1 : ℝ) / 2 + ε) := by\n  sorry\n\n/--\nErdős [Er73] records that Abbott pointed out the ordinary sunflower conjecture\ndoes not seem to suffice here. The stronger auxiliary conjecture uses $Ω(n)=k$,\ni.e. prime factors counted with multiplicity; this stronger statement would imply\nthe conjectured upper bound for $f_r(N)$.\n-/\n@[category research open, AMS 5 11]\ntheorem erdos_535.variants.sunflower_strong {r : ℕ} (hr : 3 ≤ r) :\n    ∃ c_r > (0 : ℝ),\n      ∀ k : ℕ, ∀ A : Finset ℕ,\n        AllBigOmega k A →\n        NoConstantPairwiseGcdCoprimeSubsets r A →\n        (A.card : ℝ) ≤ c_r ^ k := by\n  sorry\n\n/--\nFor the stronger $Ω(n)=k$ variant above, the Erdős–Rado method gives the weaker\nbound $c_r^k \\cdot k!$; see Erdős [Er73].\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_535.variants.sunflower_erdos_rado {r : ℕ} (hr : 3 ≤ r) :\n    ∃ c_r > (0 : ℝ),\n      ∀ k : ℕ, ∀ A : Finset ℕ,\n        AllBigOmega k A →\n        NoConstantPairwiseGcdCoprimeSubsets r A →\n        (A.card : ℝ) ≤ c_r ^ k * (Nat.factorial k) := by\n  sorry\n\nend Erdos535\n",
  "statement_hash": "cc80f1d6c45e59838775a20735d4d77df3bb0273a582ab26cfc2a1e6ca8d4591",
  "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."
}