








































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









































































Example 1.1. Let F = F 2. Then { 0 , 1 } is a code in F and { 00 , 11 } is a code in F 2. Likewise, { 000 , 111 } is a code in F 3 and { 00000 , 11111 } is a code in F 5.
Example 1.2. Let
H =
Then the kernel of H is a code in F 7. This is called the Hamming code, and was the first real example of an error correcting code. We will investigate this code further in a little while.
The important property of a code is its ability to correct errors. Let us discuss this idea starting with an example. In 1979 the Mariner 9 spacecraft took black and white pictures of Mars. These pictures were created by using 64 shades of grey. Each pixel of a photograph was assigned a shade of grey. Each picture consisted of a 600 by 600 grid of pixels. Thus, to transmit one photograph, the spacecraft had to send 360,000 pieces of data, each piece representing the color of a pixel. Suppose that the shades of grey were represented by a number from 1 to 64 in binary. Thus, we could represent any color with a string of six binary digits. If, in transmission, an error was made, then NASA would incorrectly color the corresponding pixel. Since electromagnetic activity can easily cause such errors, this would be a problem. NASA wanted an encoding system that would take received data, perform some sort of test, and determine if the received data was the same as that send, and, if not, determine what was the actual transmitted data. What they did was to encode each color as a string of 32 binary digits. Of the 2^32 possible strings, 64 of them were valid codewords. Suppose that a codeword is transmitted, but errors are made. One can recognize that an error is made if one sees that the received word is not a codeword. The main principle of error detection, Maximum Likelihood Detection (MLD) assumes that few errors are more likely than many errors. Therefore, the codeword that differs from the received word in the fewest number of components is the most likely transmitted codeword. All error correcting schemes use this principle. For example, with the code { 000 , 111 }, if 101 is received, then MLD would assume that 111 was transmitted. However, with { 00 , 11 }, if 01 or 10 was transmitted, then MLD would not distinguish between 00 and 11. Even worse, with the code { 0 , 1 }, if a codeword is transmitted but an error is made, the error cannot be detected because all elements of F are codewords. To make more precise the notion of closeness of words, we define a metric on F n. The function d : F n^ × F n^ → Z defined by d(u, v) is equal to the number of components in which u and v vary. In other words, if xi is the i-th component of a vector x, then
d(u, v) = |{i : ui 6 = vi}|.
The function d is in fact a metric. To see this, note that the property d(u, v) ≥ 0 and d(u, v) = 0 if and only if u = v is clear. Similarly, d(u, v) = d(v, u) is clear. The triangle inequality is not hard, but is not completely obvious. We need to show that if u, v, w ∈ F n,
then d(u, w) ≤ d(u, v) + d(v, w). Then
d(u, w) = |{i : ui 6 = wi}|.
We note that {i : ui 6 = wi} is a subset of {i : ui 6 = vi} ∪ {i : vi 6 = wi} since if ui = vi and vi = wi, then ui = wi. Thus,
d(u, w) = |{i : ui 6 = wi}| ≤ |{i : ui 6 = vi} ∪ {i : vi 6 = wi}| ≤ |{i : ui 6 = vi}| + |{i : vi 6 = wi}| = d(u, v) + d(v, w).
This metric will play a quiet but important role in coding theory.
There are some important parameters attached to a code C over F = Fq. The first, called the length of the code, is the value of n for which C is a subset of F n. The next, which we will label k, is defined as k = logq(|C|).
If (^) C is a subspace of (^) F n, then k = dimF (C), and so k is the dimension of the code. To define the final parameter, we need some preliminary concepts. The third invariant is labeled d and is the distance of the code C. It is defined as
d := min {d(u, v) : u 6 = v ∈ C}.
It should not be a problem that we are using d both for the metric and for the distance of a code. These three parameters are then positive integers. The parameters, in order n, k, d, of the codes of the first example are (2, 1 , 2), (3, 1 , 2), and (5, 1 , 5), respectively. With a little calculation, we see that the parameters of the Hamming code are (7, 4 , 3). Occasionally we will refer to a code with parameters n, k, and d as an (n, k, d)-code.
A code that is a subspace of F n^ is said to be a linear code. All of the codes we will consider in this course will be linear codes. We will view the elements of F n^ as row matrices. There are some useful matrices attached to a linear code C ⊆ F n. The first is called a generator matrix. It is a matrix G whose rows form a basis for C. This is an k × n matrix, and its row space is equal to C. The code C is then given, in terms of G, by
C =
vG : v ∈ F k
The second matrix is called a parity check matrix. This is a matrix H of full rank for which C is the right nullspace of HT^. That is, u ∈ C if and only if uHT^ = 0. Alternatively, u ∈ C
of a codeword is 3. For the dual code to the Hamming code, the listing of its elements shows that C⊥^ has distance 4.
Example 1.4. The extended Golay code, discovered by Golay, the codiscoverer of the Ham- ming code, has generator matrix
This is a 12 × 24 matrix. It can be viewed in the form [B | A] with A and B both 12 × 12 matrices. In fact, G = [I 12 | A], where
The Golay code is the code C, where C is the row space of G. The matrix G has rank 12, so the code has dimension 12. Thus, there are 2^12 = 4096 codewords. This code has distance 8, which can be verified in a hopelessly tedious manner by calculating the weight of all 4095 nonzero codewords, or by proving some facts, by induction, about the rows of G. One sees that the distance is at most 8 since the last row has weight exactly 8. The Voyager spacecrafts visited Jupiter, Saturn, Uranus, and Neptune, taking pictures of each planet and their moons. The following picture was taken by Voyager 2. The photographs
taken by these spacecrafts utilized the Golay code to encode the data representing the pictures. A photograph consists of a rectangular grid, and at each grid point, or pixel, a color is given. For the Voyager spacecrafts, the use of the Golay code allowed the photos to be made with up to 4096 colors. Each color was represented as a codeword in the Golay code. To send the information representing one picture, each pixel was described by the codeword representing the color of that pixel. This codeword was a 24-tuple of binary digits. Since the Golay code has distance 8, it can correct up to three errors. Thus, each codeword transmitted could have up to three errors without losing any data.
We make formal the meaning of an error correcting code, and we shall shortly see the connection between the distance and the error correction capabilities of the code.
Definition 1.5. A code C is s-error detecting if whenever at least one but at most s errors are made in any codeword, then the resulting word is not a codeword.
From this definition and that of the distance of a code, it is clear that a code of distance d can detect up to d − 1 errors. A more important definition for us is that of error correcting.
Definition 1.6. A code C is said to be t-error correcting if a word is a distance at most t from some codeword, then its distance from every other codeword is greater than t.
To help to understand this definition, suppose that a codeword v is transmitted and at most t errors are made, meaning at most t components of the codeword are changed, resulting in a word w. If the code is t-error correcting, then since w is a distance of at most t from v, then the distance from w to any other codeword is greater than t. Therefore, v is the closest codeword to w. Using MLD, we would correct w to v, and thus recover the correct codeword.
Example 1.7. The code { 0 , 1 } cannot correct any errors, nor can { 00 , 11 }. However, { 000 , 111 } can correct 1 error. If 111 is transmitted but one error is made, the result has distance 2 from 000. The same is true starting with 000. The code { 00000 , 11111 } can correct two errors.
Example 1.8. The Hamming code can correct one error. Moreover, there is a nice decoding algorithm, if F = F 2. Suppose that v is a codeword, and one error is made in transmitting v, resulting in a word w. Then w = v + ei, where ei is the i-th standard basis vector of F 7. Multiplying by the Hamming matrix H, we get Hw = H(v + ei) = Hv + Hei = Hei. Now, an easy calculation shows that Hei is the i-th column of H. Therefore, if we identify which column of H is Hw, then we will determine i. Once we know i, we can recover v as v = w + ei. This example illustrates an aspect of coding theory; we would like codes that can correct errors and for which there is an efficient decoding algorithm.
The Maple worksheet cosets.mws, available on the class website, will produce this table.
Suppose you have to transmit two pieces of information. You could use the code { 0 , 1 }, but that would give you no error correction. You could use { 000 , 111 } to be able to correct one error, or up to 13 of the digits. You could use { 00000 , 11111 } and correct up to two errors, or 25 of the digits. In general, by making the strings longer, we can have better error correction. However, longer codewords mean more effort in sending, receiving, and decoding. So, we would like to have codes as short as possible with as good error correction as possible. What restrictions are there? Are there any relationships between the parameters n, k, and d? There are several relationships, all that give upper bounds or lower bounds for d. To state some of these bounds, we set Aq(n, d) to be the largest size of a code of length n and distance d. Much of coding theory has been to determine the values of this function and in determining the asymptotic behavior of Aq(n, d) as a function of δ = d/n as n → ∞. To help in some of the proofs, we first give a counting argument. Consider the sphere of radius r centered at a word v. To pick a word a distance i from v, we need to change i of the components of i; there are
(n i
choices for these components. Each component can be changed in q − 1 ways since |F | = q. Therefore, there are
(n i
(q − 1)i^ total words a distance of i from v. Therefore, the sphere contains a total of
∑r i=
(n i
(q − 1)i^ words. There are many bounds on codes, although we restrict our attention to just three. The first bound gives a lower bound of the size of a code with given parameters n and d. Most bounds give upper bounds.
Proposition 1.10 (Gilbert-Varshamov Bound).
Aq(n, d) ≥ qn ∑d− 1 i=
(n i
(q − 1)i^
Proof. Let C be a code of maximal size of length n and distance d. The spheres of radius d − 1 centered at codewords then cover the entire space of words, since if there is a word a distance of at least d from every codeword, then we could add it to C without changing n or d. If M is the size of this code, then from our calculation of the size of spheres, we have M ·
∑d− 1 i=
(n i
(q − 1)i^ ≥ qn, which yields the bound.
This bound says that there exists a code of length n and distance d, and with M elements, such that M ≥ qn/
(∑d− 1 i=
(n i
(q − 1)i
. It does not say anything about arbitrary codes.
Proposition 1.11 (Singleton Bound). Let C be a code with parameters n, k, and d. Then d ≤ n − k + 1. Therefore, Aq(n, d) ≤ qn−d+1.
Proof. Consider the function ϕ : C → F n−d+1^ given by ϕ(x 1 ,... , xn) = (x 1 ,... , xn−d+1). In other words, ϕ removes the last d − 1 components of a codeword. Since every codeword of
C has weight at least d, the function ϕ is 1-1. Consequently, |C| ≤
F n−d+
. Since this is true for any code of length n and distance d, we have Aq(n, d) ≤
F n−d+
= qn−d+1. Taking logarithms to the base q, we get k ≤ n − d + 1, or d ≤ n − k + 1.
If a code C satisfies d = n − k + 1, then the code is said to be an MDS code (maximum distance separable). The following bound is also called the sphere packing bound.
Proposition 1.12 (Hamming Bound). If t = b(d − 1)/ 2 c, then
Aq(n, d) ≤ qn ∑t i=
(n i
(q − 1)i^
Proof. Suppose that we have a code with length n and distance d, and for which it has M codewords. Let v be a codeword, and consider the sphere of radius t centered at v. As we have seen this sphere contains
∑t i=
(n i
(q − 1)i^ words. Since the code can correct t errors, the spheres of radius t centered at codewords are disjoint. Therefore, since there are qn^ total words,
qn^ ≤ M
∑^ t
i=
n i
(q − 1)i,
or M ≤ qn ∑t i=
(n i
(q − 1)i^
Since this is true for any such code, we get the Hamming bound. These last two codes give an upper bound, in terms of n and d, of the number of elements of any code with length n and distance d.
The codes Goppa constructed from algebraic curves yield a better asymptotic lower bound than the Gilbert-Varshamov bound. By asymptotic bounds, we mean the investigation of
lim sup n→∞
logq(Aq(n, d)) n
The reason for considering asymptotic bounds comes from Shannon’s channel coding theo- rem. If we define the information rate of a code to be k/n, then the theorem says that given any ε > 0, there is a code with information rate at least R for which the probability of in- correct decoding of a received word is less than ε. However, in order to make the probability of incorrect decoding low with a fixed k/n, then n must be large. This theorem is not stated quite correctly; there is a limit on how large the information rate can be; this limit is called the capacity of the channel. A description of this can be found in Roman’s book.
column vectors. For example, if α = x, then
α^0 = 100, α^1 = 010, α^2 = 001, α^3 = 110, α^4 = 011, α^5 = 111, α^6 = 101.
Therefore, we have
H =
The condition for a vector v = (a 0 ,... , a 6 ) to be in the (rearranged) Hamming code is
0 = Hv = (1, α,... , α 6 ) ·
a 0 a 1 .. . a 6
= a 0 + a 1 α + · · · + a 6 α^6.
Therefore, by viewing v as a polynomial v(x) ∈ F 2 [x] of degree at most 6, we see that v is a codeword if and only if v(α) = 0. In fact, the generator polynomial is then the minimal polynomial of α, which is x^3 + x + 1.
Example 1.14 (BCH Codes). Let n = qm^ − 1, and let α be a primitive element of the field Fqm^. If e is a positive integer with e ≤ n, we can use the elements α, α^2 ,... , αe−^1 to build a code. This code is then the set of polynomial cosets p(x) with p(α) = p(α^2 ) = · · · = p(αe−^1 ) = 0. While we do not show it here, this code has distance at least e, and so can correct b(e − 1)/ 2 c errors. The integer e is called the designated distance of the code, and is a lower bound of the actual distance.
Example 1.15 (Reed-Solomon Codes). Let n = q − 1 and let α be a primitive element of Fq. Then the code of all polynomial cosets p(x) with p(α) = p(α^2 ) = · · · = p(αd−^1 ) = 0 is called a Reed-Solomon code. By the claim of the previous example, the distance of this code is at least d. The generator polynomial is g(x) = (x − α) · · · (x − αd−^1 ), so k = n − deg(g(x)) = n − d + 1. Therefore, by the Singleton bound, the distance of the code is exactly d, and the code is an MDS code.
Example 1.16. Suppose n = 7 and d = 4. The Reed-Solomon Code we get from this data has k = 4. The resulting code is
We now consider some specific examples of BCH codes.
Example 1.17. Consider F 16 = F 2 [x]/(x^4 + x + 1), the splitting field over F 2 of x^4 + x + 1. A short calculation shows that any root α of x^4 +x+1 is a primitive element of F 16. To see this, recall that since F∗ 16 has order 15, Lagrange’s theorem implies that α is a primitive element provided that α^3 6 = 1 and α^5 6 = 1. Since the minimal polynomial of α is x^4 + x + 1, which does not divide x^3 −1 or x^5 −1, neither of these polynomials has α as a root. We consider the BCH code of all polynomials cosets having α, α^2 ,... , α^6 as roots. Then n = 15. To calculate k, we calculate the generator polynomial g(x). This is the least common multiple of the minimal polynomials of the six roots. The minimal polynomial of α and α^2 is x^4 + x + 1. The minimal polynomial of α^3 and α^6 is x^4 + x^3 + x^2 + x + 1 and the minimal polynomial of α^5 is x^2 + x + 1. One way to find these is to note that every element of F 16 is a root of x^16 − x. If you factor this into irreducible polynomials, you need to check which irreducible has a given αi^ as a root. Alternatively, you can find the generator polynomial by using the Maple worksheet generator.mws, which is available on the course website. In any case, we get g(x) = x^10 + x^8 + x^5 + x^4 + x^2 + x + 1. This has degree 10, so k = n − deg(g(x)) = 5. This code can correct three errors since the designated distance is 7.
Example 1.18. Consider the code built from the same field F 16 but with designated distance
equations that the base field is assumed to be algebraically closed. If f (x, y) is a polynomial over an algebraically closed field k, and if b ∈ k, then f (x, b) is a polynomial in the one variable x. If f (x, b) is not constant, then it has roots in k, and so f (x, y) = 0 has solutions in A^2 (k).
If X is an algebraic curve over k, then the ideal of X is
I(X) = {f ∈ k[x, y] : f (P ) = 0 for all P ∈ X}.
If f (x, y) = p(x, y)e^1 · · · pn(x, y)en^ is the factorization of a polynomial f into irreducible factors, then it is easy to see that I(Z(f )) = (p 1 · · · pn). Moreover, the coordinate ring of X is the quotient ring Γ(X) = k[x, y]/I(X). One way of thinking about the coordinate ring is to consider it the ring of polynomial functions on X. For, two polynomials f and g induce the same function X → k precisely when f − g ∈ I(X), which is equivalent to the cosets f and g being equal. A topological space is said to be irreducible if it cannot be written as the union of two proper subcurves. If f = gh, then Z(f ) = Z(g) ∪ Z(h). From this, if f is a squarefree polynomial, it follows that Z(f ) is irreducible if and only if f is irreducible. Alternatively, X is irreducible if and only if Γ(X) is an integral domain.
For students who have studied topology, the construction of projective varieties parallels that of constructing the real projective plane. We define an equivalence relation ∼ on A^3 \ {(0, 0 , 0)} by defining that (a, b, c) ∼ (a′, b′, c′) if there is a nonzero scalar λ with a′^ = λa, b′^ = λb, and c′^ = λc. Geometrically, the equivalence class of a point is the line through the origin that passes through the point. We will write (a : b : c) for the equivalence class of (a, b, c), and P^2 will denote the set of all equivalence classes. This is the projective plane. Note that (a : b : c) represents a point in the projective plane only if at least one of the coordinates is nonzero. Note that polynomial functions are not well defined on points of projective space. How- ever, we can get around this problem. A polynomial f ∈ k[x, y, z] is said to be homogeneous if every monomial of f has the same degree. Alternatively, f is homogeneous if there is an integer m with f (λx, λy, λz) = λmf (x, y, z) for all λ ∈ k. If f is homogeneous and P ∈ P^2 , then the equation f (P ) = 0 is well defined; in other words, if P ∼ Q, then f (P ) = 0 if and only if f (Q) = 0. Therefore, we can define zero sets of collections of homogeneous polynomials. If f is a homogeneous polynomial, then the projective curve f = 0 is the zero set Z(f ) = {P ∈ Pn^ : f (P ) = 0}.
We define a projective curve to be irreducible in exactly the same way as for affine curves; if f is a squarefree homogeneous polynomial, then it follows that Z(f ) is irreducible if and
only if f is irreducible. We can define a coordinate ring for projective curves. If X is a projective curve, then I(X) is defined to be
I(X) = 〈{f ∈ k[x, y, z] : f is homogeneous and f (P ) = 0 for all P ∈ X}〉.
The homogeneous coordinate ring S(X) is the quotient ring k[x, y, z]/I(X). As with affine curves, a projective curve is irreducible if and only if its ideal is a prime ideal, and this happens exactly when S(X) is an integral domain.
Example 2.5. Consider the projective parabola X given by yz = x^2. If (a : b : c) ∈ X, then bc = a^2. If c 6 = 0, then by dividing by c, we may assume that c = 1. Then, (a, b) is on the affine parabola y = x^2. On the other hand, if c = 0, then a = 0, and b 6 = 0 for (a : b : c) to be a valid point. Then, by dividing by b, we have the point (0 : 1 : 0). Thus, we can think of X as the union of the affine parabola y = x^2 and the extra point (0 : 1 : 0). Note that the affine parabola is obtained by setting z = 1 in the equation yz = x^2. Moreover, there is another affine parabola inside X, and this other curve contains (0 : 1 : 0). If we set y = 1, then we have the equation z = x^2 , which again represents a parabola. The point (0 : 1 : 0) is a point of this affine parabola. The purpose of considering this second affine parabola is that any point of X is a point on some affine curve in X.
Example 2.6. Let X be the projective elliptic curve y^2 z = x^3 − xz^2. The affine elliptic curve y^2 = x^3 − x is an affine curve in X; we can map it into X via (a, b) 7 → (a : b : 1). The image is X − {(0 : 1 : 0)}; if (a : b : c) ∈ X and c = 0, then the equation y^2 z = x^3 − xz^2 forces a = 0. Then b 6 = 0 since (a : b : c) ∈ P^2. Thus, we may divide by b to assume b = 1, and so the only point on X for which c = 0 is (0 : 1 : 0). As with the previous example, the affine equation is obtained from the projective equation by setting z = 1.
Example 2.7. In the previous examples we started with a projective curve and found an affine curve inside it. In this example we start with an affine curve and produce a projective curve. Let Y be the curve y = x^3. By adding a third variable z, we can use y − x^3 to get the homogeneous polynomial yz^2 −x^3. The affine curve Y sits inside the projective curve yz^2 = x^3 as in the previous examples. Similarly, y^2 + 1 = x^4 yields the homogeneous polynomial y^2 z^2 + z^4 = x^4. What we are doing is adding enough copies of z to each monomial so that each has degree equal to the highest degree of a monomial of the original polynomial. To have a formula for doing this, if f (x, y) has degree d, then zdf (x/z, y/z) is the homogenization of f (x, y). The resulting projective curve is called the projective closure of the affine curve f = 0. In general, if Z(f ) is a projective curve, then any point of the form (a : b : 0) of Z(f ) is called a point at infinity. If g(x, y) = f (x, y, 1), then Z(f ) is the union of the affine curve g = 0 and the points of infinity. The polynomial g(x, y) is called a dehomogenization of f (x, y, z) (at the variable z).
is isomorphic to k[t^2 , t^3 ], a subring of k[t]. These rings are isomorphic via the map x 7 → t^2 and y 7 → t^3. The function field of this curve is then the quotient field of k[t^2 , t^3 ], which is k(t). Note that y/x represents a rational function on X as does x^2 /y. Furthermore, these functions agree since y/x = x^2 /y in k(X). Therefore, a rational function can be represented in more than one way as a quotient of polynomials.
Example 2.10. The coordinate ring of the elliptic curve y^2 = x^3 − x is k[x, y]/(y^2 − x^3 − x). We claim that its function field is isomorphic to k(t)
t^3 − t
. To see this, note that the coordinate ring is k[x, y], and so its function field is k(x, y). That is, the function field is generated as an extension field of k by x and y. Now, we have y^2 = x^3 − x. Therefore y is algebraic over k(x), and so k(x, y) = k(x)(y) ∼= k(x)
x^3 − x
. The element x cannot be
algebraic over k, so k(x) ∼= k(t), the rational function field in t.
Let f (x, y, z) be an irreducible homogeneous polynomial, and let X = Z(f ). We can also define a function field of X. Let ∼ be the equivalence relation on the set
{g(x, y, z)/h(x, y, z) : g, h ∈ k[x, y, z] are homogeneous of the same degree, h /∈ (f )} ∪ { 0 }
given by g/h ∼ g′/h′^ if and only if gh′^ − g′h ∈ (f ). The function field k(X) is then the set of equivalence classes, under the natural operations. Note that any f /g ∈ k(X) determines a well defined function on an open subset of X: if g, h are both homogeneous of degree d, then if λ is nonzero, then
g(λa, λb, λc) h(λa, λb, λc)
λdg(a, b, c) λdh(a, b, c)
g(a, b, c) h(a, b, c)
The function g/h is defined for all points P except when h(P ) = 0. We may then think of k(X) in much the same way as we think of the function field of an affine curve. We now show that the function field of a projective curve can be calculated by finding the function field of an affine curve.
Proposition 2.11. Let f (x, y, z) be an irreducible homogeneous polynomial. Let X = Z(f ) be a projective curve and if U is the affine curve Z(f (x, y, 1)), then k(X) ∼= k(U ).
Proof. We will define a ring homomorphism ϕ : Γ(U ) → k(X) and show that ϕ is injective. Thus, ϕ induces a homomorphism k(U ) → k(X), which necessarily is injective. We will then be done by showing that this map is surjective. To define ϕ, write g(x, y) = f (x, y, 1). For h(x, y) ∈ k[x, y], define ϕ(h) = h(x/z, y/z). Note that if deg(h) = d, then h(x/z, y/z) = hh(x, y, z)/zd, and this represents an element of k(X). This map is well defined, since if h′^ − h ∈ (g), then h′^ = h + gl for some l ∈ k[x, y]. Then h′(x/z, y/z) = h(x/z, y/z) + g(x/z, y/z)l(x/z, y/z). By our hypothesis on f , we have g(x/z, y/z) = f (x, y, z)/zdeg(f^ ). Therefore, g(x/z, y/z)l(x/z, y/z) = 0 in k(X) by the definition of k(X). Thus, ϕ(h) = ϕ(h′); this proves that ϕ is well defined. It is a simple exercise to see that ϕ is a ring
homomorphism. To prove injectivity, suppose that ϕ(h) = 0. Then h(x/z, y/z) = 0 in k(X). Note that h(x/z, y/z) = hh(x, y, z)/zdeg(h). For this to be zero in k(X), we have hh(x, y, z) = f (x, y, z)m(x, y, z) for some m. Dehomogenizing, we get
h(x, y, z) = hh(x, y, 1) = f (x, y, 1)m(x, y, 1) = g(x, y)m(x, y, 1).
Therefore, h = 0. Thus, ϕ is injective. For surjectivity, every element of k(X) is rep- resented by a quotient h(x, y, z)/l(x, y, z) of homogeneous polynomials of the same de- gree. Let their common degree be d. Then h(x, y, z)/l(x, y, z) = zdh(x, y, 1)/zdl(x, y, 1) = h(x, y, 1)/l(x, y, 1). This represents an element of k(U ), and this element maps via ϕ to h(x, y, z)/l(x, y, z). Therefore, ϕ is surjective, and so k(U ) ∼= k(Z).
Example 2.12. Let X be the projective parabola yz = x^2. The affine parabola Y = Z(y − x^2 ) is obtained from dehomogenizing yz − x^2. Therefore, k(X) = k(Y ) ∼= k(t). Similarly, the function field of yz^2 = x^3 is k(t), and the function field of the projective elliptic curve y^2 z = x^3 − xz^2 is k(t)
t^3 − t
There are important subrings of the function field of a curve. First, if X is a projective or affine curve, then
k[X] = {ϕ ∈ k(X) : ϕ is defined at every point of X}.
This is called the ring of regular functions on X, and is the ring of globally defined rational functions on X. If X is affine, then one can show that k[X] ∼= Γ(X), but that if X is projective, then k[X] = k. Next, let P ∈ X. Then the local ring of X at P is the set
OP (X) = {ϕ ∈ k(X) : ϕ is defined at P }.
This is the ring of regular functions defined locally at P. For ϕ(P ) to be defined, ϕ must be defined in an open neighborhood of P , since if ϕ = g/h, then P /∈ Z(h), and so ϕ is defined on the open neighborhood h 6 = 0 of P. For convenience, we will typically write OP in place of OP (X). It is a local ring; its unique maximal ideal is
MP = {ϕ ∈ OP : ϕ(P ) = 0}.
A short exercise shows that MP is an ideal of OP. Furthermore, if ϕ ∈ OP \ MP , then we may write ϕ = f /g with f (P ) 6 = 0. Then g/f ∈ OP is an inverse for ϕ. Therefore, since every element outside MP is a unit, MP is the unique maximal ideal of OP. If Y = Z(f ) is an affine curve, then OP (Y ) =
g/h ∈ k(Y ) : h(P ) 6 = 0
Proposition 2.13. Let P be a point of an irreducible affine curve X = Z(f ), and let mP = {g ∈ k[X] : g(P ) = 0}. Then OP = k[X]mP.