The root lattice and its unit-ball packing
DefinitionSpherePackingBeyond_D4discrete-geometrylatticessphere-packing
The root lattice is the checkerboard lattice , the even-sum sublattice of . Its shortest nonzero vectors have length , so placing unit balls at the points of gives a packing whose distinct centers are at distance . The file defines both and the scaled center set D4centers used in the density computation. These are the instances of the checkerboard lattices tabulated in Conway-Sloane.
Formalization Note. Points of EuclideanSpace ℝ (Fin 4) are indexed as functions; D4centers is written out explicitly as times integer coordinates of even sum, rather than via a scalar action on sets.
Definition code
import Mathlib
import Definitions.Def_TenChallenges_SpherePacking
open scoped BigOperators
namespace SpherePackingBeyond
/-- The `D4` root lattice: integer vectors in `ℝ⁴` with even coordinate sum. -/
def D4 : Set (EuclideanSpace ℝ (Fin 4)) :=
{x | ∃ z : Fin 4 → ℤ, (∀ i, x i = (z i : ℝ)) ∧ Even (∑ i, z i)}
/-- Centers of the unit-ball packing obtained from `D4`, scaled by `√2` so that
distinct centers are at distance at least `2`. -/
def D4centers : Set (EuclideanSpace ℝ (Fin 4)) :=
{x | ∃ z : Fin 4 → ℤ, (∀ i, x i = Real.sqrt 2 * (z i : ℝ)) ∧ Even (∑ i, z i)}
end SpherePackingBeyond
Source
Conway & Sloane, Sphere Packings, Lattices and Groups, 3rd ed., Springer 1999, Table I.1 (pp. xix-xx), https://doi.org/10.1007/978-1-4757-6568-7 (D4, Ch. 4 §7.1)