Relation is Connected iff Union with Inverse and Diagonal is Trivial Relation

Theorem
Let $\mathcal R$ be a relation on $S$.

Then $\mathcal R$ is a connected relation iff:
 * $\mathcal R \cup \mathcal R^{-1} = S \times S$

where $\mathcal R^{-1}$ is the inverse of $\mathcal R$.

Necessary Condition
Let $\mathcal R$ be a connected relation.

By definition of relation, both $R \subseteq S \times S$ and $R^{-1} \subseteq S \times S$.

So from Union Smallest (and indeed, trivially) $\mathcal R \cup \mathcal R^{-1} \subseteq S \times S$.

Let $\left({a, b}\right) \in S \times S$.

As $\mathcal R$ is connected, either:
 * $\left({a, b}\right) \in \mathcal R$

or:
 * $\left({b, a}\right) \in \mathcal R$

From the definition of inverse relation, this means that either:


 * $\left({a, b}\right) \in \mathcal R$

or:
 * $\left({a, b}\right) \in \mathcal R^{-1}$

That is:
 * $\left({a, b}\right) \in R \cup \mathcal R^{-1}$

and so by definition of subset:
 * $S \times S \subseteq \mathcal R \cup \mathcal R^{-1}$

Hence, by Equality of Sets:
 * $\mathcal R \cup \mathcal R^{-1} = S \times S$

Sufficient Condition
Let $\mathcal R \cup \mathcal R^{-1} = S \times S$.

Let $\left({a, b}\right) \in S \times S$.

Then by definition of set union:
 * $\left({a, b}\right) \in \mathcal R$

or:
 * $\left({a, b}\right) \in \mathcal R^{-1}$

That is, by definition of inverse relation:
 * $\left({a, b}\right) \in R$

or:
 * $\left({b, a}\right) \in R$

So by definition $\mathcal R$ is connected.