It has been a while since my undergraduate introductory analysis course, so I am a little rusty. I know that to show two sets $B, C$ are equal, you first show that $B\subseteq C$ and then $C\subseteq B$ . To show $B\subseteq C$ you take any element of $B$, say $b \in B$ and show that $b \in C$.
The main issue I have is actually doing this for some inclusions. Like using the Archimedean Property and so on. Now to my question:
How would you show, for $a,b\in \Bbb{R}$ with $a<b$, that $$\bigcup^\infty_{n=1}(a,b-\frac{1}{n}]=(a,b)$$
where $\bigcup^\infty_{n=1}(a,b-\frac{1}{n}]$ is a countable union of half open intervals.
Also how would you show that $$\bigcup^\infty_{n=1}(-n,n)=\Bbb{R}$$ Note $n\in\Bbb{N}$ here.
Edit 1: For the second one, I think I have the direction $\Bbb{R}\subseteq\bigcup^\infty_{n=1}(-n,n)$.
Consider $x\in\Bbb{R}$. We have three cases $x>0$ and $x<0$ and $x=0$. For $x=0$, we have that for all $n\in\Bbb{N}$, $-n<0<n$ so $0\in\bigcup^\infty_{n=1}(-n,n)$.
Now for any positive real number ,there exists an $N\in\Bbb{N}$ such that $N\leq x < N+1$.
Now for $x<0$ we have that $-x>0$. By what I stated previously, there exists $m\in\Bbb{N}$ such that $m\leq -x < m+1$ . So $-m-1 < -x \leq -m <m+1$ and so $x \in(-m-1, m+1)$. Thus $x \in\bigcup^\infty_{n=1}(-n,n)$. The case for $x>0$ is similar.
But I am unsure of how to show the other inclusion $\bigcup^\infty_{n=1}(-n,n)\subseteq\Bbb{R}$
Do you know when two sets are equal?
Say $B=(a,b)$ and $$A=\bigcup^\infty_{n=1}(a,b-\frac{1}{n}]$$ You must prove $A=B$.
So take any $x\in A$ and prove that it is also in $B$. Then do vice versa.