Jump to content

Finite field

From Wikipedia, the free encyclopedia

Inmathematics,afinite fieldorGalois field(so-named in honor ofÉvariste Galois) is afieldthat contains a finite number ofelements.As with any field, a finite field is aseton which the operations of multiplication, addition, subtraction and division are defined and satisfy certain basic rules. The most common examples of finite fields are given by theintegers modpwhenpis aprime number.

Theorderof a finite field is its number of elements, which is either a prime number or aprime power.For every prime numberpand every positive integerkthere are fields of orderpk,all of which areisomorphic.

Finite fields are fundamental in a number of areas of mathematics andcomputer science,includingnumber theory,algebraic geometry,Galois theory,finite geometry,cryptographyandcoding theory.

Properties[edit]

A finite field is a finite set that is afield;this means that multiplication, addition, subtraction and division (excluding division by zero) are defined and satisfy the rules of arithmetic known as thefield axioms.

The number of elements of a finite field is called itsorderor, sometimes, itssize.A finite field of orderqexists if and only ifqis aprime powerpk(wherepis a prime number andkis a positive integer). In a field of orderpk,addingpcopies of any element always results in zero; that is, thecharacteristicof the field isp.

Ifq=pk,all fields of orderqareisomorphic(see§ Existence and uniquenessbelow).[1]Moreover, a field cannot contain two different finitesubfieldswith the same order. One may therefore identify all finite fields with the same order, and they are unambiguously denoted,FqorGF(q),where the letters GF stand for "Galois field".[2]

In a finite field of orderq,thepolynomialXqXhas allqelements of the finite field asroots.The non-zero elements of a finite field form amultiplicative group.This group iscyclic,so all non-zero elements can be expressed as powers of a single element called aprimitive elementof the field. (In general there will be several primitive elements for a given field.)

The simplest examples of finite fields are the fields of prime order: for eachprime numberp,theprime fieldof orderpmay be constructed as theintegers modulop,.

The elements of the prime field of orderpmay be represented by integers in the range0,...,p− 1.The sum, the difference and the product are theremainder of the divisionbypof the result of the corresponding integer operation. The multiplicative inverse of an element may be computed by using the extended Euclidean algorithm (seeExtended Euclidean algorithm § Modular integers).

LetFbe a finite field. For any elementxinFand anyintegern,denote bynxthe sum ofncopies ofx.The least positivensuch thatn⋅ 1 = 0is the characteristicpof the field. This allows defining a multiplication(k,x) ↦kxof an elementkofGF(p)by an elementxofFby choosing an integer representative fork.This multiplication makesFinto aGF(p)-vector space.It follows that the number of elements ofFispnfor some integern.

Theidentity (sometimes called thefreshman's dream) is true in a field of characteristicp.This follows from thebinomial theorem,as eachbinomial coefficientof the expansion of(x+y)p,except the first and the last, is a multiple ofp.

ByFermat's little theorem,ifpis a prime number andxis in the fieldGF(p)thenxp=x.This implies the equality for polynomials overGF(p).More generally, every element inGF(pn)satisfies the polynomial equationxpnx= 0.

Any finitefield extensionof a finite field isseparableand simple. That is, ifEis a finite field andFis a subfield ofE,thenEis obtained fromFby adjoining a single element whoseminimal polynomialisseparable.To use a piece of jargon, finite fields areperfect.

A more general algebraic structure that satisfies all the other axioms of a field, but whose multiplication is not required to be commutative, is called adivision ring(or sometimesskew field). ByWedderburn's little theorem,any finite division ring is commutative, and hence is a finite field.

Existence and uniqueness[edit]

Letq=pnbe aprime power,andFbe thesplitting fieldof the polynomial over the prime fieldGF(p).This means thatFis a finite field of lowest order, in whichPhasqdistinct roots (theformal derivativeofPisP= −1,implying thatgcd(P,P) = 1,which in general implies that the splitting field is aseparable extensionof the original). Theabove identityshows that the sum and the product of two roots ofPare roots ofP,as well as the multiplicative inverse of a root ofP.In other words, the roots ofPform a field of orderq,which is equal toFby the minimality of the splitting field.

The uniqueness up to isomorphism of splitting fields implies thus that all fields of orderqare isomorphic. Also, if a fieldFhas a field of orderq=pkas a subfield, its elements are theqroots ofXqX,andFcannot contain another subfield of orderq.

In summary, we have the following classification theorem first proved in 1893 byE. H. Moore:[1]

The order of a finite field is a prime power. For every prime powerqthere are fields of orderq,and they are all isomorphic. In these fields, every element satisfies

and the polynomialXqXfactors as

It follows thatGF(pn)contains a subfield isomorphic toGF(pm)if and only ifmis a divisor ofn;in that case, this subfield is unique. In fact, the polynomialXpmXdividesXpnXif and only ifmis a divisor ofn.

Explicit construction[edit]

Non-prime fields[edit]

Given a prime powerq=pnwithpprime andn> 1,the fieldGF(q)may be explicitly constructed in the following way. One first chooses anirreducible polynomialPinGF(p)[X]of degreen(such an irreducible polynomial always exists). Then thequotient ring of the polynomial ringGF(p)[X]by the ideal generated byPis a field of orderq.

More explicitly, the elements ofGF(q)are the polynomials overGF(p)whose degree is strictly less thann.The addition and the subtraction are those of polynomials overGF(p).The product of two elements is the remainder of theEuclidean divisionbyPof the product inGF(p)[X]. The multiplicative inverse of a non-zero element may be computed with the extended Euclidean algorithm; seeExtended Euclidean algorithm § Simple algebraic field extensions.

However, with this representation, elements ofGF(q)may be difficult to distinguish from the corresponding polynomials. Therefore, it is common to give a name, commonlyαto the element ofGF(q)that corresponds to the polynomialX.So, the elements ofGF(q)become polynomials inα,whereP(α) = 0,and, when one encounters a polynomial inαof degree greater or equal ton(for example after a multiplication), one knows that one has to use the relationP(α) = 0to reduce its degree (it is what Euclidean division is doing).

Except in the construction ofGF(4),there are several possible choices forP,which produce isomorphic results. To simplify the Euclidean division, one commonly chooses forPa polynomial of the form which make the needed Euclidean divisions very efficient. However, for some fields, typically in characteristic2,irreducible polynomials of the formXn+aX+bmay not exist. In characteristic2,if the polynomialXn+X+ 1is reducible, it is recommended to chooseXn+Xk+ 1with the lowest possiblekthat makes the polynomial irreducible. If all thesetrinomialsare reducible, one chooses "pentanomials"Xn+Xa+Xb+Xc+ 1,as polynomials of degree greater than1,with an even number of terms, are never irreducible in characteristic2,having1as a root.[3]

A possible choice for such a polynomial is given byConway polynomials.They ensure a certain compatibility between the representation of a field and the representations of its subfields.

In the next sections, we will show how the general construction method outlined above works for small finite fields.

Field with four elements[edit]

The smallest non-prime field is the field with four elements, which is commonly denotedGF(4)orIt consists of the four elements0, 1,α,1 +αsuch thatα2= 1 +α,1 ⋅α=α⋅ 1 =α,x+x= 0,andx⋅ 0 = 0 ⋅x= 0,for everyx∈ GF(4),the other operation results being easily deduced from thedistributive law.See below for the complete operation tables.

This may be deduced as follows from the results of the preceding section.

OverGF(2),there is only oneirreducible polynomialof degree2: Therefore, forGF(4)the construction of the preceding section must involve this polynomial, and

Letαdenote a root of this polynomial inGF(4).This implies that

α2= 1 +α,

and thatαand1 +αare the elements ofGF(4)that are not inGF(2).The tables of the operations inGF(4)result from this, and are as follows:

Additionx+y Multiplicationxy Divisionx/y
y
x
0 1 α 1 +α
0 0 1 α 1 +α
1 1 0 1 +α α
α α 1 +α 0 1
1 +α 1 +α α 1 0
y
x
0 1 α 1 +α
0 0 0 0 0
1 0 1 α 1 +α
α 0 α 1 +α 1
1 +α 0 1 +α 1 α
y
x
1 α 1 +α
0 0 0 0
1 1 1 +α α
α α 1 1 +α
1 +α 1 +α α 1

A table for subtraction is not given, because subtraction is identical to addition, as is the case for every field of characteristic 2. In the third table, for the division ofxbyy,the values ofxmust be read in the left column, and the values ofyin the top row. (Because0 ⋅z= 0for everyzin everyringthedivision by 0has to remain undefined.) From the tables, it can be seen that the additive structure ofGF(4)is isomorphic to theKlein four-group,while the non-zero multiplicative structure is isomorphic to the group Z3.

The map is the non-trivial field automorphism, called theFrobenius automorphism,which sendsαinto the second root1 +αof the above mentioned irreducible polynomialX2+X+ 1.

GF(p2) for an odd primep[edit]

For applying theabove general constructionof finite fields in the case ofGF(p2),one has to find an irreducible polynomial of degree 2. Forp= 2,this has been done in the preceding section. Ifpis an odd prime, there are always irreducible polynomials of the formX2r,withrinGF(p).

More precisely, the polynomialX2ris irreducible overGF(p)if and only ifris aquadratic non-residuemodulop(this is almost the definition of a quadratic non-residue). There arep− 1/2quadratic non-residues modulop.For example,2is a quadratic non-residue forp= 3, 5, 11, 13,...,and3is a quadratic non-residue forp= 5, 7, 17,....Ifp≡ 3 mod 4,that isp= 3, 7, 11, 19,...,one may choose−1 ≡p− 1as a quadratic non-residue, which allows us to have a very simple irreducible polynomialX2+ 1.

Having chosen a quadratic non-residuer,letαbe a symbolic square root ofr,that is, a symbol that has the propertyα2=r,in the same way that the complex numberiis a symbolic square root of−1.Then, the elements ofGF(p2)are all the linear expressions withaandbinGF(p).The operations onGF(p2)are defined as follows (the operations between elements ofGF(p)represented by Latin letters are the operations inGF(p)):

GF(8) and GF(27)[edit]

The polynomial is irreducible overGF(2)andGF(3),that is, it is irreducible modulo2and3(to show this, it suffices to show that it has no root inGF(2)nor inGF(3)). It follows that the elements ofGF(8)andGF(27)may be represented byexpressions wherea,b,care elements ofGF(2)orGF(3)(respectively), andαis a symbol such that

The addition, additive inverse and multiplication onGF(8)andGF(27)may thus be defined as follows; in following formulas, the operations between elements ofGF(2)orGF(3),represented by Latin letters, are the operations inGF(2)orGF(3),respectively:

GF(16)[edit]

The polynomial is irreducible overGF(2),that is, it is irreducible modulo2.It follows that the elements ofGF(16)may be represented byexpressions wherea,b,c,dare either0or1(elements ofGF(2)), andαis a symbol such that (that is,αis defined as a root of the given irreducible polynomial). As the characteristic ofGF(2)is2,each element is its additive inverse inGF(16).The addition and multiplication onGF(16)may be defined as follows; in following formulas, the operations between elements ofGF(2),represented by Latin letters are the operations inGF(2).

The fieldGF(16)has eightprimitive elements(the elements that have all nonzero elements ofGF(16)as integer powers). These elements are the four roots ofX4+X+ 1and theirmultiplicative inverses.In particular,αis a primitive element, and the primitive elements areαmwithmless than and coprime with15(that is, 1, 2, 4, 7, 8, 11, 13, 14).

Multiplicative structure[edit]

The set of non-zero elements inGF(q)is anabelian groupunder the multiplication, of orderq– 1.ByLagrange's theorem,there exists a divisorkofq– 1such thatxk= 1for every non-zeroxinGF(q).As the equationxk= 1has at mostksolutions in any field,q– 1is the lowest possible value fork. Thestructure theorem of finite abelian groupsimplies that this multiplicative group iscyclic,that is, all non-zero elements are powers of a single element. In summary:

The multiplicative group of the non-zero elements inGF(q)is cyclic, i.e., there exists an elementa,such that theq– 1non-zero elements ofGF(q)area,a2,...,aq−2,aq−1= 1.

Such an elementais called aprimitive elementofGF(q).Unlessq= 2, 3,the primitive element is not unique. The number of primitive elements isφ(q− 1)whereφisEuler's totient function.

The result above implies thatxq=xfor everyxinGF(q).The particular case whereqis prime isFermat's little theorem.

Discrete logarithm[edit]

Ifais a primitive element inGF(q),then for any non-zero elementxinF,there is a unique integernwith0 ≤nq− 2such that

x=an.

This integernis called thediscrete logarithmofxto the basea.

Whileancan be computed very quickly, for example usingexponentiation by squaring,there is no known efficient algorithm for computing the inverse operation, the discrete logarithm. This has been used in variouscryptographic protocols,seeDiscrete logarithmfor details.

When the nonzero elements ofGF(q)are represented by their discrete logarithms, multiplication and division are easy, as they reduce to addition and subtraction moduloq– 1.However, addition amounts to computing the discrete logarithm ofam+an.The identity

am+an=an(amn+ 1)

allows one to solve this problem by constructing the table of the discrete logarithms ofan+ 1,calledZech's logarithms,forn= 0,...,q− 2(it is convenient to define the discrete logarithm of zero as being−∞).

Zech's logarithms are useful for large computations, such aslinear algebraover medium-sized fields, that is, fields that are sufficiently large for making natural algorithms inefficient, but not too large, as one has to pre-compute a table of the same size as the order of the field.

Roots of unity[edit]

Every nonzero element of a finite field is aroot of unity,asxq−1= 1for every nonzero element ofGF(q).

Ifnis a positive integer, annthprimitive root of unityis a solution of the equationxn= 1that is not a solution of the equationxm= 1for any positive integerm<n.Ifais anth primitive root of unity in a fieldF,thenFcontains all thenroots of unity, which are1,a,a2,...,an−1.

The fieldGF(q)contains anth primitive root of unity if and only ifnis a divisor ofq− 1;ifnis a divisor ofq− 1,then the number of primitiventh roots of unity inGF(q)isφ(n)(Euler's totient function). The number ofnth roots of unity inGF(q)isgcd(n,q− 1).

In a field of characteristicp,every(np)th root of unity is also anth root of unity. It follows that primitive(np)th roots of unity never exist in a field of characteristicp.

On the other hand, ifniscoprimetop,the roots of thenthcyclotomic polynomialare distinct in every field of characteristicp,as this polynomial is a divisor ofXn− 1,whosediscriminantnnis nonzero modulop.It follows that thenthcyclotomic polynomialfactors overGF(p)into distinct irreducible polynomials that have all the same degree, sayd,and thatGF(pd)is the smallest field of characteristicpthat contains thenth primitive roots of unity.

Example: GF(64)[edit]

The fieldGF(64)has several interesting properties that smaller fields do not share: it has two subfields such that neither is contained in the other; not all generators (elements withminimal polynomialof degree6overGF(2)) are primitive elements; and the primitive elements are not all conjugate under theGalois group.

The order of this field being26,and the divisors of6being1, 2, 3, 6,the subfields ofGF(64)areGF(2),GF(22) = GF(4),GF(23) = GF(8),andGF(64)itself. As2and3arecoprime,the intersection ofGF(4)andGF(8)inGF(64)is the prime fieldGF(2).

The union ofGF(4)andGF(8)has thus10elements. The remaining54elements ofGF(64)generateGF(64)in the sense that no other subfield contains any of them. It follows that they are roots of irreducible polynomials of degree6overGF(2).This implies that, overGF(2),there are exactly9 =54/6irreduciblemonic polynomialsof degree6.This may be verified by factoringX64XoverGF(2).

The elements ofGF(64)are primitiventh roots of unity for somendividing63.As the 3rd and the 7th roots of unity belong toGF(4)andGF(8),respectively, the54generators are primitiventh roots of unity for somenin{9, 21, 63}.Euler's totient functionshows that there are6primitive9th roots of unity,12primitive21st roots of unity, and36primitive63rd roots of unity. Summing these numbers, one finds again54elements.

By factoring thecyclotomic polynomialsoverGF(2),one finds that:

  • The six primitive9th roots of unity are roots ofand are all conjugate under the action of the Galois group.
  • The twelve primitive21st roots of unity are roots ofThey form two orbits under the action of the Galois group. As the two factors arereciprocalto each other, a root and its (multiplicative) inverse do not belong to the same orbit.
  • The36primitive elements ofGF(64)are the roots ofThey split into six orbits of six elements each under the action of the Galois group.

This shows that the best choice to constructGF(64)is to define it asGF(2)[X] / (X6+X+ 1).In fact, this generator is a primitive element, and this polynomial is the irreducible polynomial that produces the easiest Euclidean division.

Frobenius automorphism and Galois theory[edit]

In this section,pis a prime number, andq=pnis a power ofp.

InGF(q),the identity(x+y)p=xp+ypimplies that the map is aGF(p)-linear endomorphismand afield automorphismofGF(q),which fixes every element of the subfieldGF(p).It is called theFrobenius automorphism,afterFerdinand Georg Frobenius.

Denoting byφkthecompositionofφwith itselfktimes, we have It has been shown in the preceding section thatφnis the identity. For0 <k<n,the automorphismφkis not the identity, as, otherwise, the polynomial would have more thanpkroots.

There are no otherGF(p)-automorphisms ofGF(q).In other words,GF(pn)has exactlynGF(p)-automorphisms, which are

In terms ofGalois theory,this means thatGF(pn)is aGalois extensionofGF(p),which has acyclicGalois group.

The fact that the Frobenius map is surjective implies that every finite field isperfect.

Polynomial factorization[edit]

IfFis a finite field, a non-constantmonic polynomialwith coefficients inFisirreducibleoverF,if it is not the product of two non-constant monic polynomials, with coefficients inF.

As everypolynomial ringover a field is aunique factorization domain,every monic polynomial over a finite field may be factored in a unique way (up to the order of the factors) into a product of irreducible monic polynomials.

There are efficient algorithms for testing polynomial irreducibility and factoring polynomials over finite field. They are a key step for factoring polynomials over the integers or therational numbers.At least for this reason, everycomputer algebra systemhas functions for factoring polynomials over finite fields, or, at least, over finite prime fields.

Irreducible polynomials of a given degree[edit]

The polynomial factors into linear factors over a field of orderq.More precisely, this polynomial is the product of all monic polynomials of degree one over a field of orderq.

This implies that, ifq=pnthenXqXis the product of all monic irreducible polynomials overGF(p),whose degree dividesn.In fact, ifPis an irreducible factor overGF(p)ofXqX,its degree dividesn,as itssplitting fieldis contained inGF(pn).Conversely, ifPis an irreducible monic polynomial overGF(p)of degreeddividingn,it defines a field extension of degreed,which is contained inGF(pn),and all roots ofPbelong toGF(pn),and are roots ofXqX;thusPdividesXqX.AsXqXdoes not have any multiple factor, it is thus the product of all the irreducible monic polynomials that divide it.

This property is used to compute the product of the irreducible factors of each degree of polynomials overGF(p);seeDistinct degree factorization.

Number of monic irreducible polynomials of a given degree over a finite field[edit]

The numberN(q,n)of monic irreducible polynomials of degreenover GF(q)is given by[4] whereμis theMöbius function.This formula is an immediate consequence of the property ofXqXabove and theMöbius inversion formula.

By the above formula, the number of irreducible (not necessarily monic) polynomials of degreenoverGF(q)is(q− 1)N(q,n).

The exact formula implies the inequality this is sharp if and only ifnis a power of some prime. For everyqand everyn,the right hand side is positive, so there is at least one irreducible polynomial of degreenoverGF(q).

Applications[edit]

Incryptography,the difficulty of thediscrete logarithm problemin finite fields or inelliptic curvesis the basis of several widely used protocols, such as theDiffie–Hellmanprotocol. For example, in 2014, a secure internet connection to Wikipedia involved the elliptic curve Diffie–Hellman protocol (ECDHE) over a large finite field.[5]Incoding theory,many codes are constructed assubspacesofvector spacesover finite fields.

Finite fields are used by manyerror correction codes,such asReed–Solomon error correction codeorBCH code.The finite field almost always has characteristic of2,since computer data is stored in binary. For example, a byte of data can be interpreted as an element ofGF(28).One exception isPDF417bar code, which isGF(929).Some CPUs have special instructions that can be useful for finite fields of characteristic2,generally variations ofcarry-less product.

Finite fields are widely used innumber theory,as many problems over the integers may be solved by reducing themmoduloone or severalprime numbers.For example, the fastest known algorithms forpolynomial factorizationandlinear algebraover the field ofrational numbersproceed by reduction modulo one or several primes, and then reconstruction of the solution by usingChinese remainder theorem,Hensel liftingor theLLL algorithm.

Similarly many theoretical problems in number theory can be solved by considering their reductions modulo some or all prime numbers. See, for example,Hasse principle.Many recent developments ofalgebraic geometrywere motivated by the need to enlarge the power of these modular methods.Wiles' proof of Fermat's Last Theoremis an example of a deep result involving many mathematical tools, including finite fields.

TheWeil conjecturesconcern the number of points onalgebraic varietiesover finite fields and the theory has many applications includingexponentialandcharacter sumestimates.

Finite fields have widespread application incombinatorics,two well known examples being the definition ofPaley Graphsand the related construction forHadamard Matrices.Inarithmetic combinatoricsfinite fields[6]and finite field models[7][8]are used extensively, such as inSzemerédi's theoremon arithmetic progressions.

Extensions[edit]

Wedderburn's little theorem[edit]

Adivision ringis a generalization of field. Division rings are not assumed to be commutative. There are no non-commutative finite division rings:Wedderburn's little theoremstates that all finitedivision ringsare commutative, and hence are finite fields. This result holds even if we relax theassociativityaxiom toalternativity,that is, all finitealternative division ringsare finite fields, by theArtin–Zorn theorem.[9]

Algebraic closure[edit]

A finite fieldFis not algebraically closed: the polynomial has no roots inF,sincef (α) = 1for allαinF.

Given a prime numberp,letbe an algebraic closure ofIt is not only uniqueup toan isomorphism, as do all algebraic closures, but contrarily to the general case, all its subfield are fixed by all its automorphisms, and it is also the algebraic closure of all finite fields of the same characteristicp.

This property results mainly from the fact that the elements ofare exactly the roots ofand this defines an inclusionforThese inclusions allow writing informallyThe formal validation of this notation results from the fact that the above field inclusions form adirected setof fields; Itsdirect limitiswhich may thus be considered as "directed union".

Primitive elements in the algebraic closure[edit]

Given aprimitive elementofthenis a primitive element of

For explicit computations, it may be useful to have a coherent choice of the primitive elements for all finite fields; that is, to choose the primitive elementofin order that, wheneverone haswhereis the primitive element already chosen for

Such a construction may be obtained byConway polynomials.

Quasi-algebraic closure[edit]

Although finite fields are not algebraically closed, they arequasi-algebraically closed,which means that everyhomogeneous polynomialover a finite field has a non-trivial zero whose components are in the field if the number of its variables is more than its degree. This was a conjecture ofArtinandDicksonproved byChevalley(seeChevalley–Warning theorem).

See also[edit]

Notes[edit]

  1. ^abMoore, E. H.(1896), "A doubly-infinite system of simple groups", in E. H. Moore; et al. (eds.),Mathematical Papers Read at the International Mathematics Congress Held in Connection with the World's Columbian Exposition,Macmillan & Co., pp. 208–242
  2. ^This latter notation was introduced byE. H. Moorein an address given in 1893 at the International Mathematical Congress held in ChicagoMullen & Panario 2013,p. 10.
  3. ^Recommended Elliptic Curves for Government Use(PDF),National Institute of Standards and Technology,July 1999, p. 3,archived(PDF)from the original on 2008-07-19
  4. ^Jacobson 2009,§4.13
  5. ^This can be verified by looking at the information on the page provided by the browser.
  6. ^Shparlinski, Igor E. (2013), "Additive Combinatorics over Finite Fields: New Results and Applications",Finite Fields and Their Applications,DE GRUYTER, pp. 233–272,doi:10.1515/9783110283600.233,ISBN9783110283600
  7. ^Green, Ben (2005), "Finite field models in additive combinatorics",Surveys in Combinatorics 2005,Cambridge University Press, pp. 1–28,arXiv:math/0409420,doi:10.1017/cbo9780511734885.002,ISBN9780511734885,S2CID28297089
  8. ^Wolf, J. (March 2015)."Finite field models in arithmetic combinatorics – ten years on".Finite Fields and Their Applications.32:233–274.doi:10.1016/j.ffa.2014.11.003.hdl:1983/d340f853-0584-49c8-a463-ea16ee51ce0f.ISSN1071-5797.
  9. ^Shult, Ernest E. (2011).Points and lines. Characterizing the classical geometries.Universitext. Berlin:Springer-Verlag.p. 123.ISBN978-3-642-15626-7.Zbl1213.51001.

References[edit]

External links[edit]