# Topology; show that every subset [a,b) is also closed in (R,T).

I have to solve this question:

Given the following topology T on the real line R: T is generated by the set D = {ø, R, {[a,b)|a < b, where a and b are elements of R}}. Show that every subset [a,b) is also closed in the topological space (R,T).

We know that every subset [a,b) is open in (R,T) by definition (a set is open in a topology if it's a subset of that topology). To show that every subset [a,b) is also closed in the topology, I tried to show that the complement of [a,b), R\[a,b) = (-inf,a) U [b,inf), is open in the topology (by showing it's contained in the topology). Thus far I haven't succeeded!

Does anyone know how to solve this? Thanks in advance!

$(-\infty,a)=\bigcup_{n\in\mathbb{N}}[-n-1+a,a)$ and hence it is open
$[b,\infty)=\bigcup_{n\in\mathbb{N}}[b,b+n+1)$ and hence it is open.
• Concerning the first point. The idea is that $a-1<a$ and hence I can "close". Concerning the second point. Since $n$ can be zero, adding $+1$ is to avoid the case $[b,b)$. Hope this helps! – Maczinga Feb 20 '17 at 12:17