[step:Verify compactness of the transport polytope and define the two cost functionals]
Define the matrix $P_{\mathrm{prod}}=(P_{\mathrm{prod},ij})\in[0,\infty)^{m\times n}$ by
\begin{align*}
P_{\mathrm{prod},ij}:=a_i b_j
\end{align*}
for $i\in\{1,\dots,m\}$ and $j\in\{1,\dots,n\}$. Then
\begin{align*}
\sum_{j=1}^n P_{\mathrm{prod},ij}=a_i\sum_{j=1}^n b_j=a_i
\end{align*}
for every $i\in\{1,\dots,m\}$, and
\begin{align*}
\sum_{i=1}^m P_{\mathrm{prod},ij}=b_j\sum_{i=1}^m a_i=b_j
\end{align*}
for every $j\in\{1,\dots,n\}$. Hence $P_{\mathrm{prod}}\in\Pi(a,b)$, so $\Pi(a,b)$ is nonempty.
Every $P\in\Pi(a,b)$ satisfies $0\le P_{ij}\le \sum_{k=1}^n P_{ik}=a_i\le 1$ for all $i,j$, so $\Pi(a,b)\subseteq[0,1]^{m\times n}$. Since $\Pi(a,b)$ is also cut out by finitely many affine hyperplanes in the finite-dimensional Euclidean space $\mathbb R^{m\times n}$, it is closed and bounded. By the Heine-Borel theorem in finite-dimensional Euclidean space, $\Pi(a,b)$ is compact.
Define the linear cost functional
\begin{align*}
L:\Pi(a,b)&\to\mathbb R,\qquad P\mapsto \sum_{i=1}^m\sum_{j=1}^n C_{ij}P_{ij}.
\end{align*}
Since $L$ is continuous on the compact set $\Pi(a,b)$, the extreme value theorem implies that $L$ attains its minimum. Define
\begin{align*}
M:=\min_{P\in\Pi(a,b)}L(P),
\end{align*}
and choose $P_\ast\in\Pi(a,b)$ such that $L(P_\ast)=M$.
Define $h:[0,1]\to\mathbb R$ by $h(x)=x(\log x-1)$ for $x\in(0,1]$ and $h(0)=0$. The limit $\lim_{x\downarrow0}x\log x=0$ shows that $h$ is continuous on $[0,1]$. Define the entropy correction functional
\begin{align*}
H:\Pi(a,b)&\to\mathbb R,\qquad P\mapsto \sum_{i=1}^m\sum_{j=1}^n h(P_{ij}).
\end{align*}
Since $H$ is a finite sum of continuous coordinate functions on $\Pi(a,b)$, the functional $P\mapsto L(P)+\varepsilon H(P)$ is continuous on the compact set $\Pi(a,b)$ for every $\varepsilon>0$. The extreme value theorem therefore implies that its minimum is attained. With this notation,
\begin{align*}
\operatorname{OT}_\varepsilon(a,b;C)=\min_{P\in\Pi(a,b)}\bigl(L(P)+\varepsilon H(P)\bigr)
\end{align*}
for every $\varepsilon>0$.
[/step]