First-Order Generalized Reed–Muller Codes
- First-Order Generalized Reed–Muller Codes are q-ary linear codes defined by evaluating affine functions on F_q^m, with parameters including length q^m, dimension m+1, and minimum distance q^(m-1)(q-1).
- Their algebraic structure supports multiple formulations—affine-invariant, cyclic, and modular-algebra—which enable explicit parameter determination and tailored decoding strategies.
- These codes exhibit distinctive design and permutation decoding properties, serving as a benchmark for duality, covering radius analysis, and information-set constructions in coding theory.
First-order generalized Reed–Muller codes are the -ary linear codes obtained by evaluating all affine functions on . In one standard notation,
$\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$
while equivalent formulations write the same family as or , depending on whether the emphasis is on evaluation, affine-invariant, cyclic, or modular-algebra realizations. In the full-length form the code has length , dimension , and minimum distance ; in the binary specialization these become , and the punctured or primitive version of length 0 is frequently used in cyclic and affine-invariant treatments (Abdon et al., 2015, Bernal, 2024, Andriatahiny, 2016).
1. Definition, parameters, and notation
Let 1. A first-order generalized Reed–Muller codeword is the evaluation vector of an affine function
2
over all 3. The resulting code is the set of all affine maps on 4, and its most basic parameters are therefore determined by the 5 linear coefficients together with one constant coefficient: the dimension is 6, the length is 7, and the minimum distance is 8 (Abdon et al., 2015, Andriatahiny, 2016).
Several notational conventions coexist. The full evaluation code is commonly written 9. In affine-invariant and cyclic formulations, the primitive version is written $\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$0 and has length $\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$1. In that setting the code is described as an affine-invariant code in $\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$2, where $\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$3 is the additive group of $\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$4, with defining set
$\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$5
dimension $\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$6, minimum distance $\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$7, and dual
$\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$8
This punctured/primitive description is the one used in recent work on information sets and permutation decoding (Bernal et al., 15 Sep 2025).
The binary specialization is exceptionally rigid. The first-order Reed–Muller code $\mathrm{RM}_q(1,m)=\{\Eval(f): f\in \mathbb{F}_q[x_1,\dots,x_m],\ \deg(f)\le 1\},$9 is a binary linear 0 code, and any binary linear code with these parameters is equivalent to the first-order Reed–Muller code. The punctured code is the binary Simplex code, its dual is the Hamming code, and the full code has weight distribution consisting of one all-zero codeword, one all-one codeword, and 1 codewords of weight 2 (0901.2062).
2. Algebraic realizations and structural descriptions
A central feature of first-order generalized Reed–Muller codes is that they admit several mutually compatible algebraic descriptions. In the affine-invariant viewpoint, the code is determined by its defining set and is naturally related to punctured cyclic codes and multidimensional abelian codes. For first-order codes the defining set structure simplifies substantially: in recent constructions of information sets, the first-order case is singled out precisely because the defining set is governed by indices of 3-weight less than 4, and this permits direct constructions in terms of the basic parameters 5, 6, and factorizations of 7 (Bernal, 2024, Bernal et al., 2024).
A second formulation places generalized Reed–Muller codes inside a modular algebra
8
whose radical 9 is generated by the classes 0. Over a prime field 1, the classical Berman–Charpin identification holds: 2 Hence, in the prime-field case the first-order code satisfies
3
Over non-prime fields 4 with 5, however, the identification with radical powers fails in general: only
6
remain valid, and 7 in general. This distinction is one of the principal algebraic differences between prime-field and non-prime-field first-order generalized Reed–Muller codes (Andriatahiny, 2016).
A closely related group-algebra formulation uses
8
where 9 is the additive group of a Galois ring. In this setting the first-order code 0 is the image, under a linear map 1, of the ideal generated by
2
and a basis is given by
3
The same framework also provides the Jennings monomials
4
which organize the radical powers and clarify why the first-order code generally fails to coincide with the full radical outside the prime-field case (Andriatahiny et al., 2016).
3. Enumerators, Jacobi polynomials, and design-theoretic properties
The shells
5
of first-order generalized Reed–Muller codes have been studied through refined enumerator polynomials. For a code 6 of length 7 and a subset 8, the Jacobi polynomial is
9
where 0 count zero and nonzero entries on 1, and 2 count zero and nonzero entries on the complement of 3. For linear codes there is a MacWilliams-type relation
4
and a shell 5 is a combinatorial 6-design if and only if the coefficient of 7 in 8 is independent of 9 with 0 (Yamaguchi, 2023).
For first-order 1-ary generalized Reed–Muller codes, explicit Jacobi polynomials have been obtained for 2. The principal consequence is a sharp design-theoretic boundary. The shells are combinatorial 3-designs for any weight, but if 4 and 5, then for every 6 the shell 7 is not a combinatorial 8-design. The same work also identifies refined nonuniform design behavior: for the shell of weight 9, the shell is a combinatorial 0-design and similarly a combinatorial 1-design, but not a uniform 2- or 3-design (Yamaguchi, 2023).
In the binary case, Jacobi polynomials and harmonic weight enumerators have been computed explicitly for 4 and for its dual, the extended Hamming code 5. The harmonic weight enumerator associated with a harmonic function 6 of degree 7 is
8
and satisfies a MacWilliams relation of the form
9
These tools recover the previously known fact that the shells of 0 support 1-designs via the Assmus–Mattson theorem, and they prove that no shell of 2 or of 3 supports a combinatorial 4-design (Miezaki et al., 2023).
4. Distance to affine codewords and covering radius
Because first-order generalized Reed–Muller codes are precisely the affine functions, distance computation to the code can be organized as a simultaneous distance-to-affinity problem. For a function 5, define
6
so that
7
The transform-based method developed for this problem works in the group algebra 8: with 9, the transform
00
has coefficients exactly equal to the numbers 01. The double transform yields a linear system with 02 equations in the 03 unknowns 04, augmented by the normalization equations
05
The resulting Cramer system has a unique solution, and therefore all Hamming distances from 06 to all codewords of 07 can be computed simultaneously (Abdon et al., 2015).
The covering radius problem has also been analyzed directly. Writing 08 for the covering radius of the first-order generalized Reed–Muller code and
09
one has the explicit formula
10
The stated general bounds are
11
and when 12 is even,
13
For 14 the paper further gives 15 and 16, obtained through explicit computation and recursive arguments (Leducq, 2011).
5. Information sets and permutation decoding
First-order generalized Reed–Muller codes occupy a particularly tractable position among affine-invariant codes because recent work constructs information sets directly from the defining set. A typical setup factors
17
and fixes an isomorphism 18. One construction defines
19
and then
20
which is an information set for 21. A related construction starts from a set of check positions for the dual code and obtains the information set as 22. For first-order codes these constructions are described as valid for any 23 (Bernal et al., 15 Sep 2025, Bernal, 2024).
These information sets support strengthened permutation-decoding algorithms. In the binary case, a variation of classical permutation decoding is formulated for affine-invariant codes and applied to first-order Reed–Muller codes through 24-PD-like sets. If 25 is a suitable information set and 26 an 27-PD-like set, Algorithm II corrects up to 28 errors. For first-order binary Reed–Muller codes, the group generated by the automorphism 29 forms the relevant PD-like set, and the number of correctable errors is
30
The paper reports that this improves considerably the number of errors that can be corrected in comparison with known results (Bernal et al., 2023).
The q-ary extension studies the same idea for first-order generalized Reed–Muller codes. With the information set above and the translation group generated by 31, the punctured code 32 admits an 33-PD-like set with
34
The stated comparison bound for previous translation-based permutation decoding is
35
and the newer construction achieves 36 for many parameter choices. The same paper also analyzes when a smaller subgroup generated by 37 suffices probabilistically, with success probability
38
where 39 is the set of 40-subsets whose second-coordinate projection does not cover all of 41 (Bernal et al., 15 Sep 2025).
6. Associated algebraic invariants and exceptional features
First-order generalized Reed–Muller codes also appear as a distinguished case in the commutative-algebraic study of code invariants. To a linear code 42 one associates a simplicial complex and its Stanley–Reisner ring
43
The minimal graded free resolution of 44 is called pure when, in each homological degree, all nonzero graded Betti numbers occur in a single shift. For generalized Reed–Muller codes 45, the complete characterization is that the resolution is pure if and only if 46, 47, 48, 49, or 50. Thus the first-order case 51 is uniformly pure for all 52 and all 53, and its shifts are the generalized Hamming weights of the code (Ghorpade et al., 2021).
The first-order level is therefore exceptional in several independent senses. It is the point at which the code remains describable by affine functions, retains dimension 54, supports direct information-set constructions from the defining set, admits explicit simultaneous distance computation to all codewords, and yields strong negative design-theoretic results that are sharp at low 55: 56-designs do occur in the 57-ary setting, 58-designs do not for 59, and in the binary setting 60-designs occur while 61-designs do not (Yamaguchi, 2023, Miezaki et al., 2023). Over prime fields it also coincides with a radical power of the modular algebra, whereas over non-prime fields that identification fails in general, which marks a fundamental algebraic boundary inside the generalized Reed–Muller hierarchy (Andriatahiny, 2016).
Within the broader Reed–Muller family, the first-order generalized code is thus both the simplest nontrivial member and a structurally singular one: its geometry is controlled by affine hyperplanes, its algebra is unusually explicit, and a large part of the modern literature uses it as the baseline case for duality, design theory, information-set constructions, covering-radius analysis, and permutation decoding.