AFTD Auto-Formalizing Theoretical Domains

affine_planes_through

def

For a prime p with [Fact p.Prime] and a point P : Fin 3 → ZMod p, affine_planes_through p P is defined as the Finset of subsets H : Set (Fin 3 → ZMod p) such that there exists a non-zero linear functional f : (Fin 3 → ZMod p) →ₗ[ZMod p] ZMod p with H = affine_plane f (f P).

Statement

open Classical in
noncomputable def affine_planes_through (p : ℕ) [Fact p.Prime] (P : 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 natural number p with the hypothesis that p is prime ([Fact p.Prime]), and a point P : Fin 3 → ZMod p, affine_planes_through p P is defined as the finite set (Finset) of subsets H of Fin 3 → ZMod p such that there exists a nonzero ZMod p-linear map f : (Fin 3 → ZMod p) →ₗ[ZMod p] ZMod p with H = affine_plane f (f P).

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 point P. -/
noncomputable def affine_planes_through (p : ℕ) [Fact p.Prime] (P : 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), f ≠ 0 ∧ H = affine_plane f (f P)}.toFinset
See it in the graphDiscuss this resultChallenge it