math.CO — Combinatorics
The Coloured Sand Theorem: the p-part of the sandpile group of the Hamming graph, for every prime p dividing q and every dimension d
Let be the Hamming graph and its sandpile group (critical group, Jacobian). For primes its -part was determined by Jacobson, Niedermaier and Reiner in 2003, who wrote that the other primes appear "to be difficult, due to bad behavior of its -primary structure". We determine the Sylow -subgroup of for every prime dividing and every , by an explicit rule. After the splitting of Jacobson, Niedermaier and Reiner, the group is a sum of cokernels of operators on the Boolean lattice (Theorem A). These split over the indecomposable tilting modules of in characteristic that occur in a tensor power of the natural module. The contribution of consists of explicit small cyclic factors and of large ones, where is the set of positions of the nonzero base- digits of below the leading one. The large ones are obtained by pooling explicit integers, built from binomial valuations and base- carries, into a non-increasing sequence (Theorems I and J). The proof writes down explicit -lattices for all tilting modules of , one move per base- digit; it reduces each contribution to the Smith form of an explicit matrix, and computes that form as in our proof for the hypercube (The Dancing Sand Theorem), the case . We also give closed formulas that need no pooling: for with ballot numbers (B), for the exponent with every prime (C), and for the number of cyclic factors (D). This proves Conjecture I of version 3 of this paper. Every result of the paper, Theorems A–J, is checked in Lean 4 with Mathlib, for every prime, and the Lean project was rebuilt from its sources on GitHub's machines, on Mathlib's published build. This work has not been refereed by a human expert.