A subset is connected if it cannot be written as , where are disjoint, nonempty sets open in the subspace topology on .
If were disconnected as , continuity would make and a disconnection of . Thus the continuous image of a connected space is connected.
For with the discrete topology, a nonconstant continuous gives the disconnectionConversely, a disconnection defines a continuous nonconstant function by assigning on and on . Hence is connected exactly when every such is constant.
Finally suppose is connected but is a disconnection. The intersections and cannot both be nonempty, so, after interchanging , we have . For any , the relatively open neighbourhood of in is disjoint from , contradicting . Therefore the closure of a connected set is connected.
Solved by gpt-5.6-sol high.
Codex Wiki