{
  "id": "4073",
  "ident": "NS.04073",
  "slug": "green-37",
  "title": "Ben Green's Open Problem 37",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Given a natural number `N`, what is the smallest size of a subset of `ℕ` that contains, for each `d = 1, …, N`,\nan arithmetic progression of length `k` with common difference `d`.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "green",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Green37.green_37",
  "statement_lean": "theorem green_37 (N k : ℕ) :\n    IsLeast { m | ∃ A : Finset ℕ, A.card = m ∧ IsAPCover (A : Set ℕ) N k }\n      (green_37.answer N k)",
  "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# Ben Green's Open Problem 37\n\nWhat is the smallest subset of `ℕ` containing, for each `d = 1, …, N`,\nan arithmetic progression of length `k` with common difference `d`?\n\n*References:*\n- [Ben Green's Open Problem 37](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.37)\n- [Green & Tao, *The primes contain arbitrarily long arithmetic progressions* (arXiv:math/0404188)](https://arxiv.org/abs/math/0404188)\n-/\n\n@[expose] public section\n\nnamespace Green37\n\nopen Set Filter\nopen scoped Asymptotics\n\n/-- `A` contains an arithmetic progression of length `k` and common difference `d` for every `d ∈ {1, …, N}`. -/\ndef IsAPCover (A : Set ℕ) (N k : ℕ) : Prop := ∀ d, 1 ≤ d ∧ d ≤ N → Set.ContainsAP A k d\n\n/-- The minimum size of a subset of `ℕ` that contains, for each `d = 1, …, N`,\nan arithmetic progression of length `k` with common difference `d`. -/\nnoncomputable def m (N k : ℕ) : ℕ :=\n  sInf { m | ∃ A : Finset ℕ, A.card = m ∧ IsAPCover (A : Set ℕ) N k }\n\ndef green_37.answer : ℕ → ℕ → ℕ := sorry\n\n/--\nGiven a natural number `N`, what is the smallest size of a subset of `ℕ` that contains, for each `d = 1, …, N`,\nan arithmetic progression of length `k` with common difference `d`.\n-/\n@[category research open, question value, AMS 5 11]\ntheorem green_37 (N k : ℕ) :\n    IsLeast { m | ∃ A : Finset ℕ, A.card = m ∧ IsAPCover (A : Set ℕ) N k }\n      (green_37.answer N k) := by\n  sorry\n\ndef green_37_asymptotic.answer : ℕ → ℕ → ℝ := sorry\n\n/--\nAsymptotic version: determine the asymptotic behavior of `m(N, k)` as `N` grows.\nThe solver should determine a function `f : ℕ → ℕ → ℝ` such that, for each `k`,\n`f k` eventually equals `(fun N ↦ (m N k : ℝ))`.\n-/\n@[category research open, question value, AMS 5 11]\ntheorem green_37_asymptotic (k : ℕ) :\n    ∀ᶠ N in atTop, (m N k : ℝ) = green_37_asymptotic.answer k N := by\n  sorry\n\ndef green_37_theta.answer : ℕ → ℕ → ℝ := sorry\n\n/-- Determine, for each `k`, the asymptotic equivalence class (theta) of `m(N, k)` as `N` grows. -/\n@[category research open, question value, AMS 5 11]\ntheorem green_37_theta (k : ℕ) :\n    (fun N ↦ (m N k : ℝ)) =Θ[atTop] green_37_theta.answer k := by\n  sorry\n\n/-- The interval `{0, …, kN}` contains, for each `d = 1, …, N`, the arithmetic progression\n`{0, d, …, (k - 1)d}`, so `m(N, k) ≤ kN + 1`. -/\n@[category API, AMS 5 11]\ntheorem m_le_mul_add_one (N k : ℕ) : m N k ≤ k * N + 1 := by\n  apply Nat.sInf_le\n  refine ⟨Finset.range (k * N + 1), Finset.card_range _, ?_⟩\n  intro d hd\n  refine ⟨0, ((Finset.range k).image (fun i ↦ i * d) : Set ℕ), ?_, ?_, ?_⟩\n  · intro x hx\n    obtain ⟨i, hi, rfl⟩ := Finset.mem_image.mp hx\n    simp only [Finset.mem_coe, Finset.mem_range] at hi ⊢\n    exact Nat.lt_succ_of_le (Nat.mul_le_mul (Nat.le_of_lt hi) hd.2)\n  · rw [ENat.card_coe_set_eq, Set.encard_coe_eq_coe_finsetCard,\n      Finset.card_image_of_injective _\n        (fun _ _ h ↦ Nat.eq_of_mul_eq_mul_right hd.1 h), Finset.card_range]\n  · ext x; simp\n\n/--\nWriting `F_k(N)` for `m(N, k)`, Green conjectures that `F_k(N) ≫_k N^(1 - c_k)` for some\nsequence `c_k` with `c_k → 0` as `k → ∞`.\nThe restriction to `0 < k` excludes the degenerate case `m(N, 0) = 0`.\n-/\n@[category research open, AMS 5 11]\ntheorem green_37_lower_bound :\n    ∃ c : ℕ → ℝ, Tendsto c atTop (nhds 0) ∧\n      ∀ k, 0 < k → (fun N : ℕ ↦ (N : ℝ) ^ (1 - c k)) =O[atTop] fun N ↦ (m N k : ℝ) := by\n  sorry\n\nend Green37\n",
  "statement_hash": "e1c00591fae8d2aaf70fa5e18289f9af69a0524d4a9b63a19c68dc8953223e9f",
  "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."
}