{
  "id": "914",
  "ident": "NS.00914",
  "slug": "erdos-1185",
  "title": "Erdős Problem 1185",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $\\delta>0$ and $k\\geq 3$. Is it true that there exists $m\\geq 1$ (depending only on $\\delta$\nand $k$) such that, for all large $N$, if $A,B\\subseteq \\{1,\\ldots,N\\}$ with\n$\\lvert A\\rvert \\geq \\delta N$ and $\\lvert B\\rvert \\geq m$ then there is a non-trivial $k$-term\narithmetic progression in $A$ whose common difference is in $B-B$?\n\nA problem of Erdős and Mauldin [Er80, p. 92], who ask the case $k=3$ and say that the same\nprobably holds for $k$ terms. The answer is no, already for $k=3$: to disprove it suffices to give\nan infinite set $B$ such that $B-B$ is not $2$-intersective (a set $S$ is $k$-intersective if\nevery subset of $\\mathbb{N}$ with positive density contains an arithmetic progression of length\n$k+1$ whose common difference is in $S$), which was provided by Furstenberg [Fu81]. The statement\nbelow is the negation of the claim for all $\\delta>0$ and $k\\geq 3$, with $m$ chosen before the\nthreshold $N_0$ for \"large $N$\".",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1185.erdos_1185",
  "statement_lean": "theorem erdos_1185 :\n    ¬ (∀ δ : ℝ, 0 < δ → ∀ k : ℕ, 3 ≤ k →\n      ∃ m : ℕ, 1 ≤ m ∧ ∃ N₀ : ℕ, ∀ N : ℕ, N₀ ≤ N →\n        ∀ A B : Finset ℕ, A ⊆ Finset.Icc 1 N → B ⊆ Finset.Icc 1 N →\n          δ * (N : ℝ) ≤ (A.card : ℝ) → m ≤ B.card → HasAPWithStepInDiff k A B)",
  "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 1185\n\n*References:*\n- [erdosproblems.com/1185](https://www.erdosproblems.com/1185)\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- [Fu81] Furstenberg, H., *Recurrence in ergodic theory and combinatorial number theory*.\n  M. B. Porter Lectures, Princeton University Press (1981), xi+203.\n-/\n\n@[expose] public section\n\nnamespace Erdos1185\n\n/-- `HasAPWithStepInDiff k A B` says that `A` contains a non-trivial $k$-term arithmetic\nprogression $a, a+d, \\ldots, a+(k-1)d$ whose common difference $d>0$ lies in $B-B$, that is,\n$d=b_1-b_2$ with $b_1,b_2\\in B$. Subtraction on `ℕ` is truncated, but $d>0$ forces $b_2<b_1$. -/\ndef HasAPWithStepInDiff (k : ℕ) (A B : Finset ℕ) : Prop :=\n  ∃ a d : ℕ, 0 < d ∧ (∀ j : ℕ, j < k → a + j * d ∈ A) ∧ ∃ b₁ ∈ B, ∃ b₂ ∈ B, d = b₁ - b₂\n\n/-- A set `B` with a single element has `B - B = {0}`, so it never gives a common difference\n$d>0$. This is why the thresholds $m$ below are taken with $m\\geq 1$ and matter only for\n$m\\geq 2$. -/\n@[category API, AMS 5 11]\ntheorem not_hasAPWithStepInDiff_singleton (k : ℕ) (A : Finset ℕ) (b : ℕ) :\n    ¬ HasAPWithStepInDiff k A {b} := by\n  rintro ⟨a, d, hd, -, b₁, hb₁, b₂, hb₂, rfl⟩\n  simp only [Finset.mem_singleton] at hb₁ hb₂\n  omega\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $\\delta>0$ and $k\\geq 3$. Is it true that there exists $m\\geq 1$ (depending only on $\\delta$\nand $k$) such that, for all large $N$, if $A,B\\subseteq \\{1,\\ldots,N\\}$ with\n$\\lvert A\\rvert \\geq \\delta N$ and $\\lvert B\\rvert \\geq m$ then there is a non-trivial $k$-term\narithmetic progression in $A$ whose common difference is in $B-B$?\n\nA problem of Erdős and Mauldin [Er80, p. 92], who ask the case $k=3$ and say that the same\nprobably holds for $k$ terms. The answer is no, already for $k=3$: to disprove it suffices to give\nan infinite set $B$ such that $B-B$ is not $2$-intersective (a set $S$ is $k$-intersective if\nevery subset of $\\mathbb{N}$ with positive density contains an arithmetic progression of length\n$k+1$ whose common difference is in $S$), which was provided by Furstenberg [Fu81]. The statement\nbelow is the negation of the claim for all $\\delta>0$ and $k\\geq 3$, with $m$ chosen before the\nthreshold $N_0$ for \"large $N$\".\n-/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1185.lean#L922\"]\ntheorem erdos_1185 :\n    ¬ (∀ δ : ℝ, 0 < δ → ∀ k : ℕ, 3 ≤ k →\n      ∃ m : ℕ, 1 ≤ m ∧ ∃ N₀ : ℕ, ∀ N : ℕ, N₀ ≤ N →\n        ∀ A B : Finset ℕ, A ⊆ Finset.Icc 1 N → B ⊆ Finset.Icc 1 N →\n          δ * (N : ℝ) ≤ (A.card : ℝ) → m ≤ B.card → HasAPWithStepInDiff k A B) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe answer is already negative for $k=3$: there is a density $\\delta>0$ such that for every\n$m\\geq 1$ and every $N_0$ there are $N\\geq N_0$ and $A,B\\subseteq\\{1,\\ldots,N\\}$ with\n$\\lvert A\\rvert\\geq\\delta N$, $\\lvert B\\rvert\\geq m$, and no non-trivial $3$-term arithmetic\nprogression in $A$ whose common difference is in $B-B$.\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/Erdos1185.lean#L843\"]\ntheorem erdos_1185.variants.k_three :\n    ∃ δ : ℝ, 0 < δ ∧ ∀ m : ℕ, 1 ≤ m → ∀ N₀ : ℕ, ∃ N : ℕ, ∃ A B : Finset ℕ,\n      N₀ ≤ N ∧ A ⊆ Finset.Icc 1 N ∧ B ⊆ Finset.Icc 1 N ∧\n        δ * (N : ℝ) ≤ (A.card : ℝ) ∧ m ≤ B.card ∧ ¬ HasAPWithStepInDiff 3 A B := by\n  sorry\n\nend Erdos1185\n",
  "statement_hash": "7fc9b89ec6afa4fa0028a9aab6adc5656d212b55e4bdb8e3d4b189f1e963f6a9",
  "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."
}