maths.free › Abstract Algebra › 22. Finite Fields › Sage
Sage
You have noticed in this chapter that finite fields have a great deal of structure. We have also seen finite fields in Sage regularly as examples of rings and fields.
Sage
You have noticed in this chapter that finite fields have a great deal of structure. We have also seen finite fields in Sage regularly as examples of rings and fields. Now we can combine the two, mostly using commands we already know, plus a few new ones.
Creating Finite Fields
By we know that all finite fields of a given order are isomorphic and that possible orders are limited to powers of primes.
We can use the FiniteField() command, as before,
or a shorter equivalent is GF().
Optionally, we can specify an irreducible polynomial for the contruction of the field.
We can view this polynomial as the generator of the principal ideal of a polynomial ring,
or we can view it as a re-writing
rule for powers of the field's generator that allow us to multiply elements and reformulate them as linear combinations of lesser powers.
Absent providing an irreducible polynomial, Sage will use a Conway polynomial.
You can determine these with the conway_polynomial() command,
or just build a finite field and request the defining polynomial with the .polynomial() method.
Just to be more readable,
we coerce a list of coefficients into the set of polynomials (obtained with the .parent() method on a simple polynomial) to define a polynomial.
Logarithms in Finite Fields
One useful command we have not described is the .log() method for elements of a finite field.
Since we now know that the multiplicative group of nonzero elements is cyclic,
we can express every element as a power of the generator.
The log method will return that power.
Usually we will want to use the generator as the base of a lograithm computation in a finite field. However, other bases may be used, wih the understanding that if the base is not a generator, then the logarithm may not exist ( there may not be a solution to the relevant equation).
Since we already know many Sage commands, there is not much else worth introducing before we can work profitably with finite fields. The exercises explore the ways we can examine and exploit the structure of finite fields in Sage.
Symbols used here
Naturals, integers, rationals, reals, complex numbers.
x belongs to A; every element of A is in B.
Marks the point where the statement has been established.
n divides a − b; a and b have the same remainder.
b is a multiple of a; the largest number dividing both.
A set with an operation; the do-nothing element; the element that undoes g.
Same structure; the group of cosets of a normal subgroup N.
The remainders 0…n−1 with clock arithmetic.
The set of morphisms; do g then f.
Questions people ask
What is a group, in plain words?
A set with one operation that is associative, has an identity, and lets every element be undone. Symmetries of any object form a group — that is where the idea came from.
What is the difference between a ring and a field?
A ring has addition and multiplication that behave like the integers (you cannot always divide); a field is a ring where every non-zero element has a reciprocal, like the rationals or the reals.
Özün sına
Parts of this page are adapted from Judson, Abstract Algebra: Theory and Applications (GFDL 1.3). Condensed and re-explained here; errors are ours.
Daha çox Abstract Algebra
GroupsSubgroups, cosets and Lagrange's theoremCyclic groups and permutation groupsHomomorphisms, normal subgroups and quotient groupsRings and fieldsGalois theory: why the quintic has no formula