Suppose the immersed subset is not embedded. Using the assumed embedded neighborhoods, there are , a relatively small coordinate neighborhood , and points with in . Choose a bump function on , supported in , with . Then .
If for some smooth on , continuity gives both and , a contradiction. Thus the extension hypothesis forces the subspace and manifold topologies to agree locally, and the immersion is an embedding. This proves the smooth extension criterion for an immersed submanifold.