Explicit version of the Poincaré-Lelong equation on Riemann surfaces Disclaimer: My knowledge of the theory of Riemann surfaces is limited to Miranda's book, where in particular the integration theory is not very detailed and moreover currents are not explained. So please forgive me if the following question is too silly.

Let $X$ be a compact Riemann surface and let $f$ be a meromorphic function on $X$ which induces a principal divisor $(f)=\sum_x a_x[x]$. Then the Poincaré-Lelong formula says that the following equality of currents holds:
$$\frac{i}{\pi}\partial\bar\partial\log|f|=\sum_x a_x[x]\quad\quad(\ast)$$
I have two questions about this equation:


*

*I'd like to know if the following explicit interpretation of $(\ast)$ is correct.
$$\text{for any $g\in C^\infty(X):\quad$} \int_X\frac{i}{\pi}g\,\partial\bar\partial\log|f|=\sum_x a_xg(x)$$

*Let's assume that $1.$ is correct, then let's look at the integral $\int_X \omega$ where $ \omega=g\,\partial\bar\partial\log|f|$. Let $U$ be the Zariski open set of $X$ given by the points where $f$ is well defined and holomorphic, then:
$$\omega\in\mathcal E^{1,1}(U)$$
that is $\omega$ is a smooth $(1,1)$-form on $U$. So what is the meaning of writing $\int_X \omega$? Shouldn't be $\int_U\omega$? The integration of $(1,1)$-form is defined only when they are smooth! So the equation $(\ast)$ should be written as 
$$\text{for any $g\in C^\infty(X):\quad$} \int_U\frac{i}{\pi}g\,\partial\bar\partial\log|f|=\sum_x a_xg(x)$$
Thank you.
 A: Miranda doesn't explain what currents are? That's odd.
Anyway, a current is basically a differential form with distribution coefficients (instead of coefficients that are smooth functions). There's some good discussion of currents and their use in complex geometry in Demailly's book 1 and notes 2 (see singular Hermitian metrics on line bundles, of which your situation is an example).
Your interpretation (1) is correct. If we look at the local picture and consider a meromorphic function $f$ on an open set $U$, the current $\frac i\pi \partial \bar\partial \log |f|$ is the current of integration over the sets of poles and zeros of $f$. In the case of a curve, that becomes a set of points, and the current associated to a point is the Dirac delta at that point.
For your point (2), here we run into the fact that your $\omega$ is not a smooth form, but a current. In fact, the integral over any subset of $X$ where $f$ is holomorphic and non-zero is zero, because there we find
$$
\partial \bar\partial \log |f|^2
= \partial \biggl( \frac{f \bar\partial \overline f}{f \overline f} \biggr)
= \partial \biggl( \frac{\bar\partial \overline f}{\overline f} \biggr) = 0.
$$
Thus the only non-zero contributions to the integral come from the set of zeros and poles of $f$, where $\omega$ is really a current.
