{
  "id": "918",
  "ident": "NS.00918",
  "slug": "erdos-1186",
  "title": "Erdős Problem 1186",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $\\delta_k$ be such that in any $2$-colouring of $\\{1,\\ldots,n\\}$ there exist at least\n$(\\delta_k+o(1))n^2$ many monochromatic $k$-term arithmetic progressions. Give reasonable bounds\n(or even an asymptotic formula) for $\\delta_k$.\n\nWe read \"reasonable bounds\" as determining the order of magnitude of $\\delta_k$ as $k \\to \\infty$.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1186.erdos_1186",
  "statement_lean": "theorem erdos_1186 : δ =Θ[atTop] erdos_1186.answer",
  "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 1186\n\n*References:*\n- [erdosproblems.com/1186](https://www.erdosproblems.com/1186)\n- [Er80] Erdős, Paul, *A survey of problems in combinatorial number theory*. Ann. Discrete Math.\n  (1980), 89-115. [PDF](https://www.renyi.hu/~p_erdos/1980-03.pdf)\n- [PRS08] Parrilo, Pablo A. and Robertson, Aaron and Saracino, Dan, *On the asymptotic minimum\n  number of monochromatic 3-term arithmetic progressions*. J. Combin. Theory Ser. A (2008),\n  185-192. [arXiv:math/0609532](https://arxiv.org/abs/math/0609532)\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos1186\n\n/--\n`monoCount k n c` is the number of monochromatic $k$-term arithmetic progressions in\n$\\{1,\\ldots,n\\}$ under the $2$-colouring `c`. The progression $a, a+d, \\ldots, a+(k-1)d$ with first\nterm $a$ and common difference $d \\geq 1$ is the pair `(a, d)`, with $a \\geq 1$ and\n$a + (k-1)d \\leq n$. Each progression is counted once.\n\nThis is the count of [Er80, p. 93]: there are $\\sim n^2/(2(k-1))$ progressions, and the upper bound\nin (7) there is their number times the probability $2^{1-k}$ that a random colouring makes one of\nthem monochromatic. The definition is meant for $k \\geq 2$.\n-/\ndef monoCount (k n : ℕ) (c : ℕ → Bool) : ℕ :=\n  ((Finset.Icc 1 n ×ˢ Finset.Icc 1 n).filter fun p : ℕ × ℕ =>\n    p.1 + (k - 1) * p.2 ≤ n ∧ ∀ i < k, c (p.1 + i * p.2) = c p.1).card\n\n/--\n`minMonoCount k n` is the least number of monochromatic $k$-term arithmetic progressions in a\n$2$-colouring of $\\{1,\\ldots,n\\}$. This is $A(n;k)$ in [Er80, p. 93]. The set of values contains\n`monoCount k n (fun _ => true)`, so `sInf` is a true minimum.\n-/\nnoncomputable def minMonoCount (k n : ℕ) : ℕ :=\n  sInf {m : ℕ | ∃ c : ℕ → Bool, monoCount k n c = m}\n\n/--\n`δ k` is the largest constant $\\delta_k$ such that every $2$-colouring of $\\{1,\\ldots,n\\}$ has at\nleast $(\\delta_k - o(1))n^2$ monochromatic $k$-term arithmetic progressions, that is,\n$\\liminf_{n\\to\\infty} A(n;k)/n^2$.\n\nThe quotient `minMonoCount k n / n ^ 2` lies in $[0,1]$, so this `liminf` is not a junk value.\nConvergence of the quotient is not assumed. If it converges, `δ k` is its limit.\n-/\nnoncomputable def δ (k : ℕ) : ℝ :=\n  atTop.liminf (fun n : ℕ ↦ (minMonoCount k n : ℝ) / (n : ℝ) ^ 2)\n\n/-- Any $2$-colouring gives an upper bound for `minMonoCount`. -/\n@[category API, AMS 5]\ntheorem minMonoCount_le (k n : ℕ) (c : ℕ → Bool) : minMonoCount k n ≤ monoCount k n c :=\n  Nat.sInf_le ⟨c, rfl⟩\n\n/-- In $\\{1,\\ldots,5\\}$ the $3$-term progressions are $\\{a,a+1,a+2\\}$ for $a \\in \\{1,2,3\\}$ and\n$\\{1,3,5\\}$. -/\n@[category test, AMS 5]\ntheorem monoCount_three_five : monoCount 3 5 (fun _ => true) = 4 := by\n  decide\n\ndef erdos_1186.answer : ℕ → ℝ := sorry\n\n/--\nLet $\\delta_k$ be such that in any $2$-colouring of $\\{1,\\ldots,n\\}$ there exist at least\n$(\\delta_k+o(1))n^2$ many monochromatic $k$-term arithmetic progressions. Give reasonable bounds\n(or even an asymptotic formula) for $\\delta_k$.\n\nWe read \"reasonable bounds\" as determining the order of magnitude of $\\delta_k$ as $k \\to \\infty$.\n-/\n@[category research open, question value, AMS 5 11]\ntheorem erdos_1186 : δ =Θ[atTop] erdos_1186.answer := by\n  sorry\n\n/--\nVan der Waerden's theorem implies $\\delta_k\\gg_k 1$.\n\nFor fixed $k$ this says $\\delta_k > 0$.\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_1186.variants.van_der_waerden (k : ℕ) (hk : 2 ≤ k) : 0 < δ k := by\n  sorry\n\n/--\nThe probabilistic method implies\n$$\\delta_k \\leq \\frac{1}{(k-1)2^{k}}.$$\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_1186.variants.probabilistic (k : ℕ) (hk : 2 ≤ k) :\n    δ k ≤ 1 / (((k : ℝ) - 1) * 2 ^ k) := by\n  sorry\n\n/--\nParrilo, Robertson, and Saracino [PRS08] have proved\n$$0.0511\\approx \\frac{1675}{32768}\\leq \\delta_3 \\leq \\frac{117}{2192}\\approx 0.0533,$$\nand conjectured the upper bound is correct.\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_1186.variants.prs_bounds : 1675 / 32768 ≤ δ 3 ∧ δ 3 ≤ 117 / 2192 := by\n  sorry\n\n/--\nParrilo, Robertson, and Saracino [PRS08] have proved\n$$0.0511\\approx \\frac{1675}{32768}\\leq \\delta_3 \\leq \\frac{117}{2192}\\approx 0.0533,$$\nand conjectured the upper bound is correct.\n\nThis is the conjecture $\\delta_3 = \\frac{117}{2192}$.\n-/\n@[category research open, AMS 5 11]\ntheorem erdos_1186.variants.prs_conjecture : δ 3 = 117 / 2192 := by\n  sorry\n\nend Erdos1186\n",
  "statement_hash": "28cedb69d0241e4e991eea0e59b758ccb29ded87241135d54441ecf946fca292",
  "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."
}