# Reed–Muller code

Reed–Muller codes are error-correcting codes that are used in wireless communications applications, particularly in deep-space communication. Moreover, the proposed 5G standard relies on the closely related polar codes for error correction in the control channel. Due to their favorable theoretical and mathematical properties, Reed–Muller codes have also been extensively studied in theoretical computer science.
Reed–Muller codes generalize the Reed–Solomon codes and the Walsh–Hadamard code. Reed–Muller codes are linear block codes that are locally testable, locally decodable, and list decodable. These properties make them particularly useful in the design of probabilistically checkable proofs.
Traditional Reed–Muller codes are binary codes, which means that messages and codewords are binary strings. When r and m are integers with 0 ≤ r ≤ m, the Reed–Muller code with parameters r and m is denoted as RM(r, m). When asked to encode a message consisting of k bits, where $\textstyle k=\sum _{i=0}^{r}{\binom {m}{i}}$ holds, the RM(r, m) code produces a codeword consisting of 2$^m$ bits.
Reed–Muller codes are named after David E. Muller, who discovered the codes in 1954, and Irving S. Reed, who proposed the first efficient decoding algorithm.

## Description using low-degree polynomials

Reed–Muller codes can be described in several different (but ultimately equivalent) ways. The description that is based on low-degree polynomials is quite elegant and particularly suited for their application as locally testable codes and locally decodable codes.

### Encoder

A block code can have one or more encoding functions C:{0, 1}$^k$→{0, 1}$^n${\textstyle C:\{0, 1\}^{k}\to \{0, 1\}^{n}} that map messages x∈{0, 1}$^k${\textstyle x\in \{0, 1\}^{k}} to codewords C(x)∈{0, 1}$^n${\textstyle C(x)\in \{0, 1\}^{n}}. The Reed–Muller code RM(r, m) has message length $\textstyle k=\sum _{i=0}^{r}{\binom {m}{i}}$ and block length $\textstyle n=2^{m}$. One way to define an encoding for this code is based on the evaluation of multilinear polynomials with m variables and total degree at most r. Every multilinear polynomial over the finite field with two elements can be written as follows: $p_{c}(Z_{1},\dots ,Z_{m})=\sum _{\underset {|S|\leq r}{S\subseteq \{1,\dots ,m\}}}c_{S}\cdot \prod _{i\in S}Z_{i}\,.$ The Z$_1$, …, Z$_m${\textstyle Z_{1}, \dots , Z_{m}} are the variables of the polynomial, and the values c$_S$∈{0, 1}{\textstyle c_{S}\in \{0, 1\}} are the coefficients of the polynomial. Note that there are exactly k=∑$_{i=0}$$^r$(m/i){\textstyle k=\sum _{i=0}^{r}{\binom {m}{i}}} coefficients. With this in mind, an input message consists of k{\textstyle k} values x∈{0, 1}$^k${\textstyle x\in \{0, 1\}^{k}} which are used as these coefficients. In this way, each message x{\textstyle x} gives rise to a unique polynomial p$_x${\textstyle p_{x}} in m variables. To construct the codeword C(x){\textstyle C(x)}, the encoder evaluates the polynomial p$_x${\textstyle p_{x}} at all points Z=(Z$_1$, …, Z$_m$)∈{0, 1}$^m${\textstyle Z=(Z_{1}, \ldots , Z_{m})\in \{0, 1\}^{m}}, where the polynomial is taken with multiplication and addition mod 2 (p$_x$(Z)mod2)∈{0, 1}{\textstyle (p_{x}(Z){\bmod {2}})\in \{0, 1\}}. That is, the encoding function is defined via$C(x)=\left(p_{x}(Z){\bmod {2}}\right)_{Z\in \{0,1\}^{m}}\,.$
The fact that the codeword $C(x)$ suffices to uniquely reconstruct $x$ follows from Lagrange interpolation, which states that the coefficients of a polynomial are uniquely determined when sufficiently many evaluation points are given. Since $C(0)=0$ and $C(x+y)=C(x)+C(y){\bmod {2}}$ holds for all messages $x,y\in \{0,1\}^{k}$, the function $C$ is a linear map. Thus the Reed–Muller code is a linear code.

#### Example

For the code RM(2, 4), the parameters are as follows:
r=2m=4k=(4/2)+(4/1)+(4/0)=6+4+1=11n=2$^m$=16{\textstyle {\begin{aligned}r&=2\\m&=4\\k&=\textstyle {\binom {4}{2}}+{\binom {4}{1}}+{\binom {4}{0}}=6+4+1=11\\n&=2^{m}=16\\\end{aligned}}}
Let C:{0, 1}$^{11}$→{0, 1}$^{16}${\textstyle C:\{0, 1\}^{11}\to \{0, 1\}^{16}} be the encoding function just defined. To encode the string x = 1 1010 010101 of length 11, the encoder first constructs the polynomial p$_x${\textstyle p_{x}} in 4 variables:${\begin{aligned}p_{x}(Z_{1},Z_{2},Z_{3},Z_{4})&=1+(1\cdot Z_{1}+0\cdot Z_{2}+1\cdot Z_{3}+0\cdot Z_{4})+(0\cdot Z_{1}Z_{2}+1\cdot Z_{1}Z_{3}+0\cdot Z_{1}Z_{4}+1\cdot Z_{2}Z_{3}+0\cdot Z_{2}Z_{4}+1\cdot Z_{3}Z_{4})\\&=1+Z_{1}+Z_{3}+Z_{1}Z_{3}+Z_{2}Z_{3}+Z_{3}Z_{4}\end{aligned}}$Then it evaluates this polynomial at all 16 evaluation points (0101 means $Z_{1}=0,Z_{2}=1,Z_{3}=0,Z_{4}=1)$: $p_{x}(0000)=1,\;p_{x}(0001)=1,\;p_{x}(0010)=0,\;p_{x}(0011)=1,\;$
$p_{x}(0100)=1,\;p_{x}(0101)=1,\;p_{x}(0110)=1,\;p_{x}(0111)=0,\;$
$p_{x}(1000)=0,\;p_{x}(1001)=0,\;p_{x}(1010)=0,\;p_{x}(1011)=1,\;$
$p_{x}(1100)=0,\;p_{x}(1101)=0,\;p_{x}(1110)=1,\;p_{x}(1111)=0\,.$As a result, C(1 1010 010101) = 1101 1110 0001 0010 holds.

### Decoder

As was already mentioned, Lagrange interpolation can be used to efficiently retrieve the message from a codeword. However, a decoder needs to work even if the codeword has been corrupted in a few positions, that is, when the received word is different from any codeword. In this case, a local decoding procedure can help.
The algorithm from Reed is based on the following property: you start from the code word, that is a sequence of evaluation points from an unknown polynomial p$_x${\textstyle p_{x}} of F$_2$[X$_1$, X$_2$, ..., X$_m$]{\textstyle {\mathbb {F} }_{2}[X_{1}, X_{2}, ..., X_{m}]} of degree at most r{\textstyle r} that you want to find. The sequence may contains any number of errors up to 2$^{m−r−1}$−1{\textstyle 2^{m-r-1}-1} included.
If you consider a monomial μ{\textstyle \mu } of the highest degree d{\textstyle d} in p$_x${\textstyle p_{x}} and sum all the evaluation points of the polynomial where all variables in μ{\textstyle \mu } have the values 0 or 1, and all the other variables have value 0, you get the value of the coefficient (0 or 1) of μ{\textstyle \mu } in p$_x${\textstyle p_{x}} (There are 2$^d${\textstyle 2^{d}} such points). This is due to the fact that all lower monomial divisors of μ{\textstyle \mu } appears an even number of time in the sum, and only μ{\textstyle \mu } appears once.
To take into account the possibility of errors, you can also remark that you can fix the value of other variables to any value. So instead of doing the sum only once for other variables not in μ{\textstyle \mu } with 0 value, you do it 2$^{m−d}${\textstyle 2^{m-d}} times for each fixed valuations of the other variables. If there is no error, all those sums should be equals to the value of the coefficient searched. The algorithm consists here to take the majority of the answers as the value searched. If the minority is larger than the maximum number of errors possible, the decoding step fails knowing there are too many errors in the input code.
Once a coefficient is computed, if it's 1, update the code to remove the monomial μ{\textstyle \mu } from the input code and continue to next monomial, in reverse order of their degree.

#### Example

Let's consider the previous example and start from the code. With r=2, m=4{\textstyle r=2, m=4} we can fix at most 1 error in the code. Consider the input code as 1101 1110 0001 0110 (this is the previous code with one error).
We know the degree of the polynomial p$_x${\textstyle p_{x}} is at most r=2{\textstyle r=2}, we start by searching for monomial of degree 2.
* μ=X$_3$X$_4${\textstyle \mu =X_{3}X_{4}}
** we start by looking for evaluation points with X$_1$=0, X$_2$=0, X$_3$∈{0, 1}, X$_4$∈{0, 1}{\textstyle X_{1}=0, X_{2}=0, X_{3}\in \{0, 1\}, X_{4}\in \{0, 1\}}. In the code this is: 1101 1110 0001 0110. The first sum is 1 (odd number of 1).
** we look for evaluation points with X$_1$=0, X$_2$=1, X$_3$∈{0, 1}, X$_4$∈{0, 1}{\textstyle X_{1}=0, X_{2}=1, X_{3}\in \{0, 1\}, X_{4}\in \{0, 1\}}. In the code this is: 1101 1110 0001 0110. The second sum is 1.
** we look for evaluation points with X$_1$=1, X$_2$=0, X$_3$∈{0, 1}, X$_4$∈{0, 1}{\textstyle X_{1}=1, X_{2}=0, X_{3}\in \{0, 1\}, X_{4}\in \{0, 1\}}. In the code this is: 1101 1110 0001 0110. The third sum is 1.
** we look for evaluation points with X$_1$=1, X$_2$=1, X$_3$∈{0, 1}, X$_4$∈{0, 1}{\textstyle X_{1}=1, X_{2}=1, X_{3}\in \{0, 1\}, X_{4}\in \{0, 1\}}. In the code this is: 1101 1110 0001 0110. The third sum is 0 (even number of 1).
The four sums don't agree (so we know there is an error), but the minority report is not larger than the maximum number of error allowed (1), so we take the majority and the coefficient of μ{\textstyle \mu } is 1.
We remove μ{\textstyle \mu } from the code before continue : code : 1101 1110 0001 0110, valuation of μ{\textstyle \mu } is 0001000100010001, the new code is 1100 1111 0000 0111
* μ=X$_2$X$_4${\textstyle \mu =X_{2}X_{4}}
** 1100 1111 0000 0111. Sum is 0
** 1100 1111 0000 0111. Sum is 0
** 1100 1111 0000 0111. Sum is 1
** 1100 1111 0000 0111. Sum is 0
One error detected, coefficient is 0, no change to current code.
* μ=X$_1$X$_4${\textstyle \mu =X_{1}X_{4}}
** 1100 1111 0000 0111. Sum is 0
** 1100 1111 0000 0111. Sum is 0
** 1100 1111 0000 0111. Sum is 1
** 1100 1111 0000 0111. Sum is 0
One error detected, coefficient is 0, no change to current code.
* μ=X$_2$X$_3${\textstyle \mu =X_{2}X_{3}}
** 1100 1111 0000 0111. Sum is 1
** 1100 1111 0000 0111. Sum is 1
** 1100 1111 0000 0111. Sum is 1
** 1100 1111 0000 0111. Sum is 0
One error detected, coefficient is 1, valuation of μ{\textstyle \mu } is 0000 0011 0000 0011, current code is now 1100 1100 0000 0100.
* μ=X$_1$X$_3${\textstyle \mu =X_{1}X_{3}}
** 1100 1100 0000 0100. Sum is 1
** 1100 1100 0000 0100. Sum is 1
** 1100 1100 0000 0100. Sum is 1
** 1100 1100 0000 0100. Sum is 0
One error detected, coefficient is 1, valuation of μ{\textstyle \mu } is 0000 0000 0011 0011, current code is now 1100 1100 0011 0111.
* μ=X$_1$X$_2${\textstyle \mu =X_{1}X_{2}}
** 1100 1100 0011 0111. Sum is 0
** 1100 1100 0011 0111. Sum is 1
** 1100 1100 0011 0111. Sum is 0
** 1100 1100 0011 0111. Sum is 0
One error detected, coefficient is 0, no change to current code. We know now all coefficient of degree 2 for the polynomial, we can start mononials of degree 1. Notice that for each next degree, there are twice as much sums, and each sums is half smaller.
* μ=X$_4${\textstyle \mu =X_{4}}
** 1100 1100 0011 0111. Sum is 0
** 1100 1100 0011 0111. Sum is 0
** 1100 1100 0011 0111. Sum is 0
** 1100 1100 0011 0111. Sum is 0
** 1100 1100 0011 0111. Sum is 0
** 1100 1100 0011 0111. Sum is 0
** 1100 1100 0011 0111. Sum is 1
** 1100 1100 0011 0111. Sum is 0
One error detected, coefficient is 0, no change to current code.
* μ=X$_3${\textstyle \mu =X_{3}}
** 1100 1100 0011 0111. Sum is 1
** 1100 1100 0011 0111. Sum is 1
** 1100 1100 0011 0111. Sum is 1
** 1100 1100 0011 0111. Sum is 1
** 1100 1100 0011 0111. Sum is 1
** 1100 1100 0011 0111. Sum is 1
** 1100 1100 0011 0111. Sum is 1
** 1100 1100 0011 0111. Sum is 0
One error detected, coefficient is 1, valuation of μ{\textstyle \mu } is 0011 0011 0011 0011, current code is now 1111 1111 0000 0100.
Then we'll find 0 for μ=X$_2${\textstyle \mu =X_{2}}, 1 for μ=X$_1${\textstyle \mu =X_{1}} and the current code become 1111 1111 1111 1011.
For the degree 0, we have 16 sums of only 1 bit. The minority is still of size 1, and we found p$_x$=1+X$_1$+X$_3$+X$_1$X$_3$+X$_2$X$_3$+X$_3$X$_4${\textstyle p_{x}=1+X_{1}+X_{3}+X_{1}X_{3}+X_{2}X_{3}+X_{3}X_{4}} and the corresponding initial word 1 1010 010101

### Generalization to larger alphabets via low-degree polynomials

Using low-degree polynomials over a finite field $\mathbb {F}$ of size $q$, it is possible to extend the definition of Reed–Muller codes to alphabets of size $q$. Let $m$ and $d$ be positive integers, where $m$ should be thought of as larger than $d$. To encode a message x∈F$^k${\textstyle x\in \mathbb {F} ^{k}} of width $k=\textstyle {\binom {m+d}{m}}$, the message is again interpreted as an $m$-variate polynomial $p_{x}$ of total degree at most $d$ and with coefficient from $\mathbb {F}$. Such a polynomial indeed has $\textstyle {\binom {m+d}{m}}$ coefficients. The Reed–Muller encoding of $x$ is the list of all evaluations of $p_{x}(a)$ over all $a\in \mathbb {F} ^{m}$. Thus the block length is $n=q^{m}$.

## Description using a generator matrix

A generator matrix for a Reed–Muller code RM(r, m) of length N = 2$^m$ can be constructed as follows. Let us write the set of all m-dimensional binary vectors as:
    $X=\mathbb {F} _{2}^{m}=\{x_{1},\ldots ,x_{N}\}.$
We define in N-dimensional space $\mathbb {F} _{2}^{N}$ the indicator vectors
    $\mathbb {I} _{A}\in \mathbb {F} _{2}^{N}$
on subsets $A\subset X$ by:
    $\left(\mathbb {I} _{A}\right)_{i}={\begin{cases}1&{\mbox{ if }}x_{i}\in A\\0&{\mbox{ otherwise}}\\\end{cases}}$
together with, also in $\mathbb {F} _{2}^{N}$, the binary operation
    $w\wedge z=(w_{1}\cdot z_{1},\ldots ,w_{N}\cdot z_{N}),$
referred to as the wedge product (not to be confused with the wedge product defined in exterior algebra). Here, $w=(w_{1},w_{2},\ldots ,w_{N})$ and $z=(z_{1},z_{2},\ldots ,z_{N})$ are points in $\mathbb {F} _{2}^{N}$ (N-dimensional binary vectors), and the operation $\cdot$ is the usual multiplication in the field $\mathbb {F} _{2}$.
$\mathbb {F} _{2}^{m}$ is an m-dimensional vector space over the field $\mathbb {F} _{2}$, so it is possible to write
$(\mathbb {F} _{2})^{m}=\{(y_{m},\ldots ,y_{1})\mid y_{i}\in \mathbb {F} _{2}\}.$
We define in N-dimensional space $\mathbb {F} _{2}^{N}$ the following vectors with length $N:v_{0}=(1,1,\ldots ,1)$ and
    $v_{i}=\mathbb {I} _{H_{i}},$
where 1 ≤ i ≤ m and the H$_i$ are hyperplanes in $(\mathbb {F} _{2})^{m}$ (with dimension m − 1):
    $H_{i}=\{y\in (\mathbb {F} _{2})^{m}\mid y_{i}=0\}.$

### The generator matrix

The Reed–Muller RM(r, m) code of order r and length N = 2$^m$ is the code generated by v$_0$ and the wedge products of up to r of the v$_i$, 1 ≤ i ≤ m (where by convention a wedge product of fewer than one vector is the identity for the operation). In other words, we can build a generator matrix for the RM(r, m) code, using vectors and their wedge product permutations up to r at a time ${v_{0},v_{1},\ldots ,v_{n},\ldots ,(v_{i_{1}}\wedge v_{i_{2}}),\ldots (v_{i_{1}}\wedge v_{i_{2}}\ldots \wedge v_{i_{r}})}$, as the rows of the generator matrix, where 1 ≤ i$_k$ ≤ m.

### Example 1

Let m = 3. Then N = 8, and
    $X=\mathbb {F} _{2}^{3}=\{(0,0,0),(0,0,1),(0,1,0)\ldots ,(1,1,1)\},$
and
    ${\begin{aligned}v_{0}&=(1,1,1,1,1,1,1,1)\\[2pt]v_{1}&=(1,0,1,0,1,0,1,0)\\[2pt]v_{2}&=(1,1,0,0,1,1,0,0)\\[2pt]v_{3}&=(1,1,1,1,0,0,0,0).\end{aligned}}$
The RM(1,3) code is generated by the set
    $\{v_{0},v_{1},v_{2},v_{3}\},\,$
or more explicitly by the rows of the matrix:
    ${\begin{pmatrix}1&1&1&1&1&1&1&1\\1&0&1&0&1&0&1&0\\1&1&0&0&1&1&0&0\\1&1&1&1&0&0&0&0\end{pmatrix}}$

### Example 2

The RM(2,3) code is generated by the set:
    $\{v_{0},v_{1},v_{2},v_{3},v_{1}\wedge v_{2},v_{1}\wedge v_{3},v_{2}\wedge v_{3}\}$
or more explicitly by the rows of the matrix:
    ${\begin{pmatrix}1&1&1&1&1&1&1&1\\1&0&1&0&1&0&1&0\\1&1&0&0&1&1&0&0\\1&1&1&1&0&0&0&0\\1&0&0&0&1&0&0&0\\1&0&1&0&0&0&0&0\\1&1&0&0&0&0&0&0\\\end{pmatrix}}$

### Properties

The following properties hold:
* The set of all possible wedge products of up to m of the v$_i$ form a basis for $\mathbb {F} _{2}^{N}$.
* The RM (r, m) code has rank
    $\sum _{s=0}^{r}{m \choose s}.$
* RM (r, m) = RM (r, m − 1) | RM (r − 1, m − 1) where '|' denotes the bar product of two codes.
* RM (r, m) has minimum Hamming weight 2$^{m−r}$.

#### Proof

* There are such vectors and $\mathbb {F} _{2}^{N}$ have dimension N so it is sufficient to check that the N vectors span; equivalently it is sufficient to check that $\mathrm {RM} (m,m)=\mathbb {F} _{2}^{N}$. Let x be a binary vector of length m, an element of X. Let (x)$_i$ denote the ith element of x. Define where 1 ≤ i ≤m. Then $\mathbb {I} _{\{x\}}=y_{1}\wedge \cdots \wedge y_{m}$ Expansion via the distributivity of the wedge product gives $\mathbb {I} _{\{x\}}\in \mathrm {RM} (m,m)$. Then since the vectors $\{\mathbb {I} _{\{x\}}\mid x\in X\}$ span $\mathbb {F} _{2}^{N}$ we have $\mathrm {RM} (m,n)=\mathbb {F} _{2}^{N}$.
       $\sum _{s=0}^{m}{m \choose s}=2^{m}=N$
       $y_{i}={\begin{cases}v_{i}&{\text{ if }}(x)_{i}=0\\v_{0}+v_{i}&{\text{ if }}(x)_{i}=1\\\end{cases}}$
* By 1, all such wedge products must be linearly independent, so the rank of RM(r, m) must simply be the number of such vectors.
* Omitted.
* By induction. The article bar product (coding theory) gives a proof that the weight of the bar product of two codes C$_1$ , C$_2$ is given by
    The RM(0, m) code is the repetition code of length N =2$^m$ and weight N = 2$^{m−0}$ = 2$^{m−r}$. By 1 $\mathrm {RM} (m,n)=\mathbb {F} _{2}^{n}$ and has weight 1 = 2$^0$ = 2$^{m−r}$.
       $\min\{2w(C_{1}),w(C_{2})\}$
    If 0 < r < m and if RM(r,m − 1) has weight 2$^{m−1−r}$RM(r − 1,m − 1) has weight 2$^{m−1−(r−1)}$ = 2$^{m−r}$
    then the bar product has weight
       $\min\{2\times 2^{m-1-r},2^{m-r}\}=2^{m-r}.$

### Decoding RM codes

RM(r, m) codes can be decoded using majority logic decoding. The basic idea of majority logic decoding is to build several checksums for each received code word element. Since each of the different checksums must all have the same value (i.e. the value of the message word element weight), we can use a majority logic decoding to decipher the value of the message word element. Once each order of the polynomial is decoded, the received word is modified accordingly by removing the corresponding codewords weighted by the decoded message contributions, up to the present stage. So for a rth order RM code, we have to decode iteratively r+1, times before we arrive at the final received code-word. Also, the values of the message bits are calculated through this scheme; finally we can calculate the codeword by multiplying the message word (just decoded) with the generator matrix.
One clue if the decoding succeeded, is to have an all-zero modified received word, at the end of (r + 1)-stage decoding through the majority logic decoding. This technique was proposed by Irving S. Reed, and is more general when applied to other finite geometry codes.

## Description using a recursive construction

A Reed–Muller code RM(r,m) exists for any integers $m\geq 0$ and $0\leq r\leq m$. RM(m, m) is defined as the universe ($2^{m},2^{m},1$) code. RM(−1,m) is defined as the trivial code ($2^{m},0,\infty$). The remaining RM codes may be constructed from these elementary codes using the length-doubling construction
    $\mathrm {RM} (r,m)=\{(\mathbf {u} ,\mathbf {u} +\mathbf {v} )\mid \mathbf {u} \in \mathrm {RM} (r,m-1),\mathbf {v} \in \mathrm {RM} (r-1,m-1)\}.$
From this construction, RM(r,m) is a binary linear block code (n, k, d) with length n = 2$^m$, dimension $k(r,m)=k(r,m-1)+k(r-1,m-1)$ and minimum distance $d=2^{m-r}$ for $r\geq 0$. The dual code to RM(r,m) is RM(m-r-1,m). This shows that repetition and SPC codes are duals, biorthogonal and extended Hamming codes are duals and that codes with k = n/2 are self-dual.

## Special cases of Reed–Muller codes
### Table of all RM(r,m) codes for m≤5

All RM(r, m) codes with $0\leq m\leq 5$ and alphabet size 2 are displayed here, annotated with the standard [n,k,d] coding theory notation for block codes. The code RM(r, m) is a $\textstyle [2^{m},k,2^{m-r}]_{2}$-code, that is, it is a linear code over a binary alphabet, has block length $\textstyle 2^{m}$, message length (or dimension) k, and minimum distance $\textstyle 2^{m-r}$.
| 0 | 1 | 2 | 3 | 4 | 5 | m | |
| | | | | | Z | RM(m,m) (2$^m$, 2$^m$, 1) | universe codes |
| | | | | | RM(5,5) (32,32,1) | | |
| | | | | RM(4,4) (16,16,1) | | RM(m − 1, m) (2$^m$, 2$^m$−1, 2) | SPC codes |
| | | | RM(3,3) (8,8,1) | | RM(4,5) (32,31,2) |
| | | RM(2,2) (4,4,1) | | RM(3,4) (16,15,2) | | RM(m − 2, m) (2$^m$, 2$^m$−m−1, 4) | extended Hamming codes |
| | RM(1,1) (2,2,1) | | RM(2,3) (8,7,2) | | RM(3,5) (32,26,4) |
| RM(0,0) (1,1,1) | | RM(1,2) (4,3,2) | | RM(2,4) (16,11,4) |
| | RM(0,1) (2,1,2) | | RM(1,3) (8,4,4) | | RM(2,5) (32,16,8) | RM(r, m=2r+1) (2$^{2r+1}$, 2$^{2r}$, 2$^{r+1}$) | self-dual codes |
| RM(−1,0) (1,0,$\infty$) | | RM(0,2) (4,1,4) | | RM(1,4) (16,5,8) |
| | RM(−1,1) (2,0,$\infty$) | | RM(0,3) (8,1,8) | | RM(1,5) (32,6,16) |
| | | RM(−1,2) (4,0,$\infty$) | | RM(0,4) (16,1,16) | | RM(1,m) (2$^m$, m+1, 2$^{m−1}$) | punctured Hadamard codes |
| | | | RM(−1,3) (8,0,$\infty$) | | RM(0,5) (32,1,32) |
| | | | | RM(−1,4) (16,0,$\infty$) | | RM(0,m) (2$^m$, 1, 2$^m$) | repetition codes |
| | | | | | RM(−1,5) (32,0,$\infty$) |
| | | | | | | RM(−1,m) (2$^m$, 0, ∞) | trivial codes |

### Properties of RM(r,m) codes for r≤1 or r≥m-1

* RM(0, m) codes are repetition codes of length N = 2$^m$, rate ${R={\tfrac {1}{N}}}$ and minimum distance $d_{\min }=N$.
* RM(1, m) codes are parity check codes of length N = 2$^m$, rate $R={\tfrac {m+1}{N}}$ and minimum distance $d_{\min }={\tfrac {N}{2}}$.
* RM(m − 1, m) codes are single parity check codes of length N = 2$^m$, rate $R={\tfrac {N-1}{N}}$ and minimum distance $d_{\min }=2$.
* RM(m − 2, m) codes are the family of extended Hamming codes of length N = 2$^m$ with minimum distance $d_{\min }=4$.