Skip to Content
CSE5313CSE5313 Coding and information theory for data science (Lecture 4)

CSE5313 Coding and information theory for data science (Lecture 4)

Algebra over finite fields

N\mathbb{N} is the set of natural numbers.

by adding additive inverse, we can define the set of integers Z\mathbb{Z}.

by adding multiplicative inverse, we can define the set of rational numbers Q\mathbb{Q}.

by adding limits, we can define the set of real numbers R\mathbb{R}.

by adding polynomial roots, we can define the set of complex numbers C\mathbb{C}.

Another two extensions H\mathbb{H} for quaternions and O\mathbb{O} for octonions.

Few theorems about extension of fields

  • As long as it is irreducible, the choice of f(x)f(x) does not matter.
    • If f1(x),f2(x)f_1(x), f_2(x) are irreducible of the same degree, then Zp[x]modf1(x)Zp[x]modf2(x)\mathbb{Z}_p[x] \mod f_1(x) \cong \mathbb{Z}_p[x] \mod f_2(x).
  • Over every Zp\mathbb{Z}_p (pp prime), there exists an irreducible polynomial of every degree.
  • All finite fields of the same size are isomorphic.
  • All finite fields are of size pdp^d for prime pp and integer dd.

Corollary: This is effectively the only way to construct finite fields.

Common notations

Fq\mathbb{F}_q is the finite field with qq elements. where qq is a prime power.

Fqt\mathbb{F}_q^t is a vector field of dimension tt over Fq\mathbb{F}_q. (no notion of multiplication)

Fqt\mathbb{F}_{q^t} is the finite field with qtq^t elements. (as extension field of Fq\mathbb{F}_q)

FqtFqt\mathbb{F}_{q^t}\Rightarrow \mathbb{F}_q^t. Every extension field of Fq\mathbb{F}_q is a vector field over Fq\mathbb{F}_q.

FqtFqt\mathbb{F}_q^t\nRightarrow \mathbb{F}_{q^t}. Additional structure is required.

Important

From now on, we will use +,+,\cdot to denote the modulo operations ,\oplus,\odot.

Few exercises

Let FF be a field and α(x)F[x]\alpha(x)\in F[x]. Prove that for βF\beta\in F, show α(β)=0    (xβ)α(x)\alpha(\beta)=0\iff (x-\beta)\mid \alpha(x).

Proof

    \implies:

Suppose xβα(x)x-\beta\mid \alpha(x), then α(x)=(xβ)q(x)\alpha(x)=(x-\beta)q(x) for some q(x)F[x]q(x)\in F[x].

Thus, α(β)=(ββ)q(β)=0\alpha(\beta)=(\beta-\beta)q(\beta)=0.

    \impliedby:

We proceed by induction over deg(α(x))\deg(\alpha(x)).

Base case: deg(α(x))=1\deg(\alpha(x))=1, then α(x)=α0+α1x\alpha(x)=\alpha_0+\alpha_1x for some α0,α1F\alpha_0,\alpha_1\in F. Then α(β)=α0+α1β=0    α1β\alpha(\beta)=\alpha_0+\alpha_1\beta=0\iff \alpha_1\beta. So α0=α1β\alpha_0=-\alpha_1\beta.

So α(x)=α1xα1β=α1(xβ)\alpha(x)=\alpha_1 x-\alpha_1\beta=\alpha_1 (x-\beta).

Inductive step: Suppose deg(α(x))>1\deg(\alpha(x))>1, and the condition holds for all polynomials r(x)r(x) with deg(r(x))<deg(α(x))\deg(r(x))<\deg(\alpha(x)).

Then a(x)=(xβ)q(x)+r(x)a(x)=(x-\beta)q(x)+r(x) for some q(x),r(x)F[x]q(x),r(x)\in F[x] with deg(r(x))<1\deg(r(x))<1 (By euclid’s division algorithm).

By our inductive hypothesis, r(x)=0    (xβ)r(x)r(x)=0\iff (x-\beta)\mid r(x).

So α(x)=(xβ)q(x)+r(x)=0    (xβ)α(x)\alpha(x)=(x-\beta)q(x)+r(x)=0\iff (x-\beta)\mid \alpha(x).

Let FF be a field and a(x)F[x]a(x)\in F[x]. Prove that for βF\beta\in F, show a(β)=0    f(x)a(x)a(\beta)=0\iff f(x)\mid a(x).

Solution

9=329=3^2

We extend Z3=F3\mathbb{Z}_3=\mathbb{F}_3 to F32\mathbb{F}_{3^2}.

We extend this by using an irreducible polynomial of degree 2.

Need to find an irreducible polynomial f(x)=x2+αF3[x]f(x)=x^2+\alpha\in \mathbb{F}_3[x].

Tip

In F3\mathbb{F}_3, xF3\forall x\in \mathbb{F}_3, x22x^2\neq 2. So f(x)=x2+1f(x)=x^2+1 has no root in F3\mathbb{F}_3.

Consider f(x)=x22=x2+1f(x)=x^2-2=x^2+1.

Suppose for contradiction that f(x)f(x) is reducible, then f(x)=a(x)b(x)f(x)=a(x)b(x) for some a(x),b(x)F3[x]a(x),b(x)\in \mathbb{F}_3[x]. And a(x),b(x)a(x),b(x) are both of degree 1.

So f(x)=(α1xa2)(β1xβ2)f(x)=(\alpha_1 x-a_2)(\beta_1 x-\beta_2) for some α1,α2,β1,β2F3\alpha_1,\alpha_2,\beta_1,\beta_2\in \mathbb{F}_3, and α1β10\alpha_1\beta_1\neq 0.

So f(a2a1)=0f(\frac{a_2}{a_1})=0

This contradicts the fact that f(x)f(x) has no root in F3\mathbb{F}_3.

Summary from last lecture

A recipe for constructing a field F\mathbb{F} with ptp^t elements (pp prime).

  • Construct Zp\mathbb{Z}_p.
  • Find an irreducible polynomial f(x)f(x) of degree tt (always exists).
  • Let F=Zp[x]modf(x)\mathbb{F} = \mathbb{Z}_p[x] \mod f(x).
    • The elements: polynomials in Zp[x]\mathbb{Z}_p[x] of degree at most t1t-1.
    • Addition and multiplication modf(x)\mod f(x).

Facts:

  • Choice of f(x)f(x) does not matter.
    • Always end up with isomorphic F\mathbb{F} (identical up to renaming of elements).
    • All finite fields are of size ptp^t for prime pp and some tt.
  • The above recipe is unique.
  • The above recipe is unique.

Algebra over finite fields

Groups

A group is a set GG with an operation \cdot that satisfies the following axioms:

  1. Closure: a,bG,abG\forall a,b\in G, a\cdot b\in G.
  2. Associativity: a,b,cG,(ab)c=a(bc)\forall a,b,c\in G, (a\cdot b)\cdot c=a\cdot (b\cdot c).
  3. Identity: eG,aG,ae=ea=a\exists e\in G, \forall a\in G, a\cdot e=e\cdot a=a.
  4. Inverses: aG,a1G,aa1=a1a=e\forall a\in G, \exists a^{-1}\in G, a\cdot a^{-1}=a^{-1}\cdot a=e.
Important
  1. Operator \cdot is not necessarily commutative. (if so then it’s called an abelian group)
  2. May not be finite/infinite.
  3. May represented in power notation an=an1aa^n=a^{n-1}\cdot a.

Examples of groups

(Z,+)(\mathbb{Z},+) is an abelian group. (Q,+)(\mathbb{Q},+) is an abelian group.

({R{0},})(\{\mathbb{R}\setminus\{0\},\cdot\}) is an abelian group.

Let Zn={xZn:gcd(x,n)=1}\mathbb{Z}_n^*=\{x\in \mathbb{Z}_n:gcd(x,n)=1\}.

Then (Zn,)(\mathbb{Z}_n^*,\cdot) is a group. If nn is prime, then Zn\mathbb{Z}_n^* only need to remove 00.

Order of element in group

Let (G,)(G,\cdot) be a finite group.

Then there exists kNk\in\mathbb{N} such that ak=ea^k=e.

Proof

Consider the sequence a,a2,a3,a,a^2,a^3,\cdots.

Since GG is finite, there exists i,jNi,j\in\mathbb{N} such that ai=aja^i=a^j.

Then ai=aj    aij=ea^i=a^j\iff a^{i-j}=e.

So there exists k=ijNk=i-j\in\mathbb{N} such that ak=ea^k=e.

The order of an element aGa\in G (denoted as O(a)\mathcal{O}(a)) is the smallest positive integer nn such that an=ea^n=e.

Examples:

order of 55 in (Z6,+)(\mathbb{Z}_6,+) is 66.

If al=ea^l=e, then O(a)l\mathcal{O}(a)\mid l.

Proof

Let O(a)=m\mathcal{O}(a)=m, then if al=ea^l=e, then by definition of order, lml\geq m. So q,rN\exists q,r\in\mathbb{N} such that l=qm+rl=qm+r and r<mr<m.

So al=aqm+r=ar=ea^l=a^{qm+r}=a^r=e. This contradicts the definition of order. That ll is the smallest positive integer such that al=ea^l=e.

Cyclic groups

A group GG is called cyclic if there exists aGa\in G such that O(a)=G\mathcal{O}(a)=|G|.

G={aiiZ}G=\{a^i|i\in\mathbb{Z}\}

one element is a generator of the group.

Exercises for cyclic groups

Is (Zn,+)(\mathbb{Z}_n,+) cyclic? If so, find a generator.

Solution

Yes, the generator is {aaZn,gcd(a,n)=1}\{a|a\in \mathbb{Z}_n,gcd(a,n)=1\}.

Last updated on