2
$\begingroup$

Given two finite sets $X$ and $Y$, one may consider the ordered pairs $(x,y)$ with $x\in X$ and $y \in Y$. Then, $(x,y) \not= (y,x)$, and $(x,x)$ exists if $x\in X$ and $x\in Y$.

One may also consider unordered pairs $xy$ with $x\in X$ and $y \in Y$, with $x\ne y$. Then, $\{x,y\}=\{y,x\}$, and $\{x,x\}$ does not exist.

The set of all ordered pairs is denoted by $X\times Y$, and the set of unordered pairs is often denoted by $X\times Y$ too, which is confusing.

For instance, in graph theory ordered vs unordered pairs make the distinction between directed and undirected graphs. Therefore, most graph papers dealing with undirected graphs start by saying that they use the ordered pair notations, but consider unordered pairs. In most cases, this is sufficient.

In some situations, though, one deals with both kinds of pairs jointly and then needs to make a clear distinction.

It was for instance the case in our paper Stream Graphs and Link Streams for the Modeling of Interactions over Time, where we used the $X\otimes Y$ notation for unordered pairs.

My questions are:

  • is there a standard notation for sets of unordered pairs? Why not ?
  • And is the $\otimes$ notation appropriate, although it is already used in various contexts?

A typical example where the distinction is important, although trivial: $|X\times Y| = |X|\cdot |Y|$, and so $|X\times X| = n^2$ if $|X| = n$. This is different from $$|X\otimes Y| = |(X\setminus Y) \times Y| + |(Y\setminus X) \times X| - |(X\setminus Y)\times(Y\setminus X)| + \frac{|X\cap Y|^2 - |X\cap Y|}{2}$$ leading to $|X\otimes X| = \frac{n \cdot (n-1)}{2}$ if $|X| = n$.

$\endgroup$
14
  • 7
    $\begingroup$ I would not consider the set of unordered pairs from two sets $X, Y$ meaningful unless $X = Y$, in which case I would write it as ${X \choose 2}$ (assuming we want distinct pairs). $\endgroup$ Commented Jan 7, 2021 at 10:34
  • 2
    $\begingroup$ In fact the usual convention is that $\{x\}=\{x\}$, so that one does not have to bother about repetitions. As to the set of unordered pairs, $X\times X$ is of course a totally wrong notation; $X\otimes X$ is at least different from $X\times X$, but confusing in that it has nothing to do with any other use of $\oplus$. ${X \choose 2}$ follows the standard convention about cardinality, it is self-explanatory and natural. Also used $X^{(n)}$ for unordered $n$-ples $\endgroup$ Commented Jan 7, 2021 at 11:30
  • 2
    $\begingroup$ @QiaochuYuan The notation "$[X]^2$" for the set of two-element subsets of $X$ is standard at least in logic. $\endgroup$ Commented Jan 7, 2021 at 13:07
  • 1
    $\begingroup$ If $X \neq Y$, I am not sure that the notion of "unordered pair" really makes sense, because one does not have the $\mathbb{Z}_2$-action anymore. $\endgroup$ Commented Jan 7, 2021 at 14:23
  • 1
    $\begingroup$ Thanks for your interesting comments! It seems that there is no consensus, rather a nice bestiary of relevant notations, each with its own strengths and weaknesses. $\endgroup$ Commented Jan 7, 2021 at 16:48

0

You must log in to answer this question.