CSE5313 Coding and information theory for data science (Lecture 3)
Finite Fields
Why finite fields?
Most information systems are discrete.
- Use bits, byte etc.
Use bits/bytes to represent real numbers.
- Problems of overflow, accuracy, etc.
We wish to build “good” codes :
- Large
- Lage error detection/correction, erasure correction.
Idea: Use linear algebraic operations to encode/decode.
- , a finite field with elements.
Finite fields
Fields and field axioms
A field is a set with two operations and that satisfy the following axioms:
- Associativity: and
- Commutativity: and
- Distributivity:
- Existence of Identity elements: and
- Existence of Inverse elements: and
Every set of elements which satisfies these axioms is a field.
We can “do algebra” over it (matrices, vector spaces, etc.).
Are there finite sets which satisfy the field axioms?
What are the possible sizes of such sets?
Background – Basic number theory
- For ,
- Greatest Common Denominator: the largest integer such that and .
- Lowest Common Multiplier: the smallest integer such that and .
- are coprime if .
- Fact: (Euclid’s lemma) Say ,
- There exists a quotient and a remainder such that .
- Theorem (Euclid): If then there exist such that .
- Proof by repeated application of Euclid’s lemma.
- Example:
- If ,
- then ,
- satisfy .
Modular arithmetic
Defined a set with addition and multiplication that satisfy the field axioms.
is a field if is a prime number.
-
Addition and multiplication are defined modulo .
-
-
-
is the additive identity.
-
is the multiplicative identity.
-
has an additive inverse .
-
has a multiplicative inverse such that .
Proof for existence of multiplicative inverse for :
Proof
Since is prime, .
By euclid’s theorem, there exist such that .
Take mod on both sides:
Thus, is the multiplicative inverse of .
Polynomials over prime fields is also a field.
is a field.
Polynomials over finite fields
A polynomial over a field is a expression of the form:
- Polynomial degree: largest index of a non-zero coefficient.
- Polynomial addition:
- Polynomial multiplication:
- Polynomial equality: if and only if for all .
- Polynomial division: suppose , then there exist unique polynomials and such that and . (do long division for polynomials)
denoted as .
Example
Irreducible polynomials
A polynomial is irreducible if it cannot be factored into two non-constant polynomials.
If , then there exist such that .
Proved similar to euclid’s theorem.
If a polynomial has a root, say , then for some .
Example in :
is reducible because .
is irreducible.
Proof
We prove by contradiction.
Suppose is reducible, then for some .
Then .
Let , then .
If , then but is .
If , then but is .
It is not the case in , that every polynomial with no root is irreducible. (e.g consider has no root but is reducible.)
Polynomial modular arithmetic
There exist quotient and remainder , such that
"" is an operation on polynomials in that:
- Preserves polynomial addition:
- Preserves polynomial multiplication:
Extension fields
Let be a prime number. then is a field.
Fix a polynomial of degree .
Define a set
Elements: polynomials of degree at most in . (finite set, size is .)
Define addition:
Define multiplication:
Denote this set as .
This is not a field because it does not have a multiplicative inverse for every element.
Proof
We prove by contradiction.
Suppose there exists a polynomial such that .
Let .
The polynomials in are .
Consider the modular inverse of .
To make our field extension works, we need to find a polynomial that is irreducible.
Theorem: If is irreducible over , then is a field.
Proof
Let , .
Existence of in can be done by Euclid’s Theorem.
Since , there exist such that .
Take mod on both sides:
Thus, is the multiplicative inverse of .
So .
Corollary:
We can extend a prime field with irreducible polynomial
Intuitively, we add to a new element that satisfies .
Observation: – We only used the general field properties of . – ⇒ any “base field” can be used instead of . – ⇒ Any field can be “extended”.
Say we wish to build a field with elements.
-
Option 1:
- Take and irreducible of degree 8.
- .
-
Option 2:
- Take , and irreducible of degree 4,
- . Note .
- Take irreducible of degree 2.
- .
Uniqueness of the finite field
Theorems:
- As long as it is irreducible, the choice of does not matter.
- If are irreducible of the same degree, then .
- Over every (𝑝 prime), there exists an irreducible polynomial of every degree.
- All finite fields of the same size are isomorphic.
- All finite fields are of size for prime and integer .
Corollary: This is effectively the only way to construct finite fields!
Extension of fields
is a field, .
| Terms | Finite field extension | |
|---|---|---|
| Base field | any field | |
| Irreducible polynomial | ||
| New elements added | ||
| Add/mul |
You cannot do algebraic extension of to .
Transcendental extension: