I need to prove that if $ x \leq y$ and $y \leq x \Rightarrow x =$ $y$.
I tried to prove this by contradiction.
Proof
Suppose that $ x \leq y$ and $y \leq x \Rightarrow x \neq y$. If $x \neq y$, we know out of the properties of inequalities that $x<y$ or $y<x$, which is the contradiction. Therefore $x \leq y$ and $y \leq x \Rightarrow x =$ $y$.
Is this proof correct and what other ways are there to prove this?
$y\ge x$ and $x \ge y$ gives us $y\ge x \ge y$ because $y=y$, $\;$ $y=x$ must also hold