$F$ is closed subset of $X$. $A$ is any subset of $X$. $X$ is a metric space. The topology on $X$ is induced by the metric.
Define $A_n= \{ x\in F^c\cap A\mid d(x,F)\ge \frac{1}{n}\}$
Then $\bigcup_{n=1}^{\infty} A_n= F^c\cap A$.
I had the above argument. To show the claim, is it necessary to have closedness assumption of $F$ ?
Or is there any counterexample such that above assertion fails if we relax closedness argument?
Any help will be appreciated.
You have missed $A$ in the definition of $A$. Assume that $A=X$. Then union of $A_n$'s is $\{x:d(x,F^{c}) >0\}$ and this is equal to $F^{c}$ iff $F$ is closed. For a counterexample you can take any set which is not closed!.