# Roth's theorem on arithmetic progressions

Roth's theorem on arithmetic progressions is a result in additive combinatorics concerning the existence of arithmetic progressions in subsets of the natural numbers. It was first proven by Klaus Roth in 1953. Roth's theorem is a special case of Szemerédi's theorem for the case $k=3$.

## Statement

A subset A of the natural numbers is said to have positive upper density if
    $\limsup _{n\to \infty }{\frac {|A\cap \{1,2,3,\dotsc ,n\}|}{n}}>0$.
   Roth's theorem on arithmetic progressions (infinite version): A subset of the natural numbers with positive upper density contains a 3-term arithmetic progression.
An alternate, more qualitative, formulation of the theorem is concerned with the maximum size of a Salem–Spencer set which is a subset of $[N]=\{1,\dots ,N\}$. Let $r_{3}([N])$ be the size of the largest subset of $[N]$ which contains no 3-term arithmetic progression.
   Roth's theorem on arithmetic progressions (finitary version): $r_{3}([N])=o(N).$
Improving upper and lower bounds on $r_{3}([N])$ is still an open research problem.

## History

The first result in this direction was Van der Waerden's theorem in 1927, which states that for sufficiently large N, coloring the integers $1,\dots ,n$ with $r$ colors will result in a $k$ term arithmetic progression.
Later on in 1936 Erdős and Turán conjectured a much stronger result that any subset of the integers with positive density contains arbitrarily long arithmetic progressions. In 1942, Raphaël Salem and Donald C. Spencer provided a construction of a 3-AP-free set (i.e. a set with no 3-term arithmetic progressions) of size ${\frac {N}{e^{O(\log N/\log \log N)}}}$, disproving an additional conjecture of Erdős and Turán that $r_{3}([N])=N^{1-\delta }$ for some $\delta >0$.
In 1953, Roth partially resolved the initial conjecture by proving they must contain an arithmetic progression of length 3 using Fourier analytic methods. Eventually, in 1975, Szemerédi proved Szemerédi's theorem using combinatorial techniques, resolving the original conjecture in full.

## Proof techniques

The original proof given by Roth used Fourier analytic methods. Later on another proof was given using Szemerédi's regularity lemma.

### Proof sketch via Fourier analysis

In 1953, Roth used Fourier analysis to prove an upper bound of $r_{3}([N])=O\left({\frac {N}{\log \log N}}\right)$. Below is a sketch of this proof.
Define the Fourier transform of a function $f:\mathbb {Z} \rightarrow \mathbb {C}$ to be the function ${\widehat {f}}$ satisfying
    ${\widehat {f}}(\theta )=\sum _{x\in \mathbb {Z} }f(x)e(-x\theta )$,
where $e(t)=e^{2\pi it}$.
Let $A$ be a 3-AP-free subset of $\{1,\dots ,N\}$. The proof proceeds in 3 steps.
* Show that a $A$ admits a large Fourier coefficient.
* Deduce that there exists a sub-progression of $\{1,\dots ,N\}$ such that $A$ has a density increment when restricted to this subprogression.
* Iterate Step 2 to obtain an upper bound on $|A|$.

#### Step 1

For functions, $f,g,h:\mathbb {Z} \rightarrow \mathbb {C} ,$ define
    $\Lambda (f,g,h)=\sum _{x,y\in \mathbb {Z} }f(x)g(x+y)h(x+2y)$
   Counting Lemma Let $f,g:\mathbb {Z} \rightarrow \mathbb {C}$ satisfy $\sum _{n\in \mathbb {Z} }|f(n)|^{2},\sum _{n\in \mathbb {Z} }|g(n)|^{2}\leq M$. Define $\Lambda _{3}(f)=\Lambda (f,f,f)$. Then $|\Lambda _{3}(f)-\Lambda _{3}(g)|\leq 3M\|{\widehat {f-g}}\|_{\infty }$.
The counting lemma tells us that if the Fourier Transforms of $f$ and $g$ are "close", then the number of 3-term arithmetic progressions between the two should also be "close." Let $\alpha =|A|/N$ be the density of $A$. Define the functions $f=\mathbf {1} _{A}$ (i.e the indicator function of $A$), and $g=\alpha \cdot \mathbf {1} _{[N]}$. Step 1 can then be deduced by applying the Counting Lemma to $f$ and $g$, which tells us that there exists some $\theta$ such that
    $\left|\sum _{n=1}^{N}(1_{A}-\alpha )(n)e(\theta n)\right|\geq {\frac {\alpha ^{2}}{10}}N$.

#### Step 2

Given the $\theta$ from step 1, we first show that it's possible to split up $[N]$ into relatively large subprogressions such that the character $x\mapsto e(x\theta )$ is roughly constant on each subprogression.
   Lemma 1: Let $0<\eta <1,\theta \in \mathbb {R}$. Assume that $N>C\eta ^{-6}$ for a universal constant $C$. Then it is possible to partition $[N]$ into arithmetic progressions $P_{i}$ with length $N^{1/3}\leq |P_{i}|\leq 2N^{1/3}$ such that $\sup _{x,y\in P_{i}}|e(x\theta )-e(y\theta )|<\eta$ for all $i$.
Next, we apply Lemma 1 to obtain a partition into subprogressions. We then use the fact that $\theta$ produced a large coefficient in step 1 to show that one of these subprogressions must have a density increment:
   Lemma 2: Let $A$ be a 3-AP-free subset of $[N]$, with $|A|=\alpha N$ and $N>C\alpha ^{-12}$. Then, there exists a sub progression $P\subset [N]$ such that $|P|\geq N^{1/3}$ and $|A\cap P|\geq (\alpha +\alpha ^{2}/40)|P|$.

#### Step 3

We now iterate step 2. Let $a_{t}$ be the density of $A$ after the $t$th iteration. We have that $\alpha _{0}=\alpha ,$ and $\alpha _{t+1}\geq \alpha +\alpha ^{2}/40.$ First, see that $\alpha$ doubles (i.e. reach $T$ such that $\alpha _{T}\geq 2\alpha _{0}$) after at most $40/\alpha +1$ steps. We double $\alpha$ again (i.e reach $\alpha _{T}\geq 4\alpha _{0}$) after at most $20/\alpha +1$ steps. Since $\alpha \leq 1$, this process must terminate after at most $O(1/\alpha )$ steps.
Let $N_{t}$ be the size of our current progression after $t$ iterations. By Lemma 2, we can always continue the process whenever $N_{t}\geq C\alpha _{t}^{-12},$ and thus when the process terminates we have that $N_{t}\leq C\alpha _{t}^{-12}\leq C\alpha ^{-12}.$ Also, note that when we pass to a subprogression, the size of our set decreases by a cube root. Therefore
    $N\leq N_{t}^{3^{t}}\leq (C\alpha ^{-12})^{3^{O(1/\alpha )}}=e^{e^{O(1/\alpha )}}.$
Therefore $\alpha =O(1/\log \log N),$ so $|A|=O\left({\frac {N}{\log \log N}}\right),$ as desired. $\blacksquare$
Unfortunately, this technique does not generalize directly to larger arithmetic progressions to prove Szemerédi's theorem. An extension of this proof eluded mathematicians for decades until 1998, when Timothy Gowers developed the field of higher-order Fourier analysis specifically to generalize the above proof to prove Szemerédi's theorem.

### Proof sketch via graph regularity

Below is an outline of a proof using the Szemerédi regularity lemma.
Let $G$ be a graph and $X,Y\subseteq V(G)$. We call $(X,Y)$ an $\epsilon$-regular pair if for all $A\subset X,B\subset Y$ with $|A|\geq \epsilon |X|,|B|\geq \epsilon |Y|$, one has $|d(A,B)-d(X,Y)|\leq \epsilon$.
A partition ${\mathcal {P}}=\{V_{1},\ldots ,V_{k}\}$ of $V(G)$ is an $\epsilon$-regular partition if
    $\sum _{(i,j)\in [k]^{2},(V_{i},V_{j}){\text{ not }}\epsilon {\text{-regular}}}|V_{i}||V_{j}|\leq \epsilon |V(G)|^{2}$.
Then the Szemerédi regularity lemma says that for every $\epsilon >0$, there exists a constant $M$ such that every graph has an $\epsilon$-regular partition into at most $M$ parts.
We can also prove that triangles between $\epsilon$-regular sets of vertices must come along with many other triangles. This is known as the triangle counting lemma.
   Triangle Counting Lemma: Let $G$ be a graph and $X,Y,Z$ be subsets of the vertices of $G$ such that $(X,Y),(Y,Z),(Z,X)$ are all $\epsilon$-regular pairs for some $\epsilon >0$. Let $d_{XY},d_{XZ},d_{YZ}$ denote the edge densities $d(X,Y),d(X,Z),d(Y,Z)$ respectively. If $d_{XY},d_{XZ},d_{YZ}\geq 2\epsilon$, then the number of triples $(x,y,z)\in X\times Y\times Z$ such that $x,y,z$ form a triangle in $G$ is at least
       $(1-2\epsilon )(d_{XY}-\epsilon )(d_{XZ}-\epsilon )(d_{YZ}-\epsilon )\cdot |X||Y||Z|$.
Using the triangle counting lemma and the Szemerédi regularity lemma, we can prove the triangle removal lemma, a special case of the graph removal lemma.
   Triangle Removal Lemma: For all $\epsilon >0$, there exists $\delta >0$ such that any graph on $n$ vertices with less than or equal to $\delta n^{3}$ triangles can be made triangle-free by removing at most $\epsilon n^{2}$ edges.
This has an interesting corollary pertaining to graphs $G$ on $N$ vertices where every edge of $G$ lies in a unique triangle. In specific, all of these graphs must have $o(N^{2})$ edges.
Take a set $A$ with no 3-term arithmetic progressions. Now, construct a tripartite graph $G$ whose parts $X,Y,Z$ are all copies of $\mathbb {Z} /(2N+1)\mathbb {Z}$. Connect a vertex $x\in X$ to a vertex $y\in Y$ if $y-x\in A$. Similarly, connect $z\in Z$ with $y\in Y$ if $z-y\in A$. Finally, connect $x\in X$ with $z\in Z$ if $(z-x)/2\in A$.
This construction is set up so that if $x,y,z$ form a triangle, then we get elements $y-x,{\frac {z-x}{2}},z-y$ that all belong to $A$. These numbers form an arithmetic progression in the listed order. The assumption on $A$ then tells us this progression must be trivial: the elements listed above are all equal. But this condition is equivalent to the assertion that $x,y,z$ is an arithmetic progression in $\mathbb {Z} /(2N+1)\mathbb {Z}$. Consequently, every edge of $G$ lies in exactly one triangle. The desired conclusion follows. $\blacksquare$

## Extensions and generalizations

Szemerédi's theorem resolved the original conjecture and generalized Roth's theorem to arithmetic progressions of arbitrary length. Since then it has been extended in multiple fashions to create new and interesting results.
Furstenberg and Katznelson used ergodic theory to prove a multidimensional version and Leibman and Bergelson extended it to polynomial progressions as well. Most recently, Green and Tao proved the Green–Tao theorem which says that the prime numbers contain arbitrarily long arithmetic progressions. Since the prime numbers are a subset of density 0, they introduced a "relative" Szemerédi theorem which applies to subsets with density 0 that satisfy certain pseudorandomness conditions. Later on Conlon, Fox, and Zhao strengthened this theorem by weakening the necessary pseudorandomness condition. In 2020, Bloom and Sisask proved that any set $A$ such that $\sum _{n\in A}{\frac {1}{n}}$ diverges must contain arithmetic progressions of length 3; this is the first non-trivial case of another conjecture of Erdős postulating that any such set must in fact contain arbitrarily long arithmetic progressions.

### Improving bounds

There has also been work done on improving the bound in Roth's theorem. The bound from the original proof of Roth's theorem showed that
    $r_{3}([N])\leq c\cdot {\frac {N}{\log \log N}}$
for some constant $c$. Over the years this bound has been continually lowered by Szemerédi, Heath-Brown, Bourgain, and Sanders. The current (July 2020) best bound is due to Bloom and Sisask who have shown the existence of an absolute constant c>0 such that
    $r_{3}([N])\leq {\frac {N}{(\log N)^{1+c}}}.$
In February 2023 a preprint (later published) by Kelley and Meka gave a new bound of:
$r_{3}([N])\leq 2^{-\Omega ((\log N)^{1/12})}\cdot N$.
Four days later, Bloom and Sisask published a preprint giving an exposition of the result (later published), simplifying the argument and yielding some additional applications. Several months later, Bloom and Sisask obtained a further improvement to $r_{3}([N])\leq \exp(-c(\log N)^{1/9})N$, and stated (without proof) that their techniques can be used to show $r_{3}([N])\leq \exp(-c(\log N)^{5/41})N$.
There has also been work done on the other end, constructing the largest set with no 3-term arithmetic progressions. The best construction has barely been improved since 1946 when Behrend improved on the initial construction by Salem and Spencer and proved
    $r_{3}([N])\geq N\exp(-c{\sqrt {\log N}})$.
Due to no improvements in over 70 years, it is conjectured that Behrend's set is asymptotically very close in size to the largest possible set with no 3-term progressions. If correct, the Kelley-Meka bound will prove this conjecture.

### Roth's theorem in finite fields

As a variation, we can consider the analogous problem over finite fields. Consider the finite field $\mathbb {F} _{3}^{n}$, and let $r_{3}(\mathbb {F} _{3}^{n})$ be the size of the largest subset of $\mathbb {F} _{3}^{n}$ which contains no 3-term arithmetic progression. This problem is actually equivalent to the cap set problem, which asks for the largest subset of $\mathbb {F} _{3}^{n}$ such that no 3 points lie on a line. The cap set problem can be seen as a generalization of the card game Set.
In 1982, Brown and Buhler were the first to show that $r_{3}(\mathbb {F} _{3}^{n})=o(3^{n}).$ In 1995, Roy Mesuhlam used a similar technique to the Fourier-analytic proof of Roth's theorem to show that $r_{3}(\mathbb {F} _{3}^{n})=O\left({\frac {3^{n}}{n}}\right).$ This bound was improved to $O(3^{n}/n^{1+\epsilon })$ in 2012 by Bateman and Katz.
In 2016, Ernie Croot, Vsevolod Lev, Péter Pál Pach, Jordan Ellenberg and Dion Gijswijt developed a new technique based on the polynomial method to prove that $r_{3}(\mathbb {F} _{3}^{n})=O(2.756^{n})$.
The best known lower bound is $2.2202^{n}$, discovered in December 2023 by Google DeepMind researchers using a large language model (LLM).

### Roth's theorem with popular differences

Another generalization of Roth's theorem shows that for positive density subsets, there not only exists a 3-term arithmetic progression, but that there exist many 3-APs all with the same common difference.
   Roth's theorem with popular differences: For all $\epsilon >0$, there exists some $n_{0}=n_{0}(\epsilon )$ such that for every $n>n_{0}$ and $A\subset \mathbb {F} _{3}^{n}$ with $|A|=\alpha 3^{n},$ there exists some $y\neq 0$ such that $|\{x:x,x+y,x+2y\in A\}|\geq (\alpha ^{3}-\epsilon )3^{n}.$
If $A$ is chosen randomly from $\mathbb {F} _{3}^{n},$ then we would expect there to be $\alpha ^{3}3^{n}$ progressions for each value of $y$. The popular differences theorem thus states that for each $|A|$ with positive density, there is some $y$ such that the number of 3-APs with common difference $y$ is close to what we would expect.
This theorem was first proven by Green in 2005, who gave a bound of $n_{0}={\text{tow}}((1/\epsilon )^{O(1)}),$ where ${\text{tow}}$ is the tower function. In 2019, Fox and Pham recently improved the bound to $n_{0}={\text{tow}}(O(\log {\frac {1}{\epsilon }})).$
A corresponding statement is also true in $\mathbb {Z}$ for both 3-APs and 4-APs. However, the claim has been shown to be false for 5-APs.