AFTD Auto-Formalizing Theoretical Domains

affine_planes_containing_line

def

For a prime p with [Fact p.Prime] and a subset ℓ : Set (Fin 3 → ZMod p), affine_planes_containing_line p ℓ is defined as the Finset of subsets H : Set (Fin 3 → ZMod p) such that ℓ ⊆ H and there exist a non-zero linear functional f : (Fin 3 → ZMod p) →ₗ[ZMod p] ZMod p and a scalar c : ZMod p with H = affine_plane f c.

Statement

open Classical in
noncomputable def affine_planes_containing_line (p : ℕ) [Fact p.Prime] (ℓ : Set (Fin 3 → ZMod p)) :
    Finset (Set (Fin 3 → ZMod p))
Defined in
arXiv:2611.12153 Lemma 2.2 -- The strong cylinder conjecture over prime fields
Verified
11 Nov 2026
Axioms
none listed
Built on 1
  • affine_planeFor a natural number p, the affine plane defined by a linear functional f on (ZMod p)^3 and scalar c in ZMod p is the fiber {x | f x = c}.

Read back from the Lean

Given a prime number $p$ (assumed via [Fact p.Prime]) and a subset $\ell \subseteq (\mathbb{Z}/p\mathbb{Z})^3$, affine_planes_containing_line p ℓ is the finite set of all subsets $H \subseteq (\mathbb{Z}/p\mathbb{Z})^3$ such that: 1. $H$ is an affine plane, i.e., there exist a non-zero $\mathbb{Z}/p\mathbb{Z}$-linear functional $f : (\mathbb{Z}/p\mathbb{Z})^3 \to \mathbb{Z}/p\mathbb{Z}$ and a scalar $c \in \mathbb{Z}/p\mathbb{Z}$ such that $H = \text{affine\_plane}(f, c)$; and 2. $\ell$ is a subset of $H$ ($\ell \subseteq H$).

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

open Classical in
/-- The Finset of all affine planes in (ZMod p)^3 containing a given subset ℓ. -/
noncomputable def affine_planes_containing_line (p : ℕ) [Fact p.Prime] (ℓ : Set (Fin 3 → ZMod p)) :
    Finset (Set (Fin 3 → ZMod p)) := {H : Set (Fin 3 → ZMod p) | (∃ (f : (Fin 3 → ZMod p) →ₗ[ZMod p] ZMod p) (c : ZMod p), f ≠ 0 ∧ H = affine_plane f c) ∧ ℓ ⊆ H}.toFinset
See it in the graphDiscuss this resultChallenge it