{
  "id": "2263",
  "ident": "NS.02263",
  "slug": "erdos-490",
  "title": "Erdős Problem 490",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A,B\\subseteq \\{1,\\ldots,N\\}$ be such that all the products $ab$ with $a\\in A$ and $b\\in B$\nare distinct. Is it true that\n$$\\lvert A\\rvert \\lvert B\\rvert \\ll \\frac{N^2}{\\log N}?$$\n\nThis would be best possible, for example letting $A=[1,N/2]\\cap \\mathbb{N}$ and\n$B=\\{ N/2<p\\leq N: p\\textrm{ prime}\\}$. This is true, and was proved by Szemerédi [Sz76].\n\nIn [Er72] Erdős goes on to ask whether\n$$\\lim_{N\\to \\infty}\\max_{A,B\\subseteq [N]}\\frac{\\lvert A\\rvert\\lvert B\\rvert\\log N}{N^2}$$\nexists, where the maximum is over $A$ and $B$ with all the products $ab$ distinct, and to\ndetermine its value. As noted in the comments to [896](https://www.erdosproblems.com/896) by van\nDoorn, if the limit exists it must be $\\geq 1$.\n\nSee also [425](https://www.erdosproblems.com/425) and [896](https://www.erdosproblems.com/896).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos490.erdos_490",
  "statement_lean": "theorem erdos_490 : ∃ C : ℝ, ∀ᶠ N : ℕ in atTop,\n    ∀ A B : Finset ℕ, A ⊆ Finset.Icc 1 N → B ⊆ Finset.Icc 1 N →\n      (∀ a₁ ∈ A, ∀ b₁ ∈ B, ∀ a₂ ∈ A, ∀ b₂ ∈ B, a₁ * b₁ = a₂ * b₂ → a₁ = a₂ ∧ b₁ = b₂) →\n        (A.card * B.card : ℝ) ≤ C * N ^ 2 / Real.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 490\n\n*References:*\n- [erdosproblems.com/490](https://www.erdosproblems.com/490)\n- [Er61] Erdős, Paul, *Some unsolved problems*. Magyar Tud. Akad. Mat. Kutató Int. Közl. (1961),\n  221-254.\n- [Er69] Erdős, Paul, *Some applications of graph theory to number theory*. The Many Facets of\n  Graph Theory (Proc. Conf., Western Mich. Univ., Kalamazoo, Mich., 1968) (1969), 77-82.\n- [Er72] Erdős, Paul, *Extremal problems in number theory*. Proceedings of the 1972 Number Theory\n  Conference (Univ. Colorado, Boulder, Colo.) (1972), 80-86.\n- [Er73] Erdős, P., *Problems and results on combinatorial number theory*. A survey of\n  combinatorial theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo., 1971)\n  (1973), 117-138.\n- [Sz76] Szemerédi, E., *On a problem of P. Erdős*. J. Number Theory (1976), 264-270.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos490\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A,B\\subseteq \\{1,\\ldots,N\\}$ be such that all the products $ab$ with $a\\in A$ and $b\\in B$\nare distinct. Is it true that\n$$\\lvert A\\rvert \\lvert B\\rvert \\ll \\frac{N^2}{\\log N}?$$\n\nThis would be best possible, for example letting $A=[1,N/2]\\cap \\mathbb{N}$ and\n$B=\\{ N/2<p\\leq N: p\\textrm{ prime}\\}$. This is true, and was proved by Szemerédi [Sz76].\n\nIn [Er72] Erdős goes on to ask whether\n$$\\lim_{N\\to \\infty}\\max_{A,B\\subseteq [N]}\\frac{\\lvert A\\rvert\\lvert B\\rvert\\log N}{N^2}$$\nexists, where the maximum is over $A$ and $B$ with all the products $ab$ distinct, and to\ndetermine its value. As noted in the comments to [896](https://www.erdosproblems.com/896) by van\nDoorn, if the limit exists it must be $\\geq 1$.\n\nSee also [425](https://www.erdosproblems.com/425) and [896](https://www.erdosproblems.com/896).\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos490.lean#L38\"]\ntheorem erdos_490 : ∃ C : ℝ, ∀ᶠ N : ℕ in atTop,\n    ∀ A B : Finset ℕ, A ⊆ Finset.Icc 1 N → B ⊆ Finset.Icc 1 N →\n      (∀ a₁ ∈ A, ∀ b₁ ∈ B, ∀ a₂ ∈ A, ∀ b₂ ∈ B, a₁ * b₁ = a₂ * b₂ → a₁ = a₂ ∧ b₁ = b₂) →\n        (A.card * B.card : ℝ) ≤ C * N ^ 2 / Real.log N := by\n  sorry\n\n/--\nErdős [Er72] asks whether\n$$\\lim_{N\\to \\infty}\\max_{A,B\\subseteq [N]}\\frac{\\lvert A\\rvert\\lvert B\\rvert\\log N}{N^2}$$\nexists, where the maximum is over $A$ and $B$ with all the products $ab$ distinct, and to\ndetermine its value.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_490.variants.limit : ∃ L : ℝ, Tendsto (fun N : ℕ =>\n    (sSup {x : ℝ | ∃ A B : Finset ℕ, A ⊆ Finset.Icc 1 N ∧ B ⊆ Finset.Icc 1 N ∧\n      (∀ a₁ ∈ A, ∀ b₁ ∈ B, ∀ a₂ ∈ A, ∀ b₂ ∈ B, a₁ * b₁ = a₂ * b₂ → a₁ = a₂ ∧ b₁ = b₂) ∧\n      x = A.card * B.card}) * Real.log N / N ^ 2) atTop (nhds L) := by\n  sorry\n\nend Erdos490\n",
  "statement_hash": "1dd106b87926e91fc3075dc6b242d74c9859a4fb682f761f2ab1efad187f23b1",
  "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."
}