Here's what the authors of a textbook that I've been following argue:
Let $x,y\in \mathbb{R}$. Assume that $x \le y$ and $y ≤ x$. We claim that $x = y$. If false, then either, $x < y$ or $y < x$ by law of trichotomy. Assume that we have $x < y$. Since $y ≤ x$, either $x = y$ or $y < x$. Neither can be true, since we assumed $x \not= y$ and hence concluded $x < y$ from the first inequality $x ≤ y$. Hence we conclude that the second inequality cannot be true, a contradiction. Thus our assumption that $x \not= y$ is not tenable.
My argument is as follows: We assume that $x \le y$ and $y ≤ x$. Suppose $x\not=y$. Then $x \le y$ and $y ≤ x$ reduces to $x < y$ and $y < x$. But both inequalities $x < y$ and $y < x$ cannot hold together at the same time due to trichotomy. Thus we achieved a contradiction to our hypothesis. Is this argument correct?
I need a clarification on proof done by the authors. They say "Assume that we have $x < y$" and on another line they say "hence concluded $x < y$ from the first inequality $x ≤ y$". Did they deduce it or assume it?
They deduce it from $x \le y$ and the assumption $x \not = y$
But yes, their proof is quite confusing. I've read it over about $4$ times now, and tried to sketch their lines of reasoning, and concluded that the part
is better taken out (indeed, the presence of this very sentence seems to be exactly what confused you as well!).
That is, it seems like they used this line to set up a proof by cases (see line 5 in outline below), where they show that both $x<y$ and $y<x$ would lead to a contradiction ... but then changed strategy in the middle of the proof, and ended up showing that since you can conclude (rather than assume) $x < y$ from the first inequality $x \le y$ together with the assumption $x \not = y$, you end up contradicting the second inequality.
To be rather technical and formal ... I think that in the middle of the proof they switched strategies from:
$1. x \le y$ (Premise)
$2. y \le x$ (Premise)
$3. x \not = y$ (Assumption)
$4. x < y \lor y < x$ (by 3 and Trichotomy)
$5. x < y$ (Assumption)
$6. \bot$ (between 2 and 5)
$7. y < x$ (Assumption)
$8. \bot$ (between 1 and 7)
$9. \bot$ (between 4, 5-6, and 7-8)
$10. x = y$ (3-9)
to something like:
$1. x \le y$ (Premise)
$2. y \le x$ (Premise)
$3. x \not = y$ (Assumption)
$4. x < y \ xor \ y < x$ (3 and trichotomy)
$5. y < x \lor x = y$ (from 2)
$6. x < y$ (from 1 and 3)
$7. y \not < x$ (from 4,6)
$8. \neg (y < x \ xor \ x = y)$ (from 3 and 7)
$9. \neg y \le x$ (from 8, 4, and fact that 4 follows from 2)
$10. \bot$ (2 and 9)
$11. x = y$ (3-10)
But even that is not very clean (note the weird thing that happens on line 9 ...) . Indeed, even if we take out the unused line, we obtain:
... which follows the second outline ... but is still not very readable.
... NOT a great example of how to write proofs!
I think your proof is far more clear! Good job, and good for you for noticing that something very funky was happening in the provided proof!