[step:Compare subsequential limits with recovered competitors]
Assume the recovery-sequence hypothesis. Let $\gamma \in \Pi(\mu,\nu)$ satisfy
\begin{align*}
\int_{X \times Y} c(x,y)\,d\gamma(x,y)<\infty.
\end{align*}
Choose a sequence $(\gamma_k)_{k\ge 1}$ such that $\gamma_k\in\Pi(\mu_k,\nu_k)$, $\gamma_k\to\gamma$ narrowly, and
\begin{align*}
\lim_{k\to\infty}
\int_{X \times Y} c(x,y)\,d\gamma_k(x,y)
=
\int_{X \times Y} c(x,y)\,d\gamma(x,y).
\end{align*}
For each $j\ge 1$, optimality of $\pi_{k_j}$ in $\Pi(\mu_{k_j},\nu_{k_j})$ gives
\begin{align*}
\int_{X \times Y} c(x,y)\,d\pi_{k_j}(x,y)
\leq
\int_{X \times Y} c(x,y)\,d\gamma_{k_j}(x,y).
\end{align*}
Combining this inequality with the liminf inequality already proved gives
\begin{align*}
\int_{X \times Y} c(x,y)\,d\pi(x,y)
\leq
\liminf_{j\to\infty}
\int_{X \times Y} c(x,y)\,d\pi_{k_j}(x,y)
\leq
\limsup_{j\to\infty}
\int_{X \times Y} c(x,y)\,d\pi_{k_j}(x,y)
\leq
\int_{X \times Y} c(x,y)\,d\gamma(x,y).
\end{align*}
Thus $\pi$ has cost no larger than every finite-cost competitor $\gamma \in \Pi(\mu,\nu)$.
If there is no finite-cost competitor in $\Pi(\mu,\nu)$, then every element of $\Pi(\mu,\nu)$ has cost $+\infty$, and every coupling is optimal in the extended sense. Otherwise, the preceding inequality proves that $\pi$ minimizes the cost over all finite-cost competitors. Since competitors of infinite cost cannot have smaller cost than $\pi$, it follows that $\pi$ is optimal in $\Pi(\mu,\nu)$.
[/step]