(also denoted
, or
) is the
finite field
In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field that contains a finite number of elements. As with any field, a finite field is a set on which the operations of multiplication, addition, subt ...
of two elements (GF is the
initialism
An acronym is a word or name formed from the initial components of a longer name or phrase. Acronyms are usually formed from the initial letters of words, as in ''NATO'' (''North Atlantic Treaty Organization''), but sometimes use syllables, as ...
of ''Galois field'', another name for finite fields). Notations and
may be encountered although they can be confused with the notation of
-adic integers.
is the
field with the smallest possible number of elements, and is unique if the
additive identity and the
multiplicative identity are denoted respectively and , as usual.
The elements of may be identified with the two possible values of a
bit
The bit is the most basic unit of information in computing and digital communications. The name is a portmanteau of binary digit. The bit represents a logical state with one of two possible values. These values are most commonly represented a ...
and to the
boolean values ''true'' and ''false''. It follows that is fundamental and ubiquitous in
computer science
Computer science is the study of computation, automation, and information. Computer science spans theoretical disciplines (such as algorithms, theory of computation, information theory, and automation) to practical disciplines (includin ...
and its
logical foundations.
Definition
GF(2) is the unique field with two elements with its
additive and
multiplicative identities respectively denoted and .
Its addition is defined as the usual addition of integers but modulo 2 and corresponds to the table below:
If the elements of GF(2) are seen as boolean values, then the addition is the same as that of the
logical XOR operation.
Since each element equals its
opposite, subtraction is thus the same operation as addition.
The multiplication of GF(2) is again the usual multiplication modulo 2 (see the table below), and on boolean variables corresponds to the
logical AND operation.
GF(2) can be identified with the field of the
integers modulo , that is, the
quotient ring of the
ring of integers
In mathematics, the ring of integers of an algebraic number field K is the ring of all algebraic integers contained in K. An algebraic integer is a root of a monic polynomial with integer coefficients: x^n+c_x^+\cdots+c_0. This ring is often d ...
Z by the
ideal 2Z of all
even number
In mathematics, parity is the property of an integer of whether it is even or odd. An integer is even if it is a multiple of two, and odd if it is not.. For example, −4, 0, 82 are even because
\begin
-2 \cdot 2 &= -4 \\
0 \cdot 2 &= 0 \\
4 ...
s: .
Properties
Because GF(2) is a field, many of the familiar properties of number systems such as the
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
s and
real number
In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
s are retained:
* addition has an
identity element
In mathematics, an identity element, or neutral element, of a binary operation operating on a set is an element of the set that leaves unchanged every element of the set when the operation is applied. This concept is used in algebraic structures s ...
(0) and an inverse for every element;
* multiplication has an identity element (1) and an inverse for every element but 0;
* addition and multiplication are
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Most familiar as the name o ...
and
associative;
* multiplication is
distributive over addition.
Properties that are not familiar from the real numbers include:
* every element ''x'' of GF(2) satisfies and therefore ; this means that the
characteristic of GF(2) is 2;
* every element ''x'' of GF(2) satisfies (i.e. is ''
idempotent'' with respect to multiplication); this is an instance of
Fermat's little theorem. GF(2) is the ''only'' field with this property (Proof: if , then either or . In the latter case, ''x'' must have a multiplicative inverse, in which case dividing both sides by ''x'' gives . All larger fields contain elements other than 0 and 1, and those elements cannot satisfy this property).
Applications
Because of the algebraic properties above, many familiar and powerful tools of mathematics work in GF(2) just as well as other fields. For example, matrix operations, including
matrix inversion
In linear algebra, an -by- square matrix is called invertible (also nonsingular or nondegenerate), if there exists an -by- square matrix such that
:\mathbf = \mathbf = \mathbf_n \
where denotes the -by- identity matrix and the multiplicat ...
, can be applied to matrices with elements in GF(2) (''see''
matrix ring).
Any
group ''V'' with the property ''v'' + ''v'' = 0 for every ''v'' in ''V'' (i.e. every element is an
involution) is necessarily
abelian
Abelian may refer to:
Mathematics Group theory
* Abelian group, a group in which the binary operation is commutative
** Category of abelian groups (Ab), has abelian groups as objects and group homomorphisms as morphisms
* Metabelian group, a grou ...
and can be turned into a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but ...
over GF(2) in a natural fashion, by defining 0''v'' = 0 and 1''v'' = ''v''. This vector space will have a
basis, implying that the number of elements of ''V'' must be a power of 2 (or infinite).
In modern
computers, data are represented with
bit strings of a fixed length, called ''
machine word
In computing, a word is the natural unit of data used by a particular processor design. A word is a fixed-sized datum handled as a unit by the instruction set or the hardware of the processor. The number of bits or digits in a word (the ''wor ...
s''. These are endowed with the structure of a
vector space
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but ...
over GF(2). The addition of this vector space is the
bitwise operation
In computer programming, a bitwise operation operates on a bit string, a bit array or a binary numeral (considered as a bit string) at the level of its individual bits. It is a fast and simple action, basic to the higher-level arithmetic ope ...
called
XOR (exclusive or). The
bitwise AND is another operation on this vector space, which makes it a
Boolean algebra
In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variables are the truth values ''true'' and ''false'', usually denoted 1 and 0, whereas ...
, a structure that underlies all
computer science
Computer science is the study of computation, automation, and information. Computer science spans theoretical disciplines (such as algorithms, theory of computation, information theory, and automation) to practical disciplines (includin ...
. These spaces can also be augmented with a multiplication operation that makes them into a field GF(2
''n''), but the multiplication operation cannot be a bitwise operation. When ''n'' is itself a power of two, the multiplication operation can be
nim-multiplication; alternatively, for any ''n'', one can use multiplication of polynomials over GF(2) modulo a
irreducible polynomial (as for instance for the field GF(2
8) in the description of the
Advanced Encryption Standard
The Advanced Encryption Standard (AES), also known by its original name Rijndael (), is a specification for the encryption of electronic data established by the U.S. National Institute of Standards and Technology (NIST) in 2001.
AES is a variant ...
cipher).
Vector space
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but ...
s and
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring (which is also a commutative algebra) formed from the set of polynomials in one or more indeterminates (traditionally also called variable ...
s over GF(2) are widely used in
coding theory
Coding theory is the study of the properties of codes and their respective fitness for specific applications. Codes are used for data compression, cryptography, error detection and correction, data transmission and data storage. Codes are stud ...
, and in particular in
error correcting codes and modern
cryptography
Cryptography, or cryptology (from grc, , translit=kryptós "hidden, secret"; and ''graphein'', "to write", or ''-logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of adve ...
. For example, many common error correcting codes (such as
BCH codes) are
linear code In coding theory, a linear code is an error-correcting code for which any linear combination of codewords is also a codeword. Linear codes are traditionally partitioned into block codes and convolutional codes, although turbo codes can be seen a ...
s over GF(2) (codes defined from vector spaces over GF(2)), or
polynomial codes (codes defined as
quotients of polynomial rings over GF(2)).
See also
*
Field with one element
In mathematics, the field with one element is a suggestive name for an object that should behave similarly to a finite field with a single element, if such a field could exist. This object is denoted F1, or, in a French–English pun, Fun. The nam ...
References
* {{cite book , zbl=0866.11069 , last1=Lidl , first1=Rudolf , last2=Niederreiter , first2=Harald , author2-link=Harald Niederreiter , title=Finite fields , edition=2nd , series=Encyclopedia of Mathematics and Its Applications , volume=20 , publisher=
Cambridge University Press
Cambridge University Press is the university press of the University of Cambridge. Granted letters patent by Henry VIII of England, King Henry VIII in 1534, it is the oldest university press in the world. It is also the King's Printer.
Cambr ...
, year=1997 , isbn=0-521-39231-4 , url-access=registration , url=https://archive.org/details/finitefields0000lidl_a8r3
Finite fields
2 (number)
Binary arithmetic