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 ≤ rm, the Reed–Muller code with parameters r and m is denoted as RM. When asked to encode a message consisting of k bits, where holds, the RM code produces a codeword consisting of 2m 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 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 that map messages to codewords. The Reed-Muller code has message length and block length . One way to define an encoding for this code is based on the evaluation of multilinear polynomials with m variables and total degree r. Every multilinear polynomial over the finite field with two elements can be written as follows:
The are the variables of the polynomial, and the values are the coefficients of the polynomial. Since there are exactly coefficients, the message consists of values that can be used as these coefficients. In this way, each message gives rise to a unique polynomial in m variables. To construct the codeword, the encoder evaluates at all evaluation points, where it interprets the sum as addition modulo two in order to obtain a bit. That is, the encoding function is defined via
The fact that the codeword suffices to uniquely reconstruct follows from Lagrange interpolation, which states that the coefficients of a polynomial are uniquely determined when sufficiently many evaluation points are given. Since and holds for all messages, the function is a linear map. Thus the Reed-Muller code is a linear code.
Example
For the code, the parameters are as follows:
Let be the encoding function just defined. To encode the string x = 1 1010 010101 of length 11, the encoder first constructs the polynomial in 4 variables:Then it evaluates this polynomial at all 16 evaluation points:As a result, C = 1111 1010 0101 0000 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.

Generalization to larger alphabets via low-degree polynomials

Using low-degree polynomials over a finite field of size, it is possible to extend the definition of Reed-Muller codes to alphabets of size. Let and be positive integers, where should be thought of as larger than. To encode a message of with, the message is again interpreted an -variate polynomial of total degree at most and with coefficient from. Such a polynomial indeed has coefficients. The Reed–Muller encoding of is the list of all evaluations of over all. Thus the block length is.

Description using a generator matrix

A generator matrix for a Reed-Muller code of length can be constructed as follows. Let us write the set of all m-dimensional binary vectors as:
We define in N-dimensional space the indicator vectors
on subsets by:
together with, also in, the binary operation
referred to as the wedge product. Here, and are points in , and the operation is the usual multiplication in the field.
is an m-dimensional vector space over the field, so it is possible to write
We define in N-dimensional space the following vectors with length and
where 1 ≤ i ≤ m and the Hi are hyperplanes in :

The generator matrix

The Reed-Muller code of order r and length N = 2m is the code generated by v0 and the wedge products of up to r of the vi, . In other words, we can build a generator matrix for the code, using vectors and their wedge product permutations up to r at a time, as the rows of the generator matrix, where.

Example 1

Let m = 3. Then N = 8, and
and
The RM code is generated by the set
or more explicitly by the rows of the matrix:

Example 2

The RM code is generated by the set:
or more explicitly by the rows of the matrix:

Properties

The following properties hold:
  1. The set of all possible wedge products of up to m of the vi form a basis for.
  2. The RM  code has rank
  3. :
  4. where '|' denotes the bar product of two codes.
  5. has minimum Hamming weight 2mr.

    Proof

Decoding RM codes

RM 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, 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 with the generator matrix.
One clue if the decoding succeeded, is to have an all-zero modified received word, at the end of -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 exists for any integers and. RM is defined as the universe code. RM is defined as the trivial code. The remaining RM codes may be constructed from these elementary codes using the length-doubling construction
From this construction, RM is a binary linear block code with length, dimension and minimum distance for. The dual code to RM is RM. This shows that repetition and SPC codes are duals, biorthogonal and extended Hamming codes are duals and that codes with are self-dual.

Special cases of Reed–Muller codes

Table of all RM(r,m) codes for m≤5

All codes with and alphabet size 2 are displayed here, annotated with the standard coding theory notation for block codes. The code is a -code, that is, it is a linear code over a binary alphabet, has block length, message length , and minimum distance.

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