Back to resources

Article and note

A Series Learning through the MacWilliams IdentityPart 2 of 12

An Introduction to Character Theory through the MacWilliams Identity

Among the five proof systems for the MacWilliams identity, this note focuses on the Fourier, character-theoretic, and Poisson approach, and introduces characters, character groups, orthogonality relations, annihilators, and the finite Poisson summation formula on finite abelian groups.
Published:
Updated:
Reading time:
31 min (about 6,683 words)
Tagscoding theoryMacWilliams identitycharacter theoryfinite abelian groupsfinite fieldsFourier analysisadditive charactersexpository note
Download PDF

Introduction

In coding theory, one of the basic theorems is the MacWilliams identity. For a linear code CFqEC \leq \mathbb{F}_{q}^{E} over a finite field Fq\mathbb{F}_{q} with coordinate set EE, the weight enumerator of its dual code

C={uFqE:uc=0 for all cC}C^{\perp} = \{ u \in \mathbb{F}_{q}^{E} : u \cdot c = 0 \text{ for all } c \in C \}

can be computed from the weight enumerator of CC as follows:

WC(X,Y)=1CWC(X+(q1)Y,XY).W_{C^{\perp}}(X,Y) = \frac{1}{\card{C}} W_{C}\bigl(X + (q - 1)Y, X - Y \bigr).

This is the MacWilliams identity.

In this series, I use proofs of the MacWilliams identity as a guide to an introduction to neighbouring areas and concepts. Accordingly, this series is aimed at readers who already know at least the following basic material:

We assume that the reader already knows, at least at a basic level, the following notions:

  • what a (finite) field is,

  • what a linear code over a finite field is,

  • what the Hamming weight is,

  • what the dual code is.

(There is no problem if you do not know a proof of the MacWilliams identity.)

In this series, I look at proof methods for the MacWilliams identity under the following five broad families.

  1. Fourier, character, and Poisson methods.

  2. Möbius inversion, lattice theory, and shortening/puncturing methods.

  3. Orthogonal polynomials and association schemes.

  4. Matroids and Tutte polynomials.

  5. Moments and double-counting methods.

This note focuses on the first of these: the Fourier, character-theoretic, and Poisson approach. However, rather than putting terms such as the Fourier transform or the Poisson summation formula centre stage from the outset, I begin with the most basic building block, namely characters of finite abelian groups. In other words, the aim of this second note is to use a proof of the MacWilliams identity as a guide to an introduction to character theory on finite abelian groups.

Last time, I proved the MacWilliams identity using inclusion among supports and Möbius inversion. This time, by contrast, I prove the same identity using characters of finite abelian groups and their orthogonality relations. Where the main actor last time was “inclusion among supports”, the main actors this time are “group duality” and “orthogonality relations of characters”.

By character theory here I do not mean the whole of representation theory of finite groups. What is needed in this note is a homomorphism from a finite abelian group GG to the multiplicative group C×\mathbb{C}^{\times} of non-zero complex numbers:

χ ⁣:GC×.\chi \colon G \to \mathbb{C}^{\times}.

Such a map is called a character of GG. Characters of finite abelian groups send group elements to roots of unity in C\mathbb{C}, and turn addition into multiplication. Moreover, characters satisfy very strong orthogonality relations. Through a fixed identification, these orthogonality relations pick out the condition corresponding to the dual code CC^{\perp}.

The route in this note is as follows:

viewing codes as additive groups → characters → character groups → orthogonality relations → annihilators → the finite Poisson summation formula → the MacWilliams identity

If one looks only at the proof of the MacWilliams identity, the number of necessary formulae is not so large. Essentially, everything is condensed into the single orthogonality relation

cCψ(uc)={C,uC,0,uC.\sum_{c \in C}\psi(u \cdot c) = \begin{cases} \card{C}, & u \in C^{\perp},\\ 0, & u \notin C^{\perp}. \end{cases}

However, if one uses this formula only as an isolated computation, it becomes harder to see the landscape of character theory as a subject. So in this note I first introduce characters of finite abelian groups, character groups, and annihilators, and then apply them to the MacWilliams identity.

For characters of finite groups and finite Fourier analysis, standard references include Terras [Ter99] and Stein–Shakarchi [SS03]. For trace maps over finite fields and additive characters, see Lidl–Niederreiter [LN97].

Viewing codes as additive groups

Let us begin by changing the point of view on the objects of coding theory slightly. The space FqE\mathbb{F}_{q}^{E} is a vector space over a finite field, but if one forgets about scalar multiplication1 and concentrates only on addition, it is also a finite abelian group.

Definition 2.1.

Let GG be a set equipped with an addition ++ and a zero element 00. We say that GG is an abelian group if the following hold for all x,y,zGx,y,z \in G:

  1. (x+y)+z=x+(y+z)(x + y) + z = x + (y + z).

  2. x+0=0+x=xx + 0 = 0 + x = x.

  3. For each xx, there exists an element xGx^{\prime} \in G such that x+x=x+x=0x + x^{\prime} = x^{\prime} + x = 0.

  4. x+y=y+xx + y = y + x.

The element xx^{\prime} in (G3) is called the (additive) inverse of xx. It is immediate that xx^{\prime} is uniquely determined for each xGx \in G2, so we write this inverse as xx-x \coloneqq x^{\prime}. The finite field Fq\mathbb{F}_{q} is a finite abelian group with respect to addition. Hence its direct product FqE\mathbb{F}_{q}^{E} is also a finite abelian group. A linear code CFqEC \leq \mathbb{F}_{q}^{E} is therefore both a vector subspace and a subgroup of this additive group.

The character-theoretic proof uses this additive-group structure. In other words, rather than starting with scalar multiplication in the vector space, we first focus on FqE\mathbb{F}_{q}^{E} as an additive group and on its subgroup CC.

However, the dual code

C={uFqE:uc=0 for all cC}C^{\perp} = \{u \in \mathbb{F}_{q}^{E} : u \cdot c = 0 \text{ for all } c \in C \}

is defined using the inner product. What is interesting in the character-theoretic proof is that this orthogonal complement with respect to the inner product appears naturally as the characters that are trivial on CC. For that reason, I begin by introducing characters of finite abelian groups.

Characters of finite abelian groups

The groups considered in this note are abelian, so I write their operation additively. By contrast, the set of non-zero complex numbers

C×=C{0}\mathbb{C}^{\times} = \mathbb{C} \setminus \{ 0 \}

forms a group under multiplication. A character is a map that carries addition to multiplication.

Definition 3.1.

Let GG be a finite abelian group. A character of GG is a group homomorphism

χ ⁣:GC×.\chi \colon G \to \mathbb{C}^{\times}.

In other words, it is a map satisfying

χ(x+y)=χ(x)χ(y)\chi(x + y) = \chi(x)\chi(y)

for all x,yGx, y \in G.

A group homomorphism preserves the identity element3, so one always has χ(0)=1\chi(0) = 1.

Definition 3.2.

A character χ\chi of GG is said to be trivial if

χ(x)=1\chi(x) = 1

for every xGx \in G. I write the trivial character as 1G1_{G}.

Characters of finite groups always take values among roots of unity. Indeed, let mm be the order4 of xGx \in G. Then mx=0mx = 0, so

χ(x)m=χ(x)χ(x)m times=χ(x++xm times)=χ(mx)=χ(0)=1.\chi(x)^{m} = \underbrace{\chi(x) \dotsm \chi(x)}_{m \text{ times}} = \chi(\underbrace{x + \dots + x}_{m \text{ times}}) = \chi(mx) = \chi(0) = 1.

Thus a character sends elements of a finite group to finitely many points on the unit circle in the complex plane.

Example 3.3 (Characters of Z/NZ\mathbb{Z}/N\mathbb{Z}).

Consider the cyclic group Z/NZ\mathbb{Z}/N\mathbb{Z} as an additive group. For aZ/NZa \in \mathbb{Z}/N\mathbb{Z}, define

χa(x)=exp(2π1axN).\chi_{a}(\overline{x}) = \exp\left(\frac{2\pi \sqrt{-1}\, ax}{N}\right).

This is a character of Z/NZ\mathbb{Z}/N\mathbb{Z}. Here aa and xx are taken to be integers representing their residue classes. The value does not change if one chooses different representatives, so this definition is well-defined. In particular, the complex numbers whose NNth power is 11 are exactly of the form

exp(2π1aN)(a=0,1,,N1).\exp\left(\frac{2\pi \sqrt{-1}\, a}{N}\right) \qquad (a = 0,1,\dots,N-1).

In fact, these are all the characters of Z/NZ\mathbb{Z}/N\mathbb{Z}. Indeed, a character χ\chi is determined by the value χ(1ˉ)\chi(\bar{1}) of the generator 1ˉ\bar{1}, and since N1ˉ=0ˉN\bar{1} = \bar{0}, one has

χ(1ˉ)N=χ(0ˉ)=1.\chi(\bar{1})^{N} = \chi(\bar{0}) = 1.

Hence χ(1ˉ)\chi(\bar{1}) is a complex number whose NNth power is 11, and there are NN possible choices.

For example, when N=4N = 4, that is, when G=Z/4ZG = \mathbb{Z}/4\mathbb{Z}, the character corresponding to a=1a = 1 is given by

χ1(0)=1,χ1(1)=1,χ1(2)=1,χ1(3)=1.\chi_{1}(\overline{0})=1, \quad \chi_{1}(\overline{1})=\sqrt{-1}, \quad \chi_{1}(\overline{2})=-1, \quad \chi_{1}(\overline{3})=-\sqrt{-1}.

Example 3.4 (Additive characters of F2\mathbb{F}_{2}).

View F2={0,1}\mathbb{F}_{2} = \{ 0, 1 \} as an additive group. Then the map

ψ(x)=(1)x\psi(x) = (-1)^x

defines a character ψ ⁣:F2C×\psi \colon \mathbb{F}_{2} \to \mathbb{C}^{\times}. Indeed, ψ(0)=1\psi(0) = 1 and ψ(1)=1\psi(1) = -1, and for the addition on F2\mathbb{F}_{2} one has

ψ(x+y)=ψ(x)ψ(y).\psi(x + y) = \psi(x)\psi(y).

Definition 3.5.

A character of the additive group of the finite field Fq\mathbb{F}_{q} is called an additive character of Fq\mathbb{F}_{q}.

Let q=pmq = p^{m}, where pp is a prime. Using the trace map of the finite field

TrFq/Fp(a)=a+ap+ap2++apm1,\Tr_{\mathbb{F}_{q}/\mathbb{F}_{p}}(a) = a + a^{p} + a^{p^{2}} + \dots + a^{p^{m-1}},

one can write additive characters explicitly. For example, define an additive character ψ\psi by

ψ(a)=exp(2π1pTrFq/Fp(a)).\psi(a) = \exp\left( \frac{2 \pi \sqrt{-1}}{p} \Tr_{\mathbb{F}_{q}/\mathbb{F}_{p}}(a) \right).

Here TrFq/Fp(a)\Tr_{\mathbb{F}_{q}/\mathbb{F}_{p}}(a) is an element of Fp\mathbb{F}_{p}, so when putting it into the exponential function, we identify FpZ/pZ\mathbb{F}_{p} \cong \mathbb{Z}/p\mathbb{Z} and use the representatives 0,1,,p10,1,\dots,p-1. This value depends only on the residue class modulo pp, so it does not depend on the choice of representative. This ψ\psi is an additive character because the trace map is additive. Indeed,

ψ(a+b)=exp(2π1pTrFq/Fp(a+b))=ψ(a)ψ(b).\psi(a + b) = \exp\left( \frac{2 \pi \sqrt{-1}}{p} \Tr_{\mathbb{F}_{q}/\mathbb{F}_{p}}(a+b) \right) = \psi(a)\psi(b).

Moreover, finite field extensions are separable, so TrFq/Fp\Tr_{\mathbb{F}_{q}/\mathbb{F}_{p}} is not the zero map. In this note I use this fact as a basic fact from finite field theory. Since TrFq/Fp\Tr_{\mathbb{F}_{q}/\mathbb{F}_{p}} is a non-zero Fp\mathbb{F}_{p}-linear map, its image is all of Fp\mathbb{F}_{p}. Therefore there exists aFqa \in \mathbb{F}_{q} such that

TrFq/Fp(a)=1,\Tr_{\mathbb{F}_{q}/\mathbb{F}_{p}}(a)=1,

and for such an aa we have

ψ(a)=exp(2π1p)1.\psi(a)=\exp\left(\frac{2 \pi \sqrt{-1}}{p}\right)\neq 1.

So ψ\psi is non-trivial.

More generally, for tFqt \in \mathbb{F}_{q} define

ψt(a)=ψ(ta).\psi_{t}(a) = \psi(ta).

Then ψt\psi_{t} is also an additive character. When t=0t = 0, the character ψt\psi_{t} is trivial. When t0t \neq 0, the map ataa \mapsto ta is a bijection of Fq\mathbb{F}_{q}, so if ψt\psi_{t} were trivial, then ψ\psi would also be trivial. Hence ψt\psi_{t} is non-trivial whenever t0t \neq 0.

Note that when q=pmq = p^{m} with m>1m > 1, the map TrFq/Fp\Tr_{\mathbb{F}_{q}/\mathbb{F}_{p}} is a non-zero linear map from the mm-dimensional Fp\mathbb{F}_{p}-vector space Fq\mathbb{F}_{q} to the 11-dimensional space Fp\mathbb{F}_{p}, so its kernel is non-trivial. Therefore, for an additive character coming from the trace, it can happen that

ψ(x)=1\psi(x) = 1

even for a non-zero xFqx \in \mathbb{F}_{q}. So in general one does not have

ψ(x)=1    x=0.\psi(x) = 1 \implies x = 0.

This point becomes important later, when comparing CC^{\circ} and CC^{\perp}.

Lemma 3.6.

Let ψ\psi be a non-trivial additive character of Fq\mathbb{F}_{q}. Then every additive character η\eta of Fq\mathbb{F}_{q} can be written in the form

η(a)=ψ(ta)(aFq)\eta(a)=\psi(ta) \qquad (a\in \mathbb{F}_{q})

for a unique tFqt \in \mathbb{F}_{q}.

Proof

As already noted, for each tFqt \in \mathbb{F}_{q} the function

ψt(a)=ψ(ta)\psi_{t}(a)=\psi(ta)

is an additive character.

Next I show that if ttt \neq t^{\prime}, then ψtψt\psi_{t} \neq \psi_{t^{\prime}}. Indeed,

ψt(a)ψt(a)1=ψ((tt)a),\psi_{t}(a)\psi_{t^{\prime}}(a)^{-1} = \psi((t-t^{\prime})a),

and since tt0t-t^{\prime} \neq 0, the map a(tt)aa \mapsto (t-t^{\prime})a is a bijection of Fq\mathbb{F}_{q}. Hence the right-hand side is a non-trivial additive character, so ψt\psi_{t} and ψt\psi_{t^{\prime}} cannot coincide. Thus there are at least qq distinct additive characters.

Conversely, I show that there are at most qq additive characters. Write q=pmq=p^{m}, and let α1,,αm\alpha_{1},\dots,\alpha_{m} be an Fp\mathbb{F}_{p}-basis of Fq\mathbb{F}_{q}. For any additive character η\eta and any aFqa \in \mathbb{F}_{q}, we have pa=0pa=0 in the additive group, so

η(a)p=η(pa)=η(0)=1.\eta(a)^{p} = \eta(pa) = \eta(0) = 1.

Thus each η(a)\eta(a) is a complex number whose ppth power is 11.

Moreover, every aFqa \in \mathbb{F}_{q} can be written uniquely as

a=b1α1++bmαm(b1,,bmFp).a=b_{1}\alpha_{1}+\cdots+b_{m}\alpha_{m} \qquad (b_{1},\dots,b_{m}\in\mathbb{F}_{p}).

Here, when writing bib_{i} as an exponent, I understand the element of Fp\mathbb{F}_{p} to be represented by one of 0,1,,p10,1,\dots,p-1. Therefore

η(a)=η(α1)b1η(αm)bm.\eta(a) = \eta(\alpha_{1})^{b_{1}} \cdots \eta(\alpha_{m})^{b_{m}}.

In other words, η\eta is determined by its values on the basis α1,,αm\alpha_{1},\dots,\alpha_{m}. Since each η(αi)\eta(\alpha_{i}) has at most pp possibilities, the total number of additive characters is at most pm=qp^{m}=q.

It follows that there are exactly qq additive characters, and that

{ψt:tFq}\{ \psi_{t} : t \in \mathbb{F}_{q} \}

is the full set of additive characters. Uniqueness follows from the fact already proved that ψtψt\psi_{t} \neq \psi_{t^{\prime}} when ttt \neq t^{\prime}.

End of proof

From this point on, I fix one non-trivial additive character of Fq\mathbb{F}_{q} and write it simply as ψ\psi. In the character-theoretic proof of the MacWilliams identity, the final result is the same no matter which non-trivial additive character one chooses.

Character groups

The full set of characters itself forms a group.

Definition 4.1.

Let GG be a finite abelian group. Write

G^Hom(G,C×)\widehat{G} \coloneqq \Hom(G,\mathbb{C}^{\times})

for the set of all characters of GG. This is called the character group of GG.

The group structure on G^\widehat{G} is given by pointwise multiplication of characters. That is, for χ,ηG^\chi, \eta \in \widehat{G}, define

(χη)(x)=χ(x)η(x)(xG).(\chi\eta)(x) = \chi(x)\eta(x) \qquad (x\in G).

The identity element is the trivial character 1G1_{G}, and the inverse of χ\chi is given by

χ1(x)=χ(x)1.\chi^{-1}(x) = \chi(x)^{-1}.

Theorem 4.2.

For a finite abelian group GG,

G^=G\card{\widehat{G}} = \card{G}

holds.

Proof

Here I use the fundamental theorem of finite abelian groups as a black box. By that theorem, GG is isomorphic to a direct product of finitely many cyclic groups

Z/N1Z×Z/N2Z××Z/NrZ.\mathbb{Z}/N_{1}\mathbb{Z} \times \mathbb{Z}/N_{2}\mathbb{Z} \times \cdots \times \mathbb{Z}/N_{r}\mathbb{Z}.

As seen in Example 3.3, the group Z/NZ\mathbb{Z}/N\mathbb{Z} has exactly NN characters. Moreover, characters of a direct product are obtained as products of characters on each factor. Indeed, given χG1×G2^\chi \in \widehat{G_{1} \times G_{2}}, define

χ1(x1)=χ(x1,0),χ2(x2)=χ(0,x2).\chi_{1}(x_{1}) = \chi(x_{1}, 0),\qquad \chi_{2}(x_{2}) = \chi(0, x_{2}).

Then

χ(x1,x2)=χ((x1,0)+(0,x2))=χ1(x1)χ2(x2).\chi(x_{1}, x_{2}) = \chi((x_{1}, 0) + (0, x_{2})) = \chi_{1}(x_{1}) \chi_{2}(x_{2}).

Conversely, if χ1G1^\chi_{1} \in \widehat{G_{1}} and χ2G2^\chi_{2} \in \widehat{G_{2}} are given, then

χ(x1,x2)χ1(x1)χ2(x2)\chi(x_{1}, x_{2}) \coloneqq \chi_{1}(x_{1})\chi_{2}(x_{2})

defines a character of G1×G2G_{1}\times G_{2}, since

χ((x1,x2)+(y1,y2))=χ(x1,x2)χ(y1,y2).\chi((x_{1},x_{2})+(y_{1},y_{2})) = \chi(x_{1},x_{2})\chi(y_{1},y_{2}).

Thus the characters of a direct product correspond bijectively to tuples of characters on the factors. Hence the number of characters also multiplies under direct products. Therefore G^=G\card{\widehat{G}} = \card{G} follows.

End of proof

This theorem means that a finite abelian group has as many characters as it has elements. However, one cannot in general identify GG with G^\widehat{G} naturally. To construct such an identification, one needs an additional choice. There is a natural correspondence between GG and G^^\widehat{\widehat{G}}, but in general the passage from GG to G^\widehat{G} itself involves a choice. In this note, I later connect FqE\mathbb{F}_{q}^{E} with its character group by choosing a non-trivial additive character ψ\psi and the standard inner product. In coding theory, such a concrete identification is obtained by choosing the standard inner product and a non-trivial additive character.

Note that Theorem 4.2 is a background theorem for general finite abelian groups, and its proof used the fundamental theorem of finite abelian groups as a black box. However, in the case G=FqEG=\mathbb{F}_{q}^{E} that is actually needed in this note, one can prove the result directly from the concrete description of additive characters of finite fields, without using that general theorem. In the next section, I use that direct proof as the main route.

Characters of FqE\mathbb{F}_{q}^{E}

From this point on, let EE be a finite set, and write n=En = \card{E}. Here I fix a non-trivial additive character ψ\psi of Fq\mathbb{F}_{q} and the standard inner product

uv=iEuivi.u \cdot v = \sum_{i \in E} u_{i} v_{i}.

For uFqEu \in \mathbb{F}_{q}^{E}, define a map

χu ⁣:FqEC×\chi_{u} \colon \mathbb{F}_{q}^{E} \to \mathbb{C}^{\times}

by

χu(v)ψ(uv)=ψ(iEuivi).\chi_{u}(v) \coloneqq \psi(u \cdot v) = \psi\left(\sum_{i \in E} u_{i} v_{i} \right).

This is a character of the additive group FqE\mathbb{F}_{q}^{E}. Indeed, for v,wFqEv,w \in \mathbb{F}_{q}^{E},

χu(v+w)=ψ(u(v+w))=ψ(uv+uw)=ψ(uv)ψ(uw)=χu(v)χu(w).\begin{aligned} \chi_{u}(v + w) &= \psi\bigl(u\cdot(v + w)\bigr)\\ &= \psi(u \cdot v + u \cdot w)\\ &= \psi(u \cdot v)\psi(u \cdot w)\\ &= \chi_{u}(v)\chi_{u}(w). \end{aligned}

Theorem 5.1.

The map

Φ ⁣:FqEFqE^,uχu\Phi \colon \mathbb{F}_{q}^{E} \to \widehat{\mathbb{F}_{q}^{E}}, \qquad u \mapsto \chi_u

is a group isomorphism.

Proof
Φ\Phi is a group homomorphism

For u,uFqEu, u^{\prime} \in \mathbb{F}_{q}^{E},

χu+u(v)=ψ((u+u)v)=ψ(uv)ψ(uv)=χu(v)χu(v),\begin{aligned} \chi_{u + u^{\prime}}(v) &= \psi\bigl((u + u^{\prime}) \cdot v \bigr)\\ &= \psi(u \cdot v)\psi(u^{\prime} \cdot v)\\ &= \chi_{u}(v)\chi_{u^{\prime}}(v), \end{aligned}

so Φ\Phi is a group homomorphism.

Φ\Phi is surjective

Take any character χ ⁣:FqEC×\chi \colon \mathbb{F}_{q}^{E} \to \mathbb{C}^{\times}. For each iEi \in E, let eie_{i} be the vector whose iith coordinate is 11 and whose other coordinates are 00, and define

χi(a)χ(aei)(aFq).\chi_{i}(a)\coloneqq\chi(ae_{i}) \qquad (a \in \mathbb{F}_{q}).

Then χi\chi_{i} is an additive character of Fq\mathbb{F}_{q}. Indeed,

χi(a+b)=χ((a+b)ei)=χ(aei+bei)=χi(a)χi(b).\chi_{i}(a+b) = \chi((a+b)e_{i}) = \chi(ae_{i}+be_{i}) = \chi_{i}(a)\chi_{i}(b).

By Lemma 3.6, for each iEi \in E there exists a unique uiFqu_{i} \in \mathbb{F}_{q} such that

χi(a)=ψ(uia)(aFq).\chi_{i}(a)=\psi(u_{i}a) \qquad (a \in \mathbb{F}_{q}).

Put u=(ui)iEu=(u_{i})_{i \in E}.

For any v=(vi)iEFqEv=(v_{i})_{i \in E} \in \mathbb{F}_{q}^{E}, one has

v=iEviei,v=\sum_{i \in E} v_{i}e_{i},

and therefore

χ(v)=iEχ(viei)=iEχi(vi)=iEψ(uivi)=ψ(iEuivi)=χu(v).\begin{aligned} \chi(v) &= \prod_{i \in E}\chi(v_{i}e_{i})\\ &= \prod_{i \in E}\chi_{i}(v_{i})\\ &= \prod_{i \in E}\psi(u_{i}v_{i})\\ &= \psi\left(\sum_{i \in E}u_{i}v_{i}\right)\\ &= \chi_{u}(v). \end{aligned}

Hence χ=χu\chi=\chi_{u}, so Φ\Phi is surjective.

Φ\Phi is injective

Suppose that χu=χu\chi_{u}=\chi_{u^{\prime}}. Then for any iEi \in E and any aFqa \in \mathbb{F}_{q},

ψ(uia)=χu(aei)=χu(aei)=ψ(uia).\psi(u_{i}a) = \chi_{u}(ae_{i}) = \chi_{u^{\prime}}(ae_{i}) = \psi(u^{\prime}_{i}a).

By the uniqueness in Lemma 3.6, it follows that ui=uiu_{i}=u^{\prime}_{i}. This holds for every iEi \in E, so u=uu=u^{\prime}. Therefore Φ\Phi is injective.

Hence Φ\Phi is a bijective group homomorphism, and therefore a group isomorphism.

End of proof

There is also another proof using the general cardinality theorem for finite abelian groups. First, as above, one proves that Φ\Phi is a group homomorphism, and then one checks, as in the older argument, that if χu\chi_{u} is the trivial character, then u=0u=0. Indeed, if u0u \neq 0, then for some iEi \in E one has ui0u_{i} \neq 0. Since ψ\psi is non-trivial, there exists aFqa \in \mathbb{F}_{q} such that ψ(a)1\psi(a) \neq 1. Define vFqEv \in \mathbb{F}_{q}^{E} by

vi=a/ui,vj=0(ji).v_{i}=a/u_{i}, \qquad v_{j}=0 \quad (j \neq i).

Then uv=au \cdot v = a, and therefore

χu(v)=ψ(a)1.\chi_{u}(v)=\psi(a)\neq 1.

So χu\chi_{u} is not trivial. Thus Φ\Phi is injective. Since FqE=qn\card{\mathbb{F}_{q}^{E}}=q^{n} and Theorem 4.2 gives

FqE^=qn,\card{\widehat{\mathbb{F}_{q}^{E}}}=q^{n},

any injective map Φ\Phi between these finite sets is also surjective. This alternative proof uses the general cardinality theorem for finite abelian groups, whereas the main proof above does not.

This isomorphism depends on the choice of the non-trivial additive character ψ\psi and the standard inner product. Under that choice, one can identify an element uFqEu \in \mathbb{F}_{q}^{E} with the character vψ(uv)v \mapsto \psi(u \cdot v). In fact, for the proof of the MacWilliams identity itself, it is not necessary to know that every character of FqE\mathbb{F}_{q}^{E} is of this form. What is needed is only that each uFqEu \in \mathbb{F}_{q}^{E} gives rise to a character χu(v)=ψ(uv)\chi_{u}(v)=\psi(u \cdot v), and that this character is trivial on CC if and only if uCu \in C^{\perp}. However, since this note is intended as an introduction to character theory, I also explain that all characters of FqE\mathbb{F}_{q}^{E} are of this form.

Orthogonality relations for characters

The most basic fact in character theory is that the sum of a non-trivial character vanishes.

Theorem 6.1.

Let GG be a finite abelian group, and let χG^\chi \in \widehat{G}. Then

xGχ(x)={G,χ=1G,0,χ1G\sum_{x \in G}\chi(x) = \begin{cases} \card{G}, & \chi = 1_{G},\\ 0, & \chi \neq 1_{G} \end{cases}

holds.

Proof

If χ=1G\chi = 1_{G}, then χ(x)=1\chi(x) = 1 for all xGx \in G, so the sum is G\card{G}.

Next assume that χ1G\chi \neq 1_{G}. Then there exists aGa \in G such that χ(a)1\chi(a) \neq 1. Put

SxGχ(x).S \coloneqq \sum_{x \in G} \chi(x).

As xx runs through all of GG, so does x+ax + a exactly once, and hence

S=xGχ(x+a)=xGχ(x)χ(a)=χ(a)S.\begin{aligned} S &= \sum_{x \in G}\chi(x + a)\\ &= \sum_{x \in G}\chi(x)\chi(a)\\ &= \chi(a)S. \end{aligned}

Therefore (1χ(a))S=0(1 - \chi(a))S = 0. Since χ(a)1\chi(a) \neq 1, it follows that S=0S = 0.

End of proof

This theorem is the orthogonality relation for the whole group. In the MacWilliams identity, however, the sum is taken over a subgroup CC. The same argument still works in that setting.

Corollary 6.2 (Orthogonality relation on a subgroup).

Let GG be a finite abelian group, and let HGH \leq G be a subgroup. For χG^\chi \in \widehat{G},

hHχ(h)={H,χ(h)=1 for all hH,0,otherwise\sum_{h \in H}\chi(h) = \begin{cases} \card{H}, & \chi(h) = 1 \text{ for all } h \in H,\\ 0, & \text{otherwise} \end{cases}

holds.

Proof

Let me say a little more in words about the meaning of this orthogonality relation. If a character χ\chi is identically 11 on HH, then the sum is simply 11 added H\card{H} times, so it equals H\card{H}. On the other hand, if χ\chi oscillates even slightly on HH, its values cancel one another in the complex plane, and the sum becomes 00.

Annihilators: characters that are trivial on a subgroup

We give a name to the characters that are trivial on a subgroup.

Definition 7.1.

Let GG be a finite abelian group, and let HGH \leq G be a subgroup. The annihilator of HH5 is defined by

H{χG^:χ(h)=1 for all hH}.H^{\circ} \coloneqq \{ \chi \in \widehat{G} : \chi(h) = 1 \text{ for all } h \in H \}.

The set HH^{\circ} is a subgroup of G^\widehat{G}. Indeed, the trivial character 1G1_{G} lies in HH^{\circ} because 1G(h)=11_{G}(h)=1 for every hHh \in H. Also, if χ,ηH\chi,\eta \in H^{\circ}, then for every hHh \in H one has

(χη)(h)=χ(h)η(h)=1,(\chi\eta)(h)=\chi(h)\eta(h)=1,

and similarly

χ1(h)=χ(h)1=1.\chi^{-1}(h)=\chi(h)^{-1}=1.

So the subgroup conditions are satisfied. Using annihilators, Corollary 6.2 can be rewritten as

hHχ(h)={H,χH,0,χH.\sum_{h \in H}\chi(h) = \begin{cases} \card{H}, & \chi \in H^{\circ},\\ 0, & \chi \notin H^{\circ}. \end{cases}

Now apply this formula to G=FqEG=\mathbb{F}_{q}^{E} and H=CH=C. Let me first organise where the objects under discussion live.

CC^{\perp}

This is a subspace of FqE\mathbb{F}_{q}^{E}, consisting of all vectors orthogonal to CC under the inner product.

FqE^\widehat{\mathbb{F}_{q}^{E}}

This is the full set of characters of the additive group FqE\mathbb{F}_{q}^{E}.

CC^{\circ}

This is a subgroup of FqE^\widehat{\mathbb{F}_{q}^{E}}, consisting of all characters that are trivial on CC.

uχuu \mapsto \chi_{u}

This is an isomorphism depending on the fixed choice of ψ\psi and the standard inner product, and it connects FqE\mathbb{F}_{q}^{E} with FqE^\widehat{\mathbb{F}_{q}^{E}}.

So, strictly speaking, CC^{\perp} and CC^{\circ} live in different places. The former is a subspace of FqE\mathbb{F}_{q}^{E}, whereas the latter is a subgroup of FqE^\widehat{\mathbb{F}_{q}^{E}}. Accordingly, whenever I say that they “correspond” below, I mean correspondence through the fixed isomorphism uχuu \mapsto \chi_{u}.

I connect FqE\mathbb{F}_{q}^{E} and its character group by the isomorphism from Theorem 5.1

uχu,χu(v)=ψ(uv).u \longmapsto \chi_{u}, \quad \chi_{u}(v) = \psi(u \cdot v).

Through this isomorphism, the annihilator of CC corresponds to CC^{\perp}.

As already noted, even for a non-trivial additive character ψ\psi, one does not in general have

ψ(x)=1    x=0.\psi(x)=1 \implies x=0.

In particular, when q=pmq=p^{m} with m>1m>1, the standard additive character built from the trace has a non-trivial kernel. Therefore, from χu(c)=ψ(uc)=1\chi_{u}(c)=\psi(u\cdot c)=1 one cannot conclude immediately that uc=0u\cdot c=0. In the proof below, one uses the Fq\mathbb{F}_{q}-linearity of CC at this point.

Here we use the following auxiliary fact. If ψ\psi is a non-trivial additive character of Fq\mathbb{F}_{q} and dFqd \in \mathbb{F}_{q} satisfies d0d \neq 0, then

aψ(ad)a \longmapsto \psi(ad)

is also a non-trivial additive character. Indeed, aada \mapsto ad is a bijection of Fq\mathbb{F}_{q}, and if ψ(ad)=1\psi(ad)=1 held for every aa, then ψ\psi would be identically 11 on all of Fq\mathbb{F}_{q}.

Theorem 7.2.

Under the isomorphism above, CC^{\circ} corresponds to CC^{\perp}. In other words, for uFqEu \in \mathbb{F}_{q}^{E},

χuC    uC\chi_{u} \in C^{\circ} \iff u \in C^{\perp}

holds.

Proof
(    \impliedby)

Suppose that uCu \in C^{\perp}. Then for every cCc \in C one has uc=0u \cdot c = 0, so

χu(c)=ψ(uc)=ψ(0)=1.\chi_{u}(c) = \psi(u \cdot c) = \psi(0) = 1.

Hence χuC\chi_{u} \in C^{\circ}.

(    \implies)

Assume that χuC\chi_{u}\in C^\circ. Suppose, for a contradiction, that uCu\notin C^\perp. Then there exists c0Cc_{0} \in C such that uc00u \cdot c_{0} \neq 0. Put d=uc0d = u \cdot c_{0}, so d0d \neq 0, and the map aψ(ad)a \mapsto \psi(ad) is a non-trivial additive character of Fq\mathbb{F}_{q}. Hence there exists aFqa \in \mathbb{F}_{q} such that

ψ(ad)1.\psi(ad)\neq 1.

But CC is a linear code, so ac0Cac_{0} \in C, and therefore

χu(ac0)=ψ(uac0)=ψ(a(uc0))=ψ(ad)1.\chi_{u}(ac_{0}) = \psi(u \cdot ac_{0}) = \psi(a(u \cdot c_{0})) = \psi(ad) \neq 1.

This contradicts the assumption that χu\chi_{u} is trivial on CC. Hence uCu \in C^{\perp}.

Thus χuC\chi_{u} \in C^{\circ} and uCu \in C^{\perp} are equivalent.

End of proof

This theorem says that, through the fixed isomorphism uχuu \mapsto \chi_{u}, the condition uCu \in C^{\perp} is equivalent to saying that the corresponding character χu\chi_{u} is trivial on CC. This is the central viewpoint in the character-theoretic proof.

Corollary 7.3.

For every uFqEu \in \mathbb{F}_{q}^{E},

1CcCψ(uc)={1,uC,0,uC\frac{1}{\card{C}}\sum_{c \in C}\psi(u\cdot c) = \begin{cases} 1, & u \in C^{\perp},\\ 0, & u \notin C^{\perp} \end{cases}

holds.

Proof

This formula is extremely important. The left-hand side is a character sum over CC. The right-hand side is the indicator function of whether uu lies in CC^{\perp}. That is,

1C(u)=1CcCψ(uc).\mathbf{1}_{C^{\perp}}(u) = \frac{1}{\card{C}}\sum_{c \in C}\psi(u \cdot c).

In the character-theoretic proof, this formula is used to convert sums over CC^{\perp} into sums over CC.

Character sums as a finite Poisson summation formula

Before entering the MacWilliams identity itself, I write the formula in a slightly more general form. Let V=FqEV = \mathbb{F}_{q}^{E}, and let f ⁣:VCf \colon V \to \mathbb{C} be any function.

Definition 8.1.

For a function f ⁣:FqECf \colon \mathbb{F}_{q}^{E} \to \mathbb{C}, define its character-sum transform f^ ⁣:FqEC\widehat{f} \colon \mathbb{F}_{q}^{E} \to \mathbb{C} by

f^(c)uFqEf(u)ψ(cu).\widehat{f}(c) \coloneqq \sum_{u \in \mathbb{F}_{q}^{E}} f(u)\psi(c\cdot u).

Here I use the form without the coefficient 1/FqE1/\card{\mathbb{F}_{q}^{E}}. The placement of normalising factors and signs varies from one reference to another, but I use this form because it fits the later MacWilliams identity. Also, in this note I do not use the Fourier inversion formula itself. Rather, I use this transform to move sums over CC^{\perp} to sums over CC.

This transform is usually called the Fourier transform on a finite abelian group. However, to keep the viewpoint of an introduction to character theory, I treat it simply as an operation of taking weighted sums with characters.

The finite Poisson summation formula is a formula that, instead of summing directly over CC^{\perp}, converts the sum into a character sum over CC. The name may sound somewhat grand, but in the range used in this note it is not a deep analytic theorem. What one actually does is only to express 1C\mathbf{1}_{C^{\perp}} as a character sum and interchange the order of two finite sums. Although the word Poisson appears in the name, no integrals or limits appear here; everything takes place entirely over finite sums.

Theorem 8.2 (Finite Poisson summation formula).

For any function f ⁣:FqECf \colon \mathbb{F}_{q}^{E} \to \mathbb{C},

uCf(u)=1CcCf^(c)\sum_{u \in C^{\perp}} f(u) = \frac{1}{\card{C}} \sum_{c \in C}\widehat{f}(c)

holds.

Proof

By Corollary 7.3,

1C(u)=1CcCψ(uc).\mathbf{1}_{C^{\perp}}(u) = \frac{1}{\card{C}}\sum_{c \in C}\psi(u\cdot c).

Therefore

uCf(u)=uFqEf(u)1C(u)=uFqEf(u)1CcCψ(uc)=1CcCuFqEf(u)ψ(cu)=1CcCf^(c).\begin{aligned} \sum_{u \in C^{\perp}} f(u) &= \sum_{u \in \mathbb{F}_{q}^{E}} f(u)\mathbf{1}_{C^{\perp}}(u)\\ &= \sum_{u \in \mathbb{F}_{q}^{E}} f(u) \frac{1}{\card{C}}\sum_{c \in C}\psi(u\cdot c)\\ &= \frac{1}{\card{C}} \sum_{c \in C} \sum_{u \in \mathbb{F}_{q}^{E}} f(u)\psi(c\cdot u)\\ &= \frac{1}{\card{C}} \sum_{c \in C}\widehat{f}(c). \end{aligned}

Here I used the symmetry uc=cuu \cdot c = c\cdot u.

End of proof

To check the normalisation, let us look at the case f1f \equiv 1. Then the left-hand side is C\card{C^{\perp}}. On the right-hand side,

f^(0)=uFqE1=qn,\widehat{f}(0)=\sum_{u \in \mathbb{F}_{q}^{E}}1=q^{n},

and if c0c \neq 0, then the map uψ(cu)u \mapsto \psi(c\cdot u) is a non-trivial character by Theorem 5.1, so

f^(c)=uFqEψ(cu)=0\widehat{f}(c)=\sum_{u \in \mathbb{F}_{q}^{E}}\psi(c\cdot u)=0

by Theorem 6.1. Hence the right-hand side becomes

qnC.\frac{q^{n}}{\card{C}}.

This agrees with

C=qnC,\card{C^{\perp}}=\frac{q^{n}}{\card{C}},

which follows from the usual dimension formula

dimC+dimC=n.\dim C+\dim C^{\perp}=n.

This is not a fact used in the proof of the finite Poisson summation formula itself; it is only a check that the coefficient 1/C1/\card{C} has the right normalisation.

This theorem is almost all of the MacWilliams identity. Above I stated it for complex-valued functions ff. The function FX,YF_{X,Y} used below takes values in C[X,Y]\mathbb{C}[X,Y], but one can simply apply the complex-valued case coefficientwise, so the same proof works unchanged. Thus I also apply this formula to polynomial-valued functions. The only remaining task is to choose a function ff corresponding to the weight enumerator and compute its character-sum transform f^\widehat{f}.

The character sum in one coordinate

The function used in the MacWilliams identity decomposes by coordinates. So I begin with a one-coordinate calculation.

Let XX and YY be indeterminates, and define a function

φX,Y ⁣:FqC[X,Y]\varphi_{X,Y}\colon \mathbb{F}_{q}\to \mathbb{C}\lbrack X,Y \rbrack

by

φX,Y(a)={X,a=0,Y,a0.\varphi_{X,Y}(a) = \begin{cases} X, & a=0,\\ Y, & a\neq 0. \end{cases}

This is the function that returns XX when one coordinate is 00 and YY when it is non-zero.

Let us first look at the case of F2\mathbb{F}_{2}. If we take the non-trivial additive character ψ(a)=(1)a\psi(a)=(-1)^{a}, then for b=0b=0,

aF2φX,Y(a)ψ(0a)=X+Y,\sum_{a\in\mathbb{F}_{2}}\varphi_{X,Y}(a)\psi(0\cdot a) = X+Y,

while for b=1b=1,

aF2φX,Y(a)ψ(a)=XY.\sum_{a\in\mathbb{F}_{2}}\varphi_{X,Y}(a)\psi(a) = X-Y.

This is the prototype of the general expressions X+(q1)YX+(q-1)Y and XYX-Y.

Theorem 9.1.

For bFqb \in \mathbb{F}_{q},

aFqφX,Y(a)ψ(ba)={X+(q1)Y,b=0,XY,b0\sum_{a \in \mathbb{F}_{q}} \varphi_{X, Y}(a) \psi(ba) = \begin{cases} X + (q - 1)Y, & b = 0,\\ X - Y, & b\neq 0 \end{cases}

holds.

Proof

First suppose that b=0b = 0. Then ψ(ba)=ψ(0)=1\psi(ba) = \psi(0) = 1, so

aFqφX,Y(a)ψ(ba)=aFqφX,Y(a)=X+(q1)Y.\sum_{a \in \mathbb{F}_{q}}\varphi_{X,Y}(a)\psi(ba) = \sum_{a \in \mathbb{F}_{q}}\varphi_{X,Y}(a) = X + (q - 1)Y.

Next suppose that b0b \neq 0. Then the map abaa \mapsto ba is a permutation of Fq\mathbb{F}_{q}, and in particular a permutation of Fq×\mathbb{F}_{q}^{\times}. Hence

aFqφX,Y(a)ψ(ba)=X+YaFq×ψ(ba)=X+YtFq×ψ(t).\begin{aligned} \sum_{a \in \mathbb{F}_{q}}\varphi_{X, Y}(a) \psi(ba) &= X + Y\sum_{a \in \mathbb{F}_{q}^{\times}}\psi(ba)\\ &= X + Y\sum_{t \in \mathbb{F}_{q}^{\times}}\psi(t). \end{aligned}

Since ψ\psi is a non-trivial character, Theorem 6.1 gives

tFqψ(t)=0.\sum_{t \in \mathbb{F}_{q}}\psi(t) = 0.

Therefore

tFq×ψ(t)=ψ(0)=1.\sum_{t \in \mathbb{F}_{q}^{\times}}\psi(t) = -\psi(0) = -1.

Hence

aFqφX,Y(a)ψ(ba)=XY.\sum_{a \in \mathbb{F}_{q}}\varphi_{X,Y}(a)\psi(ba) = X - Y.
End of proof

From this one-coordinate calculation, the variable change

XX+(q1)Y,YXYX \longmapsto X + (q - 1)Y, \qquad Y \longmapsto X - Y

emerges. At a zero coordinate one gets X+(q1)YX + (q - 1)Y, while at a non-zero coordinate one gets XYX - Y.

The character-sum transform of the weight function

Let V=FqEV = \mathbb{F}_{q}^{E}. The weight enumerator can be written using the function

FX,Y(u)Xnwt(u)Ywt(u)(uV).F_{X,Y}(u) \coloneqq X^{n - \wt(u)} Y^{\wt(u)} \qquad (u \in V).

Then for any code DVD \leq V,

WD(X,Y)=uDFX,Y(u).W_{D}(X,Y) = \sum_{u \in D} F_{X,Y}(u).

Moreover, FX,YF_{X,Y} can be written as a product over coordinates:

FX,Y(u)=iEφX,Y(ui).F_{X,Y}(u) = \prod_{i \in E} \varphi_{X,Y}(u_{i}).

This decomposition reduces the computation of the character-sum transform to the one-coordinate calculation.

Theorem 10.1.

For cFqEc \in \mathbb{F}_{q}^{E},

FX,Y^(c)=(X+(q1)Y)nwt(c)(XY)wt(c)\widehat{F_{X,Y}}(c) = \bigl(X + (q - 1)Y \bigr)^{n - \wt(c)}(X - Y)^{\wt(c)}

holds.

Proof

By definition,

FX,Y^(c)=uFqEFX,Y(u)ψ(cu)=uFqEiEφX,Y(ui)ψ(iEciui).\begin{aligned} \widehat{F_{X, Y}}(c) &= \sum_{u \in \mathbb{F}_{q}^{E}}F_{X,Y}(u)\psi(c\cdot u)\\ &= \sum_{u \in \mathbb{F}_{q}^{E}} \prod_{i \in E}\varphi_{X,Y}(u_i) \psi\left(\sum_{i \in E} c_{i} u_{i} \right). \end{aligned}

Since ψ\psi is an additive character,

ψ(iEciui)=iEψ(ciui).\psi\left(\sum_{i \in E} c_{i} u_{i} \right) = \prod_{i \in E} \psi(c_i u_i).

Therefore

FX,Y^(c)=uFqEiEφX,Y(ui)ψ(ciui)=iE(aFqφX,Y(a)ψ(cia)).\begin{aligned} \widehat{F_{X,Y}}(c) &= \sum_{u \in \mathbb{F}_{q}^{E}} \prod_{i \in E}\varphi_{X, Y}(u_{i})\psi(c_{i} u_{i})\\ &= \prod_{i \in E} \left( \sum_{a \in \mathbb{F}_{q}}\varphi_{X,Y}(a)\psi(c_{i} a) \right). \end{aligned}

In the last equality, I used that a sum over a finite direct product factors into the product of sums over the coordinates. For example, if E={1,2}E=\{1,2\}, then

u1,u2A1(u1)A2(u2)=(u1A1(u1))(u2A2(u2)).\sum_{u_{1},u_{2}} A_{1}(u_{1})A_{2}(u_{2}) = \left(\sum_{u_{1}} A_{1}(u_{1})\right) \left(\sum_{u_{2}} A_{2}(u_{2})\right).

By Theorem 9.1, the factor for each coordinate ii is

{X+(q1)Y,ci=0,XY,ci0.\begin{cases} X + (q - 1)Y, & c_{i} = 0,\\ X - Y, & c_{i} \neq 0. \end{cases}

Since the number of zero coordinates of cc is nwt(c)n - \wt(c) and the number of non-zero coordinates is wt(c)\wt(c), we obtain

FX,Y^(c)=(X+(q1)Y)nwt(c)(XY)wt(c).\widehat{F_{X,Y}}(c) = \bigl( X + (q - 1)Y \bigr)^{n - \wt(c)}(X - Y)^{\wt(c)}.
End of proof

This theorem is exactly the variable transformation in the MacWilliams identity. The variables X+(q1)YX + (q - 1)Y and XYX - Y arise from the one-coordinate character sum of the weight function.

Proof of the MacWilliams identity

We are now ready to prove the MacWilliams identity. Everything follows simply by combining the preparations above.

Let V=FqEV = \mathbb{F}_{q}^{E}, and put FX,Y(u)=Xnwt(u)Ywt(u)F_{X,Y}(u) = X^{n - \wt(u)}Y^{\wt(u)}. Then

WC(X,Y)=uCFX,Y(u).W_{C^{\perp}}(X, Y) = \sum_{u \in C^{\perp}} F_{X, Y}(u).

Applying Theorem 8.2 with f=FX,Yf = F_{X,Y} gives

WC(X,Y)=1CcCFX,Y^(c).W_{C^{\perp}}(X,Y) = \frac{1}{\card{C}} \sum_{c \in C}\widehat{F_{X,Y}}(c).

By Theorem 10.1,

FX,Y^(c)=(X+(q1)Y)nwt(c)(XY)wt(c),\widehat{F_{X,Y}}(c) = \bigl(X+(q-1)Y\bigr)^{n-\wt(c)}(X-Y)^{\wt(c)},

so

WC(X,Y)=1CcC(X+(q1)Y)nwt(c)(XY)wt(c)=1CWC(X+(q1)Y,XY).\begin{aligned} W_{C^{\perp}}(X,Y) &= \frac{1}{\card{C}} \sum_{c \in C} \bigl( X + (q - 1)Y \bigr)^{n - \wt(c)}(X - Y)^{\wt(c)}\\ &= \frac{1}{\card{C}} W_{C}\bigl(X + (q - 1)Y, X - Y \bigr). \end{aligned}

This proves the MacWilliams identity.

The flow of this proof may be summarised in the following sentence:

Through the fixed isomorphism uχuu \mapsto \chi_{u}, whenever uCu \in C^{\perp} the corresponding character χu\chi_{u} is trivial on CC, and the character-sum transform of the weight function yields the MacWilliams variable transformation.

A small example: the binary repetition code of length 22

Let us look at a small example to see how the character sum picks out the dual code. Consider the code over F22\mathbb{F}_{2}^{2}

C={(0,0),(1,1)}.C = \{ (0, 0), (1, 1) \}.

This is a one-dimensional repetition code. As a non-trivial additive character of F2\mathbb{F}_{2}, take

ψ(a)=(1)a.\psi(a) = (-1)^{a}.

This code is self-dual. Indeed, the condition for u=(u1,u2)u = (u_{1}, u_{2}) to be orthogonal to the element (1,1)(1, 1) of CC is

u1+u2=0,u_{1} + u_{2} = 0,

which means that u=(0,0)u = (0, 0) or u=(1,1)u = (1, 1). Hence C=CC^{\perp} = C.

Corollary 7.3 asserts that for uF22u \in \mathbb{F}_{2}^{2},

12cC(1)uc={1,uC,0,uC\frac{1}{2}\sum_{c \in C}(-1)^{u \cdot c} = \begin{cases} 1, & u \in C^{\perp},\\ 0, & u \notin C^{\perp} \end{cases}

holds. Indeed, since C={(0,0),(1,1)}C = \{ (0, 0), (1, 1) \}, the left-hand side is

12(1+(1)u1+u2).\frac{1}{2}\left( 1 + (-1)^{u_{1} + u_{2}} \right).

This equals 11 when u1+u2=0u_{1} + u_{2} = 0, and equals 00 when u1+u2=1u_{1} + u_{2} = 1. So the character sum really does produce the indicator function of CC^{\perp}.

The weight enumerator is

WC(X,Y)=X2+Y2.W_{C}(X, Y) = X^{2} + Y^{2}.

The right-hand side of the MacWilliams identity is

1CWC(X+Y,XY)=12((X+Y)2+(XY)2)=X2+Y2,\begin{aligned} \frac{1}{\card{C}} W_{C}(X + Y, X - Y) &= \frac{1}{2}\left((X + Y)^{2} + (X - Y)^{2} \right)\\ &= X^{2} + Y^{2}, \end{aligned}

which agrees with WC(X,Y)=WC(X,Y)W_{C^{\perp}}(X,Y)=W_{C}(X,Y).

In this example, one can see that every calculation comes from the orthogonality relation for the character

(1)uc.(-1)^{u \cdot c}.

In this example, since q=2q=2, the non-trivial additive character ψ(x)=(1)x\psi(x)=(-1)^{x} has the property

ψ(x)=1    x=0.\psi(x) = 1 \implies x=0.

However, when q=pmq=p^{m} with m>1m>1, it can happen that Tr(x)=0\Tr(x)=0 even for a non-zero xx, and for such an xx, the trace character satisfies ψ(x)=1\psi(x)=1. That is why, in the general proof, one does not conclude uc=0u\cdot c=0 directly from ψ(uc)=1\psi(u\cdot c)=1, but instead uses the Fq\mathbb{F}_{q}-linearity of CC.

What character theory was doing in this proof

Let me now organise the role played by character theory in the proof.

First, character theory changed the meaning of the dual code. Usually, the dual code is defined through the inner product by

C={uFqE:uc=0 for all cC}.C^{\perp} = \{ u \in \mathbb{F}_{q}^{E} : u \cdot c = 0 \text{ for all }c\in C\}.

Through the fixed isomorphism uχuu \mapsto \chi_{u}, the condition uCu \in C^{\perp} becomes equivalent to saying that the corresponding character χu\chi_{u} is trivial on CC. That is,

uC    χu(c)=1 for all cC.u \in C^{\perp} \iff \chi_{u}(c) = 1 \text{ for all } c \in C.

Secondly, the orthogonality relation for characters allowed us to write the indicator function of CC^{\perp} as

1C(u)=1CcCψ(uc).\mathbf{1}_{C^{\perp}}(u) = \frac{1}{\card{C}}\sum_{c \in C}\psi(u\cdot c).

This made it possible to convert sums over CC^{\perp} into sums over CC.

Thirdly, the character-sum transform of the weight function

FX,Y(u)=Xnwt(u)Ywt(u)F_{X, Y}(u) = X^{n - \wt(u)} Y^{\wt(u)}

split into one-coordinate character sums. From the one-coordinate calculation

aFqφX,Y(a)ψ(ba)={X+(q1)Y,b=0,XY,b0\sum_{a \in \mathbb{F}_{q}} \varphi_{X, Y}(a) \psi(ba) = \begin{cases} X + (q - 1)Y, & b = 0,\\ X - Y, & b \neq 0 \end{cases}

the variable transformation in the MacWilliams identity emerged.

Thus the key points of the character-theoretic proof are the following three.

  1. View each element of FqE\mathbb{F}_{q}^{E} as the character vψ(uv)v \mapsto \psi(u \cdot v).

  2. Through the fixed isomorphism uχuu \mapsto \chi_{u}, make CC^{\perp} correspond to the characters that are trivial on CC.

  3. Use character orthogonality to convert the weight sum over CC^{\perp} into a character sum over CC.

The MacWilliams identity is obtained by combining these three ideas.

Concepts introduced in this note

In this note, with the proof of the MacWilliams identity as the goal, I introduced the basic tools of character theory on finite abelian groups. To summarise:

Finite abelian group

A finite set equipped with addition satisfying associativity, a zero element, inverses, and commutativity. The space FqE\mathbb{F}_{q}^{E} is a finite abelian group.

Character

A group homomorphism from a finite abelian group GG to C×\mathbb{C}^{\times},

χ ⁣:GC×.\chi\colon G\to\mathbb{C}^{\times}.

It is a function that turns addition into multiplication.

Trivial character

The character sending every element to 11.

Character group

The set of all characters of GG,

G^=Hom(G,C×).\widehat{G} = \Hom(G,\mathbb{C}^{\times}).

With pointwise multiplication, it is itself a finite abelian group.

Additive character

A character of the additive group of a finite field Fq\mathbb{F}_{q}. Once a non-trivial additive character ψ\psi is fixed, each uFqEu \in \mathbb{F}_{q}^{E} gives a character

χu(v)=ψ(uv).\chi_{u}(v) = \psi(u \cdot v).
Orthogonality relation

The sum of a non-trivial character over the whole group is 00. Likewise, on a subgroup, the sum of a character that is non-trivial there is also 00.

Annihilator

For a subgroup HGH \leq G, the set of all characters that are trivial on HH:

H={χG^:χ(h)=1 for all hH}.H^{\circ} = \{ \chi \in \widehat{G}:\chi(h) = 1\text{ for all }h\in H\}.

In coding theory, through the fixed isomorphism uχuu \mapsto \chi_{u}, the annihilator of CC corresponds to CC^{\perp}.

Finite Poisson summation formula

For a function f ⁣:FqECf\colon\mathbb{F}_{q}^{E} \to \mathbb{C}, the formula

uCf(u)=1CcCf^(c)\sum_{u \in C^{\perp}}f(u) = \frac{1}{\card{C}}\sum_{c\in C}\widehat{f}(c)

converts a sum over the dual code into a sum over the original code.

In this proof, character theory allowed us to reinterpret the relation between CC and CC^{\perp} from “orthogonal complement” to “correspondence with an annihilator”. Through this reinterpretation, the dual code arises naturally from orthogonality relations of characters.

Looking back at this family of proofs

As mentioned at the beginning, the present proof belongs to the family of

Fourier, character, and Poisson methods.

On the surface, it is a proof using characters of finite abelian groups. At a deeper level, however, it uses Fourier analysis on finite abelian groups.

More concretely, the following correspondences appeared.

the character χu(v)=ψ(uv)\chi_u(v)=\psi(u\cdot v) \quad\longleftrightarrow\quad a basis function in Fourier analysis

CC^{\perp} \quad\longleftrightarrow\quad the characters trivial on CC, namely CC^{\circ}, corresponding through the fixed isomorphism uχuu \mapsto \chi_{u}

the MacWilliams variable transformation \quad\longleftrightarrow\quad the one-coordinate character-sum transform

From this point of view, the MacWilliams identity is a special case of the Poisson summation formula on a finite abelian group. Unlike the Poisson summation formula in continuous analysis, however, every sum here is finite. So issues of convergence and integration do not arise.

The main point of the proof may be summarised in the following sentence:

Through the fixed isomorphism uχuu \mapsto \chi_{u}, the dual code CC^{\perp} corresponds to the characters trivial on CC, namely CC^{\circ}. Using this correspondence together with character orthogonality, one can convert the weight sum over CC^{\perp} into a character sum over the original code CC.

This way of thinking appears not only in the classical MacWilliams identity, but also in more general MacWilliams-type identities for complete weight enumerators, additive codes on finite abelian groups, and codes over Frobenius rings.

In the MacWilliams identity over Frobenius rings proved by Wood [Woo99], the identification between the ring and its character group through a generating character plays a central role. As a somewhat more concrete reference on “MacWilliams-type identities over finite Frobenius rings”, one may mention [HL01], which develops a unified treatment of such identities for several kinds of weight distribution on linear codes over finite Frobenius rings.

Next time

Next time, I revisit the character-theoretic proof given here using the language of matrices and tensor products.

In the present proof, I used a non-trivial additive character ψ\psi of Fq\mathbb{F}_{q} to compute, in each coordinate, the sum

aFqφX,Y(a)ψ(ba).\sum_{a\in\mathbb{F}_{q}}\varphi_{X,Y}(a)\psi(ba).

This one-coordinate transform can in fact be written as a q×qq\times q matrix. Then the transformation for a code of length nn can be written as the nn-fold tensor product of that matrix.

In other words, the proof in this note can be translated into the form

character sums → matrices → tensor products

If one pushes the character-theoretic viewpoint into the background, the MacWilliams identity begins to look like “a formula saying that the tensor product of a certain Hadamard-type matrix acts on weight enumerators”.

Even within the same Fourier, character, and Poisson family of proofs, the picture changes considerably depending on whether one places characters or matrices in the foreground. Next time, by examining this difference, I will use it as a guide to an introduction to tensor-product linear algebra.

Footnotes

  1. Even so, it is not the case that one can forget it completely and still carry out every argument. Much of the discussion proceeds using only the additive-group structure, but when we later relate the annihilator CC^{\circ} to the usual dual code CC^{\perp}, we use the Fq\mathbb{F}_{q}-linearity of CC, namely that if aFqa \in \mathbb{F}_{q} and cCc \in C, then acCac \in C.
  2. If xx^{\prime} and xx^{\prime\prime} are both inverses of xGx \in G, then x=x+0=x+(x+x)=(x+x)+x=0+x=xx^{\prime} = x^{\prime} + 0 = x^{\prime} + (x + x^{\prime\prime}) = (x^{\prime} + x) + x^{\prime\prime} = 0 + x^{\prime\prime} = x^{\prime\prime}. (This proof shows that commutativity (G4) is not needed.)
  3. Here we consider a homomorphism f ⁣:GGf \colon G \to G^{\prime} from a group written additively to a group written multiplicatively. Let 00 be the identity element of GG, and let 1G1_{G^{\prime}} be the identity element of GG^{\prime}. Then f(0)=f(0)1G=f(0)(f(0)f(0)1)=(f(0)f(0))f(0)1=f(0+0)f(0)1=f(0)f(0)1=1Gf(0) = f(0)1_{G^{\prime}} = f(0)(f(0)f(0)^{-1}) = (f(0)f(0))f(0)^{-1} = f(0 + 0)f(0)^{-1} = f(0)f(0)^{-1} = 1_{G^{\prime}}.
  4. The order of xGx \in G is the smallest positive integer mm such that mxx++xm times=0mx \coloneqq \underbrace{x + \dots + x}_{m\text{ times}} = 0. (If one uses multiplicative notation instead, it is the smallest positive integer mm such that xmxxm times=1x^{m} \coloneqq \underbrace{x \dotsm x}_{m\text{ times}} = 1.)
  5. Despite the name, this does not mean that the value of the character becomes 00. It means that the value becomes the multiplicative identity 11, that is, that the character is trivial on the subgroup. The terminology is borrowed by analogy with annihilators in module theory.

References

  1. [Ter99] Audrey Terras. Fourier analysis on finite groups and applications. Cambridge University Press, Cambridge, vol. 43, pp. x+442, 1999. doi:10.1017/CBO9780511626265
  2. [SS03] Elias M. Stein and Rami Shakarchi. Fourier analysis. Princeton University Press, Princeton, NJ, vol. 1, pp. xvi+311, 2003
  3. [LN97] Rudolf Lidl and Harald Niederreiter. Finite fields. Cambridge University Press, Cambridge, vol. 20, pp. xiv+755, 1997
  4. [Woo99] Jay A. Wood. Duality for modules over finite rings and applications to coding theory. Amer. J. Math., vol. 121, no. 3, pp. 555–575, 1999. http://muse.jhu.edu/journals/american_journal_of_mathematics/v121/121.3wood.pdf
  5. [HL01] Thomas Honold and Ivan Landjev. MacWilliams identities for linear codes over finite Frobenius rings. Finite fields and applications (Augsburg, 1999), pp. 276–292, 2001

This series

A Series Learning through the MacWilliams Identity · Part 2 of 12

Back to series list

Disclaimer

Articles on this site are based on the operator's personal understanding, investigation, and research notes. I try to keep the content accurate, but it may contain errors or incomplete explanations. I do not guarantee its accuracy, completeness, usefulness, or currentness.

Please use the information on this site at your own judgment and responsibility. To the extent permitted by law, the operator is not liable for damages, losses, or disadvantages arising from using, or being unable to use, information on this site.

If you notice an error, unclear explanation, broken link, or insufficient citation, please contact the operator. I will review the content and, when appropriate, correct, update, or remove it.