craig_shell_size
For natural numbers p and k, craig_shell_size p k is the number of pairs of disjoint k-element subsets of Fin p whose elements have identical power sums in ZMod p for all exponents 1 ≤ r < k, representing the size of the shortest vector shell of Euclidean norm √(2k) in Craig's lattice A_{p-1}^k.
Statement
def craig_shell_size (p k : ℕ) : ℕ- Defined in
- arXiv:2611.22441 Definition 2, Lemma 6, Corollary 1
- Verified
- 20 Nov 2026
- Axioms
- none listed
- Used by 2
- craig_shell_size_k_oneFor any prime p, the number of shortest nonzero vectors of Euclidean norm √2 in Craig's lattice A_{p-1}^1 is p * (p - 1).
- craig_shell_size_three_oneFor p = 3 and k = 1, the shortest vector shell size of Craig's lattice is 6.
Read back from the Lean
For natural numbers p and k, craig_shell_size p k is defined as the cardinality (number of elements) of the set of all ordered pairs of subsets (S1, S2) of Fin p such that:
1. S1 has cardinality k;
2. S2 has cardinality k;
3. S1 and S2 are disjoint; and
4. For every natural number r with 1 ≤ r and r < k, the sum in ZMod p of (x.val : ZMod p) ^ r over all x ∈ S1 is equal to the sum in ZMod p of (x.val : ZMod p) ^ r over all x ∈ S2.
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 number of shortest nonzero vectors (norm √(2k)) in Craig's lattice A_{p-1}^k. -/ def craig_shell_size (p k : ℕ) : ℕ := ((Finset.powerset Finset.univ ×ˢ Finset.powerset Finset.univ).filter fun (⟨S1, S2⟩ : Finset (Fin p) × Finset (Fin p)) => S1.card = k ∧ S2.card = k ∧ Disjoint S1 S2 ∧ ∀ r : ℕ, 1 ≤ r → r < k → (∑ x ∈ S1, (x.val : ZMod p) ^ r = ∑ x ∈ S2, (x.val : ZMod p) ^ r)).card