{
  "id": "2110",
  "ident": "NS.02110",
  "slug": "erdos-425",
  "title": "Erdős Problem 425",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $F(n)$ be the maximum size of a subset of $\\{1,\\ldots,n\\}$ with distinct\npairwise products. Is there a constant $c > 0$ such that\n$$F(n) = \\pi(n) + (c + o(1)) n^{3/4}(\\log n)^{-3/2}?$$",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/425",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos425.erdos_425.parts.i",
  "statement_lean": "theorem erdos_425.parts.i : ∃ c : ℝ, 0 < c ∧\n    Tendsto\n      (fun n : ℕ =>\n        ((pairProductExtremal n : ℝ) - (Nat.primeCounting n : ℝ)) /\n          ((n : ℝ) ^ ((3 : ℝ) / 4) * (Real.log n) ^ (-(3 : ℝ) / 2)))\n      atTop (𝓝 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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 425\n\n*Reference:* [Erdős Problem 425](https://www.erdosproblems.com/425)\n-/\n\n@[expose] public section\n\nnamespace Erdos425\n\nopen Filter\nopen scoped Topology\n\n/-- A finite set has distinct pairwise products if $ab = cd$, for elements satisfying\n$a < b$ and $c < d$, implies $(a,b) = (c,d)$. -/\ndef PairProductDistinct (A : Finset ℕ) : Prop :=\n  ∀ ⦃a b c d : ℕ⦄,\n    a ∈ A → b ∈ A → c ∈ A → d ∈ A → a < b → c < d →\n      a * b = c * d → a = c ∧ b = d\n\n/-- The maximum cardinality $F(n)$ of a subset of $\\{1,\\ldots,n\\}$ with distinct\npairwise products. -/\nnoncomputable def pairProductExtremal (n : ℕ) : ℕ := by\n  classical\n  exact Nat.findGreatest\n    (fun m => ∃ A : Finset ℕ, A ⊆ Finset.Icc 1 n ∧ PairProductDistinct A ∧ A.card = m) n\n\n/--\nFor `r`, all products over `r` distinct elements of `A` are distinct.  We use\nfinite subsets of `A` of cardinality exactly `r`.\n-/\ndef RProductsDistinct (r : ℕ) (A : Finset ℕ) : Prop :=\n  ∀ ⦃S T : Finset ℕ⦄,\n    S ⊆ A → T ⊆ A → S.card = r → T.card = r → S.prod id = T.prod id → S = T\n\n/-- Products of two distinct elements are distinct exactly when pairwise products are. -/\n@[category test, AMS 5 11]\ntheorem rProductsDistinct_two : RProductsDistinct 2 = PairProductDistinct := by\n  funext A\n  apply propext\n  have sorted_pair (S : Finset ℕ) (hS : S.card = 2) :\n      ∃ a b, a < b ∧ S = {a, b} := by\n    obtain ⟨a, b, hab, rfl⟩ := Finset.card_eq_two.mp hS\n    rcases lt_or_gt_of_ne hab with hab | hab\n    · exact ⟨a, b, hab, rfl⟩\n    · exact ⟨b, a, hab, Finset.pair_comm a b⟩\n  constructor\n  · intro h a b c d ha hb hc hd hab hcd hp\n    have heq : ({a, b} : Finset ℕ) = {c, d} :=\n      h (by simpa only [Finset.insert_subset_iff, Finset.singleton_subset_iff] using\n          And.intro ha hb)\n        (by simpa only [Finset.insert_subset_iff, Finset.singleton_subset_iff] using\n          And.intro hc hd)\n        (Finset.card_pair hab.ne) (Finset.card_pair hcd.ne)\n        (by simpa [Finset.prod_pair hab.ne, Finset.prod_pair hcd.ne] using hp)\n    have ha' : a ∈ ({c, d} : Finset ℕ) := heq ▸ (by simp)\n    have hb' : b ∈ ({c, d} : Finset ℕ) := heq ▸ (by simp)\n    simp only [Finset.mem_insert, Finset.mem_singleton] at ha' hb'\n    omega\n  · intro h S T hSA hTA hS hT hp\n    obtain ⟨a, b, hab, rfl⟩ := sorted_pair S hS\n    obtain ⟨c, d, hcd, rfl⟩ := sorted_pair T hT\n    simp only [Finset.insert_subset_iff, Finset.singleton_subset_iff] at hSA hTA\n    obtain ⟨rfl, rfl⟩ := h hSA.1 hSA.2 hTA.1 hTA.2 hab hcd\n      (by simpa [Finset.prod_pair hab.ne, Finset.prod_pair hcd.ne] using hp)\n    rfl\n\n/-- Let $F(n)$ be the maximum size of a subset of $\\{1,\\ldots,n\\}$ with distinct\npairwise products. Is there a constant $c > 0$ such that\n$$F(n) = \\pi(n) + (c + o(1)) n^{3/4}(\\log n)^{-3/2}?$$ -/\n@[category research open, question, AMS 5 11]\ntheorem erdos_425.parts.i : ∃ c : ℝ, 0 < c ∧\n    Tendsto\n      (fun n : ℕ =>\n        ((pairProductExtremal n : ℝ) - (Nat.primeCounting n : ℝ)) /\n          ((n : ℝ) ^ ((3 : ℝ) / 4) * (Real.log n) ^ (-(3 : ℝ) / 2)))\n      atTop (𝓝 c) := by\n  sorry\n\n/-- If all products of $r$ distinct elements of $A \\subseteq \\{1,\\ldots,n\\}$ are\ndistinct, must\n$$|A| \\leq \\pi(n) + O\\bigl(n^{(r+1)/(2r)}\\bigr)?$$ -/\n@[category research open, question, AMS 5 11]\ntheorem erdos_425.parts.ii : ∀ r : ℕ, 1 ≤ r → ∃ C : ℝ, 0 < C ∧\n    ∀ᶠ n in atTop, ∀ A : Finset ℕ, A ⊆ Finset.Icc 1 n → RProductsDistinct r A →\n      (A.card : ℝ) ≤ (Nat.primeCounting n : ℝ) +\n        C * (n : ℝ) ^ (((r : ℝ) + 1) / (2 * r)) := by\n  sorry\n\nend Erdos425\n",
  "statement_hash": "2c5937e28ca13151752b0efcbbbcb9065ffdfea4bf46e9a5645afb96fc904197",
  "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."
}