Solution (source code)

= Solution

An <accumulation point> of $A$ is a point $x\in X$ such that every <open neighbourhood> of $x$ contains a point of $A$ different from $x$:
$$
\boxed{x\in A'\iff (U\setminus\{x\})\cap A\neq\varnothing\text{ for every open }U\ni x.}
$$
The point itself need not belong to $A$. Requiring a different point distinguishes accumulation from mere membership in the <closure>.