Let S be contained in and let A be the set of accumulation points of S. Prove S is dense in iff. A=
If so then suppose that S is dense. Let , then for each open set around x, it contains an element of S. Hence . As x was arbitrary, we have that .
Similarly the other way round.