I would like to prove that a subset $A$ of a topological space $X$ is locally closed if and only if there is an open set $U$ and a closed set $F$ such that $A = U \cap F$.
My definition of $A$ being locally closed is that for all $x \in A$ there exists a neighbourhood $V_x$ of $x$, such that $A\cap V_x$ is closed in $V_x$ with regards to the subspace topology.
I am having some troubles proving this equivalence, because I do not really understand the definitions in the first place. As far as I know, a set $M$ is said to be closed in $V_x$, if it is a complement of an element of the subspace topology, i.e. if there exists an open set $U \subset X$, such that $M = (V_x \cap U)^C$. Is this definition correct? I am pretty sure it is, but when I use this then I reach some contradictions so I am pretty confused at the moment.
Any help would be greatly appreciated!