Let the relation $\text{lcm$(x,y,z)$}$ have the meaning '$|z|$ is the least common multiple of $|x|$ and $|y|$'. Show $\text{lcm$(x,y,z)$}$ is definable in $(\mathbb{Z}, | , +, 0, 1)$.
My instinct is to do something like the following:
$\text{lcm$(x,y,z)$}\iff x|z \ \land \ y|z \ \land \forall w (w<z \implies (\neg( x|w) \lor \neg(y|w) ))$
but this is incorrect because as far as I can tell there's no way to define ordering in this structure.
A least common multiple of integers $a$ and $b$ is an integer $m$ such that
In other words, the least common multiple is 'least' in the sense of the divisibility relation $|$, rather than the order relation $\le$ (or $<$).
With this definition, least common multiples are unique up to sign.
But that's exactly why the absolute value signs have been included in your definition!