Given topological spaces and , a function is said to be continuous if the preimage of any open set is open, that is .
NOTE: this seems like a slightly backwards definition, but it makes a lot of sense when thinking about connectedness.
We define the notion of continuity at a point in . A function is continuous if, given a ball in [about ], we can fit a ball [about ] in X. TODO there's a subtlety here that is slightly wrong. the generalisation doesn't come from ignoring those bits in square brackets TODO
all these pages adapted with probably insufficient credit from my university's lecture notes