finite_plane_sq_norm
def
The squared norm of a vector $(a, b) \in \mathbb{F}_p^2$ is defined as $\|(a, b)\|^2 = a^2 + b^2$.
Statement
def finite_plane_sq_norm {p : ℕ} (v : ZMod p × ZMod p) : ZMod p- Defined in
- arXiv:2611.20408, Section 1
- Verified
- 22 Nov 2026
- Axioms
- none listed
- Used by 1
- finite_plane_is_equilateral_triangleThree points $X, Y, Z \in \mathbb{F}_p^2$ form an equilateral triangle with nonzero squared side length if they are pairwise distinct and…
Read back from the Lean
Given a natural number $p$ (implicit) and a pair $v = (v_1, v_2) \in \mathbb{Z}/p\mathbb{Z} \times \mathbb{Z}/p\mathbb{Z}$, finite_plane_sq_norm v is defined as $v_1^2 + v_2^2 \in \mathbb{Z}/p\mathbb{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
/-- Squared Euclidean norm of a vector in (ZMod p)^2. -/ def finite_plane_sq_norm {p : ℕ} (v : ZMod p × ZMod p) : ZMod p := v.1 ^ 2 + v.2 ^ 2