I'm struggling with my current home assignment. If $x,y\in \mathbb{Z}$ and $xy=1$ how to prove that $x=y=1$ or $x=y=-1$? To achieve this, only the following properties can be used.
$\forall x,y,z\in \mathbb{Z}:$
$(x+y)+z=x+(y+z)$;
$x+y=y+x$;
$x+0=x$;
$x+(-x)=0$;
$(xy)z=x(yz)$;
$xy=yx$;
$x\cdot 1=x$;
$x(y+z)=xy+xz$;
$xy=0 \implies x=0 \lor y=0$;
$x<y \veebar x=y \veebar x>y$;
$x<y \land y<z \implies x<z$;
$x<y \implies x+z<y+z$;
$x<y \land z>0 \implies xz<yz$;
$0 \neq 1$;
$x+z=y+z \implies x=y$;
$-(-x)=x$;
$-(x+y)=(-x)+(-y)$;
$x\cdot 0=0$;
$z\neq 0 \land xz=yz \implies x=y$;
$(-x)y=-xy=x(-y)$.
A hint would be greatly appreciated.
As far as I understand, this is an exercise from this book: The Real Numbers and Real Analysis, Bloch, Ethan D.
If $xy = 1$ with elements in a commutative ring, then $x,y$ are invertible in $R$.
In the ring of integers, the invertible elements are $\pm 1$.