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]mod  f1(x)≅Zp[x]mod  f2(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)

Fqt⇒Fqt\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.

Fqt⇏Fqt\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,α1∈F\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, ∀x∈F3\forall x\in \mathbb{F}_3, x2≠2x^2\neq 2. So f(x)=x2+1f(x)=x^2+1 has no root in F3\mathbb{F}_3.

Consider f(x)=x2−2=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)=(α1x−a2)(β1x−β2)f(x)=(\alpha_1 x-a_2)(\beta_1 x-\beta_2) for some α1,α2,β1,β2∈F3\alpha_1,\alpha_2,\beta_1,\beta_2\in \mathbb{F}_3, and α1β1≠0\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]mod  f(x)\mathbb{F} = \mathbb{Z}_p[x] \mod f(x).
    • The elements: polynomials in Zp[x]\mathbb{Z}_p[x] of degree at most t−1t-1.
    • Addition and multiplication mod  f(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,b∈G,a⋅b∈G\forall a,b\in G, a\cdot b\in G.
  2. Associativity: ∀a,b,c∈G,(a⋅b)⋅c=a⋅(b⋅c)\forall a,b,c\in G, (a\cdot b)\cdot c=a\cdot (b\cdot c).
  3. Identity: ∃e∈G,∀a∈G,a⋅e=e⋅a=a\exists e\in G, \forall a\in G, a\cdot e=e\cdot a=a.
  4. Inverses: ∀a∈G,∃a−1∈G,a⋅a−1=a−1⋅a=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=an−1⋅aa^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∗={x∈Zn: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 k∈Nk\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,j∈Ni,j\in\mathbb{N} such that ai=aja^i=a^j.

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

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

The order of an element a∈Ga\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, l≥ml\geq m. So ∃q,r∈N\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 a∈Ga\in G such that O(a)=∣G∣\mathcal{O}(a)=|G|.

G={ai∣i∈Z}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 {a∣a∈Zn,gcd(a,n)=1}\{a|a\in \mathbb{Z}_n,gcd(a,n)=1\}.

Last updated on