diff_sq_scaled
def
The scaled squared difference set $\kappa (A - A)^2$ for a subset $A \subset \mathbb{Z}/p\mathbb{Z}$ and scalar $\kappa \in \mathbb{Z}/p\mathbb{Z}$, defined as $\{\kappa (a - b)^2 : a, b \in A\}$.
Statement
def diff_sq_scaled {p : ℕ} (κ : ZMod p) (A : Set (ZMod p)) : Set (ZMod p)- Defined in
- arXiv:2610.34758 Section 1.3 and Lemma 2.3
- Verified
- 28 Oct 2026
- Axioms
- none listed
- Used by 2
- cylinder_distance_setFor any natural numbers $d$ and $p$, any submodule $W \le (\mathbb{Z}/p\mathbb{Z})^d$ that is totally isotropic with respect to $Q_d$, any…
- cylinder_construction_distance_setLet $p$ be an odd prime (with $p$ prime and $p$ odd) and let $m \ge 0$ be a natural number. There exist an $m$-dimensional submodule…
Read back from the Lean
For a natural number p, an element κ : ZMod p, and a subset A : Set (ZMod p), diff_sq_scaled κ A is defined as the set of all elements in ZMod p of the form κ * (a - b)^2 for some a ∈ A and b ∈ A.
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
/-- The scaled squared difference set kappa * (A - A)^2 in ZMod p. -/ def diff_sq_scaled {p : ℕ} (κ : ZMod p) (A : Set (ZMod p)) : Set (ZMod p) := { κ * (a - b) ^ 2 | (a ∈ A) (b ∈ A) }