Papers
Topics
Authors
Recent
Search
2000 character limit reached

First-Order Generalized Reed–Muller Codes

Updated 11 July 2026
  • 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 qq-ary linear codes obtained by evaluating all affine functions on Fqm\mathbb{F}_q^m. 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 Rq(1,m)R_q(1,m) or C1(m,q)C_1(m,q), depending on whether the emphasis is on evaluation, affine-invariant, cyclic, or modular-algebra realizations. In the full-length form the code has length qmq^m, dimension m+1m+1, and minimum distance qm1(q1)q^{m-1}(q-1); in the binary specialization RM(1,m)\mathrm{RM}(1,m) these become [2m,1+m,2m1][2^m,1+m,2^{m-1}], and the punctured or primitive version of length Fqm\mathbb{F}_q^m0 is frequently used in cyclic and affine-invariant treatments (Abdon et al., 2015, Bernal, 2024, Andriatahiny, 2016).

1. Definition, parameters, and notation

Let Fqm\mathbb{F}_q^m1. A first-order generalized Reed–Muller codeword is the evaluation vector of an affine function

Fqm\mathbb{F}_q^m2

over all Fqm\mathbb{F}_q^m3. The resulting code is the set of all affine maps on Fqm\mathbb{F}_q^m4, and its most basic parameters are therefore determined by the Fqm\mathbb{F}_q^m5 linear coefficients together with one constant coefficient: the dimension is Fqm\mathbb{F}_q^m6, the length is Fqm\mathbb{F}_q^m7, and the minimum distance is Fqm\mathbb{F}_q^m8 (Abdon et al., 2015, Andriatahiny, 2016).

Several notational conventions coexist. The full evaluation code is commonly written Fqm\mathbb{F}_q^m9. 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 Rq(1,m)R_q(1,m)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 Rq(1,m)R_q(1,m)1 codewords of weight Rq(1,m)R_q(1,m)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 Rq(1,m)R_q(1,m)3-weight less than Rq(1,m)R_q(1,m)4, and this permits direct constructions in terms of the basic parameters Rq(1,m)R_q(1,m)5, Rq(1,m)R_q(1,m)6, and factorizations of Rq(1,m)R_q(1,m)7 (Bernal, 2024, Bernal et al., 2024).

A second formulation places generalized Reed–Muller codes inside a modular algebra

Rq(1,m)R_q(1,m)8

whose radical Rq(1,m)R_q(1,m)9 is generated by the classes C1(m,q)C_1(m,q)0. Over a prime field C1(m,q)C_1(m,q)1, the classical Berman–Charpin identification holds: C1(m,q)C_1(m,q)2 Hence, in the prime-field case the first-order code satisfies

C1(m,q)C_1(m,q)3

Over non-prime fields C1(m,q)C_1(m,q)4 with C1(m,q)C_1(m,q)5, however, the identification with radical powers fails in general: only

C1(m,q)C_1(m,q)6

remain valid, and C1(m,q)C_1(m,q)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

C1(m,q)C_1(m,q)8

where C1(m,q)C_1(m,q)9 is the additive group of a Galois ring. In this setting the first-order code qmq^m0 is the image, under a linear map qmq^m1, of the ideal generated by

qmq^m2

and a basis is given by

qmq^m3

The same framework also provides the Jennings monomials

qmq^m4

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

qmq^m5

of first-order generalized Reed–Muller codes have been studied through refined enumerator polynomials. For a code qmq^m6 of length qmq^m7 and a subset qmq^m8, the Jacobi polynomial is

qmq^m9

where m+1m+10 count zero and nonzero entries on m+1m+11, and m+1m+12 count zero and nonzero entries on the complement of m+1m+13. For linear codes there is a MacWilliams-type relation

m+1m+14

and a shell m+1m+15 is a combinatorial m+1m+16-design if and only if the coefficient of m+1m+17 in m+1m+18 is independent of m+1m+19 with qm1(q1)q^{m-1}(q-1)0 (Yamaguchi, 2023).

For first-order qm1(q1)q^{m-1}(q-1)1-ary generalized Reed–Muller codes, explicit Jacobi polynomials have been obtained for qm1(q1)q^{m-1}(q-1)2. The principal consequence is a sharp design-theoretic boundary. The shells are combinatorial qm1(q1)q^{m-1}(q-1)3-designs for any weight, but if qm1(q1)q^{m-1}(q-1)4 and qm1(q1)q^{m-1}(q-1)5, then for every qm1(q1)q^{m-1}(q-1)6 the shell qm1(q1)q^{m-1}(q-1)7 is not a combinatorial qm1(q1)q^{m-1}(q-1)8-design. The same work also identifies refined nonuniform design behavior: for the shell of weight qm1(q1)q^{m-1}(q-1)9, the shell is a combinatorial RM(1,m)\mathrm{RM}(1,m)0-design and similarly a combinatorial RM(1,m)\mathrm{RM}(1,m)1-design, but not a uniform RM(1,m)\mathrm{RM}(1,m)2- or RM(1,m)\mathrm{RM}(1,m)3-design (Yamaguchi, 2023).

In the binary case, Jacobi polynomials and harmonic weight enumerators have been computed explicitly for RM(1,m)\mathrm{RM}(1,m)4 and for its dual, the extended Hamming code RM(1,m)\mathrm{RM}(1,m)5. The harmonic weight enumerator associated with a harmonic function RM(1,m)\mathrm{RM}(1,m)6 of degree RM(1,m)\mathrm{RM}(1,m)7 is

RM(1,m)\mathrm{RM}(1,m)8

and satisfies a MacWilliams relation of the form

RM(1,m)\mathrm{RM}(1,m)9

These tools recover the previously known fact that the shells of [2m,1+m,2m1][2^m,1+m,2^{m-1}]0 support [2m,1+m,2m1][2^m,1+m,2^{m-1}]1-designs via the Assmus–Mattson theorem, and they prove that no shell of [2m,1+m,2m1][2^m,1+m,2^{m-1}]2 or of [2m,1+m,2m1][2^m,1+m,2^{m-1}]3 supports a combinatorial [2m,1+m,2m1][2^m,1+m,2^{m-1}]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 [2m,1+m,2m1][2^m,1+m,2^{m-1}]5, define

[2m,1+m,2m1][2^m,1+m,2^{m-1}]6

so that

[2m,1+m,2m1][2^m,1+m,2^{m-1}]7

The transform-based method developed for this problem works in the group algebra [2m,1+m,2m1][2^m,1+m,2^{m-1}]8: with [2m,1+m,2m1][2^m,1+m,2^{m-1}]9, the transform

Fqm\mathbb{F}_q^m00

has coefficients exactly equal to the numbers Fqm\mathbb{F}_q^m01. The double transform yields a linear system with Fqm\mathbb{F}_q^m02 equations in the Fqm\mathbb{F}_q^m03 unknowns Fqm\mathbb{F}_q^m04, augmented by the normalization equations

Fqm\mathbb{F}_q^m05

The resulting Cramer system has a unique solution, and therefore all Hamming distances from Fqm\mathbb{F}_q^m06 to all codewords of Fqm\mathbb{F}_q^m07 can be computed simultaneously (Abdon et al., 2015).

The covering radius problem has also been analyzed directly. Writing Fqm\mathbb{F}_q^m08 for the covering radius of the first-order generalized Reed–Muller code and

Fqm\mathbb{F}_q^m09

one has the explicit formula

Fqm\mathbb{F}_q^m10

The stated general bounds are

Fqm\mathbb{F}_q^m11

and when Fqm\mathbb{F}_q^m12 is even,

Fqm\mathbb{F}_q^m13

For Fqm\mathbb{F}_q^m14 the paper further gives Fqm\mathbb{F}_q^m15 and Fqm\mathbb{F}_q^m16, 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

Fqm\mathbb{F}_q^m17

and fixes an isomorphism Fqm\mathbb{F}_q^m18. One construction defines

Fqm\mathbb{F}_q^m19

and then

Fqm\mathbb{F}_q^m20

which is an information set for Fqm\mathbb{F}_q^m21. A related construction starts from a set of check positions for the dual code and obtains the information set as Fqm\mathbb{F}_q^m22. For first-order codes these constructions are described as valid for any Fqm\mathbb{F}_q^m23 (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 Fqm\mathbb{F}_q^m24-PD-like sets. If Fqm\mathbb{F}_q^m25 is a suitable information set and Fqm\mathbb{F}_q^m26 an Fqm\mathbb{F}_q^m27-PD-like set, Algorithm II corrects up to Fqm\mathbb{F}_q^m28 errors. For first-order binary Reed–Muller codes, the group generated by the automorphism Fqm\mathbb{F}_q^m29 forms the relevant PD-like set, and the number of correctable errors is

Fqm\mathbb{F}_q^m30

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 Fqm\mathbb{F}_q^m31, the punctured code Fqm\mathbb{F}_q^m32 admits an Fqm\mathbb{F}_q^m33-PD-like set with

Fqm\mathbb{F}_q^m34

The stated comparison bound for previous translation-based permutation decoding is

Fqm\mathbb{F}_q^m35

and the newer construction achieves Fqm\mathbb{F}_q^m36 for many parameter choices. The same paper also analyzes when a smaller subgroup generated by Fqm\mathbb{F}_q^m37 suffices probabilistically, with success probability

Fqm\mathbb{F}_q^m38

where Fqm\mathbb{F}_q^m39 is the set of Fqm\mathbb{F}_q^m40-subsets whose second-coordinate projection does not cover all of Fqm\mathbb{F}_q^m41 (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 Fqm\mathbb{F}_q^m42 one associates a simplicial complex and its Stanley–Reisner ring

Fqm\mathbb{F}_q^m43

The minimal graded free resolution of Fqm\mathbb{F}_q^m44 is called pure when, in each homological degree, all nonzero graded Betti numbers occur in a single shift. For generalized Reed–Muller codes Fqm\mathbb{F}_q^m45, the complete characterization is that the resolution is pure if and only if Fqm\mathbb{F}_q^m46, Fqm\mathbb{F}_q^m47, Fqm\mathbb{F}_q^m48, Fqm\mathbb{F}_q^m49, or Fqm\mathbb{F}_q^m50. Thus the first-order case Fqm\mathbb{F}_q^m51 is uniformly pure for all Fqm\mathbb{F}_q^m52 and all Fqm\mathbb{F}_q^m53, 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 Fqm\mathbb{F}_q^m54, 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 Fqm\mathbb{F}_q^m55: Fqm\mathbb{F}_q^m56-designs do occur in the Fqm\mathbb{F}_q^m57-ary setting, Fqm\mathbb{F}_q^m58-designs do not for Fqm\mathbb{F}_q^m59, and in the binary setting Fqm\mathbb{F}_q^m60-designs occur while Fqm\mathbb{F}_q^m61-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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to First-Order Generalized Reed-Muller Codes.