{
  "id": "3267",
  "ident": "NS.03267",
  "slug": "erdos-808",
  "title": "Erdős Problem 808",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $c,\\epsilon>0$ and $n$ be sufficiently large. If $A\\subset \\mathbb{N}$ has $\\lvert A\\rvert=n$\nand $G$ is any graph on $A$ with at least $n^{1+c}$ edges then\n$$\\max(\\lvert A+_GA\\rvert,\\lvert A\\cdot_G A\\rvert) \\geq \\lvert A\\rvert^{1+c-\\epsilon},$$\nwhere\n$$A+_GA = \\{ a+b : (a,b)\\in G\\}$$\nand similarly for $A\\cdot_GA$.\n\nThis strong conjecture of Erdős and Szemerédi [ErSz83] strengthens Erdős Problem 52\n(`Erdos52.erdos_52`, the case of the complete graph). It was disproved by Alon, Ruzsa, and\nSolymosi [ARS20, Theorem 3]: for arbitrarily large $m$ there are a set of integers $A$ with\n$\\lvert A\\rvert=m$ and a graph on $A$ with $\\gg m^{5/3}/(\\log m)^{1/3}$ edges such that\n$\\lvert A+_GA\\rvert+\\lvert A\\cdot_GA\\rvert \\ll (m\\log m)^{4/3}$. The statement below is the\nnegation of the conjecture.\n\nA set $A$ with a graph on it is given by a finite type `V`, a graph `G` on `V` and an injection\n`a : V ↪ ℕ` (so $A$ is the image of `a` and $n$ is `Fintype.card V`). Here `ℕ` contains $0$; see\n`erdos_808.variants.positive` for positive integers.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos808.erdos_808",
  "statement_lean": "theorem erdos_808 :\n    ¬ ∀ c : ℝ, 0 < c → ∀ ε : ℝ, 0 < ε →\n      ∃ n₀ : ℕ, ∀ (V : Type) [Fintype V] (a : V ↪ ℕ) (G : SimpleGraph V) [DecidableRel G.Adj],\n        n₀ ≤ Fintype.card V →\n        (Fintype.card V : ℝ) ^ (1 + c) ≤ (G.edgeFinset.card : ℝ) →\n        (Fintype.card V : ℝ) ^ (1 + c - ε) ≤\n          max ((edgeSums a G).card : ℝ) ((edgeProducts a G).card : ℝ)",
  "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 808\n\n*References:*\n- [erdosproblems.com/808](https://www.erdosproblems.com/808)\n- [ErSz83] Erdős, P. and Szemerédi, E., *On sums and products of integers*. Studies in pure\n  mathematics (1983), 213-218. [PDF](https://www.renyi.hu/~p_erdos/1983-18.pdf)\n- [ARS20] Alon, Noga and Ruzsa, Imre and Solymosi, József, *Sums, products and ratios along the\n  edges of a graph*. Publ. Mat. (2020), 143-155.\n  [arXiv:1802.06405](https://arxiv.org/abs/1802.06405)\n-/\n\n@[expose] public section\n\nnamespace Erdos808\n\n/-- The values of the symmetric operation `op` along the edges of the graph `G`: the set of all\n`op u v` with `{u, v}` an edge of `G`. -/\ndef edgeValues {V R : Type*} [Fintype V] [DecidableEq R]\n    (op : V → V → R) (hop : ∀ u v, op u v = op v u)\n    (G : SimpleGraph V) [DecidableRel G.Adj] : Finset R :=\n  G.edgeFinset.image (Sym2.lift ⟨op, hop⟩)\n\n/-- `edgeSums a G` is $A +_G A = \\{ a_u + a_v : \\{u, v\\} \\in E(G) \\}$, where vertex `u` of `G`\ncarries the label `a u`. -/\ndef edgeSums {V R : Type*} [Fintype V] [DecidableEq R] [AddCommMagma R]\n    (a : V → R) (G : SimpleGraph V) [DecidableRel G.Adj] : Finset R :=\n  edgeValues (fun u v ↦ a u + a v) (fun u v ↦ add_comm (a u) (a v)) G\n\n/-- `edgeProducts a G` is $A \\cdot_G A = \\{ a_u a_v : \\{u, v\\} \\in E(G) \\}$. -/\ndef edgeProducts {V R : Type*} [Fintype V] [DecidableEq R] [CommMagma R]\n    (a : V → R) (G : SimpleGraph V) [DecidableRel G.Adj] : Finset R :=\n  edgeValues (fun u v ↦ a u * a v) (fun u v ↦ mul_comm (a u) (a v)) G\n\n/-- `r` is a value of `op` along an edge iff `r = op u v` for some adjacent `u`, `v`. -/\n@[category API, AMS 5 11]\ntheorem mem_edgeValues_iff {V R : Type*} [Fintype V] [DecidableEq R]\n    (op : V → V → R) (hop : ∀ u v, op u v = op v u)\n    (G : SimpleGraph V) [DecidableRel G.Adj] (r : R) :\n    r ∈ edgeValues op hop G ↔ ∃ u v, G.Adj u v ∧ r = op u v := by\n  constructor\n  · intro hr\n    obtain ⟨e, he, her⟩ := Finset.mem_image.mp hr\n    induction e using Sym2.inductionOn with\n    | _ u v =>\n        refine ⟨u, v, ?_, ?_⟩\n        · simpa using he\n        · simpa [Sym2.lift_mk] using her.symm\n  · rintro ⟨u, v, huv, rfl⟩\n    apply Finset.mem_image.mpr\n    refine ⟨s(u, v), ?_, by simp [Sym2.lift_mk]⟩\n    simpa\n\n/-- `r ∈ A +_G A` iff `r = a u + a v` for some adjacent `u`, `v`. -/\n@[category API, AMS 5 11]\ntheorem mem_edgeSums_iff {V R : Type*} [Fintype V] [DecidableEq R] [AddCommMagma R]\n    (a : V → R) (G : SimpleGraph V) [DecidableRel G.Adj] (r : R) :\n    r ∈ edgeSums a G ↔ ∃ u v, G.Adj u v ∧ r = a u + a v :=\n  mem_edgeValues_iff (fun u v ↦ a u + a v) (fun u v ↦ add_comm (a u) (a v)) G r\n\n/-- `r ∈ A ·_G A` iff `r = a u * a v` for some adjacent `u`, `v`. -/\n@[category API, AMS 5 11]\ntheorem mem_edgeProducts_iff {V R : Type*} [Fintype V] [DecidableEq R] [CommMagma R]\n    (a : V → R) (G : SimpleGraph V) [DecidableRel G.Adj] (r : R) :\n    r ∈ edgeProducts a G ↔ ∃ u v, G.Adj u v ∧ r = a u * a v :=\n  mem_edgeValues_iff (fun u v ↦ a u * a v) (fun u v ↦ mul_comm (a u) (a v)) G r\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $c,\\epsilon>0$ and $n$ be sufficiently large. If $A\\subset \\mathbb{N}$ has $\\lvert A\\rvert=n$\nand $G$ is any graph on $A$ with at least $n^{1+c}$ edges then\n$$\\max(\\lvert A+_GA\\rvert,\\lvert A\\cdot_G A\\rvert) \\geq \\lvert A\\rvert^{1+c-\\epsilon},$$\nwhere\n$$A+_GA = \\{ a+b : (a,b)\\in G\\}$$\nand similarly for $A\\cdot_GA$.\n\nThis strong conjecture of Erdős and Szemerédi [ErSz83] strengthens Erdős Problem 52\n(`Erdos52.erdos_52`, the case of the complete graph). It was disproved by Alon, Ruzsa, and\nSolymosi [ARS20, Theorem 3]: for arbitrarily large $m$ there are a set of integers $A$ with\n$\\lvert A\\rvert=m$ and a graph on $A$ with $\\gg m^{5/3}/(\\log m)^{1/3}$ edges such that\n$\\lvert A+_GA\\rvert+\\lvert A\\cdot_GA\\rvert \\ll (m\\log m)^{4/3}$. The statement below is the\nnegation of the conjecture.\n\nA set $A$ with a graph on it is given by a finite type `V`, a graph `G` on `V` and an injection\n`a : V ↪ ℕ` (so $A$ is the image of `a` and $n$ is `Fintype.card V`). Here `ℕ` contains $0$; see\n`erdos_808.variants.positive` for positive integers.\n-/\n@[category research solved, AMS 5 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos808.lean#L1746\"]\ntheorem erdos_808 :\n    ¬ ∀ c : ℝ, 0 < c → ∀ ε : ℝ, 0 < ε →\n      ∃ n₀ : ℕ, ∀ (V : Type) [Fintype V] (a : V ↪ ℕ) (G : SimpleGraph V) [DecidableRel G.Adj],\n        n₀ ≤ Fintype.card V →\n        (Fintype.card V : ℝ) ^ (1 + c) ≤ (G.edgeFinset.card : ℝ) →\n        (Fintype.card V : ℝ) ^ (1 + c - ε) ≤\n          max ((edgeSums a G).card : ℝ) ((edgeProducts a G).card : ℝ) := by\n  sorry\n\n/--\nThe conjecture already fails for positive integers: the set of integers constructed in\n[ARS20, Theorem 3] consists of positive integers. This is `erdos_808` with the extra hypothesis\n`∀ v, 0 < a v`, so it implies `erdos_808`.\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_808.variants.positive :\n    ¬ ∀ c : ℝ, 0 < c → ∀ ε : ℝ, 0 < ε →\n      ∃ n₀ : ℕ, ∀ (V : Type) [Fintype V] (a : V ↪ ℕ), (∀ v, 0 < a v) →\n        ∀ (G : SimpleGraph V) [DecidableRel G.Adj],\n          n₀ ≤ Fintype.card V →\n          (Fintype.card V : ℝ) ^ (1 + c) ≤ (G.edgeFinset.card : ℝ) →\n          (Fintype.card V : ℝ) ^ (1 + c - ε) ≤\n            max ((edgeSums a G).card : ℝ) ((edgeProducts a G).card : ℝ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nAlon, Ruzsa, and Solymosi do prove, however, that if $A$ has size $n$ and $G$ has $m$ edges then\n$$\\max(\\lvert A+_GA\\rvert,\\lvert A\\cdot_G A\\rvert) \\gg m^{3/2}n^{-7/4}.$$\n\nThis is [ARS20, Theorem 10]. It holds for any $n$-element set of real numbers, and [ARS20]\nstate it for $\\lvert A+_GA\\rvert+\\lvert A\\cdot_GA\\rvert$, which is within a factor $2$ of the\nmaximum. It is written in multiplied-out form, so that $n=0$ needs no division.\n-/\n@[category research solved, AMS 5 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos808.lean#L833\"]\ntheorem erdos_808.variants.ars_lower_bound :\n    ∃ K : ℝ, 0 < K ∧\n      ∀ (V : Type) [Fintype V] (a : V ↪ ℝ) (G : SimpleGraph V) [DecidableRel G.Adj],\n        (G.edgeFinset.card : ℝ) ^ ((3 : ℝ) / 2) ≤\n          K * (Fintype.card V : ℝ) ^ ((7 : ℝ) / 4) *\n            max ((edgeSums a G).card : ℝ) ((edgeProducts a G).card : ℝ) := by\n  sorry\n\nend Erdos808\n",
  "statement_hash": "938e22039cecce5ad3d0033c7a5a75869d9b8db697ab71f5338b3a9313440a7c",
  "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."
}