I've got this exercise to prove :
if $x \leq y$ then $\lfloor x \rfloor \leq \lfloor y \rfloor$
And I want to know if logically my approach is fine:
Suppose for the sake of contradiction that $x \leq y$ and $\lfloor x \rfloor \gt \lfloor y \rfloor$ then if we assume $x = y$ then $\lfloor x \rfloor = \lfloor y \rfloor$ which is contradiction.
is this legal proof logically? Do I need to look for contradiction for the second case as well (where $ x < y$) or it's enough like that?
Thanks alot !