Defines in topological spaces:
Proposition
is connected.
Proof
Suppose open sets and disconnected it, and say .
Then every neighbourhood of will intersect both and .
Which is a contradiction as this is impossible!
QED.
2.2 Continuity
Recall: is continuous at if , and it would be discontinuous if . More precisely, if such that or , or .
Definition
The definition is defined at: Continuous.
Proposition
A continuous with compact, it will attain both a maximum and a minimum.
Proof
Note: the continuous image of a compact set is compact since inverse images of an open cover will again be an open cover. Then the final step is to use the Heine–Borel theorem since is compact in .
QED.
Something else
We say is continuous (at every ) if is open for every open .
Continuous images of connected spaces are connected. Again because inverse images of open subsets disconnecting an image would disconnect the domain.
So homeomorphisms preserve compactness and connectedness. They are topological invariants.