# Mixing block sizes lets larger sets of grid points avoid lines

How many points can a high-dimensional grid contain without three lying on a line? In a grid whose coordinates take the values zero, one and two, with arithmetic modulo three, this is the cap-set problem. The largest possible sets are still unknown. Constructing larger examples raises the guaranteed minimum size and helps narrow that gap. We raise the lower bound on the exponential growth rate, the factor describing how cap size grows with dimension, from $2.220308488509795\ldots$ to more than $2.220385951482842$. The change is to assemble an existing construction from blocks of unequal lengths. The resulting line-free set has exactly $156520816553\cdot12^8\cdot112^{109}$ points in 702 dimensions.

## Background

A ternary vector is a list of coordinates from $\{0,1,2\}$. Three distinct vectors lie on a line precisely when their sum is zero modulo three. A set avoiding such a triple is called a cap. Its size measures how much of the grid can be occupied before a line becomes unavoidable.

Large caps can be built by taking Cartesian products of smaller caps: concatenate one vector from each smaller cap in every possible combination. A more flexible construction uses words made of the symbols zero, one and two. Each symbol selects one of three compatible caps, or building blocks, at that position. Taking the union of the products selected by these words gives a larger set. A word set is called admissible when its symbol patterns guarantee that this union still avoids lines. Edel developed this extended-product approach, and Tyrrell used it to obtain improved cap-set bounds. [Tyrrell, 2023](https://arxiv.org/abs/2209.10045)

X-evolve, a computational search method developed by Zhai and colleagues, produced an admissible set of 1,270,863 words in 27 coordinates, each with 19 nonzero entries. Their construction yields an exponential growth rate of at least $2.2203$. We reconstructed this word set, called the seed, from their public recipe. Its 27 positions are grouped into nine triples. Keeping the seed unchanged lets us measure how much the bound improves when its building blocks have different integer lengths rather than one common length. [Zhai et al., 2025](https://arxiv.org/abs/2508.07932)

## Results

### An explicit larger lower bound

Write $\mathbb F_3^n$ for the ternary grid in $n$ dimensions, and let $r(n)$ be its largest cap size. Equivalently, $r(n)$ is the largest size of a subset in which $x+y+z=0$ implies $x=y=z$. The exponential growth rate is $C=\lim_{n\to\infty}r(n)^{1/n}$. Products of caps are caps, so $r(n+m)\ge r(n)r(m)$. Taking natural logarithms makes this inequality superadditive, meaning that $\log r(n+m)\ge\log r(n)+\log r(m)$; this ensures the limit exists. A cap of size $M$ in dimension $D$ therefore gives $C\ge M^{1/D}$. This root measures size per dimension and lets us compare constructions in different dimensions.

The main result is a cap of size
\[
M=156520816553\cdot12^8\cdot112^{109}
\]
in dimension 702. Consequently,
\[
 C\ge M^{1/702}>2.220385951482842.
\]

A block of length $m$ combines $m$ copies of a six-dimensional ingredient, so it occupies $6m$ dimensions. The same admissible seed with uniform block length four gives
\[
 U=1270863\cdot48^8\cdot112^{100},\qquad
 U^{1/648}=2.220308488509795\ldots.
\]
The difference between the normalized sizes is approximately $0.000077463$.

The reconstructed seed is identical in all comparisons in Table 1. At dimension 702, placing one longer block in each coordinate triple also outperforms every placement that concentrates the longer blocks in three whole triples.

Table 1. Certified intervals containing the size-per-dimension roots for three assemblies of the same 27-coordinate seed. The middle row contains the smallest and largest roots among 84 placements; the other rows each contain a single root. The interval endpoints are certified by exact integer comparisons.

| Assembly of the same seed | Dimension | Certified root interval or enclosing range |
|---|---:|---|
| Uniform length 4 | 648 | (2.220308488509795, 2.220308488509796) |
| Nine length-5 blocks in three triples (84 placements) | 702 | (2.220336428581794, 2.220361724317348) |
| One length-5 block in each triple | 702 | (2.220385951482842, 2.220385951482843) |

Hametner and Tyrrell proved that the bound obtained by repeatedly taking the Cartesian product of any fixed cap can be improved. Their Remark 4.1 places the improvement to the X-evolve bound in the 452nd decimal place. The explicit bound here exceeds that improvement as well. As of 16 November 2026, we found no larger numerical lower bound in the literature or the cap-set record table. [Hametner and Tyrrell, 2026](https://arxiv.org/abs/2606.12194); [cap-set constants table](https://teorth.github.io/optimizationproblems/constants/4a.html)

### Why unequal dimensions give a valid cap

Each position in a seed word selects a whole block of coordinates in the final cap. The extended-product argument allows these blocks to have different dimensions at different positions. The three alternatives selected by zero, one or two at any one position must share a dimension.

Call three caps $(A_0,A_1,A_2)$ in the same ternary vector space extendable if neither of the following types of zero sum exists:

* two points from $A_0$ and one from $A_1\cup A_2$;
* one point from each of $A_0,A_1,A_2$.

Points may repeat in these conditions. In particular, $A_0$ is disjoint from $A_1\cup A_2$.

The support of a word is the set of positions where its symbols are nonzero. Two supports are incomparable if each contains a position absent from the other. For words of length $k$, an index set $S\subseteq\{0,1,2\}^k$ is admissible when distinct words have incomparable nonzero supports, and every three distinct words have a coordinate whose three symbols, in some order, are $001$, $002$ or $012$.

The following extension lemma states why unequal block dimensions preserve the cap property. Let $S$ be an admissible set of words of length $k$. For each position $i$, let $(A_{i,0},A_{i,1},A_{i,2})$ be extendable in $\mathbb F_3^{d_i}$, where $d_i$ is that position’s block dimension. The union of the products selected by the words is

\[
 K=\bigcup_{s\in S}\prod_{i=1}^k A_{i,s_i}
 \subseteq\mathbb F_3^{\sum_i d_i}
\]
and is a cap. Writing $|K|$ for its number of points,
\[
 |K|=\sum_{s\in S}\prod_i |A_{i,s_i}|.
\]

Proof. Distinct index words have a coordinate separating symbol zero from a nonzero symbol. The corresponding sets are disjoint, so their products are disjoint. Suppose three points of $K$ sum to zero, and consider their index words. If all three index words agree, the cap property in each coordinate makes all three points equal. If exactly two agree, incomparability supplies a coordinate where the repeated word has zero and the other word is nonzero. Extendability excludes the sum there. If all three index words differ, admissibility supplies one of the three forbidden symbol patterns, and extendability again excludes the sum. Different coordinates need not have equal dimensions; only the three alternatives at each fixed coordinate must share a dimension. ∎

The construction starts with three explicit caps in six dimensions. The weight of a vector is its number of nonzero coordinates. In six dimensions let $A_0$ consist of the 12 weight-one vectors. Let $D$ be the weight-three vectors whose supports are among the following sets of coordinate positions (for example, $123$ means positions one, two and three):
\[
123,124,135,146,156,236,245,256,345,346,
\]
and let $\bar D$ be the remaining weight-three vectors. Let $R$ consist of the vectors with no zero coordinate and an even number of coordinates equal to one. Set $A_1=D\cup R$ and $A_2=\bar D\cup R$. These have sizes 112 each. This is the base collection in [Tyrrell, Lemma 2.14](https://arxiv.org/html/2209.10045). Direct enumeration checks every cap and extension constraint in $\mathbb F_3^6$.

For any positive integer $m$, let $A^m$ denote the Cartesian product of $m$ copies of $A$, with $A^0$ the one-point, zero-dimensional set. Define
\[
 B_0(m)=\bigcup_{j=0}^{m-1} A_1^j\times A_0\times A_2^{m-j-1},
 \qquad B_1(m)=A_1^m,\quad B_2(m)=A_2^m.
\]
This is extendable in dimension $6m$, with sizes
\[
 (12m112^{m-1},112^m,112^m).
\]
Here $1^j02^{m-j-1}$ denotes the index word with $j$ ones, then a zero, then $m-j-1$ twos. These words are admissible: their zero positions separate pairs, and the middle zero position of three distinct words gives $201$. Thus $B_0(m)$ is a cap by the lemma. To check extendability, two $B_0$ words with the same zero position give a forbidden $00t$ pattern against either $B_t$, where $t$ is one or two. If their zero positions differ, the earlier position gives $012$ against $B_2$, and the later gives $201$ against $B_1$. One $B_0$ word against $B_1,B_2$ gives $012$ at its zero position. The unions are disjoint, giving the stated sizes.

### Counting the cap exactly

Expanding the seed into individual words gives an exact count of the cap’s points.

The reconstructed seed has 1,723 compressed rows, each representing a family of words related by cyclic rotations. A cyclic rotation moves the last symbol to the front; for example, $001$ rotates to $100$ and then $010$. Each row has nine entries from the alphabet
\[
 000,001,002,012,021,111,222,
\]
in the order used by the public construction. Replace each entry by any distinct cyclic rotation of its triple, independently. The union of these families is $S$. There are 1,270,863 expanded words, all of weight 19. Exact checks verify both their number and their admissibility.

Assign block lengths $m_i=5,4,4$ in each triple. At position $i$, a word with symbol $s_i$ selects the block $B_{s_i}(m_i)$ in the extension lemma. Since $\sum_i m_i=117$, the resulting dimension is 702. Every index word has eight zeros; its contribution is
\[
 12^8\,112^{117-8}\prod_{i:s_i=0}m_i.
\]
Thus it remains to evaluate an integer weighted sum over the seed.

An independent full expansion counts the words by $k$, the number of zeros in the nine length-five positions. It is separate from the search calculation, which combines the compressed rows into a polynomial for the weighted count. Let $H_k$ be the number of words with each value of $k$.

Table 2. Full-word counts by the number of zeros assigned to longer blocks.

| Zeros in length-5 positions, $k$ | Number of seed words, $H_k$ |
|---:|---:|
| 0 | 31,973 |
| 1 | 174,350 |
| 2 | 370,096 |
| 3 | 393,052 |
| 4 | 223,183 |
| 5 | 67,382 |
| 6 | 10,170 |
| 7 | 648 |
| 8 | 9 |

Their sum is 1,270,863 and
\[
 \sum_{k=0}^{8}H_k5^k4^{8-k}=156520816553.
\]
This proves the size formula. Integer exponentiation certifies
\[
 (2220385951482842)^{702}
 <M\,10^{15\cdot702}
 <(2220385951482843)^{702}.
\]
No floating-point root calculation is needed for the lower bound.

### Why mixing lengths helps

The best real-valued uniform length lies between four and five. Mixing these two lengths improves the bound while keeping every block dimension integral.

With uniform length $m$, the normalized logarithmic size is
\[
 f(m)=\frac{\log112}{6}
 +\frac{\log1270863+8\log(3m/28)}{162m}.
\]
Its derivative changes sign exactly once, at
\[
 m_*=(28/3)\exp\{1-\log(1270863)/8\}
 =4.3784350985\ldots.
\]
The elementary bounds $8/3<e<11/4$, where $e$ is the base of the natural logarithm, locate this point strictly between four and five by rational inequalities, verified by exact computation. Therefore the best positive integer uniform choice must be four or five; exact integer comparison selects four. The mixed assignment accommodates an intermediate average length, $13/3$, while retaining integer-dimensional blocks.

Placement also matters. For a triple with $z$ zeros and local block lengths $m_1,m_2,m_3$, its rotations contribute the elementary symmetric polynomial $e_z(m_1,m_2,m_3)$. This adds the products of lengths over choices of $z$ positions: $e_0=1$, $e_1=m_1+m_2+m_3$, $e_2=m_1m_2+m_1m_3+m_2m_3$ and $e_3=m_1m_2m_3$. At a fixed triple total, balancing the three positive integers maximizes all these factors simultaneously. Indeed, replacing $a,b$ with $a-1,b+1$ when $a\ge b+2$ preserves their sum and increases their product; both $e_2$ and $e_3$ therefore increase or stay fixed, while $e_0,e_1$ stay fixed. All coefficients in the seed’s weighted sum are nonnegative, so improving these local factors cannot reduce the total count.

As a matched-dimension control, we kept nine length-five and eighteen length-four coordinates but concentrated the fives in three whole triples. All $\binom93=84$ placements were evaluated exactly. Their roots range from $2.220336428581794\ldots$ to $2.220361724317347\ldots$, below the distributed assignment. Thus even at the same dimension and length multiset, spreading the fives improves the count. The seed's independent cyclic symmetries make the three positions of the five within each triple equivalent.

## Methods

### Public inputs and search

The search evaluated six admissible seeds. FunSearch is a program-search method that had previously found improved admissible sets. Four seeds came from its public release, with coordinate counts and weights $(12,7)$, $(15,10)$, $(21,15)$ and $(24,17)$. Two were reconstructed from the public X-evolve recipe, with parameters $(21,15)$ and $(27,19)$. We used FunSearch’s released words and compressed rotation families, checking that expanding the latter reproduced the former exactly. The releases were pinned to FunSearch revision cc53f274237d7ab05c19df939edbc1f9616a7c19 and X-evolve revision 71a2b10e36f09f0458149817986a01e85f73d7c9. [FunSearch public data](https://github.com/google-deepmind/funsearch/tree/cc53f274237d7ab05c19df939edbc1f9616a7c19/admissible_set); [X-evolve public construction](https://github.com/wind-whisperfxj/x-evolve/blob/71a2b10e36f09f0458149817986a01e85f73d7c9/admissible_set.ipynb)

The X-evolve release references an unavailable 27-coordinate universe file. We regenerated all 2,778,624 candidate rows of nine entries from the seven-symbol alphabet above, with total weight 19, ranked them by the public priority function, which assigns a score to each candidate, and applied the greedy compatibility rule. Scores were stored in single-precision floating-point arithmetic, with equal scores retaining lexicographic row order, the equivalent of dictionary order for these symbols. At each step, the first remaining row was accepted; rows with the same weight profile (the sequence of weights of their nine entries), or whose addition would violate compatibility with accepted rows, were removed. This produced 1,723 rows expanding to the published cardinality of 1,270,863. The exact checks below certify the resulting seed independently of score rounding or tie choices.

For each seed, we first evaluated uniform lengths from 1 through 16. Around the best length $m$, we tested every assignment of triple totals (the sum of the three block lengths) from $\max(3,3m-3)$ through $3m+3$, balancing the three lengths within each triple. Across all six seeds this gave 47,784,702 allocations. The objective was the logarithm of the weighted seed count divided by the resulting dimension, evaluated using the full support polynomial. This polynomial sums the products of block lengths at zero positions over all seed words. Five seeds improved on their uniform evaluations; only the 27-coordinate seed exceeded the X-evolve numerical baseline. Optimization allowing continuous lengths was used as a diagnostic.

Exact uniform optimization establishes the best common integer length. The 84 controls isolate the effect of placement while keeping the dimension and collection of lengths fixed. Independent cyclic symmetry makes the three positions within a triple equivalent, while the local symmetric-polynomial argument favors balanced triples.

### Exact verification

A separate checker, sharing no search or reconstruction routines, derives local compatibility directly from ternary symbols. It verifies the six-dimensional base caps and their extension constraints by enumerating the relevant pairs and forbidden third points. For the seed, it enumerates rotations of each alphabet entry and checks support separation. It handles triples of words from one rotation family, two families and three distinct families separately. For three distinct families, intersections of exact bitsets, binary arrays recording which families remain compatible, identify any family whose rotations could avoid a forbidden coordinate at every position. All such intersections are empty. For the main seed this covers all 851,036,221 triples of distinct compressed rows.

A further independent count expands all 1,270,863 actual words, checks their weight and distinct supports, and obtains Table 2 by counting zeros at the longer-block positions. This calculation is independent of both the search’s tensor contraction, which sums products in a multidimensional array, and the checker’s compressed size formula. Integer powers certify the reported root interval, the comparison with uniform length four, and every matched-dimension control. Thus floating-point arithmetic selects candidates but does not establish the lower bound.

## Interpretation and limits

The best bound an admissible set can produce depends on both its number of words and the positions of their zeros. Those positions enter a weighted count that can reward unequal integer block lengths. For this existing seed and extended-product construction, mixing lengths gives a larger explicit lower bound, and the proof establishes the best uniform positive integer length.

The finite allocation scan does not establish global optimality among unequal lengths or among cap constructions. Fractional block lengths help explain the gain but do not define valid caps.

## References

Edel, Y. (2004). *Extensions of generalized product caps*. Designs, Codes and Cryptography 31, 5–14. Construction background as described in [Tyrrell's account](https://arxiv.org/abs/2209.10045).

Tyrrell, F. (2023). [New lower bounds for cap sets](https://discreteanalysisjournal.com/article/91076-new-lower-bounds-for-cap-sets). Discrete Analysis 2023:20.

Romera-Paredes, B., et al. (2023). [Mathematical discoveries from program search with large language models](https://doi.org/10.1038/s41586-023-06924-6). Nature 625, 468–475 (2024 issue).

Zhai, Y., et al. (2025). [$X$-evolve: Solution space evolution powered by large language models](https://arxiv.org/abs/2508.07932). arXiv:2508.07932.

Hametner, P., and Tyrrell, F. (2026). [Beating product constructions for linear equations over finite fields](https://arxiv.org/abs/2606.12194). arXiv:2606.12194, version 2.
