In an exercise I'm asked the following question:
Let $(\mathbb R, \tau_1)$, with $\tau_1=\{\mathbb R,\emptyset\} \cup \{(-n,n),n\in \Bbb N\}$ and $(\mathbb R, \tau_2)$, with $\tau_2=\{\mathbb R,\emptyset\} \cup \{[-n,n],n\in \Bbb N\}$ be two topological spaces. Then is it true that: $(\mathbb R, \tau_1) \cong (\mathbb R, \tau_2)$?
So what I did was the following:
Lets assume that $(\mathbb R, \tau_1) \cong (\mathbb R, \tau_2)$. Then let $f: (\mathbb R, \tau_2) \to (\mathbb R, \tau_1)$ be an homeomorphism.
We have that $[-i,i] \in \tau_2$ with $ i \in \Bbb N$. Then we have that $f([-i,i]) \in \tau_1$. This means that: $$f([-i,i])=(-k,k),\ \ k \in \Bbb N$$
So we have a function $f: \Bbb R \to \Bbb R$ such that $f$ is a bijection, is continuous, $f^{-1}$ is continuous, and, for each $i \in \Bbb N$, then $f([-i,i])=(-k,k)$ for some $k \in \Bbb N$.
My question is: Does such function exists? Can we have that takes one closed interval and gives us an open interval and still be bijective and continuous? If so, how can we write $f(x)$? If not, then how can I prove it?