I was thinking that it is possible to answer this Math.SE question here using the trichotomy of the real numbers but I got some logic trouble.
The question was. Prove that for all $x,y > 0$ integers is true that $$\sqrt{xy} \leq \frac{x+y}{2}$$
Then I think in this proof.
We can use the Trichotomy of the real numbers . Given the two numbers $\sqrt{xy}, \frac{x+y}{2} \in \mathbb{R}$ and the usual order relation in $\mathbb{R}$, there are just three possibilities: $$\sqrt{xy}> \frac{x+y}{2}\tag{1}$$ $$\sqrt{xy} = \frac{x+y}{2}\tag{2}$$ $$\sqrt{xy}< \frac{x+y}{2}\tag{3}$$
Let $x,y > 0$ be integers. Suppose that for all $x,y$ we have $$\sqrt{xy}>\frac{x+y}{2}$$
then we get that, squaring both sides,
$$xy > \frac{1}{4}(x^2+2xy+y^2) \implies 4xy > x^2+2xy + y^2 \implies 2xy > x^2+y^2$$
This is absurd, if $x = y$ we have $2x^2 > 2x^2$. So we conclude that for general $x,y \geq 0$ we have that
$$\sqrt{xy} \leq \frac{x+y}{2}$$
Question: Does that proves the first question? Seems that it only proves that the relation '$>$' is not possible. But it does not prove that '$\leq$' is true for all $x,y>0$ integers. It could be possible to proof using this method but in other way?