I have a question that says:
Is there a continuous characteristic function on $\mathbb{R}$? If $A\subset \mathbb{R}$ show that $X_A$ is continuous at each point of $int(A)$. Are there any other points of continuity?
In this problem I have interpreted the characteristic function to be defined as:
$X_A: A \to \mathbb{R}$ where $X_A(x)=0$ if $x \notin A$ and $X_A(x)=1$ if $x \in A$
Here is my attempt:
$X_A(x)$ is continuous if given a closed set $E$ in the range of $X_A$ then $X_A^{-1}(E)$ is closed in $A$. E is closed in $R$ and in the range of the characteristic function only when $E= \emptyset$ $E=\{1\}$ and $E=\{0\}$ because singletons are closed in $\mathbb{R}$ since their compliment is the union of two disjoint open sets. $X_A(\{1\})= x\in A$ and $X_A(\{0\})=x\in \mathbb{R}-A$. But singletons in $ \mathbb{R} $ are closed so the inverse of a closed set is closed and $X_A$ is continuous.
Now for the second part of the question:
Suppose $x\in A^0$, the interior of $A$. Then $X_A(\{x\})$ is {1} which is closed in $\mathbb{R}$ hence $X_A$ is continuous.
Finally:
There are other points of continuity, those in $\mathbb{R}-A$ since the image of these points are closed subsets of $\mathbb{R}$ and their inverse image is closed.
I feel like I have flawlessly applied the definitions of continuity and given the exact answer the book is looking for!!! But somehow I suspect my feelings betray reality. Can you help me figure out how to fix this? In particular, I don't know if my using a singleton was the correct way to prove this, are singletons closed in R? I am pretty sure they are for the reason I gave.