The ternary Hamming code is the unique perfect single-error-correcting code over of lengthย . Its parity-check matrix has rows and columns, one for each point of the projective plane . The code, the plane, and the block design are three faces of the same combinatorial object.
In this note we show that this object arises canonically from the Hecke algebra at level , the largest class-number-one Heegner prime.
The construction is:
Start from , .
Reduce modulo to obtain , using the integral modular-symbols lattice.
Take the -primary component of : , .
Form the projective plane : this has points.
The natural incidence structure on is a design.
By uniqueness of the projective plane of order , this is .
The kernel of the parity-check map is the ternary Hamming code .
No choice is made at any step. Stepย (iii) is canonical because the -primary component is determined by the Hecke action, not by a basis. Stepย (vi) is forced by uniqueness: there is exactly one design up to isomorphism .
The Hecke module at level canonically produces the projective plane and thereby the ternary Hamming code (Theoremย [thm:main]).
The Heegner syndrome algebra acts on this plane through , with orbit structure (Theoremย [thm:action]).
A census of prime levels finds seventeen split-nodal and thirteen non-split-nodal -adic Hecke singularities (Propositionย [prop:census]). Among the class-number-one primes, is the unique split-nodal level. Among all split-nodal levels , only three (, , ) have and carry the Hamming geometry (Corollaryย [cor:pg2f3]).
Let be the integral modular-symbols lattice, and set .
The operator on has characteristic polynomial The three factors are pairwise coprime, giving a Hecke-stable decomposition where has dimension , has dimension , and has dimension .
Proof. Direct computation in SageMath; coprimality is verified by and similarly for the other pairs in .ย โป
The Hecke projective plane at level is Since , the set has points.
A line in is the projectivization of a -dimensional subspace of .
The incidence structure , where is the set of lines, satisfies:
there are points and lines;
each line contains exactly points;
each point lies on exactly lines;
any two distinct points determine exactly one line.
This is a balanced incomplete block design. By the uniqueness theorem for projective planes of orderย ,
Proof. Properties (a)โ(d) are the standard properties of over any field with elements. Since is a -dimensional -vector space, is abstractly isomorphic to , and the incidence of points and lines is that of the standard projective plane. The design is unique up to isomorphism , so the isomorphism class of the incidence structure is independent of any basis choice.ย โป
Let be the free module on the points. The parity-check map sending each basis vector to a nonzero representative of the corresponding projective point has , and is a ternary code. This is the ternary Hamming code, determined up to -equivalence (i.e., column permutation and scaling).
Proof. After choosing a basis of , the projective points give distinct nonzero column vectors in , forming a standard Hamming parity-check matrix . The resulting code has parameters . Changing the basis of acts by on all columns simultaneously and therefore preserves the code up to equivalence.ย โป
The canonicity chain is: Each arrow is either functorial (mod- reduction, primary decomposition, projectivization, parity-check kernel) or forced by a uniqueness theorem (the design is unique).
The seven Heegner operators for act on through the syndrome algebra with , (see ). The invertible elements of act on by projectivization.
The projective unit group acts on with orbit decomposition The cycle types of the invertible Heegner operators are:
| Operator | Projective order | Cycle type on points |
|---|---|---|
These four operators generate the full projective unit group. The two fixed points are the eigenspaces of the idempotent .
Proof. The unit group computation follows from the algebra structure: , so . The cycle types and orbit sizes are computed by explicit matrix action on the points of , using the restricted Hecke matrices from the appendix of . The two fixed points correspond to the -eigenspace (where acts as ) and the kernel of restricted to the pair block.ย โป
The group embeds in , which is the full automorphism group of . Since , the Hecke symmetry is a small but arithmetically distinguished subgroup. The orbit decomposition is a partition of the code positions into Hecke-equivalent classes.
The classical role of the syndrome in coding theory is error detection: given a received word , the syndrome is . If , no error is detected. If , the syndrome identifies the error position as the projective point .
The Heegner syndrome algebra acts on the syndrome space . In particular:
The idempotent splits the syndrome into a semisimple component (the -eigenspace) and a pair component (the -subspace).
The nilpotent acts within the pair component. It maps one syndrome to a neighboring syndrome within the nilpotent fiber, without changing the semisimple part.
The collision means that the syndromes of these two Heegner operators are indistinguishable at the residue level. They separate only after -adic lifting.
Proof. Direct from the algebra relations , , and the explicit operator images in Theoremย 4.1 of .ย โป
The name โsyndrome algebraโ is thus doubly justified: it is both the residue algebra of the singular -adic Hecke node and the algebra that acts on the syndrome space of the canonically associated Hamming code. The two meanings coincide because the -dimensional space plays both roles simultaneously: it is the mod- Hecke summand and the syndrome space of the code.
We apply the same method โ mod- primary decomposition of , identification of -dimensional summands, and -adic lifting โ to all prime levels .
Among the prime levels (respectively prime levels ):
(resp.ย ) levels have a smooth -adic Hecke algebra;
(resp.ย ) levels have a cuspidal singularity;
(resp.ย ) levels have a split-nodal singularity;
(resp.ย ) levels have a non-split-nodal singularity.
The split-nodal levels up to and their syndrome dimensions are:
| 127 | 163 | 199 | 307 | 337 | 449 | 487 | 499 | ||
|---|---|---|---|---|---|---|---|---|---|
| 3 | 3 | 4 | 2 | 3 | 5 | 7 | 6 |
Continuing to : .
The non-split-nodal levels up to are: .
Proof. Systematic computation in SageMath. For each prime , we compute on , extract , and classify the -adic local factor by testing for a mod- idempotent and its -lift. Full data and scripts are available in the accompanying repository.ย โป
The canonical Hamming geometry arises exactly when . Among the split-nodal levels , this occurs at . Of these, only is a class-number-one Heegner prime.
Among the four class-number-one prime levels , the dimensions of are respectively. Level is the unique class-number-one prime with a split-nodal singularity, a -dimensional syndrome summand, and a canonical Hamming geometry.
Higher-dimensional syndrome summands () produce higher-order projective geometries: has points (), has points (), and so on. The Hamming codes at these levels have longer block lengths and different parameters. The ternary Hamming code is specific to .
The classification problem โ characterize which prime levels produce singular -adic Hecke factors, determine their local type and syndrome dimension โ is a natural next step. The data suggest that split-nodal singularities become more frequent and higher-dimensional as grows. We leave the asymptotic analysis to future work.
The singular -adic Hecke factor at level produces a canonical chain of objects: The syndrome algebra is simultaneously:
the residue shadow of the -adic node ;
the algebra acting on the syndrome space of the Hamming code;
the source of a symmetry of the Hamming plane with orbits .
Among all prime levels , seventeen exhibit split-nodal -adic singularities. Of these, only three (, , ) have and therefore carry the Hamming geometry. Of those three, only is a class-number-one Heegner prime with the full seven-operator syndrome algebra.
The Hamming code was not constructed here. It was found.
Computational verification. All results were computed in SageMath. The census data and verification scripts are available in the accompanying repository.
99
M.ย Hall Jr., Uniqueness of the projective plane with points, Proc.ย Amer.ย Math.ย Soc.ย 4 (1953), 912โ916. Note: The uniqueness of the projective plane of order ( points) is classical; see also R.ย H.ย Bruck and H.ย J.ย Ryser, The nonexistence of certain finite projective planes, Canad.ย J.ย Math.ย 1 (1949), 88โ93.
J.ย H.ย van Lint, Introduction to Coding Theory, third ed., Springer, 1999.
R.ย A.ย Hoekstra, The Heegner syndrome algebra on the canonical mod- Hecke quotient at levelย , preprint, 2026.
R.ย A.ย Hoekstra, The singular -adic Hecke node at levelย : presentation, ideal theory, and module classification, preprint, 2026.
The Sage Developers, SageMath, the Sage Mathematics Software System, https://www.sagemath.org.