[guided]Assume that the constructed travelling salesman instance $R(G)$ has a tour of length at most $n$. This means there is a cyclic ordering
\begin{align*}
(i_1,i_2,\dots,i_n)
\end{align*}
of the city set $\{1,\dots,n\}$ such that, with $i_{n+1} := i_1$,
\begin{align*}
\sum_{r=1}^{n} d_G(\{i_r,i_{r+1}\}) \leq n.
\end{align*}
The key point is that the tour has exactly $n$ edges, and every one of those edges has distance at least $1$. Therefore
\begin{align*}
\sum_{r=1}^{n} d_G(\{i_r,i_{r+1}\})
\geq
\sum_{r=1}^{n} 1
=
n.
\end{align*}
Combining this lower bound with the assumed upper bound gives
\begin{align*}
n
\leq
\sum_{r=1}^{n} d_G(\{i_r,i_{r+1}\})
\leq
n.
\end{align*}
Hence the total length is exactly $n$.
Now each individual summand $d_G(\{i_r,i_{r+1}\})$ belongs to $\{1,2\}$. If even one summand were equal to $2$, then the sum of the $n$ summands would be at least
\begin{align*}
2 + \sum_{r=1}^{n-1} 1
=
n+1,
\end{align*}
contradicting the equality of the total length with $n$. Therefore
\begin{align*}
d_G(\{i_r,i_{r+1}\}) = 1
\end{align*}
for every $r \in \{1,\dots,n\}$.
By the definition of $d_G$, the equality $d_G(\{i_r,i_{r+1}\}) = 1$ is equivalent to
\begin{align*}
\{v_{i_r},v_{i_{r+1}}\} \in E.
\end{align*}
Thus the cyclic sequence
\begin{align*}
(v_{i_1},v_{i_2},\dots,v_{i_n})
\end{align*}
uses only edges of $G$. Because $(i_1,\dots,i_n)$ is a cyclic ordering of $\{1,\dots,n\}$, this sequence visits every vertex of $G$ exactly once. Hence it is a Hamiltonian cycle in $G$.[/guided]