chap 2 7
DOCX · 23.6 KB
Open DOCX file
Chapter draft from a book on Galois fields, in the folder of original Galois material from Philips Electronics. It reviews the modulo-n ring Zn and shows that the non-zero elements form a cyclic multiplicative group when n is prime, with a Z5 example. It covers a^p = a, pa = 0 and (a+b)^p = a^p + b^p, and uses mod-5 and mod-4 tables to show GF(4) is not modulo arithmetic. It ends by pointing toward polynomials for GF(p^m).
AI-written summary; may contain errors.
Extracted text (machine-read; may contain errors)
Chapter 2: The Galois Fields GF(p) .
Chapter Contents.
• More discussion of the modulo-n ring Zn
• If n=prime, Zn is not just a ring, it is also a field.
• The non-zero elements of Zn form a multiplicative group of order n-1 when n = prime.
• This multiplicative group is cyclic and has at least one generator.
• If n is prime, then for any element a of Zn we have an = a.
• Big Fact: Galois Fields GF(p) are equivalent to Zp and Z/( p )
• There are several useful relations which apply to elements of GF(p):
ap = a
pa = 0
(a + b) p = ap + bp
(a + b + c + d + ... )p = ap + bp + cp +dp +...
Chapter 2: The Galois Fields GF(p) .
Note: throughout this Chapter, we shall assume that p is some prime number, p = 2,3,5,7,11,13,...
More Discussion of Zn = { mod-n,+,•}
In Chapter 1 we first showed that the set of numbers { 0,1,2,3,...n-1} formed a cyclic additive group which we called { mod-n,+}. A short list of properties was then presented for { mod-n,+}. One such property, for example, was that fact that na = 0 for any a in the group.
The next step was to upgrade this additive group to ring status by endowing it with the modulo • multiplicative operation. This ring was called Zn = { mod-n,+,•}, and the proof that it really is a ring was presented in full detail. In fact, it is a "ring with identity".
Finally, at the end of Chapter 1 we showed that Zn is a field when n is prime. This means that all non-zero elements have inverses. This leads to the next claim:
Claim: The ring Zn has n elements which are {0,1,2,3...n-1}, and we have modulo-n operations + and •. The claim is that, if you consider the subset of the n-1 non-zero elements {1,2,3...n-1}, this set forms a group under the mod-n • operation, provided that n is a prime number. Although the modulo operation is mod-n, the order of this group is n-1, since order is the number of elements in a group.
Proof: We already know that Zn is a ring with identity, so it is just the inverses that are missing. But since Zn is a field for prime n, we know these inverses all exist. QED.
Claim : The group just mentioned, {1,2,3...n-1} under operation •, is a cyclic group! It follows from this claim that there is at least one generator g, so we can write the group as
{1, g, g2, g3, ...gn-2} where gn-1 = 1, or gn = g order = n-1
Proof: It will later be shown that all Galois Fields are cyclic under •.
Fact : If n is prime, then for any element a of Zn we have: an = a.
Proof: Let our arbitrary element be a = gk. Then an = (gk)n = gkn = (gn)k = (g)k = a, QED.
Example: Let n = 5 = prime, then the 4 elements of our multiplicative group are {1,2,3,4}. These are the non-zero elements of the ring (and field) Z5. An acceptible generator is 2, since (remember mod-5)
21 = 2 22 = 4 23 = 8 = 3 24 = 16 = 1
So we can write out our elements using this generator as:
{ 1,2,4,3} = {1, 2, 22, 23 } where 24 = 1
Moreover, we can confirm that a4 = a for all elements of the group:
14 = 1 24 = 16 = 1 34 = 81 = 1 44 = 256 = 1
It is important to realize that not every element is a generator. Back in Chapter 1 we showed, once one element is known to be a generator, all elements (other than 1) are generators, provided the order of the cyclic group is prime. But here, the order is n-1 which is likely not to be prime. It is n that we want to be prime here.
In fact, we showed that gm is definitely not a generator if order/m = integer. To verify this, our order is n-1 = 4, so we suspect that gm = 22 = 4 will not be a generator. Let us check this:
41 =4 42 = 16 = 1 43 = 64 = 4 44 = 256 = 1
Sure enough, we are missing half the elements of our group. Element 4 generates a cyclic subgroup of order 2, which we know has to divide evenly into our group order of 4. On the other hand, since 3 does not divide evenly into 4, we are not surprised that 23 = 8 = 3 is a viable generator.
31 =3 32 = 9 = 4 33 =27 = 2 34 = 81 = 1
The relation between GF(p) and Zp
We have made the claim in Chapter 1 that finite fields (ie, Galois Fields) with q elements exist only if q is of the form pm where p is a prime number, and m is a positive integer. For example,
these fields exist: GF(2), GF(3), GF(4 = 22), GF(5), ...
these fields do not exist: GF(6 = 2*3), GF(15 = 3*5), ...
Furthermore, for a given order q, we claim there is only one such field. So if you find a field of order 5, it has to be GF(5).
We know that for any positive integer q, we can write down a pair of "modulo-q" tables for the two operations + and •. Here, for example, are the tables for q = 5:
+ 0 1 2 3 4 • 0 1 2 3 4
0 0 1 2 3 4 0 0 0 0 0 0
1 1 2 3 4 0 1 0 1 2 3 4
2 2 3 4 0 1 2 0 2 4 1 3
3 3 4 0 1 2 3 0 3 1 4 2
4 4 0 1 2 3 4 0 4 3 2 1
For any integer q, we get similar tables. So we have a set of q elements and two operations + and •, and the thing is "closed" under each operation, and distributive holds, and there is an identity, so for any q the set of elements forms a "ring with identity". This is Zq. If every element has an inverse, then this thing advances to the front of the class and is proclaimed to be a field.
The + table is always boring, since it just contains the q elements cyclically permuted on each new line.
The • table is more interesting. Notice in the above table that a 1 appears in every row except the first row. This means that every element except 0 has an inverse, so our modulo thing is a field when q = 5. In fact, each row except the first is just a reordering of the elements.
Since we have formed a finite field with 5 elements, it must be equivalent to GF(5).
More generally, since we have already identified a set of fields Zp for any prime p, these must be the GF(p). Recall that these are equivalent also to the residue class fields Z/( p ). Thus, we have arrived at this
Super Big Fact: For p = prime, GF(p) = Zp = Z/( p ).
If q is not a prime, this does not work. For example, here is the • table for q = 4.
• 0 1 2 3
0 0 0 0 0
1 0 1 2 3
2 0 2 0 2
3 0 3 2 1
Notice that the third row does not contain 1, so the element 2 has no multiplicative inverse. This "modulo-4 ring with identity" has four elements, but it is not a field.
We know that the field GF(4) = GF(22) exists. So we now know that the + and • tables for GF(4) are not the modulo arithmetic tables we have been talking about above. The correspondence between GF(p) and modulo-p only holds when p = a prime number.
So we summarize this section as follows:
Facts about GF(p)
Fact: The non-zero elements of GF(p) form a cyclic group under • of order p-1. There exists at least one element to serve as the generator. For example, for p=5 we have
{20 = 1, 21 = 2, 22 = 4, 23 = 8 = 3} = { 1,2,4,3 }
Proof: No proof yet. This will come in Chapter 4.
Fact: For any element of GF(p), we claim that ap = a, where a = 0,1,2....(p-1). This fact is very useful later on when we consider the elements of GF(p) as coefficients of a polynomial defined on GF(p).
Proof: We already proved this in the section about Zn above.
Fact: We claim that pa = 0 for any element a of GF(p).
Proof: This is because GF(p) = Zp is a cyclic additive group, see lengthy discussion in Chapter 1.
Example : We are used to the above result in the case of GF(p=2), the binary world, where we say x + x = 2x = 0. Our usual proof here is to just exhaust the possibilities: 1 + 1 = 0 and 0 + 0 = 0.
Fact: (a + b) p = ap + bp when a,b are elements of GF(p), p = prime.
Proof: If you use the binomial theorem to expand the left side, you get p+1 terms and the coefficients are the binomial coefficients ) for m = 0,1,2....p Except for the first and last term in the binomial expansion, all these coefficients are proportional to p, and since pn = 0 for any field element n, we see that all the cross terms having these coefficients must vanish.
Admittedly the result above conflicts with our usual intuition (field = reals) about what (a+b)p ought be be equal to.
Example: (1 + x)p= 1 + xp , where x is some element in GF(p), p = prime.
The above fact can be generalized as follows:
Fact: (a + b + c + d + ... )p = ap + bp + cp +dp +... for a,b,c,d... in GF(p).
Proof: just apply the binomial theory proof a bunch of times.
Conclusion: In this chapter we have identified the Galois Fields GF(p) to be the Zp . We have not yet nailed down the fields GF(pm). This is where the notion of polynomials comes into play. As a hint, we note that if you divide a polynomial by some polynomial of degree m, and this polynomial is defined over GF(p), then there are exactly pm possible remainders you can get. If we can somehow identify each of these remainders with a row of a residue class ring chart, then we may be on our way to constructing a representation of GF(pm) which is analogous to Z/( p ) for GF(p). Whereas integers sufficed for GF(p) and gave us p remainders, we have to go to polynomials to get pm remainders.