If , that cocycle is a Čech coboundary: there are withSet on and on . These formulas agree on overlaps, so the sheaf gluing axiom gives a global meromorphic function. Moreover is holomorphic near . Thus solves the Mittag-Leffler problem on a Riemann surface with precisely the prescribed principal parts.