Partitions of the Boolean cube into open Hamming spheres #
When the dimension is 2 ^ r, the Boolean cube partitions into open spheres of radius one.
Each sphere contains the neighbors of its center, and does not contain the center itself.
The centers are the kernel of a parity-check map whose labels enumerate every r-bit string,
including the zero label. The map is the standard Matrix.vecMul, with the coordinate labels as
matrix rows. Flipping the coordinate named by an input's syndrome gives its unique
center. This is [Lupanov1961Formulas, §4, Lemma 3, printed/PDF p. 8 of the English
translation]. The source calls these sets spheres; its definition on p. 7 excludes the center.
Main results #
Cslib.BitString.vecMul_flipOn_singleton: flipping bitiadds its row label.Cslib.BitString.exists_openSpherePartition: a set of2 ^ (2 ^ r) / 2 ^ rcenters whose open spheres partition the cube, expressed as a bijection between center-coordinate pairs and inputs. The multiplicative cardinality identity also coversr = 0.
The kernel centers of a complete parity-check labeling have disjoint open spheres covering the cube. A center and its flipped coordinate are uniquely determined by the resulting point.
Lupanov's open-sphere partition. In dimension 2 ^ r, the cube is partitioned into
open Hamming spheres of radius one. There are exactly 2 ^ (2 ^ r) / 2 ^ r centers. The
bijection records both coverage and disjointness, including the boundary case r = 0.
This is [Lupanov1961Formulas, §4, Lemma 3, printed/PDF p. 8 of the translation].