[step:Use closedness of the epigraph to prove the lower semicontinuity inequality]
Assume $\operatorname{epi} f$ is closed in $\mathbb{R}^{n+1}$. Let $(x_k)_{k=1}^{\infty}: \mathbb{N}\to\mathbb{R}^n$ be a sequence such that $x_k \to x_0$ in $\mathbb{R}^n$. Define
\begin{align*}
L := \liminf_{k \to \infty} f(x_k) \in [-\infty,+\infty].
\end{align*}
We prove
\begin{align*}
f(x_0) \le L.
\end{align*}
If $L=+\infty$, then $f(x_0)\le+\infty=L$, so the desired inequality holds.
Suppose next that $L\in\mathbb{R}$. Fix $\varepsilon>0$. By the definition of the limit inferior, there is a subsequence $(x_{k_j})_{j=1}^{\infty}$ such that
\begin{align*}
f(x_{k_j}) \to L.
\end{align*}
After discarding finitely many terms, we may assume $f(x_{k_j})\le L+\varepsilon$ for every $j$. For each $j$, define $r_j := L+\varepsilon$. Then $(x_{k_j},r_j)\in\operatorname{epi} f$ for every $j$, and
\begin{align*}
(x_{k_j},r_j) \to (x_0,L+\varepsilon)
\end{align*}
in $\mathbb{R}^{n+1}$. Since $\operatorname{epi} f$ is closed, $(x_0,L+\varepsilon)\in\operatorname{epi} f$. Hence
\begin{align*}
f(x_0)\le L+\varepsilon.
\end{align*}
Because $\varepsilon>0$ was arbitrary, we obtain $f(x_0)\le L$.
It remains to rule out $L=-\infty$. If $L=-\infty$, then for every $a\in\mathbb{R}$ and every $m\in\mathbb{N}$ there exists $k\ge m$ such that $f(x_k)\le a$. Thus we may choose a subsequence $(x_{k_j})_{j=1}^{\infty}$ with $f(x_{k_j})\le a$ for every $j$. Then $(x_{k_j},a)\in\operatorname{epi} f$ for every $j$, and
\begin{align*}
(x_{k_j},a) \to (x_0,a)
\end{align*}
in $\mathbb{R}^{n+1}$. Closedness gives $(x_0,a)\in\operatorname{epi} f$, so $f(x_0)\le a$. Since $a\in\mathbb{R}$ was arbitrary, this implies $f(x_0)\le a$ for all real $a$, which is impossible because $f(x_0)\in(-\infty,+\infty]$. Therefore $L=-\infty$ cannot occur.
Thus for every sequence $x_k\to x_0$,
\begin{align*}
f(x_0)\le \liminf_{k\to\infty} f(x_k).
\end{align*}
This is precisely lower semicontinuity of $f$ at $x_0$. Since $x_0\in\mathbb{R}^n$ was arbitrary, $f$ is lower semicontinuous on $\mathbb{R}^n$.
[/step]