Let $B=\{[a,b)\subset\Bbb R\mid a,b\in\Bbb Q\text{ and }a<b\}$ Show that $B$ is basis for topology on $\Bbb R$.
please check my proof
1.Let $\bigcup B=\Bbb R$ and $x\in\Bbb Q $ then $x\in [x,x+1)$ and $[x,x+1)\in B$
2.Let $B_{1}=[a,b)a,b\in\Bbb Q$ and $B_{2}=[c,d)c,d\in\Bbb Q$
and
$a\leq c\leq d\leq b$ and $x\in B_{1}\cap B_{2}$
It must exist interval $B_{3}=[e,f) e,f\in\Bbb Q$
that lie between $a\leq c\leq d\leq b$
therefore $x\in B_{3}\subseteq B_{1}\cap B_{2}$ and $B$ is basis for a topology on $\Bbb R$
To give an idea of a more valid proof: Let $\mathcal{B} = \{[a,b): a,b \in \mathbb{Q}, a < b\}$ be our candidate base.
Let $x \in \mathbb{R}$. As the rationals are order dense in the reals we can find some $q \in \mathbb{Q}$ such that $x-1 < q < x$. But then $x \in [q,q+1)$ and $[q,q+1) \in \mathcal{B}$, so $\bigcup \mathcal{B} = \mathbb{R}$.
Let $B_1= [a,b) \in \mathcal{B}$ and $B_2 = [c,d) \in \mathcal{B}$. Let $x \in B_1 \cap B_2$ be arbitrary. Then we know that $a \le x < b$ and $c \le x < d$ so that $\max(a,c) \le x$ and $x < \min(b,d)$. As all of $a,b,c,d$ are in $\mathbb{Q}$, $[\max(a,c),\min(b,d)) \in \mathcal{B}$ as well and clearly $$x \in [\max(a,c),\min(b,d)) \subseteq B_1 \cap B_2$$ as required.
So $\mathcal{B}$ obeys the two conditions to generate a topology.