/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/importFormalConjecturesUtil
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$?
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}$?
[Sh20, Theorem 1] implies a gap of at least $\lfloor 2p/|A| - 2 \rfloor$.
@[categoryresearchsolved,AMS511]theoremgreen_32.variants.sh20_general:∀(p:ℕ),p.Prime→-- Theorem 1 is for any prime p, not just asymptotically∀A:Finset(ZModp),1<A.card→∃c:(ZModp)ˣ,HasGap(c•A)⌊2*(p:ℝ)/A.card-2⌋₊:=by⊢ ∀(p:ℕ),Nat.Primep→∀(A:Finset(ZModp)),1<A.card→∃c,HasGap(c•A)⌊2*↑p/↑A.card-2⌋₊sorryAll goals completed! 🐙
[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$.
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$.
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$.