A subspace $A$ of a topological space $X$ is locally closed if for every $a \in A$ there exists a neighborhood $O$ of $a$ such that $A \cap O \subset O$ is closed. Prove that $A$ is locally closed if and only if $A$ is the intersection of open and closed set.
Assume first that $A$ is locally closed. Then for every $a \in A$ there exists $O_a$ such that $A \cap O_a$ is closed in $O_a$. Now the neighborhoods $O_a$ cover $A$ so we have that $\bigcup_{a \in A} O_a \supseteq A$. Can I use this to show that $A$ is the intersection of some open and closed set?