I am new to fractal dimensions and am looking for a notion of fractal dimension which would help me distinguish between the following two sets on the cartesian plane:
\begin{align}A&=[0,1]\times[0,1] \cup (2,2)\\B&=[0,1]\times[0,1]\end{align}
In other words, I am asking:
Is there some form of a fractal dimension, say $D$, which would give $D(B)=2$, as $B$ is a 2-d square, but $D(A)\not=2$, as $A$ is a 2-d square joined with a 0-d point?
For any point $x$ in any metric space $X$ you can consider the "local dimension at $x$ with radius $r$," namely the Hausdorff dimension of the closed ball
$$B_r(x) = \{ y \in x : d(x, y) \le r \}$$
of radius $r$ around $x$. If this dimension is constant for all sufficiently small $r$ you can consider the "local dimension at $x$" to be this constant value. Probably a similar definition can be written down for local topological dimensions.
A solid square $[0, 1] \times [0, 1]$ has local dimension $2$ at every point, and the isolated point in $A$ has local dimension $0$. So $A$ and $B$ can be distinguished by the fact that the local dimension of every point in $B$ is $2$, whereas this is not true for $A$.
This seems to me to be more or less the obvious thing to do and I'm surprised this isn't standard. Dimensions are inherently local. In other words, the dimension of a geometric object $X$ is inherently not a number but a function on $X$ given by the local dimension at $x \in X$. It happens that we often consider $X$ such that the local dimension at every point is the same number $d$, in which case it would make sense to say that $X$ has dimension $d$. But this is not true in your case, so I'm suggesting that in your case we instead consider the more refined invariant given by local dimension.