Suppose that Selmer is taller than Kostas. Then Selmer stands in a certain
relation to Kostas, and vice versa as well. What relation? The relation
`taller than.' But how can such a relation be represented in austere,
mathematical terms? The traditional answer, one that we will affirm, is
to say that relations are to be defined in terms of
set membership. For example,
the relation `taller than,' given that we're talking about humans,
can be defined as the set of all pairs of humans (x, y) such that x is
taller than y. As another example, consider the relation `greater
than,' where the domain in question is the set of natural numbers {0,
1, 2, 3, 4, }. In this case, the relation `greater than' can be
identified with the set
You will notice some new notation here: (x, y). This is how we denote
an ordered pair. Ordered pairs are not the same thing as sets.
The set
,
but
.
Two ordered pairs
(a, b) and (c, d) are equal exactly when a = c and b = d.
Given the concept of ordered pairs, we can define the Cartesian product
of two sets A and B, denoted A x B, to be the set of all
ordered pairs (x, y) such that
and
.
For example,
if A is {2, 4, 6}, and B is {3, 5, 7}, then
is
A binary relation on two sets A and B is a subset of A x B.
For example, the ordinary less-than relation < is a binary relation on
N; more formally, < is
Chances are that if you're holding this book you've already been asked to
deal with functions. If you were ever asked to do simple arithmetic (and
of course you were, long ago), you were asked to deal with
functions. Consider ordinary addition. Ordinary addition is a function
from N x N to N (written
): you ``plug into" this function pairs of numbers, for example (3,4),
and receive back individual numbers, in this case 7. Of course, we usually
write this fact as
3 + 4 = 7.
Taling of ``plugging in" things to a function, as you can probably guess,
is too informal. What, precisely, is a function? A function
associates each member of A with a unique
member of B. To spell it out explicitly: A function
is a subset of A x B such that if
and
as well, then b = c.
In a function f from A to B, A is the domain and B the
range. For such a function, we follow usual notational practice and write
f(a), where
,
to refer to the
such that
.
There are certain kinds of functions worth isolating even at this early
stage in our investigations. A function
is