AFTD Auto-Formalizing Theoretical Domains

local_plane_weight

def

For a prime p with [Fact p.Prime] and subsets S, H : Set (Fin 3 → ZMod p), local_plane_weight p S H is defined as the integer ((S ∩ H).ncard : ℤ) / (p : ℤ) - 1, using integer division on ℤ.

Statement

open Classical in
noncomputable def local_plane_weight (p : ℕ) [Fact p.Prime] (S : Set (Fin 3 → ZMod p)) (H : 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

Read back from the Lean

Definition of local_plane_weight: given a prime natural number $p$, and two subsets $S$ and $H$ of $(\mathbb{Z}/p\mathbb{Z})^3$, it returns the integer ((S ∩ H).ncard : ℤ) / (p : ℤ) - 1, which is the integer quotient (via integer division) of the cardinality of $S \cap H$ by $p$, minus 1.

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 local weight c_P(H) = |S ∩ H|/p - 1 of an affine plane H with respect to S. -/
noncomputable def local_plane_weight (p : ℕ) [Fact p.Prime] (S : Set (Fin 3 → ZMod p)) (H : Set (Fin 3 → ZMod p)) : ℤ := ((S ∩ H).ncard : ℤ) / (p : ℤ) - 1
See it in the graphDiscuss this resultChallenge it