[step:Prove that $\log|g|$ is subharmonic for a holomorphic function $g$ of one complex variable]Let $g: D \to \mathbb{C}$ be holomorphic with $g \not\equiv 0$ on any connected component of $D$. We verify the sub-mean-value inequality: for every $\zeta_0 \in D$ and $r > 0$ with $\overline{B}(\zeta_0, r) \subset D$,
\begin{align*}
\log|g(\zeta_0)| \leq \frac{1}{2\pi}\int_0^{2\pi} \log|g(\zeta_0 + re^{i\theta})|\,d\mathcal{L}^1(\theta).
\end{align*}
**Case 1: $g(\zeta_0) = 0$.** Then $\log|g(\zeta_0)| = -\infty$, and the right-hand side is either finite or $-\infty$. If $g \not\equiv 0$, then the zero set of $g$ is discrete (by the [Identity Principle](/theorems/3357) in one variable), so $g$ is not identically zero on the circle $|\zeta - \zeta_0| = r$ (for all but countably many values of $r$). The function $\log|g|$ is locally integrable near an isolated zero: if $g$ has a zero of order $m$ at $\zeta_0$, then $g(\zeta) = (\zeta - \zeta_0)^m h(\zeta)$ with $h(\zeta_0) \neq 0$, so $\log|g(\zeta)| = m\log|\zeta - \zeta_0| + \log|h(\zeta)|$ near $\zeta_0$, and $\log|\zeta - \zeta_0|$ is locally integrable. Therefore the right-hand side is finite (for generic $r$), hence $\geq -\infty = \log|g(\zeta_0)|$.
**Case 2: $g(\zeta_0) \neq 0$.** Since the zeros of $g$ are isolated, we may choose $r > 0$ small enough that $g$ has no zeros on $\overline{B}(\zeta_0, r)$ (or if zeros exist on the disc but not at $\zeta_0$, we argue as follows). If $g$ has no zeros in $B(\zeta_0, r)$, then $\log g$ has a holomorphic branch on $B(\zeta_0, r)$ (since $B(\zeta_0, r)$ is simply connected and $g \neq 0$ there), and $\log|g| = \operatorname{Re}(\log g)$ is harmonic on $B(\zeta_0, r)$. Harmonic functions satisfy the mean-value equality, so the sub-mean-value inequality holds (with equality).
If $g$ has zeros in $B(\zeta_0, r)$ but not at $\zeta_0$, let $\zeta_1, \dots, \zeta_N$ be the zeros of $g$ in $B(\zeta_0, r)$ counted with multiplicity. Define the Blaschke factor
\begin{align*}
b(\zeta) = \prod_{j=1}^N \frac{\zeta - \zeta_j}{r - \overline{(\zeta_j - \zeta_0)}(\zeta - \zeta_0)/r},
\end{align*}
which satisfies $|b(\zeta)| = 1$ on $|\zeta - \zeta_0| = r$, and $g/b$ is holomorphic and nonvanishing on $B(\zeta_0, r)$. Then $\log|g/b| = \operatorname{Re}(\log(g/b))$ is harmonic on $B(\zeta_0, r)$, and the mean-value property gives
\begin{align*}
\log|g(\zeta_0)/b(\zeta_0)| = \frac{1}{2\pi}\int_0^{2\pi} \log|g(\zeta_0 + re^{i\theta})/b(\zeta_0 + re^{i\theta})|\,d\mathcal{L}^1(\theta).
\end{align*}
Since $|b(\zeta_0 + re^{i\theta})| = 1$ on the circle, the right-hand side equals $\frac{1}{2\pi}\int_0^{2\pi}\log|g(\zeta_0 + re^{i\theta})|\,d\mathcal{L}^1(\theta)$. Since $|b(\zeta_0)| = \prod_j |\zeta_0 - \zeta_j|/r \cdot |r/\overline{(\zeta_j - \zeta_0)}| \leq 1$ (each factor has modulus $< 1$ because $|\zeta_j - \zeta_0| < r$), we have $\log|b(\zeta_0)| \leq 0$, so
\begin{align*}
\log|g(\zeta_0)| = \log|g(\zeta_0)/b(\zeta_0)| + \log|b(\zeta_0)| \leq \log|g(\zeta_0)/b(\zeta_0)| = \frac{1}{2\pi}\int_0^{2\pi}\log|g(\zeta_0 + re^{i\theta})|\,d\mathcal{L}^1(\theta).
\end{align*}[/step]