Encyclopedia
In
mathematics, the theory of quadratic extensions of finite fields support analogies with
trigonometry.
The main motivation to deal with a finite field trigonometry is the power of the discrete transforms, which play an important role in engineering and mathematics. Significant examples are the well known discrete trigonometric transforms , namely the
discrete cosine transform and discrete sine transform, which have found many applications in the fields of digital signal and
image processing. In the real DTTs, inevitably, rounding is necessary, because the elements of its transformation matrices are derived from the calculation of sines and cosines. This is the main motivation to define the cosine transform over prime finite fields. In this case, all the calculation is done using integer arithmetic.
In order to construct a finite field transform that holds some resemblance with a DTT or with a discrete transform that uses
trigonometric functions as its kernel, like the discrete Hartley transform, it is firstly necessary to establish the equivalent of the cosine and sine functions over a finite structure.
Trigonometry over a Galois field
The set G of
gaussian integers over GF plays an important role in the trigonometry over finite fields .
- G := q = pr,
r being a positive integer,
p being an odd prime for which
j2 = −1 is a quadratic non-residue in GF; it is a field isomorphic to GF.
Trigonometric functions over the elements of a Galois field can be defined as follows:
Let be an element of multiplicative order
N in GI,
q = p
r,
p an odd prime such that
p 3 . The GI-valued
k-trigonometric functions of in GI are defined as
-
-
for
i, k = 0, 1,...,
N − 1. We write cos
k and sin
k as cos
k and sin
k, respectively. The trigonometric functions above introduced satisfy properties
P1-P12 below, in GI.
P1. Unit circle:
.
P2. Even/Odd: i) . ii)
P3. Euler formula:
P4. Addition of arcs:
i)
ii)
P5. Double arc:
i)
ii)ath> \sin_k\equiv \sin_i.
P7. Complementary symmetry: with ,
i)
ii)
P8. Periodicity:
i)
ii)
P9. Complement: with
i)
ii)
P10. summation:
P11. summation:
P12. Orthogonality
Examplesi) With ζ = 3, a primitive element of GF, then cos
k and sin
k functions take the following values in GI:
Table I - Finite field cosine and sine functions over GI.| | cosk | | sink |
|---|
| | 0 1 2 3 4 5 | | 0 1 2 3 4 5 |
| 0 | 1 1 1 1 1 1 | 0 | 0 0 0 0 0 0 |
| 1 | 1 4 3 6 3 4 | 1 | 0 j j 0 6j 6j |
| 2 | 1 3 3 1 3 3 | 2 | 0 j 6j 0 j 6j |
| 3 | 1 6 1 6 1 6 | 3 | 0 0 0 0 0 0 |
| 4 | 1 3 3 1 3 3 | 4 | 0 6j j 0 6j j |
| 5 | 1 4 3 6 3 4 | 5 | 0 6j 6j 0 j j |
| | | | |
|
ii) Let ζ =
j, an element of order 4 in GI. The cos
k and sin
k functions take the following values in GI:
Table II - Finite field cosine and sine functions over GI.| | cosk | | sink |
|---|
| | 0 1 2 3 | | 0 1 2 3 |
| 0 | 1 1 1 1 | 0 | 0 0 0 0 |
| 1 | 1 0 2 0 | 1 | 0 1 0 2 |
| 2 | 1 2 1 2 | 2 | 0 0 0 0 |
| 3 | 1 0 2 0 | 3 | 0 2 0 1 |
| | | | |
|
Unimodular groups
The unimodular set of GI, denoted by G
1, is the set of elements ζ = ∈ GI, such that
a2 +
b2 1 .
To determine the elements of the unimodular group it helps to observe that if ζ =
a +
jb is one such element, then so is every element in the set ζ = .
Example
Unimodular groups of GF and GF. In each case, table III lists the elements of the subgroups G
1 of order 8 and 12, and their orders.
Table III - Elements of G1.| GI | Order | GI | Order |
|---|
| 1 | 1 | 1 | 1 |
| −1 | 2 | −1 | 2 |
| j, −j | 4 | 5 + j3, 5 + j8 | 3 |
| 2 + j2, 2 + j5, 5 + j2, 5 + j5 | 8 | j, −j | 4 |
| | | 6 + j8, 6 + j3 | 6 |
| | | 8 + j6, 8 + j5, 3 + j6, 3 + j5 | 12 |
|
Figure 1 illustrates the 12 roots of unity in GF. Clearly, G
1 is isomorphic to C12, the group of proper rotations of a regular
dodecagon. =8+j6 is a group generator corresponding to a counter-clockwise rotation of 2π/12 = 30
o. Symbols of the same colour indicate elements of same order, which occur in conjugate pairs.
Polar form
Let
Gr and
Gθ be subgroups of the multiplicative group of the nonzero elements of GI, of orders /2 and 2, respectively. Then all nonzero elements of GI can be written in the form ζ = α·β, where α ∈
Gr and β ∈
Gθ.
Considering that any element of a
cyclic group can be written as an integral power of a group generator, it is possible to set
r = α and ε
θ = β, where ε is a generator of . The powers ε
θ of this element play the role of
ejθ over the complex field. Thus, the polar representation assumes the desired form, , where
r plays the role of the modulus of ζ. Therefore, it is necessary to define formally the modulus of an element in a finite field. Considering the nonzero elements of GF, it is a well-known fact that half of them are quadratic residues of
p. The other half, those that do not possess square root, are the quadratic non-residue .
The standard modulus operation in always gives a positive result.
By analogy, the modulus operation in GF is such that it always results in a quadratic residue of
p.
The modulus of an element , where
p = 4
k + 3, is
The modulus of an element of GF is a quadratic residue of
p.
The modulus of an element a+jb GI, where
p = 4
k + 3, is
In the continuum, such expression reduces to the usual norm of a complex number, since both, a
2+b
2 and the square root operation, produce only nonnegative numbers.
- The group of modulus of GI, denoted by Gr, is the subgroup of order /2 of GI.
- The group of phases of GI, denoted by G, is the subgroup of order 2 of GI.
An expression for the phase as a function of a and b can be found by normalising the element , and then solving the discrete logarithm problem of /
r in the base over GF. Thus, the conversion rectangular to polar form is possible.
The similarity with the trigonometry over the field of real numbers is now evident: the modulus belongs to GF and is a quadratic residue , and the exponential component
) has modulus one and belongs to GI .
The Z plane in a Galois field
The complex
Z plane in GF can be constructed from the supra-unimodular set of GI:
- The supra-unimodular set of GI, denoted Gs, is the set of elements ζ = ∈ GI, such that −1 .
- The structure s,*>, is a cyclic group of order 2, called the supra-unimodular group of GI.
The elements ζ =
a +
jb of the supra-unimodular group
Gs satisfy
21 and all have modulus 1.
Gs is precisely the group of phases .
- If p is a Mersenne prime , the elements ζ = a + jb such that a2 + b2 −1 are the generators of Gs.
Examples
- Let p = 31, a Mersenne prime, and ζ = 6 + j16. Then 7 , so that /r = 23 + j20 and a2 + b2 = 232 + 202−1 . Therefore ε has order 2 = 64 . A unimodular element β of order N, such that N | 25, can be found taking 2/N = .
- The Z plane in GF: With p = 7, and ζ = 6 + j4, 2 , so that ε = ζ/r = 3 + j2 and a2 + b2 = 13−1 . Therefore ε has order 2 = 16, so it is a generator of the group Gs.
A generator ε of the supra-unimodular group is used to construct the Z plane over GF. The
Z plane over GF is depicted in figure 2. There are 2 = 16 elements in each circle. The nonzero elements, namely ±1, ±2, ±3, are located on the horizontal axis, in the right or left side, according if they are, respectively, quadratic residues or quadratic non-residues of
p = 7. There are three circles, of radius 1, 2 and 4, corresponding to the /2 = 3 elements of the group of modules G
r. A similar situation occurs for the elements of GI of the form
jb. The 16 elements on the unit circle correspond to the elements of G
s and are obtained as powers of ε. The even powers correspond to the elements of G
1 and the odd powers to the elements satisfying
a2 +
b2 −1 . The remaining 32 elements of the Z plane are obtained simply by multiplying those on the unit circle by the modulus 2 and 4. The elements on the straight line y=±x over a finite field also possesses the usual interpretation associated with tg = ±1.
The number of elements of a given order as elements of GI in the z plane over GF is given in the inset of figure 2.
Back to the GF-trigonometry
In the above, if the choice of is careless, the trigonometric functions may possibly be complex, i.e., they may be GI-valued. However, if =a+jb is chosen to be a unimodular element, so that a
2+b
21 , then cos and sin are GF-valued. With that in mind and dropping a few subscripts, the definitions may be rephrased in a simpler form as
------------
------------
for
i = 0, 1, ...,
p. The
k subscript in the earlier definition gives an unexpected two-dimensional character to the cos and sin functions. As a matter of fact, it means only that to compute the entries in tables I and II, a different value of =
k was used for each
k. These
k-trigonometric functions lead to sequences with interesting orthogonality properties which may be used to construct new finite field transforms.
Now, to play with a trigonometry over GF on the unit circle, it seems much more natural to use, for instance, = 2+j2GI, instead of = 3 GF as in table I . In this case, ||=1 and both cos and sin are "real-valued" functions, as expected.
Example
With = 2 +
j2, a unimodular element of order
p + 1 = 8 of GI, the cos and sin functions take the following values in GF:
Table IV - Finite field cosine and sine functions over GF. | 0 | 1 | 2 | 3 | 4 | 5 |
|---|
| cos | 1 | 2 | 0 | 5 | 6 | 5 |
|---|
| sin | 0 | 2 | 1 | 2 | 0 | 5 |
|---|
|
Trajectories over the Galois Z plane in GF
When calculating the order of a given element, the intermediate results generate a trajectory on the Galois Z plane, called the order trajectory. In particular, If has order
N, the trajectory goes through
N distinct points on the Z plane, moving in a pattern that depends on
N. Specifically, the order trajectory touches on every circle of the Galois Z plane , in order of increasing modulus, always returning to the unit circle. If it starts on a given radius, say R, it will visit, counter-clockwise, every radius of the form R+
k.r, where
r=/
N and
k=0,1,2,.....,
N − 1.
Given a prime
p3 , there are a number of /2 distinct
circles over the Galois Z plane GI, and the number of distinct finite field ellipses is ./4.
- Table V lists some elements ζ ∈ GI and their orders N. Figures 3-5 show the order trajectories generated by ζ.
Table V - Some elements and their orders in GI.| | 2j | 3 + 3j | 6 + 4j |
|---|
| N | 12 | 24 | 48 |
|---|
|
References
- [1] R. M. Campello de Souza, H. M. de Oliveira and A. N. Kauffman, Trigonometry in Finite Fields and a New Hartley Transform, Proceedings of the 1998 International Symposium on Information Theory, p. 293, Cambridge, MA, Aug. 1998.
- [2] M. M. Campello de Souza, H. M. de Oliveira, R. M. Campello de Souza and M. M. Vasconcelos, The Discrete Cosine Transform over Prime Finite Fields, Lecture Notes in Computer Science, LNCS 3124, pp. 482–487, Springer Verlag, 2004.
- [3] http://www2.ee.ufpe.br/codec/FFtools.htm