I have a compact subset of $\mathbb{R}$, $X$. An agent has a continuous, transitive and complete preference relation $\succsim$ over $X$. I am wondering whether there exists a $y\in X$ such that $y\succsim x$ for all $x\in X$. I have the following so far:
If $X$ were simply closed, then the answer would be no. This is because we could define the preference relation: $x\succsim y$ iff $x\geq y$ on $\mathbb{R}$ (which is a closed set). Clearly, there is no maximal element.
But I am not sure about the case in which $X$ is compact.
Thank you