Specializing the endpoints of an arc

See it in Lean

Axioms
ZFC only
Concerns
Arc connected

Statement

Let \(f:[0,1]\to X\) be continuous and injective. Let \(x\) and \(y\) be distinct points outside its image such that \(x\in\overline{\{f(0)\}}\) and \(y\in\overline{\{f(1)\}}\). Then there is an arc from \(x\) to \(y\) in \(X\).

Proof

Replace the values of \(f\) at \(0\) and \(1\) by \(x\) and \(y\). Every neighbourhood of \(x\) is a neighbourhood of \(f(0)\), so the new map is continuous at \(0\). The same argument gives continuity at \(1\), and the map agrees locally with \(f\) at every interior point. The new endpoints are distinct and outside the original image, so the map is still injective. \(\blacksquare\)

Where it is used

Cited on space pages