The Maximum Number of Sets for 12 Cards is 14
Justin Stevens, Duncan Wilson
TL;DR
This work determines the maximum number of sets with four properties on a 12-card board to be $14$, by a novel geometric proof that embeds SET cards as points in $\mathbb{F}_3^4$ and sets as lines, augmented by a construction based on a magic square. It combines a constructive geometric argument with computer-assisted proofs to establish exact maxima for $3 \le n \le 12$ and to explore $3$-property variants up to $n=27$, using dedicated search programs and a consecutive maximization heuristic. The key contributions are the explicit $12$-card configuration achieving $14$ sets, a rigorous demonstration that 15 sets are impossible on 12 cards, and the development of computational tools and algorithms (e.g., set_searcher_complete.py, set_searcher_3d_table.py, and the Consecutive Maximization Algorithm) to obtain near-optimal or exact results for related instances. This work advances extremal combinatorics in the SET setting and provides algorithmic strategies that can guide future proofs for larger $n$ and higher-property variants.
Abstract
We present a novel proof that the maximum number of sets with 4 properties for 12 cards is 14 using the geometry of the finite field F_3^4, number theory, combinatorics, and graph theory. We also present several computer algorithms for finding the maximum number of sets. In particular, we show a complete set solver that iterates over all possible board configurations. We use this method to compute the maximum number of sets with 4 properties for a small number of cards, but it is generally too inefficient. However, with this method, we compute the maximum number of sets for 3 properties for all possible numbers of cards. We also present an algorithm for constructing near-optimal maximum sets.
