Disclaimer: I'm aware this is a duplicate of Prove that open half planes are open sets.
However, I didn't find an adequate answer on that page, and it is a year old. The top answer for the question by graydad is too restrictive in my opinion because it relies on the metric function being the Euclidean distance, but I'm pretty sure a more general proof should be possible without relying on the exact computation of the metric function. (Couldn't we arrive at the same conclusion that the half-plane is open even by using any arbitrary metric like the French Metro Metric, or the Taxicab norm, or any other conceivable metric on $\mathbb{R}^2$?)
The problem is to prove that the half-plane $H_a = \{(x,y) \in \mathbb{R}^2 : x>a\}$ for any $a \in \mathbb{R}$ is an open set using any arbitrary metric function on $\mathbb{R}^2.$
I am assuming definitions of open and metric function as given in chapter 2 of Rudin:
Rudin, Walter. Principles of Mathematical Analysis (International Series in Pure and Applied Mathematics). 3rd ed. McGraw-Hill, 1976. ISBN: 9780070542358.
In particular, the definition of open set is:
A set $E$ is open if every point in $E$ is an interior point.
A point $p$ is an interior point of $E$ if there is a neighborhood $N$ of $p$ such that $N \subset E$.
A neighborhood of a point $p$ is a set $N_r(p)$ consisting of all points $q$ such that $d(p,q)<r$. The number $r$ is called the radius of $N_r(p)$.
and the definition of metric is:
A function that associates with any two points $p$ and $q$ a real number $d(p,q)$ such that:
$d(p,q)>0$ if $p \ne q$ else $d(p,q)=0$
$d(p,q)=d(q,p)$
$d(p,q)≤d(p,r)+d(r,q)$ for any $r \in X$.
(Also any proof should use only the most basic principles... Specifically material from the first two chapters of Rudin. That's why the other answer by Aloizio Macedo in the original post was not helpful for me.)
Edit: I removed my attempted proof using relative topology because it was too long and not helpful.
In the comments Yujie Zha suggested I do a direct proof using just the definition of open set. However, I also tried this with no success. There is probably an easy way to write a direct proof for this but I don't see it...
Here's roughly my train of thought:
Let $p=(x,y)$ be a point in $H_a$. Let $N_r(p)$ be a neighborhood of $p$ with radius $r=x−a$. (Now I would like to say $N_r(p) \subset H_a$, but how? Is it by the triangle inequality somehow?) Suppose there is a point $q=(x′,y′) \in N_r(p)$ that is not in $H_a$. Then $x′<a$. But... how do I arrive at the necessary contradiction?