[guided]We now finish the reverse implication. Let $A\subset X$ be bounded and define
\begin{align*}
M:=\overline{T(A)}^{\,Y}.
\end{align*}
From the previous step, $M$ is totally bounded. Since $Y$ is complete and $M$ is closed in $Y$, every [Cauchy sequence](/page/Cauchy%20Sequence) in $M$ converges in $Y$ to a point of $M$; hence $M$ is complete. Define the inherited metric
\begin{align*}
d_M:M\times M&\to [0,\infty) \\
(z,w)&\mapsto \|z-w\|_Y,
\end{align*}
and for $z\in M$ and $r>0$ define
\begin{align*}
B_M(z,r):=\{w\in M:d_M(w,z)<r\}
\end{align*}
to be the open ball in $M$ with centre $z$ and radius $r$.
Why does completeness matter? Total boundedness alone gives finite approximations at every scale, but it does not guarantee that limiting points remain in the space. Completeness supplies those limits. We first show that every sequence in $M$ has a convergent subsequence. Let $(z_k)_{k\in\mathbb N}$ be a sequence in $M$. For $m=1$, total boundedness gives finitely many balls of radius $1$ covering $M$, so one of them contains infinitely many terms of the sequence. Let $N_1\subset\mathbb N$ be an infinite set of indices for those terms. Repeating the same argument inside the infinite set $N_1$, total boundedness gives a ball of radius $1/2$ containing infinitely many of the terms indexed by $N_1$; call that infinite index set $N_2$. Inductively, we obtain nested infinite sets
\begin{align*}
N_1\supset N_2\supset \cdots
\end{align*}
such that $\{z_k:k\in N_m\}$ lies in one open ball of radius $1/m$.
Choose indices $k_m\in N_m$ inductively with
\begin{align*}
k_1<k_2<\cdots.
\end{align*}
This choice is possible because each $N_m$ is infinite, so after $k_{m-1}$ has been chosen there is an element of $N_m$ larger than $k_{m-1}$.
If $p,q\geq m$, then $k_p,k_q\in N_m$, so $z_{k_p}$ and $z_{k_q}$ lie in the same ball of radius $1/m$. Hence
\begin{align*}
d_M(z_{k_p},z_{k_q})<\frac{2}{m},
\end{align*}
This proves that $(z_{k_m})$ is Cauchy. Since $M$ is complete, this subsequence converges to a point of $M$.
It remains to prove, in this metric setting, that the sequential compactness just obtained implies open-cover compactness. Suppose, for contradiction, that some open cover $\mathcal U$ of $M$ has no finite subcover. Since $M$ is totally bounded, finitely many open balls in $M$ of radius $1$ cover $M$. At least one of their relative closures in $M$ is not finitely covered by $\mathcal U$; otherwise finitely many finite subcovers would cover $M$. Call such a nonempty closed subset $F_1\subset M$.
Assume that a nonempty closed subset $F_m\subset M$ has been chosen and is not finitely covered by $\mathcal U$. Cover $F_m$ by finitely many open balls in $M$ of radius
\begin{align*}
\frac{1}{m+1}.
\end{align*}
Among the relative closures in $M$ of the intersections of these balls with $F_m$, at least one is not finitely covered by $\mathcal U$; choose it and call it $F_{m+1}$. This produces nested nonempty closed subsets
\begin{align*}
F_1\supset F_2\supset\cdots
\end{align*}
such that each $F_m$ is not finitely covered by $\mathcal U$ and $F_m$ is contained in an open ball in $M$ of radius $1/m$.
Choose $w_m\in F_m$ for each $m\in\mathbb N$. By sequential compactness, a subsequence $(w_{m_j})_{j\in\mathbb N}$ converges to some $z\in M$. Since $\mathcal U$ covers $M$, choose $U\in\mathcal U$ with $z\in U$. Because $U$ is open in $M$, there exists $\rho>0$ such that
\begin{align*}
B_M(z,\rho)\subset U.
\end{align*}
Choose $j\in\mathbb N$ so large that
\begin{align*}
\frac{2}{m_j}<\frac{\rho}{3}
\end{align*}
and $d_M(w_{m_j},z)<\rho/3$. Since $F_{m_j}$ is contained in an open ball of radius $1/m_j$ and contains $w_{m_j}$, every $w\in F_{m_j}$ satisfies
\begin{align*}
d_M(w,z)
&\leq d_M(w,w_{m_j})+d_M(w_{m_j},z) \\
&< \frac{2}{m_j}+\frac{\rho}{3}
<\rho.
\end{align*}
Thus $F_{m_j}\subset U$, contradicting that $F_{m_j}$ is not finitely covered by $\mathcal U$. Hence every open cover of $M$ has a finite subcover, and $M$ is compact.
Since $A\subset X$ was an arbitrary bounded subset, $\overline{T(A)}^{\,Y}$ is compact for every bounded $A$. This is precisely the definition that $T$ is compact.[/guided]