Path: blob/main/course-assignments/PS05--ECC--solutions.md
908 views
------\newcommand{\F}{\mathbb{F}} \newcommand{\trivial}{\mathbf{1}}
\newcommand{\GL}{\operatorname{GL}}
\newcommand{\PP}{\mathbb{P}}
\newcommand{\tr}{\operatorname{tr}} \newcommand{\weight}{\operatorname{weight}}
Let be a power of a prime and let ParseError: KaTeX parse error: Undefined control sequence: \F at position 5: k = \̲F̲_q.
For a homogeneous polynomial , let us write ParseError: KaTeX parse error: Undefined control sequence: \PP at position 29: … (x:y:z:w) \in \̲P̲P̲^3_k \mid F(x,y… for the set of solutions of the equation in ParseError: KaTeX parse error: Undefined control sequence: \PP at position 1: \̲P̲P̲^3_k.
For , consider the polynomial
a. If show that
Hint: First show that is obtained from by a linear change of variables.
::: {.solution}
Recall that ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times is a cyclic group of order . This cyclic group contains an element ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: i \in \̲F̲_q^\times of order 4 if and only if .
If this is the case, then since is the unique element of ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times of order .
Now, we have .
Thus
Thus using the linear change of variables and , we find a bijection between the sets and
In particular, we thus have
:::
b. If , show that .
Hint: Making a linear change of variables, first show that where .
To count the points in , first count the points with (and hence also ), and then the points with .
::: {.solution}
Arguing as in (a), we see that after a linear change of variables, we may replace by ; in particular, there is a bijection between and .
We now compute where .
A point ParseError: KaTeX parse error: Undefined control sequence: \PP at position 15: (x:y:z:w) \in \̲P̲P̲^3 is in if and only if .
We first count the points with .
One possibility is that exactly one of is non-zero. There are 4 such points, namely:
If more than one of is non-zero, then at exactly one of is zero, and since we work in projective space we may consider points where exactly one of is equal to 1.
There are exactly points of the form for ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: a \in \̲F̲_q; more generally, it is easy to see that there are points with for which exactly one of is zero.
In particular, we now see that there are points in with .
Now we count the points in with . After observing that by we see that we need to count the number of points with and .
There are possibilities for ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: y \in \̲F̲_q^\times, and for each such , there are pairs ParseError: KaTeX parse error: Undefined control sequence: \F at position 11: (z,w) \in \̲F̲_q^2 for which .
Thus there are points with .
We now see that the total number of points in is given by
Remark In fact, one can show that ParseError: KaTeX parse error: Undefined control sequence: \PP at position 10: V \simeq \̲P̲P̲^1 \times \PP^1, which explains that ParseError: KaTeX parse error: Undefined control sequence: \PP at position 8: |V| = |\̲P̲P̲^1|^2 = (q+1)^2. :::
Let .
c. Show that . Conclude that there are non-squares in .
::: {.solution} Consider the group homomorphism ParseError: KaTeX parse error: Undefined control sequence: \F at position 6: \phi:\̲F̲_q^{\times} \to… given by .
The kernel of is the set of elements of ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times whose order divides 2; since ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times is cyclic and since is odd, has order 2 (in fact, ).
By the first isomorphism theorem, we see that the image of has order ParseError: KaTeX parse error: Undefined control sequence: \F at position 36: …}(\phi)| = |\̲F̲_q^\times|/|\ke….
Thus there are non-zero squares in ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q; since is also a square, we see that
In particular, there are non-squares in ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q.
:::
d. If , show that .
I should have stipulated that the assumption is still in effect
::: {.solution}
For , we know that is obtained by a linear change-of-variables from . Indeed, writing we see that where and .
In other words, we can obtain from through a linear change of variables.
Since , we've already seen (above) that can be obtained by a linear change of variables from .
Thus, can be obtained by a linear change of variables from .
Now, this linear change-of-variables defines a bijection between and . In particular, we have
:::
e. If , , show for any that there are exactly pairs with .
Hint: We may identify ParseError: KaTeX parse error: Undefined control sequence: \F at position 8: \ell = \̲F̲_{q^2} = \F_…. Under this identification, the norm homomorphism is given by the formula On the other hand, by Galois Theory, we have for any . Thus and .
::: {.solution}
On the one hand, the image of the norm homomorphism is given by
On the other hand, is cyclic of order and is cyclic of order . The norm mapping is given by . Thus the norm mapping is onto and is cyclic of order .
In particular, it follows that the norm mapping is onto, and for each there are exactly elements for which .
:::
f. If , show that
Hint: Notice that the equation has no solutions ParseError: KaTeX parse error: Undefined control sequence: \PP at position 11: (z:w) \in \̲P̲P̲^1_k, and use (e) to help count.
::: {.solution}
We count the number of points ParseError: KaTeX parse error: Undefined control sequence: \PP at position 15: (x:y:z:w) \in \̲P̲P̲^3 for which .
Note that if there are exactly two solutions. Indeed, since is not a square, we have $$-az^2 + w^2 = N(w + z\sqrt{a}) = 0 \quad \text{if and only if} \quad w + z\sqrt{a} = 0 \quad \text{ in $\ellParseError: KaTeX parse error: Expected 'EOF', got '}' at position 1: }̲$
Now suppose that . After division by , we must count all points for which . There are possibilities for and -- according to the preceding part e. -- for each there are exactly possibilities for . Thus there are solutions with .
Finally, we see that the total number of solutions is given by
:::
Let ParseError: KaTeX parse error: Undefined control sequence: \F at position 20: …T^{11} - 1 \in \̲F̲_4[T].
a. Show that has a root in ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{4^5}.
::: {.solution}
Note that
Since ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{4^5}^\times is a cyclic group whose order is divisible by 11, it follows that ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{4^5}^\times has an element of order . This element ParseError: KaTeX parse error: Undefined control sequence: \F at position 10: a \in \̲F̲_{4^5} is then a root of .
:::
b. If is a primitive element -- i.e. an element of order , find an element ParseError: KaTeX parse error: Undefined control sequence: \F at position 21: …alpha^i \in \̲F̲_{4^5} of order , for a suitable .
::: {.solution}
If ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_{4^5}^\times =… then has order , so that is an element of order 11.
:::
c. Show that the minimal polynomial of over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4 has degree 5, and that the roots of are powers of . Which powers?
::: {.solution}
We know that the Galois group of the extension ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4 \subset \… is cyclic of order 5, and is generated by the Frobenius automorphism .
Since ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4 \subset \F_{… is a Galois extension (all extensions of finite fields are galois!) we know for ParseError: KaTeX parse error: Undefined control sequence: \F at position 10: y \in \̲F̲_{4^5} that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: y \in \̲F̲_4 if and only if i.e. if and only if .
Similarly, we know that a polynomial ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_{4^5}[T] satisfies ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_4[T] if and only if [^1]
[^1]: For a polynomial ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_{4^5}[T], the application applies to the coefficients of , and . If then .
Now, define a polynomial ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_{4^5}[T] by the rule
Note that is a root of , and that since .
It follows that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_4[T]. Since the Galois group acts transitively on the roots of , it follows that is irreducible over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4; is thus the minimal polynomial of over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4.
It is clear that has degree 5; moreover its roots are for in the list
[1,4,4^2,4^3,4^4]; since has order 11, these roots are the elements for in the list[1,4,5,9,3]obtained by reducing the power modulo 11.:::
d. Show that for another irreducible polynomial ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: h \in \̲F̲_4[T] of degree 5. The roots of are again powers of . Which powers?
::: {.solution}
We define ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: h \in \̲F̲_{4^5}[T] by the rule Then once again so that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: h \in \̲F̲_4[T], and again is irreducible over degree 5. Moreover, is the minimal polynomial of over ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_4.
Since 1, and are roots of , it follows that the minimal polynomials of these three elements divide . These minimal polynomials are respectively. Since these three polynomials are relatively prime, we find that their productd divides , and then for degree reasons we see that (note that , , are all monic!)
:::
b. Show that is a code for which .
Typo: that should have been rather than
::: {.solution}
We need to compute the
minimal degreeof the code , so we useSageMath.We first get the degree 5 irreducible factors of
f = T^11 - 1overGF(4):Now we include the (previously used) code for computing minimal distance of a cyclic code:
This shows that the minimal distance of the code (and of the code ) is 5.
:::
Consider the following variant of a Reed-Solomon code: let ParseError: KaTeX parse error: Undefined control sequence: \F at position 21: …cal{P} \subset \̲F̲_q be a subset with and write .
Let and write ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q[T]_{< k} for the space of polynomial of degree , and let
ParseError: KaTeX parse error: Undefined control sequence: \F at position 11: C \subset \̲F̲_q^n be given by ParseError: KaTeX parse error: Undefined control sequence: \F at position 42: …n)) \mid p \in \̲F̲_q[T]_{
a. If , prove that is a -code.
::: {.solution} It is clear from the construction that ParseError: KaTeX parse error: Undefined control sequence: \F at position 11: C \subset \̲F̲_q^n. Moreover, since that mapping ParseError: KaTeX parse error: Undefined control sequence: \F at position 6: \phi:\̲F̲_q[T]_{
is injective and ParseError: KaTeX parse error: Undefined control sequence: \F at position 6: \dim \̲F̲_q[T]_{ . Finally, the minimal distance of the (linear) code is the minimal weight of a non-zero vector in If , we have ParseError: KaTeX parse error: Undefined control sequence: \weight at position 5: n + \̲w̲e̲i̲g̲h̲t̲(x) = \#\{ roots of . Since has degree , has no more than roots; this shows that ParseError: KaTeX parse error: Undefined control sequence: \weight at position 1: \̲w̲e̲i̲g̲h̲t̲(x) \ge n - k +…. This shows that .
To see that , note that ParseError: KaTeX parse error: Undefined control sequence: \F at position 14: k \le n \le |\̲F̲_q| so that we may find distinct elements of . Now let be a monic polynomial of degree with these roots; thus
Then ParseError: KaTeX parse error: Undefined control sequence: \weight at position 1: \̲w̲e̲i̲g̲h̲t̲(f) = n - k + 1, so indeed .
We have now shown that is a -code. :::
b. If ParseError: KaTeX parse error: Undefined control sequence: \F at position 5: P = \̲F̲_q^\times, prove that is a cyclic code.
::: {.solution} We show that for a suitable ordering of , the code is cyclic.
We fix a generator for the (cyclic) multiplicative group ParseError: KaTeX parse error: Undefined control sequence: \F at position 1: \̲F̲_q^\times. Thus Now, for ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: f \in \̲F̲_q[T]_{
, the corresponding code-word is To see that is cyclic, we must argue that
Well, let ParseError: KaTeX parse error: Undefined control sequence: \F at position 29: …ha^{-1} T) \in \̲F̲_q[T]. Then so that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_q[T]_{
. Thus . We now note that so indeed holds. This proves that is cyclic. :::
c. If is prime and if ParseError: KaTeX parse error: Undefined control sequence: \F at position 5: P = \̲F̲_p, prove that is a cyclic code.
::: {.solution} Again, we show *for a suitable ordering of that is cyclic.
Note that ParseError: KaTeX parse error: Undefined control sequence: \F at position 15: \mathcal{P} = \̲F̲_p may be written
For an arbitrary ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: f \in \̲F̲_q[T]_{
, the corresponding codeword is given by To see that is cyclic, we must argue that
We set ParseError: KaTeX parse error: Undefined control sequence: \F at position 19: …) = f(T-1) \in \̲F̲_[T], and we note that so that ParseError: KaTeX parse error: Undefined control sequence: \F at position 7: g \in \̲F̲_q[T]_{
. Thus . Now we calculcate so indeed holds. This proves that is cyclic. :::