{
  "id": "3974",
  "ident": "NS.03974",
  "slug": "green-17",
  "title": "Ben Green's Open Problem 17",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Suppose that $A \\subset \\mathbb{F}_3^n$ is a set of density $\\alpha$. Under what conditions on\n$\\alpha$ is $A$ guaranteed to contain a 3-term progression with nonzero common difference in\n$\\{0, 1\\}^n$?\n\nWe read the question as asking for the order of magnitude of the threshold density\n$\\alpha(n) = r(n) / 3^n$, where $r(n)$ is `maxFree n`: every set of density greater than\n$\\alpha(n)$ contains such a progression, and some set of density $\\alpha(n)$ does not. [Gr24]\nnotes that $\\alpha(n) \\to 0$ by the density Hales-Jewett theorem; for the best known bound see\n`green_17.variants.bklm`.",
  "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": "Green17.green_17.parts.i",
  "statement_lean": "theorem green_17.parts.i :\n    (fun n : ℕ ↦ (maxFree n : ℝ) / 3 ^ n) =Θ[atTop] green_17.parts.i.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# Ben Green's Open Problem 17\n\n*References:*\n- [Gr24] [Green, Ben. \"100 open problems.\" (2024).](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.17)\n- [Hą20] Hązła, J., *On arithmetic progressions in symmetric sets in finite field model*.\n  Electron. J. Combin. 27 (2020), no. 3, Paper No. 3.61.\n  [arXiv:1811.09947](https://arxiv.org/abs/1811.09947)\n- [BKLM24] Bhangale, A., Khot, S., Liu, Y. P. and Minzer, D., *On approximability of satisfiable\n  $k$-CSPs: VI*. [arXiv:2411.15133](https://arxiv.org/abs/2411.15133) (2024).\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Green17\n\n/--\n`IsRestrictedAP A x d` says that $x, x + d, x + 2d$ all lie in `A`, where the common difference\n$d$ is a nonzero vector in $\\{0, 1\\}^n \\subset \\mathbb{F}_3^n$. Since $d \\ne 0$, the three points\nare distinct.\n-/\ndef IsRestrictedAP {n : ℕ} (A : Finset (𝔽₃ n)) (x d : 𝔽₃ n) : Prop :=\n  d ≠ 0 ∧ (∀ i, d i = 0 ∨ d i = 1) ∧ x ∈ A ∧ x + d ∈ A ∧ x + 2 • d ∈ A\n\n/--\n`HasRestrictedAP A` says that `A` contains a 3-term progression whose common difference is a\nnonzero vector in $\\{0, 1\\}^n$.\n-/\ndef HasRestrictedAP {n : ℕ} (A : Finset (𝔽₃ n)) : Prop :=\n  ∃ x d, IsRestrictedAP A x d\n\n/--\n`numRestrictedAPs A` is the number of pairs $(x, d)$ with $x \\in \\mathbb{F}_3^n$ and\n$d \\in \\{0, 1\\}^n \\setminus \\{0\\}$ such that $x, x + d, x + 2d \\in A$. There are\n$3^n (2^n - 1)$ such pairs in all, which is about $6^n$.\n-/\nnoncomputable def numRestrictedAPs {n : ℕ} (A : Finset (𝔽₃ n)) : ℕ :=\n  Nat.card {p : 𝔽₃ n × 𝔽₃ n // IsRestrictedAP A p.1 p.2}\n\n/--\n`maxFree n` is the largest size of a set $A \\subseteq \\mathbb{F}_3^n$ with no 3-term progression\nwhose common difference is a nonzero vector in $\\{0, 1\\}^n$. The set of possible sizes is\nnonempty (it contains $0$) and bounded by $3^n$, so the supremum is the maximum.\n-/\nnoncomputable def maxFree (n : ℕ) : ℕ :=\n  sSup {k : ℕ | ∃ A : Finset (𝔽₃ n), A.card = k ∧ ¬ HasRestrictedAP A}\n\n/--\n`IsSymmetric A` says that `A` is invariant under the action of the symmetric group $S_n$ on\n$\\mathbb{F}_3^n$ by permutation of the coordinates. Equivalently, whether $x \\in A$ depends only\non the numbers of coordinates of $x$ equal to $0$, $1$ and $2$; this is the definition of a\nsymmetric set in [Hą20].\n-/\ndef IsSymmetric {n : ℕ} (A : Finset (𝔽₃ n)) : Prop :=\n  ∀ σ : Equiv.Perm (Fin n), ∀ x ∈ A, (fun i ↦ x (σ i)) ∈ A\n\n/--\nIn $\\mathbb{F}_3^0$ there is no nonzero difference, so no set contains a progression of the\nrequired kind. This is why `green_17.parts.ii` is stated for large $n$ only.\n-/\n@[category test, AMS 5 11]\ntheorem not_hasRestrictedAP_zero (A : Finset (𝔽₃ 0)) : ¬ HasRestrictedAP A := by\n  rintro ⟨_, d, hd, -⟩\n  exact hd (Subsingleton.elim _ _)\n\ndef green_17.parts.i.answer : ℕ → ℝ := sorry\n\n/--\nSuppose that $A \\subset \\mathbb{F}_3^n$ is a set of density $\\alpha$. Under what conditions on\n$\\alpha$ is $A$ guaranteed to contain a 3-term progression with nonzero common difference in\n$\\{0, 1\\}^n$?\n\nWe read the question as asking for the order of magnitude of the threshold density\n$\\alpha(n) = r(n) / 3^n$, where $r(n)$ is `maxFree n`: every set of density greater than\n$\\alpha(n)$ contains such a progression, and some set of density $\\alpha(n)$ does not. [Gr24]\nnotes that $\\alpha(n) \\to 0$ by the density Hales-Jewett theorem; for the best known bound see\n`green_17.variants.bklm`.\n-/\n@[category research open, question value, AMS 5 11]\ntheorem green_17.parts.i :\n    (fun n : ℕ ↦ (maxFree n : ℝ) / 3 ^ n) =Θ[atTop] green_17.parts.i.answer := by\n  sorry\n\n/--\nSuppose that $A \\subset \\mathbb{F}_3^n$ is a set of density $\\alpha$. For fixed $\\alpha$, must\n$A$ contain $\\gg_\\alpha 6^n$ 3-term progressions with nonzero common difference in\n$\\{0, 1\\}^n$?\n\nA progression is counted as a pair $(x, d)$, see `numRestrictedAPs`. We read $\\gg_\\alpha 6^n$ as\nat least $c(\\alpha) 6^n$ for all $n \\ge n_0(\\alpha)$. A bound for all $n$ is false: for $n = 1$\nthe set $\\{0, 1\\}$ has density $2/3$ and contains no such progression.\n-/\n@[category research open, question, AMS 5 11]\ntheorem green_17.parts.ii :\n    ∀ α : ℝ, 0 < α → ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop, ∀ A : Finset (𝔽₃ n),\n      α * 3 ^ n ≤ (A.card : ℝ) → c * 6 ^ n ≤ (numRestrictedAPs A : ℝ) := by\n  sorry\n\n/--\nIs there a constant $c \\in (0, 1)$ such that, for all large $n$, every set\n$A \\subseteq \\mathbb{F}_3^n$ of density at least $(1 - c)^n$ contains a 3-term progression with\nnonzero common difference in $\\{0, 1\\}^n$?\n\n[Gr24] notes that a density $\\alpha \\to 0$ slowly enough forces such a progression, and that\nthis may even hold with $\\alpha = (1-c)^n$ for some $c > 0$. We require $c < 1$, so that\n$(1 - c)^n > 0$.\n-/\n@[category research open, question, AMS 5 11]\ntheorem green_17.variants.exponential :\n    ∃ c : ℝ, 0 < c ∧ c < 1 ∧ ∀ᶠ n : ℕ in atTop, ∀ A : Finset (𝔽₃ n),\n      (1 - c) ^ n * 3 ^ n ≤ (A.card : ℝ) → HasRestrictedAP A := by\n  sorry\n\n/--\n**Bhangale, Khot, Liu and Minzer.** There are constants $c, C > 0$ such that every set\n$A \\subseteq \\mathbb{F}_3^n$ of density at least $C (\\log \\log \\log n)^{-c}$ contains a 3-term\nprogression with nonzero common difference in $\\{0, 1\\}^n$.\n\nThis is [BKLM24, Theorem 3] for $\\Sigma = \\mathbb{F}_3$ and\n$S = \\{(x, x + a, x + 2a) : x \\in \\mathbb{F}_3, a \\in \\{0, 1\\}\\}$, as in [BKLM24, Section 1.2.1]:\nthree points of $A$, not all equal, with $(x_i, y_i, z_i) \\in S$ for all $i$ form such a\nprogression. We state it for large $n$, where $\\log \\log \\log n > 0$.\n-/\n@[category research solved, AMS 5 11]\ntheorem green_17.variants.bklm :\n    ∃ c C : ℝ, 0 < c ∧ 0 < C ∧ ∀ᶠ n : ℕ in atTop, ∀ A : Finset (𝔽₃ n),\n      C / Real.log (Real.log (Real.log n)) ^ c * 3 ^ n ≤ (A.card : ℝ) → HasRestrictedAP A := by\n  sorry\n\n/--\n**Hązła.** For every $\\mu > 0$ there is $\\delta > 0$ such that every symmetric set\n$A \\subseteq \\mathbb{F}_3^n$ of density at least $\\mu$ contains at least $\\delta 6^n$\nprogressions $x, x + d, x + 2d$ with $d \\in \\{0, 1\\}^n$ [Hą20, abstract and Theorem 2, case\n$q = 3$].\n\n[Hą20] counts all pairs $(x, d)$ with $d \\in \\{0, 1\\}^n$, including the $|A|$ pairs with\n$d = 0$; this is why `A.card` is added to `numRestrictedAPs A`. For large $n$ the $d = 0$ pairs\nare negligible, so `green_17.parts.ii` holds for symmetric sets. [Hą20, abstract] states the\nresult for sets of density exactly $\\mu$. The form with density at least $\\mu$ follows from the\nremoval statement [Hą20, Theorem 2] with $\\mu/2$ in place of $\\mu$: it removes a single symmetric\nset of density at most $\\mu/2$ and leaves a set with no progressions, but the remaining set is\nnonempty and contains the progressions with $d = 0$.\n-/\n@[category research solved, AMS 5 11]\ntheorem green_17.variants.symmetric :\n    ∀ μ : ℝ, 0 < μ → ∃ δ : ℝ, 0 < δ ∧ ∀ n : ℕ, ∀ A : Finset (𝔽₃ n), IsSymmetric A →\n      μ * 3 ^ n ≤ (A.card : ℝ) → δ * 6 ^ n ≤ (numRestrictedAPs A + A.card : ℝ) := by\n  sorry\n\nend Green17\n",
  "statement_hash": "1826b93426906f0b5ba8ba4fa2cbefcdf226c24cfcb90dd2b641f7460bf9392a",
  "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."
}