I have four elements, $A,B,C$ and $D$. I want to write that none of the elements are equal to each other. Basically, something like this:
$$A \neq B \neq C \neq D$$
However, this is incorrect, since $\neq$ is not transitive.
What would be an elegant and correct way to write this?
There is no elegant symbolic way to do this with your set. If you instead have an indexed set $\{a_1, a_2, \ldots, a_n\}$, you could say
or something to that effect.
But in your case I would just say
Maybe even go so far as saying "pairwise distinct".