A connected complete Riemannian manifold is disconnected at infinity when the complement of some compact set has at least two unbounded connected components. Equivalently it has at least two ends. A line in a Riemannian manifold is a unit-speed geodesic satisfying for every .
Let be the compact separating set, enlarged inside a fixed compact metric ball if needed for bounds. Choose in two different unbounded components of , with both distances from tending to infinity. By the Hopf-Rinow theorem, join them by unit-speed minimizing geodesics. Every such segment meets , since a path avoiding it cannot join its different components. Reparametrize a segment so that one crossing point is at time zero. Its parameter interval is , where by the distances from the endpoints to .
The unit tangent bundle over is compact, so a subsequence of the initial position/velocity pairs converges. Continuous dependence of the geodesic equation on its initial data, and completeness, give a limiting geodesic defined on all of . For any fixed , the approximating segments are defined on for large and satisfy . Continuity of the distance passes this equality to the limit. Thus the limiting geodesic is a line, proving a line from disconnection at infinity.