I am trying to prove that $[a,b]$ and $(a,b)$ are uncountable for $a,b\in \mathbb{R}$. I looked up Rudin and I am not too inclined to read the chapter on topology, for his proof involves perfect sets. Can anyone please point me to a proof of the above facts without point-set topology?
I am thinking along these lines:
$\mathbb{R}$ is uncountable.If we can show that there exists a bijection between $(a,b)$ ad $\mathbb{R}$ we can prove $(a,b)$ is uncountable.But I am not sure how to construct such a bijection.
Yes, you need only find a bijection from each interval to the Reals to prove the intervals are uncountable.
There are many bijections from an open interval $(a, b)\to \mathbb{R}$, e.g.
$g(x) = \cot\left(\large\frac{\pi}{2}x\right)$ is a bijection $g: (0, 1)\to \mathbb{R} $.
Now, we need to find a bijection from the closed interval $[a, b]\to \mathbb{R}$, and we can do this by first showing that there exists a bijection from the closed interval $[a, b]$ to the open interval $(a, b)$.
Taking the interval: $[0,1]$. Define $f(x)$ as following: $$f(x) = \left\{ \begin{array}{1 1} \frac{1}{2} & \mbox{if } x = 0\\ \frac{1}{2^{n+2}} & \mbox{if } x = \frac{1}{2^n}\\ x & \mbox{otherwise} \end{array} \right.$$
Then $f: [0, 1] \to (0, 1)$ is a bijection.
Now, compose: $g\circ f = g(f(x)): [1, 0] \to \mathbb{R}$, and you have your bijection.