The problem states: Let $X$ be a completely regular space such that $|X|<c=|\mathbb{R}|$. Prove that there exists a basis $\mathcal{B}$ for the topology on $X$ such that for all $B\in\mathcal{B}$, $B$ is both open and closed.
I let $\mathcal{B}$ be the collection of all clopen sets since any other choice for $\mathcal{B}$ would yield a coarser topology. It is easy to verify that $\mathcal{B}$ forms a valid basis. Let $\tau$ be the topology on $X$ and let $\tau_\mathcal{B}$ be the topology generated by $\mathcal{B}$. Then clearly $\tau_\mathcal{B}\subset\tau$. I couldn't figure out how to show that $\tau_\mathcal{B}=\tau$, so I assumed it wasn't and tried coming to a contradiction. If $\tau_\mathcal{B}\neq\tau$, then that means there must exist an open set $U\in\tau$ and a point $x\in U$ such that every clopen set containing $x$ must intersect $X\setminus U$. I thought that maybe using this along with the completely regular condition, I could prove the existence of some surjective function $f:X\to[0,1]$, thus contradicting the cardinality restriction, but I couldn't find any way of doing that. Any ideas?