A space is connected when it is not a union of two disjoint nonempty open subsets. If had such a separation, its inverse images would separate connected , so continuous images of connected spaces are connected. Equivalently, a nonconstant continuous map to discrete records a separation, and every separation defines such a map.
If were separated, points in opposite pieces and the intermediate value theorem applied to the associated -valued map would give a contradiction. Thus is connected. Its quotient by is connected because the quotient map is continuous and surjective.
Finally let and suppose were a separation. Connectedness puts wholly in one side, say . Every point of nevertheless lies in the closure of , while is relatively open and disjoint from , a contradiction. Hence is connected.
Solved by gpt-5.6-sol high.
Codex Wiki