is_cap_set
def
A finite subset $C$ of $\mathbb{F}_3^n$ is a cap set if for every $x, y, z \in C$, $x + y + z = 0$ implies $x = y$ and $y = z$.
Statement
def is_cap_set (n : ℕ) (C : Finset (Fin n → ZMod 3)) : Prop
- Defined in
- arXiv:2611.20408, Section 1
- Verified
- 20 Nov 2026
- Axioms
- none listed
Read back from the Lean
Given a natural number $n$ and a finite subset $C$ of $\mathrm{Fin}(n) \to \mathbb{Z}/3\mathbb{Z}$, $C$ satisfies is_cap_set n C if and only if for all $x, y, z \in C$, if $x + y + z = 0$, then $x = y$ and $y = z$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Predicate for a finite subset of $\mathbb{F}_3^n$ to be a cap set, having no three distinct elements summing to zero. -/ def is_cap_set (n : ℕ) (C : Finset (Fin n → ZMod 3)) : Prop := ∀ ⦃x⦄, x ∈ C → ∀ ⦃y⦄, y ∈ C → ∀ ⦃z⦄, z ∈ C → x + y + z = 0 → x = y ∧ y = z