The trivial relation on $A$ and $B$ is the relation $\mathord {\sim }_{\mathrm{triv}}$ defined equivalently as follows:
The trivial relation on $A$ and $B$ is the relation $\mathord {\sim }_{\mathrm{triv}}$ defined equivalently as follows:
As a subset of $A\times B$, we have
As a function from $A\times B$ to $\{ \mathsf{true},\mathsf{false}\} $, the relation $\mathord {\sim }_{\mathrm{triv}}$ is the constant function
from $A\times B$ to $\{ \mathsf{true},\mathsf{false}\} $ taking the value $\mathsf{true}$.
As a function from $A$ to $\mathcal{P}(B)$, the relation $\mathord {\sim }_{\mathrm{triv}}$ is the function
defined by
for each $a\in A$.
Lastly, it is the unique relation $R$ on $A$ and $B$ such that we have $a\sim _{R}b$ for each $a\in A$ and each $b\in B$.
The cotrivial relation on $A$ and $B$ is the relation $\mathord {\sim }_{\mathrm{cotriv}}$ defined equivalently as follows:
As a subset of $A\times B$, we have
As a function from $A\times B$ to $\{ \mathsf{true},\mathsf{false}\} $, the relation $\mathord {\sim }_{\mathrm{cotriv}}$ is the constant function
from $A\times B$ to $\{ \mathsf{true},\mathsf{false}\} $ taking the value $\mathsf{false}$.
As a function from $A$ to $\mathcal{P}(B)$, the relation $\mathord {\sim }_{\mathrm{cotriv}}$ is the function
defined by
for each $a\in A$.
Lastly, it is the unique relation $R$ on $A$ and $B$ such that we have $a\nsim _{R}b$ for each $a\in A$ and each $b\in B$.
The characteristic relation $\chi _{X}$ on $X$ of Chapter 4: Constructions With Sets, Definition 4.5.3.1.1:
As a subset of $X\times X$, we have
As a function from $X\times X$ to $\{ \mathsf{true},\mathsf{false}\} $, we have
for each $x,y\in X$.
As a function from $X$ to $\mathcal{P}(X)$, we have
for each $x\in X$.
The antidiagonal relation on $X$ is the relation $\nabla _{X}$ defined equivalently as follows:
As a subset of $X\times X$, we have
As a function from $X\times X$ to $\{ \mathsf{true},\mathsf{false}\} $, we have
for each $x,y\in X$.
As a function from $X$ to $\mathcal{P}(X)$, we have
for each $x\in X$.
Partial functions may be viewed (or defined) as being exactly those relations which are functional; see Chapter 10: Conditions on Relations, Section 10.1.1.
Square roots are examples of relations:
Square Roots in $\mathbb {R}$. The assignment $x\mapsto \sqrt{x}$ defines a relation
from $\mathbb {R}$ to itself, being explicitly given by
Square Roots in $\mathbb {Q}$. Square roots in $\mathbb {Q}$ are similar to square roots in $\mathbb {R}$, though now additionally it may also occur that $\sqrt{-}\colon \mathbb {Q}\to \mathcal{P}(\mathbb {Q})$ sends a rational number $x$ (e.g. $2$) to the empty set (since $\sqrt{2}\not\in \mathbb {Q}$).
The complex logarithm defines a relation
from $\mathbb {C}$ to itself, where we have
for each $a+bi\in \mathbb {C}$.
See [Wikipedia Contributors, Multivalued Function — Wikipedia, The Free Encyclopedia] for more examples of relations, such as antiderivation, inverse trigonometric functions, and inverse hyperbolic functions.