How are the following two definitions of holomorphic mappings on Riemann surfaces equivalent?
Show that a function from a Riemann Surface $g:Y\to\mathbb{C}$ is holomorphic iff its composition with a proper holomorphic map is holomorphic.