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.