Related question: Are all n-ary operators simply compositions of binary operators?
Question:
Let's say we have a binary relation $\sim$ and we know that it is transitive, i.e. that $$a \sim b, b \sim c \implies a \sim c$$ Is this enough information to define for all $n$ a valid $n$-ary relation on the same set?
(Note that we also might need the binary relation to be symmetric, although I am not sure.)
Two Examples which might clarify what I am asking:
In this answer I tried to argue that the transitivity of equality as a binary relation allows us to define an $n-$ary equality relation for all $n$, i.e. that the transitive binary relation automatically implies the existence of a well-defined $n-$ary relation for all $n$, and thus that these $n-$ary relations provide us with essentially nothing new. I thought this was an interesting idea although I realized halfway through writing it that I did not know how to prove it formally and thus did not actually know whether it was correct.
It is well-known that probabilistic independence is not transitive. It is also well-known that pairwise independence (i.e. binary independence) does not imply mutual (i.e. $n-$ary for all $n$) independence. The method in which I answered the question about equality made me realize eventually that I suspect that there is a connection between the two facts, specifically that the former causes the latter. However, again as in the equality case, I don't know how to prove this. Say that the random variables $A, B, C$ are pairwise independent, i.e. $A \sim B, B \sim C, A \sim C$ (it is implicit here that the relation is also symmetric). Then how does the fact that $\sim$ is not transitive preclude us from concluding that $A,B,C$ necessarily satisfy a valid ternary relation?
Honestly it seems like the real problem here is probably that I don't conceptually understand ternary relations or $n-$ary relations for $n>2$. I know that they correspond to subsets of the $n-$fold Cartesian product -- indeed that is a straightforward generalization of the definition of a binary relation -- but this doesn't seem like as much structure as it should be somehow.