This chapter uses the counting lemma (2.2(a)) in the form of a dimension count on reduced polynomials, the rank lemma with the Croot–Lev–Pach expansion (2.9, 2.10), the support lemma (2.11), and the uniqueness of reduced representatives (Lemma 2.1(b)). It uses neither Schwartz–Zippel nor multiplicity. The bridge is the observation that on a cap set the matrix (P(x+y)) is diagonal.
6.1 The problem
Definition 6.1. A cap set in F3n is a subset containing no three distinct collinear points.
A line in F3n is a set {a,a+r,a+2r} with r=0, so a cap set is the same as a set with no nontrivial three-term arithmetic progression, and the cap-set problem is the F3n analogue of Roth's problem on progressions in the integers. Its popular form is the card game Set, whose 81 cards are the points of F34 and whose "sets" are the lines.
Lemma 6.2.Three points x,y,z∈F3n are collinear if and only if x+y+z=0. Moreover, if x+y+z=0 and two of the three points coincide, then all three coincide.
Proof. If {x,y,z}={a,a+r,a+2r} then the sum is 3a+3r=0. Conversely if x+y+z=0 with x=y, put a=x, r=y−x=0; then a+2r=2y−x=−y−x=z, using 2=−1 in F3. For the last assertion, if x=y then z=−2x=x. ∎
Thus A is a cap set iff the only solutions of x+y+z=0 with x,y,z∈A are the trivial ones x=y=z.
Let r(n) be the largest size of a cap set in F3n. The trivial bounds are 2n≤r(n)≤3n (the lower bound from {0,1}n, §6.5). Meshulam (1995) proved r(n)=O(3n/n) by adapting Roth's Fourier argument, and Bateman and Katz (2012) improved this to O(3n/n1+ε) with considerable effort. Whether r(n)≤(3−δ)n for some δ>0 was a well-known open problem until Croot, Lev, and Pach (2017) proved the analogous statement for Z4n in May 2016 and Ellenberg and Gijswijt (2017) adapted their argument to Fqn within days. The proof below follows the symmetric formulation of Tao (2016).
6.2 The diagonal matrix
Let Vd denote the space of reduced polynomials in F3[x1,…,xn] of degree at most d, i.e. linear combinations of monomials xα with α∈{0,1,2}n and ∣α∣≤d. Its dimension is
md=#{α∈{0,1,2}n:∣α∣≤d},
with md=0 for d<0 and md=3n for d≥2n. The set of reduced monomials is closed under division, so Lemma 2.10 applies to Vd with Me=me.
Lemma 6.3 (Symmetry).For every integer d, 3n−md=m2n−d−1.
Proof. The map α↦(2,…,2)−α is a bijection of {0,1,2}n sending ∣α∣ to 2n−∣α∣; it carries {∣α∣≥d+1} onto {∣α∣≤2n−d−1}. ∎
Lemma 6.4.Let A⊆F3n be a cap set and let P∈F3[x] vanish at every point of F3n∖(−A), where −A={−a:a∈A}. Then the matrix M=(P(x+y))x,y∈A is diagonal, with diagonal entries Mxx=P(−x).
Proof. Let x=y in A. If x+y∈−A, say x+y=−z with z∈A, then x+y+z=0 with x=y, so by Lemma 6.2 the three points are distinct and collinear, contradicting that A is a cap set. Hence x+y∈/−A and P(x+y)=0. On the diagonal, x+x=2x=−x. ∎
6.3 The Ellenberg–Gijswijt bound
Theorem 6.5 (Ellenberg and Gijswijt 2017; per-degree form).Let A⊆F3n be a cap set. Then for every integer d with 0≤d≤2n,
∣A∣≤m2n−d−1+m⌊d/2⌋+m⌈d/2⌉−1≤m2n−d−1+2m⌊d/2⌋.
Proof. Let W⊆Vd be the subspace of reduced polynomials of degree at most d that vanish at every point of F3n∖(−A). Vanishing at a point is one linear condition, and there are 3n−∣A∣ points, so
dimW≥md−(3n−∣A∣)=∣A∣−m2n−d−1
by Lemma 6.3. Consider the evaluation map W→F3−A, P↦(P(u))u∈−A. It is injective: a P∈W in its kernel vanishes on −A and on the complement of −A, hence on all of F3n, hence is zero by Lemma 2.1(b) since P is reduced. So the image is a subspace of F3−A of dimension dimW, and by Lemma 2.11 there is P∈W with P(u)=0 for at least dimW points u∈−A.
By Lemma 6.4 the matrix M=(P(x+y))x,y∈A is diagonal with entries P(−x), so
By Lemma 2.10, rankM≤m⌊d/2⌋+m⌈d/2⌉−1. Combining the two inequalities gives the theorem. ∎
Corollary 6.6 (Ellenberg and Gijswijt 2017).Every cap set A⊆F3n satisfies ∣A∣≤3m⌊2n/3⌋.
Proof. Put D=⌊2n/3⌋ and d=2n−1−D in Theorem 6.5, so that 2n−d−1=D. It remains to check ⌊d/2⌋≤D and ⌈d/2⌉−1≤D, since me is nondecreasing in e. Write n=3k+r with r∈{0,1,2}. If r=0: D=2k, d=4k−1, ⌊d/2⌋=⌈d/2⌉−1=2k−1. If r=1: D=2k, d=4k+1, both quantities equal 2k. If r=2: D=2k+1, d=4k+2, ⌊d/2⌋=2k+1 and ⌈d/2⌉−1=2k. In every case both are at most D, so ∣A∣≤mD+mD+mD. ∎
Remark 6.7. The per-degree form is slightly sharper than the corollary in small dimensions. The values of mind(m2n−d−1+m⌊d/2⌋+m⌈d/2⌉−1) and of 3m⌊2n/3⌋ for n≤12 are tabulated in Appendix A (Table A.4); for n=6 they are 324 and 504, against the true value r(6)=112. The two coincide when n≡1(mod3). Asymptotically the difference is a constant factor and does not affect the base of the exponential.
6.4 The constant
Lemma 6.8.For every t∈(0,1] and every D≤2n/3,
mD≤t−2n/3(1+t+t2)n.
Proof. Since t≤1, for every α with ∣α∣≤D we have t∣α∣≥tD≥t2n/3. Hence
which is negative for 0<t<t0 and positive for t0<t≤1, where t0=(33−1)/8 is the positive root of 4t2+t−2. So g has its minimum on (0,1] at t0, and c=eg(t0). Numerically t0=0.593070…, 1+t0+t02=1.944803…, t0−2/3=1.416650…, and c=2.755105… ∎
Remark 6.10. The bound of Lemma 6.8 is the Chernoff bound for the number of α with ∣α∣≤2n/3, and standard local limit estimates show it is sharp up to a factor Θ(n): m⌊2n/3⌋=cnΘ(n−1/2). So Corollary 6.6 is Θ(cn/n) and the exponential base c is exactly what the argument gives; the choice of d in Corollary 6.6 is asymptotically optimal among all choices in Theorem 6.5, since m2n−d−1 and md/2 are balanced precisely at d≈4n/3. It is known that the base c cannot be improved by the slice-rank method alone (Blasiak et al. 2017; Tao 2016).
6.5 Constructions and small cases
Lemma 6.11.{0,1}n is a cap set in F3n, so r(n)≥2n. If A⊆F3a and B⊆F3b are cap sets, so is A×B⊆F3a+b; hence r(a+b)≥r(a)r(b).
Proof. If x,y,z∈{0,1}n satisfy x+y+z=0, then in each coordinate xi+yi+zi∈{0,1,2,3} is divisible by 3, so it is 0 or 3, so xi=yi=zi; thus x=y=z and the solution is trivial. For the product, suppose (aj,bj)∈A×B (j=1,2,3) are distinct with zero sum. Then a1+a2+a3=0 and b1+b2+b3=0. By Lemma 6.2 each of these triples is either all-equal or all-distinct; an all-distinct triple would be three collinear points of A or of B, so both triples are all-equal, and then the three pairs coincide, a contradiction. ∎
The product construction from the known small values gives r(n)≥112n/6≈2.1955n. Edel (2004) obtained 2.2174n by a more elaborate product of caps in F362 and F3480, Tyrrell (2023) improved this to 2.218n, and a computer search guided by a language model (Romera-Paredes et al. 2024) found constructions giving 2.2202n. The exact values of r(n) are known for n≤6:
n
1
2
3
4
5
6
r(n)
2
4
9
20
45
112
2n
2
4
8
16
32
64
Theorem 6.5, best d
3
7
18
45
123
324
Corollary 6.6
3
9
30
45
153
504
3n
3
9
27
81
243
729
The values r(n) for n≤5 are surveyed by Bierbrauer and Edel (2002) and Edel, Ferret, Landjev, and Storme (2002); r(6)=112 is due to Potechin (2008). The values for n≤3 were reproduced by exhaustive search (Appendix A), and for n=4 the search found a cap of size 20 without completing (Table A.3). The gap between the polynomial bound and the truth is a factor of about three at n=6, and it grows like (c/2.2202)n≈1.24n if the best constructions are near the truth.
6.6 Beyond F3
Ellenberg and Gijswijt prove the analogous bound over every finite field: for q=pk and A⊆Fqn containing no three-term progression x,x+r,x+2r with r=0, ∣A∣≤cqn for an explicit cq<q. For odd q the proof above transfers with one change: a progression is a solution of x+z=2y, so one takes P vanishing outside 2A instead of −A; the matrix (P(x+z))x,z∈A is then diagonal with entries P(2x), reduced polynomials have exponents in {0,…,q−1}, md counts α∈{0,…,q−1}n with ∣α∣≤d, and Lemma 6.3 becomes qn−md=m(q−1)n−d−1. The optimal d is about 32(q−1)n and the constant is cq=min0<t≤1t−(q−1)/3(1+t+⋯+tq−1). In characteristic 2 the equation x+z=2y degenerates and a different encoding is needed; Croot, Lev, and Pach's original argument for Z4n and Ellenberg and Gijswijt's treatment of F2k handle it, and I do not reproduce them.
The wider significance of the argument is that it bounds not only cap sets but the rank of a three-variable tensor, the indicator of x+y+z=0, in the sense of slice rank introduced by Tao (2016); any set on which such a tensor is diagonal with nonzero diagonal has size at most the slice rank. This reformulation has since been applied to sunflower-free sets, to the group-theoretic approach to matrix multiplication (Blasiak et al. 2017), and elsewhere. The three-lemma architecture of this dissertation covers it exactly: the slice rank bound is Lemma 2.10, the diagonal structure is the bridge, and the counting is the dimension of Vd.