Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
[Imported from formal-conjectures on 23 Nov 2026]

Title:Ben Green's Open Problem 17

Source:Ben Green's 100 open problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Suppose that A⊂F3nA \subset \mathbb{F}_3^n is a set of density α\alpha. Under what conditions on α\alpha is AA guaranteed to contain a 3-term progression with nonzero common difference in {0,1}n\{0, 1\}^n?

We read the question as asking for the order of magnitude of the threshold density α(n)=r(n)/3n\alpha(n) = r(n) / 3^n, where r(n)r(n) is maxFree n: every set of density greater than α(n)\alpha(n) contains such a progression, and some set of density α(n)\alpha(n) does not. [Gr24] notes that α(n)→0\alpha(n) \to 0 by the density Hales-Jewett theorem; for the best known bound see green_17.variants.bklm.

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Tags:question
Cite as:NS.03974 [math.CO] · NS.03974v1 for this version
Declaration:Green17.green_17.parts.i
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:1826b93426906f0b5ba8ba4fa2cbefcdf226c24cfcb90dd2b641f7460bf9392a
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/GreensOpenProblems/17.lean

Formal statement

theorem green_17.parts.i :
    (fun n : ℕ ↦ (maxFree n : ℝ) / 3 ^ n) =Θ[atTop] green_17.parts.i.answer
Show the full Challenge.lean (172 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Ben Green's Open Problem 17

*References:*
- [Gr24] [Green, Ben. "100 open problems." (2024).](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.17)
- [Hą20] Hązła, J., *On arithmetic progressions in symmetric sets in finite field model*.
  Electron. J. Combin. 27 (2020), no. 3, Paper No. 3.61.
  [arXiv:1811.09947](https://arxiv.org/abs/1811.09947)
- [BKLM24] Bhangale, A., Khot, S., Liu, Y. P. and Minzer, D., *On approximability of satisfiable
  $k$-CSPs: VI*. [arXiv:2411.15133](https://arxiv.org/abs/2411.15133) (2024).
-/

@[expose] public section

open Filter Asymptotics

namespace Green17

/--
`IsRestrictedAP A x d` says that $x, x + d, x + 2d$ all lie in `A`, where the common difference
$d$ is a nonzero vector in $\{0, 1\}^n \subset \mathbb{F}_3^n$. Since $d \ne 0$, the three points
are distinct.
-/
def IsRestrictedAP {n : ℕ} (A : Finset (𝔽₃ n)) (x d : 𝔽₃ n) : Prop :=
  d ≠ 0 ∧ (∀ i, d i = 0 ∨ d i = 1) ∧ x ∈ A ∧ x + d ∈ A ∧ x + 2 • d ∈ A

/--
`HasRestrictedAP A` says that `A` contains a 3-term progression whose common difference is a
nonzero vector in $\{0, 1\}^n$.
-/
def HasRestrictedAP {n : ℕ} (A : Finset (𝔽₃ n)) : Prop :=
  ∃ x d, IsRestrictedAP A x d

/--
`numRestrictedAPs A` is the number of pairs $(x, d)$ with $x \in \mathbb{F}_3^n$ and
$d \in \{0, 1\}^n \setminus \{0\}$ such that $x, x + d, x + 2d \in A$. There are
$3^n (2^n - 1)$ such pairs in all, which is about $6^n$.
-/
noncomputable def numRestrictedAPs {n : ℕ} (A : Finset (𝔽₃ n)) : ℕ :=
  Nat.card {p : 𝔽₃ n × 𝔽₃ n // IsRestrictedAP A p.1 p.2}

/--
`maxFree n` is the largest size of a set $A \subseteq \mathbb{F}_3^n$ with no 3-term progression
whose common difference is a nonzero vector in $\{0, 1\}^n$. The set of possible sizes is
nonempty (it contains $0$) and bounded by $3^n$, so the supremum is the maximum.
-/
noncomputable def maxFree (n : ℕ) : ℕ :=
  sSup {k : ℕ | ∃ A : Finset (𝔽₃ n), A.card = k ∧ ¬ HasRestrictedAP A}

/--
`IsSymmetric A` says that `A` is invariant under the action of the symmetric group $S_n$ on
$\mathbb{F}_3^n$ by permutation of the coordinates. Equivalently, whether $x \in A$ depends only
on the numbers of coordinates of $x$ equal to $0$, $1$ and $2$; this is the definition of a
symmetric set in [Hą20].
-/
def IsSymmetric {n : ℕ} (A : Finset (𝔽₃ n)) : Prop :=
  ∀ σ : Equiv.Perm (Fin n), ∀ x ∈ A, (fun i ↦ x (σ i)) ∈ A

/--
In $\mathbb{F}_3^0$ there is no nonzero difference, so no set contains a progression of the
required kind. This is why `green_17.parts.ii` is stated for large $n$ only.
-/
@[category test, AMS 5 11]
theorem not_hasRestrictedAP_zero (A : Finset (𝔽₃ 0)) : ¬ HasRestrictedAP A := by
  rintro ⟨_, d, hd, -⟩
  exact hd (Subsingleton.elim _ _)

def green_17.parts.i.answer : ℕ → ℝ := sorry

/--
Suppose that $A \subset \mathbb{F}_3^n$ is a set of density $\alpha$. Under what conditions on
$\alpha$ is $A$ guaranteed to contain a 3-term progression with nonzero common difference in
$\{0, 1\}^n$?

We read the question as asking for the order of magnitude of the threshold density
$\alpha(n) = r(n) / 3^n$, where $r(n)$ is `maxFree n`: every set of density greater than
$\alpha(n)$ contains such a progression, and some set of density $\alpha(n)$ does not. [Gr24]
notes that $\alpha(n) \to 0$ by the density Hales-Jewett theorem; for the best known bound see
`green_17.variants.bklm`.
-/
@[category research open, question value, AMS 5 11]
theorem green_17.parts.i :
    (fun n : ℕ ↦ (maxFree n : ℝ) / 3 ^ n) =Θ[atTop] green_17.parts.i.answer := by
  sorry

/--
Suppose that $A \subset \mathbb{F}_3^n$ is a set of density $\alpha$. For fixed $\alpha$, must
$A$ contain $\gg_\alpha 6^n$ 3-term progressions with nonzero common difference in
$\{0, 1\}^n$?

A progression is counted as a pair $(x, d)$, see `numRestrictedAPs`. We read $\gg_\alpha 6^n$ as
at least $c(\alpha) 6^n$ for all $n \ge n_0(\alpha)$. A bound for all $n$ is false: for $n = 1$
the set $\{0, 1\}$ has density $2/3$ and contains no such progression.
-/
@[category research open, question, AMS 5 11]
theorem green_17.parts.ii :
    ∀ α : ℝ, 0 < α → ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop, ∀ A : Finset (𝔽₃ n),
      α * 3 ^ n ≤ (A.card : ℝ) → c * 6 ^ n ≤ (numRestrictedAPs A : ℝ) := by
  sorry

/--
Is there a constant $c \in (0, 1)$ such that, for all large $n$, every set
$A \subseteq \mathbb{F}_3^n$ of density at least $(1 - c)^n$ contains a 3-term progression with
nonzero common difference in $\{0, 1\}^n$?

[Gr24] notes that a density $\alpha \to 0$ slowly enough forces such a progression, and that
this may even hold with $\alpha = (1-c)^n$ for some $c > 0$. We require $c < 1$, so that
$(1 - c)^n > 0$.
-/
@[category research open, question, AMS 5 11]
theorem green_17.variants.exponential :
    ∃ c : ℝ, 0 < c ∧ c < 1 ∧ ∀ᶠ n : ℕ in atTop, ∀ A : Finset (𝔽₃ n),
      (1 - c) ^ n * 3 ^ n ≤ (A.card : ℝ) → HasRestrictedAP A := by
  sorry

/--
**Bhangale, Khot, Liu and Minzer.** There are constants $c, C > 0$ such that every set
$A \subseteq \mathbb{F}_3^n$ of density at least $C (\log \log \log n)^{-c}$ contains a 3-term
progression with nonzero common difference in $\{0, 1\}^n$.

This is [BKLM24, Theorem 3] for $\Sigma = \mathbb{F}_3$ and
$S = \{(x, x + a, x + 2a) : x \in \mathbb{F}_3, a \in \{0, 1\}\}$, as in [BKLM24, Section 1.2.1]:
three points of $A$, not all equal, with $(x_i, y_i, z_i) \in S$ for all $i$ form such a
progression. We state it for large $n$, where $\log \log \log n > 0$.
-/
@[category research solved, AMS 5 11]
theorem green_17.variants.bklm :
    ∃ c C : ℝ, 0 < c ∧ 0 < C ∧ ∀ᶠ n : ℕ in atTop, ∀ A : Finset (𝔽₃ n),
      C / Real.log (Real.log (Real.log n)) ^ c * 3 ^ n ≤ (A.card : ℝ) → HasRestrictedAP A := by
  sorry

/--
**Hązła.** For every $\mu > 0$ there is $\delta > 0$ such that every symmetric set
$A \subseteq \mathbb{F}_3^n$ of density at least $\mu$ contains at least $\delta 6^n$
progressions $x, x + d, x + 2d$ with $d \in \{0, 1\}^n$ [Hą20, abstract and Theorem 2, case
$q = 3$].

[Hą20] counts all pairs $(x, d)$ with $d \in \{0, 1\}^n$, including the $|A|$ pairs with
$d = 0$; this is why `A.card` is added to `numRestrictedAPs A`. For large $n$ the $d = 0$ pairs
are negligible, so `green_17.parts.ii` holds for symmetric sets. [Hą20, abstract] states the
result for sets of density exactly $\mu$. The form with density at least $\mu$ follows from the
removal statement [Hą20, Theorem 2] with $\mu/2$ in place of $\mu$: it removes a single symmetric
set of density at most $\mu/2$ and leaves a set with no progressions, but the remaining set is
nonempty and contains the progressions with $d = 0$.
-/
@[category research solved, AMS 5 11]
theorem green_17.variants.symmetric :
    ∀ μ : ℝ, 0 < μ → ∃ δ : ℝ, 0 < δ ∧ ∀ n : ℕ, ∀ A : Finset (𝔽₃ n), IsSymmetric A →
      μ * 3 ^ n ≤ (A.card : ℝ) → δ * 6 ^ n ≤ (numRestrictedAPs A + A.card : ℝ) := by
  sorry

end Green17

To prove it: keep every definition of Challenge.lean unchanged and prove Green17.green_17.parts.i with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_i : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch green-17
nosorry submit green-17 nosorry/green-17/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.