Say the function $x: \mathbb{N}\rightarrow \mathcal{P}(\mathbb{R})$ is a sequence of subsets of $\mathbb{R}$ given by the correspondence $x_n=[\frac{1}{n}, 1]$. The following is stated to be true:
$\bigcup_{i=1}^\infty[\frac{1}{i},1]=\bigcup \underbrace{range(x)}_{=\lbrace [\frac{1}{n}, 1]|n\in \mathbb{N}\rbrace}=(0, 1]$.
$\textbf{Question:}$ How does one formally prove that this is true? In other words, how do I prove this set becomes $(0, 1]$?
I understand the $\lim_{n\rightarrow \infty}\frac{1}{n}=0$ and that $\lim_{n\rightarrow \infty}1=1$. But I was just curious as to how the union comes into play to prove something like this.
To prove that two sets $A$ and $B$ are equal, it's usually easiest to break it into two parts:
e.g.
Here, when I say "definition of $\cup$", what I mean is:
Edit: oops, changed my notation so it doesn't clash with yours.