Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Green's Open Problem 32 · hasCosetHole_empty

Source:Ben Green's 100 open problems
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

The empty set in F2n\mathbb{F}_2^n has a coset hole (using the trivial subspace).

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Cite as:NS.04059 [math.CO] · NS.04059v1 for this version
Declaration:Green32.hasCosetHole_empty
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:bf11726eaf5dc8edb38dc13e0a5c15962b1b3f958b8509f68b64af982eba6c62
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/GreensOpenProblems/32.lean

Formal statement

theorem hasCosetHole_empty (n : ℕ) :
    HasCosetHole (∅ : Finset (𝔽₂ n)) 0
Show the full Challenge.lean (168 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Green's Open Problem 32

*Reference:*
- [Gr24] [Green, Ben. "100 open problems." (2024).](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.32)
- [Sh20] Shakan, George. "A Large Gap in a Dilate of a Set." SIAM Journal on Discrete Mathematics
  34.4 (2020): 2553-2555.
-/

@[expose] public section

open Asymptotics Filter
open scoped Pointwise

namespace Green32

/--
A set $A$ has a gap of length $L$ if there exists $x$ such that $x, x+1, \dots, x+L-1$ are all not
in $A$.
-/
def HasGap {p : ℕ} (A : Finset (ZMod p)) (L : ℕ) : Prop :=
  ∃ x : ZMod p, ∀ (i : ℕ), i < L → x + (i : ZMod p) ∉ A

/-- Any set has a gap of length 0 (vacuously true). -/
@[category test, AMS 5 11]
theorem hasGap_zero {p : ℕ} (A : Finset (ZMod p)) :
    HasGap A 0 := by
  exact ⟨0, fun _ h => absurd h (by omega)⟩

/-- The empty set has a gap of any length. -/
@[category test, AMS 5 11]
theorem hasGap_empty {p : ℕ} (L : ℕ) :
    HasGap (∅ : Finset (ZMod p)) L := by
  exact ⟨0, fun _ _ => by simp⟩

/-- The full set in $\mathbb{Z}/p\mathbb{Z}$ has no gap of positive length. -/
@[category test, AMS 5 11]
theorem not_hasGap_univ {p : ℕ} [NeZero p] :
    ¬ HasGap (Finset.univ : Finset (ZMod p)) 1 := by
  rintro ⟨x, hx⟩
  have := hx 0 (by omega)
  simp at this

/-- Concrete: $\{0\}$ in $\mathbb{Z}/5\mathbb{Z}$ has a gap of length 4 starting at 1. -/
@[category test, AMS 5 11]
theorem hasGap_concrete :
    HasGap ({(0 : ZMod 5)} : Finset (ZMod 5)) 4 := by
  refine ⟨1, fun i hi => ?_⟩
  interval_cases i <;> decide

/--
The generalized problem: for a prime $p$ and a set $A \subset \mathbb{Z}/p\mathbb{Z}$ of size
$\lfloor \omega(p) \rfloor$, is there a dilate of $A$ containing a gap of length
$\lfloor 100p/\omega(p) \rfloor$?
-/
def HasLargeGapDilate (ω : ℕ → ℝ) : Prop :=
  ∀ᶠ p in atTop, p.Prime →
    100 < ω p ∧ ω p < p ∧
    ∀ A : Finset (ZMod p), A.card = ⌊ω p⌋₊ →
    ∃ c : (ZMod p)ˣ, HasGap (c • A) ⌊100 * (p : ℝ) / ω p⌋₊

/--
Let $p$ be a prime and let $A \subset \mathbb{Z}/p\mathbb{Z}$ be a set of size $\lfloor \sqrt{p} \rfloor$.
Is there a dilate of $A$ containing a gap of length $100\sqrt{p}$?
-/
@[category research open, question, AMS 5 11]
theorem green_32 :
    HasLargeGapDilate (fun p ↦ Real.sqrt p) := by
  sorry

/-- [Sh20, Theorem 1] implies a gap of at least $\lfloor 2p/|A| - 2 \rfloor$. -/
@[category research solved, AMS 5 11]
theorem green_32.variants.sh20_general :
    ∀ (p : ℕ), p.Prime → -- Theorem 1 is for any prime p, not just asymptotically
      ∀ A : Finset (ZMod p), 1 < A.card →
      ∃ c : (ZMod p)ˣ, HasGap (c • A) ⌊2 * (p : ℝ) / A.card - 2⌋₊ := by
  sorry

/--
[Sh20] has used the polynomial method to show that this is true with 100 replaced by 2 [Gr24].

Note: More precisely [Sh20, Theorem 1] implies a gap of at least $\lfloor 2p/|A| - 2 \rfloor$.
For a set $A$ of size $\lfloor \sqrt{p} \rfloor$, this guarantees a gap of at least
$\lfloor 2\sqrt{p} \rfloor - 2$.
-/
@[category research solved, AMS 5 11]
theorem green_32.variants.sh20_sqrt :
    ∀ᶠ p in atTop, p.Prime →
      ∀ A : Finset (ZMod p), A.card = ⌊Real.sqrt p⌋₊ →
      ∃ c : (ZMod p)ˣ, HasGap (c • A) (⌊2 * Real.sqrt p⌋₊ - 2) := by
  sorry

/-- In the regime $\omega(p) \sim c p$, this is Szemerédi's theorem [Gr24]. -/
@[category research solved, AMS 5 11]
theorem green_32.variants.szemeredi_regime :
    ∀ c, 0 < c ∧ c < 1 → ∀ ω : ℕ → ℝ, ω ~[atTop] (fun p ↦ c * p) →
      HasLargeGapDilate ω := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
In the regime $\omega(p) \le c \log p$, this is basically Dirichlet's lower bound for the size of
Bohr sets [Gr24].

The lower bound $101 \le \omega(p)$ makes the set size $\lfloor \omega(p) \rfloor$ exceed $100$.
With only $100 < \omega(p)$, a function with $100 < \omega(p) < 101$ asks for sets of size $100$
with a gap of length $p - 1$ in some dilate, which is impossible.
-/
@[category research solved, AMS 5 11, formal_proof using lean4 at "https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/5da9642575b26c2c816a49bcb56b33fed5456619/Proofs/T_Green32_green_32_variants_dirichlet_regime.lean#L260"]
theorem green_32.variants.dirichlet_regime :
    ∃ c > 0, ∀ ω : ℕ → ℝ, (∀ᶠ p in atTop, 101 ≤ ω p ∧ ω p ≤ c * Real.log p) →
      HasLargeGapDilate ω := by
  sorry

/-- Even what happens in the regime $\omega(p) \sim 10 \log p$ is unclear [Gr24]. -/
@[category research open, question, AMS 5 11]
theorem green_32.variants.log_regime :
    (∀ ω : ℕ → ℝ, ω ~[atTop] (fun p ↦ 10 * Real.log p) →
      HasLargeGapDilate ω) := by
  sorry

/--
A set $A$ has a coset hole of size $L$ if there exists a subspace $W$ and a vector $v$ such that
the affine space $v + W$ has size at least $L$ and is disjoint from $A$.
-/
def HasCosetHole {n : ℕ} (A : Finset (𝔽₂ n)) (L : ℕ) : Prop :=
  ∃ W : Submodule (ZMod 2) (𝔽₂ n), ∃ v : 𝔽₂ n,
    L ≤ Nat.card W ∧ ∀ w : W, v + (w : 𝔽₂ n) ∉ A

/-- The empty set in $\mathbb{F}_2^n$ has a coset hole (using the trivial subspace). -/
@[category test, AMS 5 11]
theorem hasCosetHole_empty (n : ℕ) :
    HasCosetHole (∅ : Finset (𝔽₂ n)) 0 := by
  exact ⟨⊥, 0, Nat.zero_le _, fun _ => by simp⟩

/--
Tom Sanders' finite field variant [Gr24].
If $N = 2^n$ and $A$ is a subset of size $\lfloor \sqrt{N} \rfloor$, then $A^c$ contains a coset of
size at least $100\sqrt{N}$ for sufficiently large $n$.
-/
@[category research solved, AMS 5 11]
theorem green_32.variants.finite_field :
    ∀ᶠ n in atTop,
      ∀ A : Finset (𝔽₂ n), A.card = ⌊Real.sqrt (2^n : ℝ)⌋₊ →
      HasCosetHole A ⌊100 * Real.sqrt (2^n : ℝ)⌋₊ := by
  sorry

end Green32

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

nosorry desk green-32--hascosethole-empty      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch green-32--hascosethole-empty
nosorry submit green-32--hascosethole-empty nosorry/green-32--hascosethole-empty/Solution.lean --wait

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.