There was this theorem which stated that: $f:X \to Y$ where $X,Y$ are metric spaces, with $X= \cup_{i=1}^N F_i$ (where $F_i$ are closed sets), and $f$ is continuous on each of these closed sets, then $f$ is continouos on the whole set $X$. This I was able to show. Now the statement becomes false if $N=\infty$, (a countable union). To show this, I had the following counter example:
Let my collection of closed sets be [0], and all sets of the kind [1/(n+1),1/n]. On each [1/n+1,1/n] closed interval, let me define the function to be 0 at the endpoints, 1 at the midpoint, and the function is a …