Z4-Linearity of Binary Codes¶
A binary code represented as the distance-preserving Gray image of a linear code over the integers modulo four.
Core Idea¶
Some binary error-correcting codes can be described as the images of linear codes over the ring \(\mathbb Z_4=\{0,1,2,3\}\) under a coordinatewise Gray map. The ring code is closed under addition modulo four and multiplication by ring elements. Its binary image need not be a linear subspace over \(\mathbb F_2\), even though its distances and weight distribution can be studied through the \(\mathbb Z_4\) representation.[1]
This construction reveals structure in families including Kerdock and modified Preparata-type codes. It does not say that every nonlinear binary code has such a representation, or that every image is nonlinear.
How would you explain it like I'm…
The Four-Number Clock Trick
Hidden Order in Binary Codes
Gray Images of Z4-Linear Codes
The Gray Map and Distance¶
Use the map
The Lee weights of $0,1,2,3$ are respectively $0,1,2,1$. Lee distance is the Lee weight of the coordinatewise difference modulo four; binary Hamming distance counts differing bits. Extending the map coordinate by coordinate sends \(\mathbb Z_4^n\) to binary words of length $2n$ and preserves distances: Lee distance before mapping equals Hamming distance afterward.[1]
Distance preservation is not preservation of addition. For example, \(\phi(1)+\phi(1)=00\) under bitwise addition, whereas \(\phi(1+1)=\phi(2)=11\). A linear code over \(\mathbb Z_4\) is therefore not automatically a binary linear code. Some images are binary linear, and others are not. This Gray map is a specific symbol map; a Gray-code ordering is a related one-bit-adjacency idea, not the same object as an error-correcting code.
Preparata and Kerdock Families¶
Preparata's original 1968 construction gives nonlinear double-error-correcting binary codes by adjoining selected cosets to a linear kernel.[2] This classical construction must be distinguished from a later Preparata-like family obtained as the Gray image of a linear \(\mathbb Z_4\) code. The modified family has the same parameters and weight distribution as the classical family in the comparison, but the constructions are not generally equivalent; their coincidence in a small special case must not be generalized.[3][1]
In the \(\mathbb Z_4\) construction, the code used for the Kerdock family and the code used for the modified Preparata family are dual under the ring inner product. Their binary images have formally dual weight distributions: the MacWilliams transform connects the enumerators. This is a statement about enumerators of images; it does not assert that a nonlinear binary image has an ordinary binary linear orthogonal dual equal to the other image.[1]
At binary length 16, the Kerdock and Preparata constructions meet in the Nordstrom–Robinson code. It has 256 words and minimum Hamming distance six, and is the Gray image of the self-dual length-eight \(\mathbb Z_4\) octacode.[1]
Use and Limits¶
The ring representation can give compact descriptions and decoding methods that are less apparent in a nonlinear binary presentation. Hammons and colleagues also treat related Goethals and Delsarte–Goethals families, with the modifications specified in their constructions.[1]
Some prominent families have more codewords than comparable binary linear codes known to the authors. That comparison is a property of particular families and parameter ranges, not a guarantee for every \(\mathbb Z_4\)-linear code. Minimum distance, code size, ring duality and equivalence of binary codes must each be checked for the specific construction.
Relationships to Other Abstractions¶
Current abstraction Z4-Linearity of Binary Codes Domain-specific
Parents (1) — outgoing typed relations
-
Z4-Linearity of Binary Codes presupposes Linearity Prime
The underlying Z4 submodule has a linear inclusion into the ambient module.
Hierarchy path (1) — routes to 1 parentless root
- Z4-Linearity of Binary Codes → presupposes Linearity
Neighborhood in Abstraction Space¶
Z4-Linearity of Binary Codes sits in a sparse region of the domain-specific corpus (88th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.
Family — Unclustered & Miscellaneous (3155 abstractions)
Nearest neighbors
- Ring Homomorphism — 0.82
- Jacobi Method — 0.79
- Parity-Check Matrix — 0.79
- Loop (Algebra) — 0.79
- Biquadratic field — 0.78
Computed from structural-signature embeddings · 2026-11-14
References¶
[1] A. Roger Hammons Jr., P. Vijay Kumar, A. R. Calderbank, N. J. A. Sloane and Patrick Solé, “The Z₄-Linearity of Kerdock, Preparata, Goethals and Related Codes”, IEEE Transactions on Information Theory 40 (1994), 301–319; authors' related manuscript. registry ↩a ↩b ↩c ↩d ↩e ↩f
[2] Franco P. Preparata, “A Class of Optimum Nonlinear Double-Error-Correcting Codes”, Information and Control 13 (1968), 378–400, publisher abstract. registry ↩
[3] William M. Kantor and Michael E. Williams, “Symplectic Semifield Planes and Z₄-Linear Codes”, Transactions of the American Mathematical Society 356 (2004), 895–938; author-hosted text. registry ↩