A binary relation from
to
is a subset of
. It is
a characterization of the intuitive notion that some of the elements of
are related to some of the elements of
. Familiar binary relations from
to
are
. Thus the elements
of the set
are all members
of the relation
which is a subset of
.
In general, an n-ary relation among the sets
is
a subset of the set
.
A function from
to
is a binary relation
from
to
such
that for every element
there is a unique element
so the
(
). We will use the notation
to denote a function
from
to
. The set
is called the
domain of the function
and the set
is called the co-domain
of the function
. The range of a function
is the
set
for some
, ![]()
.
Some familiar examples of functions are