I'm currently studying Lie Groups, and reading "Theory of Lie Groups I" by C. Chevalley. He talks about topological groups in chapter two. To be more precise, on page 38 he presents two examples in order to show that it's not always possible to extend a local isomorphism to the whole group. He says:
"Let $\phi$ be the mapping which assigns to every real number $x$ its residue class $\phi(x)$ modulo 1; let $f$ be the contraction of $\phi$ to the interval $]-1/4,+1/4[$. It is clear that f is a local isomorphism of $R$ into $T$, but these groups are not isomorphic."
Well, I've got a few doubts... Does it make sense to consider a residue class of a real number modulo 1? I don't understand that, since residue classes are taken to integers (sorry for my lack of knowledge if I'm wrong). Second, does "contraction" mean the same as in metric spaces? $T$ is the 1-dimensional torus (in general, the factor group $R^{n}/H$, where $H$ is the subgroup of $R^{n}$ where the elements have integers coordinates, is the $n$-dimensional torus $T^{n}$). Well, I didn't understand neither why this local isomorphism happens.