Sections 1.1 and 1.2 built sets and combined them: a
set is fixed by its elements, and , , are , , read through
membership. None of this can yet say “the point of the plane”,
“ is less than
”, or “ is the square of ”. Each of these is
about two objects in a given order, and
a set forgets order. This section adds one new kind of
object, the ordered pair (with its longer versions, the
-tuples), and then
uses it twice: to build the product of two sets,
and to say what a relation between two sets is. The next
section needs exactly this much: a function will be
given by a relation of a special kind, its graph,
together with a declared target set.
Order
matters: ordered pairs
A set remembers which objects are its elements and
nothing else. By extensionality (Definition 1.1.1),
, since both sets have the elements and ; and , since
both have the element and nothing else. For a
set that is exactly right. For a point of the plane it
is exactly wrong. The point lies one unit to
the right of the vertical axis and two units above the
horizontal one; the point lies elsewhere.
And the point on the diagonal is a perfectly good point,
with the same number in both places.
So we need an object built from two objects and that remembers
which came first, and that still has
two places when . What we need to know about such an object is
one fact: when two of them are equal.
An ordered pair is equal to another exactly when
they agree in the first place and in the second
place.
Definition
1.3.1 (Ordered pair)
For any objects and there is an object
, the
ordered pair of and ; we call its first
coordinate and its second
coordinate. Ordered pairs have the
characteristic property: for all ,
In words: to decide whether two pairs are equal,
compare first coordinates with first coordinates and
second with second; nothing else matters, and both
comparisons must succeed. The direction is nothing
new: equal inputs give equal pairs, as for any
construction (, Logic and Proof, Definition 5.7.1).
The direction is the
content. It says that from the pair we can read off its
coordinates, each in its place.
We do not say here what the object
is. Besides
the characteristic property, we use one working
convention: pairs and -tuples are a different
kind of object from numbers, just as sets are (Section
1.1), so a pair is not a number; and
tuples of different lengths are different kinds of
object, so a triple is not a pair. Nothing else about
pairs is used in this chapter. Number Systems: From
to , Chapter 1 shows
that a pair with this property can be built from sets
alone, so that nothing new has to be assumed. Until
then, the existence of pairs with this property is taken
as given, alongside the working rules (W1)–(W6) of
Section 1.1.
A convention about parentheses. The
symbol now
has two meanings. For real numbers it is also the
open interval . The book keeps both, and
context decides, as it does in every analysis text. In
“ contains
” it is
an interval. In “the point lies on the unit
circle” it is a pair. Where both readings are near each
other, the text says which is meant. This convention is
stated once, here.
Example
(Solving an equation between pairs)
Find all real numbers and with .
Then decide whether and whether .
Solution. By the characteristic
property, holds if and only if Adding the two equations gives , so ; subtracting them
gives , so
. Conversely,
and give .
So there is exactly one solution, , .
The pairs
and are
not equal. If they were, the
characteristic property would give for the first
coordinates. So , by . The
same test on
and passes
in both places, so they are equal; and has two places,
although both hold the same number.
The first part is typical. One equation between pairs
is two equations between coordinates,
and this is how pairs are used: an equation of pairs is
split by the characteristic property, and the
coordinates are compared one at a time.
Nonexample by minimal change.
Replace the parentheses by braces. The set has the same two
numbers as the pair , but the characteristic property fails for
sets: , and yet . What survives is membership: and are both in . What is lost is
order, the one thing the pair was made to keep.
Why this definition. Only carries
content. Without it, the pair could forget its
coordinates, as forgets which number came first. The
direction could be
dropped from the definition without loss: already
gives it for , as for any construction. It is stated so
that the property reads as a single test for equality of
pairs.
Longer lists. The same idea gives
ordered triples , and more generally ordered -tuples for
, . Like pairs,
-tuples are taken
as given, and the -tuples with all
coordinates in a set form a set, by the working rule
(W5) of Section 1.1. Two -tuples are equal if and
only if they agree in every place: means for every . A triple is a new kind of
object, not a pair whose first coordinate is a pair (by
the convention stated after Definition 1.3.1).
The pairs and carry the same three numbers in the same
order, and it is tempting to call both “the triple ”; that is an
identification made by convention, and exercise A1 asks
whether the two pairs are equal.
Quick check. For which real numbers
is ? For
which is ?
Solution. The pair equation holds
if and only if and , so exactly for . The set equation
holds for
too, since . It holds for no other : the element of the right side must
be or , and , so . Here the sets
agree exactly where the pairs do, but that is luck. The
pair equation holds only for , while the set equation holds
for every .
Cartesian
products
With pairs in hand, the plane is the set of all pairs
of real numbers. More generally, from any two sets we
can collect all pairs whose first coordinate comes from
the first set and whose second comes from the second.
Taking such a collection is the working rule (W5) of
Section 1.1: it is a set.
Definition
1.3.2 (Cartesian product)
Let and be sets. Their
Cartesian product is the set of all ordered pairs with first coordinate in
and second
coordinate in .
Written out, an object is an element of if and only if
For a set we write ,
and, for
with , is the set of all
-tuples with
every .
In words: an element of is a pair, and
there exist coordinates, one in and one in , from which it is made.
The membership condition hides two existential
quantifiers, so using it means naming the coordinates,
by (Logic and Proof, Proposition 6.1.1),
and then matching them against any other naming by the
characteristic property of pairs. That two-step move is
the one move of this section; below packages
it.
For a pair the condition simplifies, and we use the
simpler form constantly: Here is why. If and , then
and themselves
are coordinates of the required kind, and by
. Conversely, let .
Then there are and with [],
and the characteristic property (Definition 1.3.1)
gives and
. So and . The
characteristic property is used exactly once, in the
direction ; without
it, might
equal with
the coordinates swapped or lost, and nothing could be
concluded.
We write
for this equivalence in the rest of the section. It is
the reason a product is easy to work with: membership of
a pair in a product is checked one coordinate at a
time.
Set-builders with a pair pattern. We
write for , a set-builder in the sense of Definition 1.1.3.
By and the
characteristic property, belongs to it if and only if , and . The notation
in Definition 1.3.2
is different: it names no ambient set, so it is not a
set-builder. It is notation for the set that (W5)
provides, and the displayed membership condition is its
definition.
Example
(Products, small and large)
(a) Let be three
different objects, none of them a number. List and .
(b) Describe
and as
sets of points of the plane.
(c) What is ?
Solution.
(a) Each of the
first coordinates
is paired with each of the second coordinates:
six pairs, all different by the characteristic
property, since and are different. Swapping the factors gives the
six pairs . No pair of the
first list is in the second: every pair in the first
list has a number as its first coordinate, and every
pair in the second list has one of there, none of
which is a number; so by the characteristic property no
pair of one list equals a pair of the other.
(b) is
the set of all pairs of real numbers: the plane, with the horizontal and
the vertical
coordinate. By , if and only if and : the closed unit square, with its
four sides.
(c) It is empty.
An element would
be with
,
and has
no elements. So has no elements, and a set
with no elements is (Proposition 1.1.3).
Part (c) is the degenerate case, and it matters: a
product is empty as soon as one factor
is. The general statement is part of the next
proposition.
Quick check. List . Is ?
Solution. , six pairs. And : by it would need
. In
fact has no elements at all, as in part
(c) of the example.
Warning. The product is not
commutative: and are in general different sets. For and ,
and , and by Example (Solving an equation between pairs).
The two products have “the same size”, but they do not
have the same elements. (They are equal when , and when one of
the sets is empty. Exercise C2 finds exactly when even
the inclusion holds.)
Products
and the set operations
Section 1.2 showed that , , and obey the laws
of , , and . The product
interacts with them just as simply, one factor at a
time. We use these laws for regions of the plane
(exercise B1) and for functions out of the empty set
(Section 1.4), so we state them all.
Proposition
1.3.1 (Products and Set Operations)
For all sets ,
, : and the mirror-image laws, with the varying
factor on the left:
Idea. Every element of each side is
a pair, so we name its coordinates by and
then test membership one coordinate at a time, by . The first
coordinate lies in on both sides; the
second lies in on one side and in “ or ” on the other, which is
the same condition by Definition 1.2.1.
Each law is a law of Section 1.2 in the second
coordinate, with the first coordinate carried along
unchanged.
Proof. The law. We prove
two inclusions and conclude by Proposition 1.1.1.
Let
. By Definition 1.3.2
there are
and
with [F1, Proposition 6.1.1].
By Definition 1.2.1,
or , and we argue by
cases. If ,
then by , so . If , then likewise . In either case .
Let
. Then or . If , there
are and
with [];
since , gives . If , the same argument with in place of gives .
The
law. Let , so with and . Then and , and gives and
.
Conversely, let . Since , with and . Since also ,
gives . So
, and
.
The law. Let
, so with , , and . Then by . If were in , then would give , which is false;
so , and . Conversely,
let . Then with and , and . If
were in , then would give , which is false; so . Hence and
.
The law. An
element of would be a pair with , and
there is no such .
So has no elements, and it equals by Proposition 1.1.3.
The mirror-image laws. The same four
arguments, with the roles of the two coordinates
exchanged throughout, prove them: the varying set now
sits in the first coordinate, and is applied to it
there. This proves the proposition.
The proofs of the law do not use
excluded middle: both “” conclusions are
reached by assuming membership and deriving a
contradiction, which is . Only
the first law was written with every
marked; from here on, “ with and ” is understood to name fresh coordinates.
A proof about products usually runs like the one
above: take an element, write it as a pair with named
coordinates, and work coordinatewise. Here is the
pattern on concrete sets.
Example
(Two rectangles)
Show that .
Solution. Draw the two rectangles
first: the first is wide and high, with its lower
left corner at the origin; the second is wide and high, with its lower
left corner at . They overlap in the rectangle over of height . Now the proof, by two
inclusions.
Let
be in the
intersection. Since , with and . Since also
, gives and . Together,
and
, so
by .
Let
, so with and . Then , so ; and , , so . Hence is in the
intersection.
By Proposition 1.1.1,
the two sets are equal. The picture found the answer;
the element-chase proved it.
The degenerate law of the proposition deserves a
second look, because it is easy to misuse.
Warning. “,
so ”
misses a case. The product
is empty, and is not. The correct conclusion is the
disjunction “ or ” of the remark, and an argument that
continues from it must treat both cases. Dropping one is
the missing case of the catalogue in Logic and
Proof, Chapter 8, entry (N7): a with
one of its boxes left out.
Relations
“Is less than”, “divides”, “is the square of”, “lies
on the unit circle with”: each of these connects an
object of one set with an object of another, or of the
same set. Each can be described by a rule, a formula, or
a sentence. But two different descriptions can pick out
exactly the same connections: “” and “” are
different sentences about real numbers, and they hold
for exactly the same pairs . In mathematics we
want these to count as the same
relation.
The way to make them the same is to forget the
description and keep what it picks out: the set of pairs
for which it
holds. Two descriptions that pick out the same pairs
then give the same set, by extensionality.
A relation is the set of pairs it
relates.
Definition
1.3.3 (Relation)
Let and be sets. A
relation from to is a subset
. For and we write , read “ is -related to ”, to mean . A
relation on is a relation
from to , that is, a subset of
.
The domain of is the set of first
coordinates that occur, ,
and its range is the set of second
coordinates that occur, .
Turning every pair of around gives a relation
from to , the inverse
relation
In words: a relation is a set,
namely a set of pairs whose coordinates come from the
two given sets. The notation is only a
way of writing “” that reads like “”. The domain
collects the elements of that are related to
at least one element of ; the range collects
those of that
something is related to. The inverse relation turns each
pair around: exactly when .
Two relations are equal exactly when they relate the
same pairs, since relations are sets (Definition 1.1.1).
So the relation “” on
and the relation “” on
are one relation, as we wanted. That is the whole reason
for the definition: a relation is determined by
what it relates, not by
how it is described.
Example
(Relations as sets of pairs)
Write each relation as a set, and find its domain and
range.
(a) The relation
on .
(b) Divisibility
on :
when .
(c) The unit
circle, as a relation on .
(d) The graph of
squaring, as a relation on .
(e) The two
extreme relations from to : and .
Solution.
(a) The pairs
of elements
of with
are three of the nine elements of . Its domain
is , since
nothing in the set is larger than ; its range is , since nothing
is smaller than .
(b) Write when for some integer
. For each first
coordinate , the
second coordinates with are the
multiples of up
to :
|
|
|
|
|
|
|
|
|
|
|
|
So has elements, the pairs read off the rows.
Its domain and range are both all of , because
every divides
itself: .
(c) The unit
circle is a relation on ; for instance , , and
.
Its domain is . If , then , so
.
Conversely, for the number is nonnegative and so has a square root
,
which satisfies . By the symmetry of the equation, the range
is
too.
(d) The graph of
squaring is . Its domain is
all of : every
is related to
. Its range is
: a
square is nonnegative, and every is the square of
.
(e) Both are
subsets of , so both are relations. The empty
relation relates
nothing, and its domain and range are empty. The
full relation relates
everything to everything. If and both have elements, its
domain is and its
range is .
The circle and the graph of squaring look alike, both
being curves in the plane, but they differ in a way that
the next section makes precise. In every is related to
exactly one . In the number is related to two
numbers, and
, and the number
to none. A
relation of the first kind will be the graph of a
function.
Quick check. Write the inverse
relation of
part (a) as a set. Which familiar relation on is it?
Solution. Turning each pair of
around gives
: the pairs with . So is the relation
on . Its domain
is the
range of , and its
range is
the domain of .
Nonexample by minimal change. The
set looks like the relation “is one less than”
on ,
with one pair damaged. It is not a relation on : the element
is a number, not
a pair (the convention after Definition 1.3.1),
so the set is not a subset of . Remove the
, or replace it by
the pair and
enlarge the second set to , and it
becomes a relation. The clause that failed is “”:
every element of a relation must be a pair with
coordinates in the right sets.
Why this definition. A relation
could be defined as a rule, a sentence, or a formula.
Each of those raises the question of when two rules are
“the same”, and that question has no good answer: “” and “” are
different sentences. The definition as a set answers it
by extensionality. The price is small: a relation may be
any set of pairs whatever, such as on
, and
the definition never asks for a rule that produces it.
That is a gain, not a loss: in analysis we meet
relations and functions that no formula describes.
Warning. A relation “from to ” has its direction
built in: , and the first coordinate comes from
. The relation
of part (a)
contains and
not . Reading
a relation backwards, “since , also
”,
treats it as a symmetric relation; relations with that
property, and other properties such as transitivity, are
studied in Chapter 2. Relating to is the job of the
inverse relation , a different
set.
This definition is all the next section needs. The
graph of a function from to will be a relation from
to in which every element
of is related to
exactly one element of ; the function is that
graph together with the declared codomain . The graph qualifies and the
circle does not.
The properties that make a relation an order or an
equivalence (reflexive, symmetric, antisymmetric,
transitive) are the subject of Chapter 2.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define in symbols,
with its membership condition written out using
quantifiers.
- (b) Is ? Justify your answer.
- (c) Write the
inverse of the relation on as a set of
pairs.
- (d) Is a relation on
every set ?
Justify your answer.
Solution.
(a) ; that is, if and
only if (Definition 1.3.2).
(b) No. Both are
ordered pairs, so by the characteristic property (Definition 1.3.1)
they are equal if and only if their first coordinates
are equal and their second coordinates are equal. The
first coordinates are the pair and the number
. A pair is not a
number, by the working convention stated after Definition 1.3.1
(Number Systems: From to , Chapter 1,
which builds both from sets, bears it out). So the first
coordinates differ, and the pairs are not equal. Calling
both “the triple ” is an identification made by convention,
not an equality.
(c) , which is the relation on .
(d) Yes. A
relation on is a
subset of , and : the condition “” holds for every , because its hypothesis
is false (Logic and Proof, Proposition 2.1.2,
Definition 1.1.2).
B. Practice
Exercise
(B1: An L-shaped region)
Let .
Describe as a
region of the plane. Then use Proposition 1.3.1
to write as for intervals and , and prove the
equality.
Solution. The first rectangle is
wide and high, standing on the
origin; the second is wide and high, standing on . Together they
form an “L”: a bottom strip of
width , with a
square on top of its left half. So we expect and .
Now the proof. Since , the first law of Proposition 1.3.1
gives and the mirror-image law gives Substituting the first equation into the
definition of and
regrouping the unions ( is commutative and
associative by Theorem 1.2.1),
where the second line uses the mirror-image
equation. So and . (The equality is an order fact: holds
exactly when or .)
Exercise
(B2: The intersection law, written with two
pairs)
Here is a proof of the inclusion of that works from the
definition of the product and the characteristic
property directly, without the shortcut . Its last sentence
is blank. Name the move, then complete it.
Let . Since , there
are and
with . Since , there
are
and with
;
the names
and are new,
because nothing says that this second pair of
coordinates is the first one again. Hence .
Solution. The move is the second
half of the section’s move, the characteristic property
of pairs (Definition 1.3.1)
in the direction . An
equation between pairs splits into equations between
coordinates.
The completed last sentence: By the
characteristic property, and ; so and , hence , and .
The names
and had to be
fresh (a second may
not reuse the names of the first), and the
characteristic property is what shows, afterwards, that
the two namings name the same coordinates. The proof of
Proposition 1.3.1
took the same step through , which packages
exactly this use of the characteristic property.
Exercise
(B3: Two products crossed)
Prove that for all sets and .
Solution. We prove two inclusions
and conclude by Proposition 1.1.1.
Let
. Since , with and . Since also , gives and . So and , and by .
Let
, so with . Then and , so ; and and , so . Hence .
C. Going deeper
Exercise
(C1: The square of a union)
- (a) Determine
whether for
all sets and
. Justify your
answer.
- (b) Prove the
inclusion .
- (c) Prove, from Proposition 1.3.1,
that
Solution.
(a) No. Take
and . Then . But , and is neither nor , since in each
case the second (or first) coordinates differ. So the
two sets are different.
(b) Let . If , then with ; so , and by . If , the
same argument with in place of applies. In either case
.
(c) The
mirror-image
law, with
as the fixed factor on the right, gives The first law, applied to each
of the two products, gives Substituting, and using that is associative (Theorem 1.2.1),
so that no brackets are needed, gives the formula. Part
(a)’s counterexample is the term at work: .
Exercise
(C2: When one inclusion forces equality)
Let and be sets. Prove that
if and only if or or .
Solution (Hint 1). For , the empty
cases are easy, so assume both sets have elements. To
show ,
you need to test an element ; put it into a
pair that is sure to lie in .
Solution (Hint 2). Fix . For , the pair lies in .
Solution. If , then ,
and in particular . If , then by
Proposition 1.3.1,
and is a
subset of every set. If , likewise .
Suppose . By excluded middle (Logic and Proof, Proposition 2.5.3),
each of and either has an element
or has none, and a set with no elements is (Proposition 1.1.3).
If or
, we
are done. In the remaining case both have elements: fix
and (
twice, with fresh names).
. Let . Then by , so
by the hypothesis. By again, (and ).
. Let . Then , and gives (and ).
By Proposition 1.1.1,
. This proves
the equivalence.
Both witnesses are needed. With there is no
, and indeed
then holds for every , including : the inclusion
is .
Marking scheme. (10 points) - 2:
: all
three cases, including that an empty factor makes empty and
hence a subset of anything. - 2: : splits off
the empty cases and, in the remaining case, names
witnesses
and . - 2:
,
through a pair with an arbitrary . - 2: , through a
pair with
an arbitrary . - 2: uses the characteristic property
(directly or through ) to read the
coordinates off a pair of , and concludes by two
inclusions.
Fatal errors (0 for the step): testing inclusion on
particular elements only (entry (N1) of Logic and
Proof, Chapter 8’s catalogue); using without having shown
that has an
element; concluding from “by canceling” without an element
argument. A proof of by
contraposition (assume and both nonempty, and exhibit a pair of
outside
) earns
full marks if it finds the pair: 2 points for the
witnesses and 4 for the pair and the check that it is
outside ,
in place of the two inclusions.