The closure is the intersection of all closed subsets containing ; equivalently, every neighbourhood of a point of meets . The subspace is dense when . A space is Hausdorff when distinct points have disjoint neighbourhoods.
For Hausdorff , the diagonal is closed in . Thusis closed. Since it contains the dense set , it equals .
The conclusion fails without Hausdorffness. Let have the Sierpinski space topology and let , which is dense. The identity map and the constant map with value are continuous and agree on , but differ at .
Solved by gpt-5.6-sol high.
Codex Wiki