For a smooth projective curve , let be its geometric genus, let be a canonical divisor, and write for the dimension of a vector space of the Riemann-Roch space. The Riemann-Roch theorem says
for every divisor on an algebraic curve on .
Here is the cohomological proof of Riemann-Roch for curves. At a closed point , the local ring is a discrete valuation ring. A local uniformizer shows that increasing the allowed pole order by one gives the short exact sequence of sheaves
The last term is a length-one skyscraper sheaf; its precise identification with is noncanonical, but its sheaf cohomology has and . All the relevant groups of sheaf cohomology are finite-dimensional because is a projective variety, and coherent sheaf cohomology above degree one vanishes on a algebraic curve. The long exact sequence in sheaf cohomology therefore gives
Since is an algebraically closed field, every closed point has degree one. Iterating this identity for both positive and negative coefficients of proves
Every global regular function on a projective variety which is an irreducible variety is constant; hence and .
Finally apply Serre duality for a smooth projective curve:
Taking dimensions of a vector space and inserting this in the Euler characteristic of a coherent sheaf identity proves the displayed Riemann-Roch theorem. The substantial inputs from sheaf cohomology are finiteness and vanishing for coherent sheaves on a projective curve, and Serre duality; the change of Euler characteristic of a coherent sheaf is proved directly by the point exact sequence. In particular the argument handles negative as well as effective divisors on an algebraic curve.
The Appell–Humbert theorem identifies the positive Hermitian form with a holomorphic line bundle whose First Chern class is represented, in our linear-first convention, by
Its integral over the square fundamental domain is , so . In particular the oriented Chern pairing is ; using without adjusting the Hermitian convention would give the wrong sign.
The complex torus has a nowhere-vanishing differential , so its canonical divisor is trivial and its genus is one. A nonzero section of a line bundle of negative degree would have an effective divisor of negative degree, which is impossible. Thus . The Riemann-Roch theorem and Serre duality give
Therefore . The choice of semicharacter of a complex lattice changes the degree-zero component of the line bundle, but not this calculation.
For a line bundle on , put , and choose an ample line bundle on . Fix . For sufficiently large , both and vanish, by Serre duality and negativity of the degrees of their dual canonical twists. The Semicontinuity theorem for coherent cohomology makes both groups vanish on a neighborhood of . The family is flat over : is flat and the sheaves in question are locally free.
On that neighborhood the Riemann-Roch theorem gives
Upper semicontinuity of both zeroth sheaf cohomology dimensions, after shrinking again, gives and . Hence . The degree is locally constant, and thus constant on connected . With the usual convention that a variety is irreducible, this proves the assertion as printed. If disconnected varieties are allowed, the necessary qualification is constancy on each connected component: take to be two points and the bundles and to see that a global constant degree need not exist.
Let be the projective cubic of a Weierstrass equation of an elliptic curve, allowing its elliptic-curve discriminant to vanish, and let . Use only the smooth locus of a variety : the singular point, if present, is excluded. For , intersect their chord with , using the tangent if and counting intersection multiplicity. If the third intersection is , define , where
in general Weierstrass equation of an elliptic curve coordinates. The line through and gives this reflection. A vertical chord gives , and the tangent at meets three times at , so is the identity. The construction is symmetric in . It stays in the nonsingular locus: a line through a singular point has intersection multiplicity at least two there, and therefore cannot also contain two smooth intersections counted with multiplicity.
For the nonsingular case, prove associativity by transporting a known abelian group law. The Abel-Jacobi map of a genus-one curve
is bijective over an algebraic closure. Indeed, the Riemann-Roch theorem in genus one says that every divisor class of degree one has a unique effective representative consisting of one point: existence follows from , and uniqueness follows because two distinct representatives would produce a degree-one map to the projective line, impossible for a genus one curve. Subtracting gives the claimed bijection.
Any line section represents the same divisor class as , including tangencies. Thus as divisors on an algebraic curve, while the vertical line gives . Hence
Addition in the Picard group is associative, so
The chord-and-tangent group law is defined over , so the group operation restricts to the -rational points.
For completeness, a singular Weierstrass equation of an elliptic curve produces the smooth-locus group of a singular Weierstrass cubic, not an elliptic curve. Over an algebraic closure, its normalization of an algebraic curve is the projective line; deleting the two preimages of a nodal crossing gives the multiplicative algebraic group, while deleting the single preimage of a cusp gives the additive group. For example, on , the coordinate , with , makes the smooth-locus law addition. On in characteristic different from two, put and , with ; the chord relation gives , so the group law is multiplication of . A nonsplit node gives the corresponding form of the multiplicative algebraic group over . These descriptions also establish the singular-case group laws.
The effective group is torsion free and every modular cusp is regular in the preceding sense, so orders of a meromorphic weight- form are integers. At interior points use a local automorphy trivialization; at a modular cusp use the Fourier order of the appropriate slash transform in its cusp width coordinate. Let be the sum of all modular cusp points, each once, and set
A meromorphic function belongs to the Riemann-Roch space exactly when . In the interior this requires to have no pole; at a modular cusp it requires order at least one. Conversely, the quotient of any weight- cusp form by is a meromorphic weight-zero function satisfying precisely those inequalities. This proves the cusp-form divisor presentation
To compute the degree without imposing a valence formula as an extra assumption, use the meromorphic tensor differential . Its automorphy factors cancel. Its order at an interior point is ; at a modular cusp it is , since is a nonzero constant times . A meromorphic section of the th tensor power of the canonical bundle has total divisor degree . The regular-cusp valence formula on a torsion-free modular curve is therefore
For , . The Riemann-Roch theorem says , and a divisor of negative degree has no nonzero sections. Thus and
Using and gives
The canonical-degree and Riemann-Roch facts used here are general results for compact Riemann surfaces, as permitted.
For a smooth projective curve of geometric genus and a divisor on an algebraic curve , write and let be a canonical divisor. The curve form of the Riemann-Roch theorem is
Here and . In line bundle form,
The usual curve convention is a smooth geometrically integral projective curve; geometric embedding tests may be checked after extending the ground field to an algebraic closure.
First use the canonical map to obtain the embedding. Its canonical divisor has degree six and . Over an algebraically closed ground field, every effective degree-two divisor on an algebraic curve satisfies : a second section would give a nonconstant rational function with poles bounded by , hence a map of degree at most two. Degree one would make rational, and degree two would make it hyperelliptic, both excluded here.
The Riemann-Roch theorem now gives
Thus the complete linear system of divisors separates every pair of points and every tangent direction, including the tests . By the length-two criterion for a very ample linear system, it is a very ample linear system. Consequently the canonical map embeds in , with degree of a projective curve six. Its image is a nondegenerate projective variety, since the four canonical sections are linearly independent.
The space of homogeneous quadrics in four variables has dimension ten, while the Riemann-Roch theorem gives
Restriction therefore has a nonzero kernel, giving a quadric containing . This quadric is irreducible: a reducible quadric is a union of two planes, or a double plane, and an integral curve lying in it would lie in a plane, contradicting nondegeneracy.
Similarly, homogeneous cubics form a twenty-dimensional space, whereas
There are at least five independent cubics vanishing on . The multiples of by linear forms give only four dimensions, so choose a cubic vanishing on which is not divisible by .
The polynomials are a regular sequence, hence their intersection is a projective complete intersection of pure dimension one and degree . It contains , which already has degree six. The unmixedness of a complete intersection excludes embedded components. Equal degrees force to be the only irreducible component and force multiplicity one at its generic point. By generic reducedness with no embedded components, this makes reduced, so as schemes. We have proved
This is a canonical genus-four curve as a quadric-cubic intersection. The quadric may be smooth or a cone; the argument does not require it to be smooth. The same construction descends over the ground field when the curve is geometrically nonhyperelliptic, since the restriction maps and canonical embedding are defined there.
Let . Its degree is five. Because the linear span of has dimension at least three, restrictions of linear forms supply at least four independent global sections, so
If , the Riemann-Roch theorem gives , and therefore immediately.
If instead is special, the Clifford inequality for curves gives
so its integer dimension is at most three, a contradiction. Here is a short proof of the required Clifford inequality for curves, so the bound need not be assumed. Put and . At a smooth geometric point, choose bases of these two section spaces with strictly increasing orders of vanishing and . Such bases exist because each successive order-of-vanishing quotient has dimension at most one. The products of the first basis with the first element of the second basis, followed by products of the last element of the first basis with the remaining elements of the second, have orders
They are linearly independent global sections of , proving the product dimension bound for sections on a curve. Thus . Combining this with Riemann-Roch theorem, , gives , which is exactly the displayed Clifford inequality for curves.
The special case is impossible, and hence
This is the genus bound for a nonplanar degree-five curve. The geometric argument can be carried out after extension to an algebraic closure, which preserves these section dimensions.
Here . For , and , including , the degrees are , all greater than two. Thus the correction term in the Riemann-Roch theorem vanishes and
The first drop supplies a section nonzero at every chosen point, proving base-point-freeness of a linear system. For distinct , the second drop supplies a section vanishing at one but not the other, proving point separation. For , it supplies a section vanishing to order exactly one, proving tangent separation. Hence the complete linear system of divisors is very ample and is the induced closed immersion.
The Riemann-Roch theorem states, for a divisor on a smooth projective curve of genus ,
where and is a canonical divisor, of degree . Negative-degree divisors have no nonzero global sections. The theorem's usual formulation here is over an algebraically closed field, as in the curve course.
Put . Choose rational projective coordinates in which and its tangent is . Because is an inflection point of a plane cubic, that tangent intersects the cubic in the divisor . Consequently its cubic equation has the form
Here , since the restriction to is a nonzero multiple of , and , since smoothness at requires a nonzero -derivative there. Completing the square in , by the rational linear change , gives on
Set and . Then
These are invertible rational projective coordinate changes, and remains the unique point at infinity. Smoothness ensures that the resulting monic cubic has no repeated root. Thus this is a Weierstrass equation of an elliptic curve, without requiring any extraction of a square or cube root in .
On this model write and . To add , take their joining line, or the tangent if , and let be the third intersection counted with multiplicity. Define
For a vertical line its third intersection is , so . The line through and an affine point is vertical, giving . The tangent at has triple contact, giving . This is the chord-and-tangent group law.
If are rational, their joining line or tangent is rational. Its residual intersection point is rational: substituting the line in the cubic leaves a cubic whose other two roots, counted with multiplicity, are rational. Thus addition preserves . The construction is symmetric in , so it is commutative.
For associativity, use divisor classes. A smooth plane cubic has geometric genus , by the genus-degree formula. The Riemann-Roch theorem says that a divisor of degree on a genus-one curve has a one-dimensional space of sections. Therefore every degree-zero divisor class is uniquely represented by : add , take its unique effective degree-one representative, and then subtract . Uniqueness also follows because a nonconstant function with its only pole a simple pole at would contradict .
Every line section is linearly equivalent to the tangent section . Thus, whenever are collinear, including tangencies,
A vertical section gives . Hence the chord-and-tangent group law becomes ordinary addition in the degree-zero Picard group under the injective correspondence . Associativity follows from associativity in that abelian group. Together with closure, identity and inverses already checked, this proves that is an abelian group.
For a nonsingular projective integral curve, apply the Riemann-Roch theorem to the divisor on an algebraic curve . It gives , where is the geometric genus. For sufficiently large , this exceeds the dimension of the space of constant functions; over the usual geometrically integral convention that dimension is one. Thus contains a nonconstant rational function.
By the definition of , the principal divisor on an algebraic curve of that function plus is effective, so it has no pole away from . Therefore there is a nonconstant rational function regular on . If is not a rational point, using its closed-point degree in the same inequality handles that case. A positive pole order at is unavoidable, since regular functions on a projective integral curve are constant in its constant field.
Because has no fixed components, choose two members with no common component. This uses the infinitude of the algebraically closed field and avoidance of finitely many proper linear subspaces of the section space. On a smooth algebraic surface, their intersection number is the sum of local intersection multiplicities. Since , they are disjoint. A basepoint of would belong to both, so is basepoint-free.
The resulting morphism has nonconstant image since . Its image cannot be a surface: a generically finite morphism defined by would make the positive product of its degree and the degree of its image. Thus the image is a curve. Apply Stein factorization to obtain with connected fibers and , where is a smooth projective curve. There is a positive-degree line bundle on with . The projection formula for sheaves and Riemann-Roch theorem give . Therefore
Choose a point . Since , a nonzero regular differential has an effective divisor of degree , so . The Riemann-Roch theorem therefore gives
Choose
The rational functions and have their only poles at , of orders two and three respectively.
The seven functions
belong to the six-dimensional Riemann-Roch space , so they satisfy a nontrivial linear relation. Comparing pole orders shows that the coefficients of both and are nonzero. After rescaling, the relation has the Weierstrass form
The divisor is very ample, so its complete linear system embeds in and the displayed relation cuts out its image; this is the Weierstrass construction from Riemann-Roch in genus one.
Because , completing the square removes the terms linear in , and because , translating removes the quadratic term. Thus the equation becomes
Since is algebraically closed, the cubic factors as
Smoothness of says that the elliptic-curve discriminant is nonzero, equivalently the three roots are distinct. Hence
Define
If is a divisor class of degree zero, Riemann--Roch gives , because and the divisor has negative degree. A nonzero section therefore yields
for some point , proving that is surjective. If , then is a principal divisor. For its defining function would have one simple pole and give a degree-one map , impossible for a genus-one curve. Thus . The map and its inverse are regular, so this proves the Abel-Jacobi map of a genus-one curve is an isomorphism.
Transport the addition of the divisor class group through : define by
Then is the identity, and this is the chord-and-tangent group law on the plane cubic.
For the displayed equation, inversion is . Thus exactly when . Besides the point at infinity , this requires . Therefore the complete set of two-torsion points is
For , the divisor has negative degree, so . The Riemann-Roch theorem gives
Starting from and using part (ii), each integer contributes one to exactly when it is not a gap. Therefore
Comparison with the preceding formula gives . Moreover every is a nongap because the Riemann--Roch formula makes every subsequent dimension jump equal to one. Thus the Weierstrass gap theorem says