The setting
In three-dimensional affine space over a finite field, a subset containing no three distinct collinear points is an affine cap. For an odd prime , Lemma 5.1 concerns finding an affine cap inside a coordinate box in that captures at least a fraction of the points in the box. Alongside this box bound, the Lean library states the existence of an affine cap inside any finite subset of over a finite field of characteristic different from , as well as a quadratic graph in meeting every affine line in at most two points.
Affine caps and quadratic graphs
Let be a field. A subset is an affine cap if no three distinct points of are collinear over , meaning that no affine line in contains three distinct points of .✦
For points and a scalar , the affine line point is given coordinatewise by (1): (1)✦
For a scalar , the binary quadratic form is given by (2): (2)✦ The quadratic graph associated to is the set defined by (3): (3)✦
For a prime , identify each residue class in with its least non-negative integer representative in . For an integer , the residue box consists of all triples whose three coordinates have representatives strictly less than ; when , this box is empty.
The claim
Lemma 5.1. Let be a finite field of characteristic different from , let be an odd prime, and let be an integer with .
There exists such that for all distinct points and every , (4)✦
For every finite subset , there exists an affine cap satisfying (5)✦
There exists an affine cap satisfying (6)✦
What is checked
In the Lean library, Lemma 5.1 is stated as the three assertions (4), (5), and (6) over the quadratic form , its graph , affine line points , and affine caps in for a finite field of characteristic different from , finite subsets , and residue boxes for an odd prime and an integer .