[step:Show that small estimation error forces the nearest-neighbour decoder to choose the true index]
Let $\mathcal A$ denote the $\sigma$-algebra on $\mathcal X$, and let $\mathcal B(\mathcal T)$ denote the Borel $\sigma$-algebra induced by the metric $\rho$ on $\mathcal T$. Fix a measurable estimator
\begin{align*}
\hat T:(\mathcal X,\mathcal A) &\to (\mathcal T,\mathcal B(\mathcal T)).
\end{align*}
Let
\begin{align*}
\hat J_{\hat T}:\mathcal X &\to \{1,\dots,M\}
\end{align*}
be its nearest-neighbour decoder with the deterministic tie-breaking rule from the statement. For each $i \in \{1,\dots,M\}$, define the distance-to-target map $d_i:\mathcal X \to [0,\infty)$ by
\begin{align*}
d_i(x) := \rho(\hat T(x),T(\theta_i)).
\end{align*}
Since $\rho(\cdot,T(\theta_i)):(\mathcal T,\mathcal B(\mathcal T)) \to ([0,\infty),\mathcal B([0,\infty)))$ is continuous and hence Borel-measurable, and since $\hat T$ is measurable, each $d_i$ is $\mathcal A$-measurable. Because $\{1,\dots,M\}$ is finite and the tie-breaking rule is deterministic, every set $\{x \in \mathcal X : \hat J_{\hat T}(x)=i\}$ is obtained from finitely many measurable comparison sets of the form $\{d_i \le d_k\}$ and $\{d_i < d_k\}$; hence $\hat J_{\hat T}$ is measurable.
Fix $j \in \{1,\dots,M\}$ and $x \in \mathcal X$ such that
\begin{align*}
\rho(\hat T(x),T(\theta_j)) < a.
\end{align*}
For every $i \in \{1,\dots,M\}$ with $i \ne j$, the triangle inequality for the metric $\rho$ gives
\begin{align*}
\rho(T(\theta_i),T(\theta_j))
\le
\rho(T(\theta_i),\hat T(x))+\rho(\hat T(x),T(\theta_j)).
\end{align*}
Using the separation hypothesis and rearranging, we obtain
\begin{align*}
\rho(\hat T(x),T(\theta_i))
\ge
\rho(T(\theta_i),T(\theta_j))-\rho(\hat T(x),T(\theta_j))
>
2a-a
=
a.
\end{align*}
Since $\rho(\hat T(x),T(\theta_j))<a$, the index $j$ gives a strictly smaller distance than every $i \ne j$. Therefore $\hat J_{\hat T}(x)=j$.
[/step]