On Grid Codes
E. J. García-Claro, Ismael Gutiérrez
TL;DR
The paper extends grid-code theory by formulating grid-specific analogues of the Hamming and Gilbert–Varshamov bounds for codes in $\mathfrak{G}=\prod_{i=1}^n[0,m_i-1]$ under the Manhattan metric, using a local distance enumerator $p(t,a)$ to compute $r$-ball sizes and enabling explicit expressions for $\eta_r(\mathfrak{G})$ and $\gamma_r(\mathfrak{G})$. It develops a comprehensive framework relating Manhattan, Hamming, and Lee distances, and provides both theoretical bounds and practical SageMath implementations. In addition, the authors analyze grid codes that are cyclic subgroups of abelian groups, giving a method to compute the minimum Hamming distance and deriving lower bounds on the minimum Manhattan distance via the generator’s support, with illustrative examples. The work offers a cohesive toolkit for bounding code sizes and distances on multidimensional grids, with potential applications in crystallography, porous media modeling, and grid-structured digital data.
Abstract
Generating functions for the size of a $r$-sphere, with respect to the Manhattan distance in an $n$-dimensional grid, are used to provide explicit formulas for the minimum and maximum size of an $r$-ball centered at a point of the grid. This allows us to offer versions of the Hamming and Gilbert-Varshamov bounds for codes in these grids. Relations between the Hamming, Manhattan, and Lee distances defined in an abelian group $G$ are studied. A formula for the minimum Hamming distance of codes that are cyclic subgroups of $G$ is presented. Furthermore, several lower bounds for the minimum Manhattan distance of these codes based on their minimum Hamming and Lee distances are established. Examples illustrating the main results are presented, including several SageMath implementations.
