For a smooth irreducible algebraic curve, send a divisor on an algebraic curve to the line bundle associated to a divisor defined locally by . A nonzero rational section of a line bundle gives its inverse construction, and changing that section changes its divisor by a principal divisor. Thus the divisor class group is the Picard group. The quotient of the sheaf of nonzero rational functions on an irreducible variety by the sheaf of units of the structure sheaf has stalk at each closed point, via the discrete valuation. Its global sections are finite sums of points. The corresponding long exact sequence in sheaf cohomology, and the vanishing for the rational-function sheaf, identify both groups with .
Put , the quotient in sheaves of abelian groups, where is the sheaf of nonzero rational functions on an irreducible variety and is the sheaf of units of the structure sheaf. At a closed point, the discrete valuation induces an isomorphism
The kernel consists precisely of the units of the discrete valuation ring, and surjectivity follows by taking powers of a uniformizer.
A global section of is locally represented by nonzero rational functions. Since has a finite affine cover and is Noetherian, it is quasi-compact, so finitely many such representatives suffice. Each has only finitely many zeros and poles; consequently the valuations of the section define a finite divisor on an algebraic curve. A section with zero valuation at every closed point is zero in every stalk and therefore zero. This gives an injective map
It is surjective as well. For , take a rational uniformizer at each point of its finite support. On a sufficiently small neighborhood of , the function has the prescribed divisor there: remove the other points in its zero and pole set and the other support points of . On the complement of the support use the rational function . On overlaps these representatives have the same valuations at every point, so their ratios are units everywhere on the overlap, and their classes in agree. The sheaf gluing axiom now supplies a global section. Thus
Since is irreducible, . Under this identification the map to is . Its image is exactly the group of principal divisor elements, and hence
The sheaf of nonzero rational functions on an irreducible variety is a flasque sheaf. Indeed, its sections on any nonempty open subset are : irreducibility makes nonempty open subsets connected and makes any two of them meet, so locally constant rational-function values must agree. Restrictions between such opens are identities; restriction to the empty set is also surjective. The preliminary argument therefore gives
Apply the long exact sequence in sheaf cohomology to the short exact sequence of sheaves of multiplicative abelian groups
Its relevant part is
Part (b) identifies the first map with the principal divisor map . Exactness therefore identifies its cokernel with . Combining this with part (a) gives
The connecting map sends a divisor to the class of the unit ratios of its local rational representatives; these are precisely the transition data of the associated line bundle, up to the usual choice of inverse transition convention.