I want to prove that $(-\infty, a)$ is an open set. So if I label $U = (-\infty, a)$, I must prove that for all $x \in U$, there exists $\varepsilon > 0$ such that $(x-\varepsilon,x+\varepsilon$) is a subset of $U$.
My challenge is working out what $\varepsilon$ is. I believe I should take $\varepsilon = \min\{|a-x|,|x-a|\}$ - would this be a correct selection? I know there are a lot of different values I can pick, but would this be acceptable?