Intermezzo: Algebraic Structures

17 Dec 2021


§ Motivation

It's useful to know about some algebraic structures and their properties, because cryptography is heavily dependent on them.

§ Groups

Group

A group GG is a set XX equipped with a function,

:X×XX\ast : X \times X \rightarrow X

:(x,y)xy,\ast : (x, y) \rightarrowtail x \ast y,

that satisfies the following properties:

  1. x(yz)=(xy)zx \ast (y \ast z) = (x \ast y) \ast z (associativity)
  2. ex,ex=xe=x\exists e\forall x, e \ast x = x \ast e = x (identity)
  3. xy,xy=yx=e\forall x \exists y, x \ast y = y \ast x = e (inverse)

A simple example of a group would be (Z)+(\mathbb{Z})^{+}, where Z\mathbb{Z} is the set of integers and ()+(\cdot)^{+} means that the set is equipped with addition.

Abelian (Commutative) Group

An abelian group is equipped with a group operation \ast that exibits commutativity, i.e.

xy,xy=yx.\forall x \forall y, x \ast y = y \ast x.

The aforementioned group, (Z)+(\mathbb{Z})^{+} is also an example of an abelian group, i.e. the order in which you add integers does not matter.

Integers Modulo nn

The structure we'll see most in this course are the integers modulo nn, written as

Z/nZ\mathbb{Z}/n\mathbb{Z}

This object represents every integer's remainder after division by nn.

My notes use Zn\mathbb{Z}_n and Z/nZ\mathbb{Z}/n\mathbb{Z} interchangably; while they exhibit the same algebraic properties (ZnZ/nZ\mathbb{Z}_n \simeq \mathbb{Z}/n\mathbb{Z}), strictly speaking they are not the same algebraic object.

§ Fields

Field

A field is a set XX equipped with two group operations,

:(X{0})×(X{0})X{0}+:X×XX:(x,y)xy+:(x,y)x+y,\begin{array}{l c l} \ast : \left(X \setminus \{0\}\right) \times \left(X \setminus \{0\}\right) \rightarrow X \setminus \{0\} & \quad & + : X \times X \rightarrow X\\ \ast : (x, y) \rightarrowtail x \ast y && + : (x, y) \rightarrowtail x + y, \end{array}

that satisfy the following properties:

  1. x,x0=0\forall x, x \ast 0 = 0.
  2. x(y+z)=xy+xzx \ast (y + z) = x \ast y + x \ast z (distributive).
  3. Both \ast and ++ are commutative group operations.

An example of a field would be the real numbers, R\mathbb{R}, with addition and multiplication. When pp prime, (Zp,+,)(\mathbb{Z}_p, +, \cdot) also forms a field, typically constructed as the quotient of a polynomial ring by an irreductible element.

Finite Field

A finite field (also known as a Galois field) is any field with a finite number of elements.

A finite field with order pp is denoted as

Fp\mathbb{F}_p

Another common notation, especially if the text prefers to refer to a "Galois field",

GF(p)\mathrm{GF}(p)

In this course we focus on those which have prime or "prime power" order.

Prime Power

Given a prime pp and kNk \in \mathbb{N}, then the resulting number

m=pkm = p^k

is said to be a prime power.

A finite field of order 4 (a prime power as 22=42^2 = 4), denoted as F4\mathbb{F}_4, can be constructed as Z2[x]/(x2+x+1)\mathbb{Z}_2[x]/\left(x^2 + x + 1\right). While a finite field of a prime order pp, denoted as Fp\mathbb{F}_p, can be constructed just by the integers modulo pp, i.e. Z/pZ\mathbb{Z}/p\mathbb{Z}.