Proposition: Let $(X,S)$ and $(Y,T)$ be topological spaces. Suppose $f: X \to Y$ is a continuous function. Let
$X = \{A, B, C \}$,
$S = \{ \emptyset, \{A\}, \{A, B \}, \{A,B,C\} \}$,
$Y = \mathbb{R}$, satisdying the standard topology defintion.
Show that if $f$ is continuous then it must be a constant function; i.e. $f(x) = C$, for some $C \in \mathbb{R}$
I understand the topological def. of continuity. I also understand how to prove the converse. If f is constant, then $ \forall t \in T , f^{-1}(t)$ is either $ \emptyset$ or entire $X$, and both are open in $(X,S)$. Hence $f$ is continuous.
But to prove this statement, I am not sure how to go about it. I am thinking of two ways,
1) Contradiction. Assuming $y,z \in T$ and $y \neq z$. Not sure how to proceed.
2) Unpacking the def. of topological continuity and showing that only $f^{-1}(\emptyset)$ and $f^{-1}(T)$ are the only elements that are open in $(X,S)$.
Hint. You can show that $f^{-1}[\{f(A)\}]$ is a closed set containing $A$. Which closed set can contain $A$?