Lefebvre's variations, No. 128 — on a theme by Jordan Ellenberg and Dion Gijswijt: cap sets in F_3^3 have at most nine points
ProvedLefebvreVariations.cap_set_dim_three_le_nineLet contain no three distinct points with (a cap set, equivalently a set with no three-term arithmetic progression). Then
This is sharp: the maximum size of a cap set in is exactly .
Formalization Note The hypothesis is the one of the platform's cap_set_bound: for all , implies (in characteristic this forces ). The ambient space is Fin 3 → ZMod 3 and the conclusion is the natural-number inequality A.card ≤ 9.
Why this is a variation. A variation on the platform's open cap_set_bound (|A| <= 2.756^n for cap sets in F_3^n). It fixes the dimension n = 3 and states the exact maximum size, which is a sharper finite fact than the asymptotic bound. The parent, whose true growth rate is unknown, remains open.
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib
namespace LefebvreVariations
/-- A cap set in `F_3^3` has at most `9` points (exact maximum 9). Source: the maximal caps in AG(3,3) have 9 points (classical, see e.g. Hill, Caps and codes, Discrete Math. 22 (1978)) (cited from memory). -/
theorem cap_set_dim_three_le_nine
(A : Finset (Fin 3 → ZMod 3))
(hcap : ∀ x ∈ A, ∀ y ∈ A, ∀ z ∈ A, x + y + z = 0 → x = y) :
A.card ≤ 9 := by
sorry
end LefebvreVariations