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.