Construction A: From Linear Codes to Lattices
Lift parity codewords to the plane, derive a basis, and compute the index and packing radius of the resulting lattice.
Construction A takes every integer vector whose coordinates reduce to a codeword modulo a prime . This preimage of a linear code is a full-rank lattice.
Lift a code by reduction modulo p
The reduction homomorphism preserves addition. Its preimage of the subspace is closed under addition and subtraction, and contains , so it has full rank. Its index in the integer lattice equals the number of code cosets. If , this gives , also its covolume in the unscaled convention used here.
Work out the two-bit repetition code
Let over . An integer pair belongs when its coordinates have the same parity. The columns and generate exactly that set. For a point , the basis coefficients are and , both integers under the parity condition.
The basis determinant and the index formula agree, giving covolume 2. The two cosets are represented by and . Replacing the second column by its difference with the first gives . The two new columns are perpendicular and have length , so the lattice is a rotated and scaled square lattice.
Read the packing and modular kernel
The only nonzero integer vectors of length below have exactly one nonzero coordinate equal to 1 or −1. They fail the parity condition. The shortest length is therefore , and the packing radius is . The occupied fraction is , as for the ordinary square lattice.
More generally, if a parity-check matrix defines , then is the integer solution set to . This is the modular-kernel construction in the q-ary lattice guide.
For constructions of packings from codes, see John Leech and Neil Sloane, Sphere Packings and Error-Correcting Codes.