Showing that a function is continuous when restriction on closed set is
For each $x\in X$ there exists a neighborhood of x s.t $A\cap U\neq \emptyset$ for only finitely many $A\in\mathcal{A}$. Show that f is continuous.