{
  "id": "642",
  "ident": "NS.00642",
  "slug": "erdos-1097",
  "title": "Erdős Problem 1097",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "The main conjecture: for any finite set of integers $A$ with $|A| = n$, the number of distinct\ncommon differences in three-term arithmetic progressions is $O(n^{3/2})$.\n\nThis conjecture was resolved negatively by showing that the problem is exactly equivalent to\nBourgain's sums-differences question [Bo99], which was introduced as an arithmetic path towards\nthe Kakeya conjecture. Under this equivalence:\n- The greatest achievable exponent for this problem is equal to the smallest constant $c$\n  achievable for Bourgain's sums-differences question:\n  $$|A -_G B| \\ll \\max(|A|, |B|, |A +_G B|)^c$$\n- The $O(n^{3/2})$ prediction is disproved because the lower bound has been shown to satisfy\n  $c \\ge 1.77898$ (due to Zheng and AlphaEvolve [GGTW25], improving on Lemm [Le15]), which is\n  strictly greater than $3/2 = 1.5$.\n- The best known upper bound is $c \\le 11/6 \\approx 1.833$ (due to Katz and Tao [KaTa99]).\n- While the specific $O(n^{3/2})$ prediction is resolved negatively, the general question of\n  determining the exact optimal exponent $c$ remains open.",
  "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": "Erdos1097.erdos_1097",
  "statement_lean": "theorem erdos_1097 : ¬ ∃ C > (0 : ℝ), ∀ (A : Finset ℤ),\n    (CommonDifferencesThreeTermAP A).ncard ≤ C * (A.card : ℝ) ^ (3 / 2 : ℝ)",
  "challenge_source": "/-\nCopyright 2025 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 1097\n\n*References:*\n- [erdosproblems.com/1097](https://www.erdosproblems.com/1097)\n- [Bo99] Bourgain, J., On the dimension of {K}akeya sets and related maximal\ninequalities. Geom. Funct. Anal. (1999), 256--282\n- [KaTa99] Katz, Nets Hawk and Tao, Terence, Bounds on arithmetic projections, and applications to the\n{K}akeya conjecture. Math. Res. Lett. (1999), 625--630.\n- [Le15] Lemm, Marius, New counterexamples for sums-differences. Proc. Amer. Math. Soc. (2015), 3863--3868.\n- [GGTW25] B. Georgiev, J. Gómez-Serrano, T. Tao, and A. Wagner, Mathematical exploration and discovery at scale. arXiv:2511.02864 (2025).\n-/\n\n@[expose] public section\n\nnamespace Erdos1097\n\n/--\nGiven a finite set of integers `A` (modelled as a `Finset ℤ`), the set\n`CommonDifferencesThreeTermAP A` consists of all integers `d` such that there\nis a non-trivial three-term arithmetic progression `a, b, c ∈ A` with\n`b - a = d` and `c - b = d`.\n-/\ndef CommonDifferencesThreeTermAP (A : Finset ℤ) : Set ℤ :=\n  {d : ℤ | d ≠ 0 ∧ ∃ a ∈ A, ∃ b ∈ A, ∃ c ∈ A, b - a = d ∧ c - b = d}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe main conjecture: for any finite set of integers $A$ with $|A| = n$, the number of distinct\ncommon differences in three-term arithmetic progressions is $O(n^{3/2})$.\n\nThis conjecture was resolved negatively by showing that the problem is exactly equivalent to\nBourgain's sums-differences question [Bo99], which was introduced as an arithmetic path towards\nthe Kakeya conjecture. Under this equivalence:\n- The greatest achievable exponent for this problem is equal to the smallest constant $c$\n  achievable for Bourgain's sums-differences question:\n  $$|A -_G B| \\ll \\max(|A|, |B|, |A +_G B|)^c$$\n- The $O(n^{3/2})$ prediction is disproved because the lower bound has been shown to satisfy\n  $c \\ge 1.77898$ (due to Zheng and AlphaEvolve [GGTW25], improving on Lemm [Le15]), which is\n  strictly greater than $3/2 = 1.5$.\n- The best known upper bound is $c \\le 11/6 \\approx 1.833$ (due to Katz and Tao [KaTa99]).\n- While the specific $O(n^{3/2})$ prediction is resolved negatively, the general question of\n  determining the exact optimal exponent $c$ remains open.\n-/\n@[category research solved, question, AMS 11, formal_proof using formal_conjectures at\n\"https://github.com/mo271/formal-conjectures/blob/f13dd54b520cdf2136fdd3a04f0f9fa50e311358/FormalConjectures/ErdosProblems/1097.lean#L306\"]\ntheorem erdos_1097 : ¬ ∃ C > (0 : ℝ), ∀ (A : Finset ℤ),\n    (CommonDifferencesThreeTermAP A).ncard ≤ C * (A.card : ℝ) ^ (3 / 2 : ℝ) := by\n  sorry\n\n/--\nA weaker bound has been proven: there are always at most $n^2$ such values of $d$.\n-/\n@[category textbook, AMS 11]\ntheorem erdos_1097.variants.weaker :\n    ∀ A, (CommonDifferencesThreeTermAP A).ncard ≤ A.card ^ 2 := by\n  intro A\n  set D := Finset.image (fun p : ℤ × ℤ => p.2 - p.1) (A ×ˢ A)\n  have h_sub : CommonDifferencesThreeTermAP A ⊆ (D : Set ℤ) := by\n    rintro d ⟨-, a, ha, b, hb, -, -, hab, -⟩\n    exact Finset.mem_coe.mpr (Finset.mem_image.mpr\n      ⟨(a, b), Finset.mem_product.mpr ⟨ha, hb⟩, hab⟩)\n  calc (CommonDifferencesThreeTermAP A).ncard\n      ≤ (D : Set ℤ).ncard := Set.ncard_le_ncard h_sub D.finite_toSet\n    _ = D.card := Set.ncard_coe_finset _\n    _ ≤ (A ×ˢ A).card := Finset.card_image_le\n    _ = A.card * A.card := Finset.card_product _ _\n    _ = A.card ^ 2 := (sq _).symm\n\n/--\nA trivial lower bound: for sufficiently large `n` there exist sets $A$ with $|A| = n$ that contain at least $\\Omega(n)$\ndistinct common differences of three-term arithmetic progressions.\n-/\n@[category textbook, AMS 11]\ntheorem erdos_1097.variants.lower_bound : ∃ c > (0 : ℝ), ∀ᶠ n in Filter.atTop, ∃ (A : Finset ℤ),\n    A.card = n ∧ c * (n : ℝ) ≤ (CommonDifferencesThreeTermAP A).ncard := by\n  refine ⟨1/4, by norm_num, ?_⟩\n  rw [Filter.eventually_atTop]\n  refine ⟨4, fun n hn => ?_⟩\n  refine ⟨(Finset.range n).image (fun k : ℕ => (k : ℤ)), ?_, ?_⟩\n  · rw [Finset.card_image_of_injective _ Nat.cast_injective, Finset.card_range]\n  set A := (Finset.range n).image (fun k : ℕ => (k : ℤ))\n  set k : ℕ := (n - 1) / 2 with hk_def\n  set D : Finset ℤ := (Finset.range k).image (fun i : ℕ => ((i + 1 : ℕ) : ℤ))\n  have hk_ge_nat : 4 * k ≥ n := by simp [hk_def]; omega\n  have hD_card : D.card = k := by\n    rw [Finset.card_image_of_injective _, Finset.card_range]\n    intro a b h\n    simp only at h\n    have : (a + 1 : ℤ) = (b + 1 : ℤ) := by exact_mod_cast h\n    omega\n  have h_finite : (CommonDifferencesThreeTermAP A).Finite := by\n    apply Set.Finite.subset\n      (Finset.image (fun p : ℤ × ℤ => p.2 - p.1) (A ×ˢ A)).finite_toSet\n    rintro d ⟨-, a, ha, b, hb, -, -, hab, -⟩\n    exact Finset.mem_coe.mpr (Finset.mem_image.mpr\n      ⟨(a, b), Finset.mem_product.mpr ⟨ha, hb⟩, hab⟩)\n  have hD_sub : (D : Set ℤ) ⊆ CommonDifferencesThreeTermAP A := by\n    intro d hd\n    rw [Finset.mem_coe, Finset.mem_image] at hd\n    obtain ⟨i, hi, rfl⟩ := hd\n    rw [Finset.mem_range] at hi\n    have h2d_lt : 2 * (i + 1) < n := by simp [hk_def] at hi; omega\n    refine ⟨by push_cast; positivity, 0, ?_, ((i + 1 : ℕ) : ℤ), ?_,\n      ((2 * (i + 1) : ℕ) : ℤ), ?_, by push_cast; ring, by push_cast; ring⟩\n    · exact Finset.mem_image.mpr ⟨0, Finset.mem_range.mpr (by omega), by push_cast⟩\n    · exact Finset.mem_image.mpr ⟨i + 1, Finset.mem_range.mpr (by omega), rfl⟩\n    · exact Finset.mem_image.mpr ⟨2 * (i + 1), Finset.mem_range.mpr h2d_lt, rfl⟩\n  calc (1 / 4 : ℝ) * n\n      = (n : ℝ) / 4 := by ring\n    _ ≤ (k : ℝ) := by\n        have : (4 : ℝ) * k ≥ n := by exact_mod_cast hk_ge_nat\n        linarith\n    _ = (D.card : ℝ) := by rw [hD_card]\n    _ = ((D : Set ℤ).ncard : ℝ) := by rw [Set.ncard_coe_finset]\n    _ ≤ ((CommonDifferencesThreeTermAP A).ncard : ℝ) := by\n        exact_mod_cast Set.ncard_le_ncard hD_sub h_finite\n\nend Erdos1097\n",
  "statement_hash": "bbf651563f46dd4cf34d6a5ec17a6bda929cc405ac1b34197ca01f4bda3df82b",
  "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."
}