Sets, Relations, and Cardinality, Section
1.3 introduced the ordered pair (Sets, Relations, and Cardinality, Definition 1.3.1)
as an object with one property, the characteristic
property, and said that such an object could be built
from sets. Section 1.1 has only sets to build with, and
its pair
forgets which element came first. This section repairs
that with one idea: mark the first coordinate by putting
it in a set of its own. It proves that the result has
the characteristic property, so that every pair of
Sets, Relations, and Cardinality, Chapters 1 to
3 can be read as a set, and then recovers the product
and the
working rules (W1)–(W5) of Sets, Relations, and
Cardinality, Section 1.1 from the axioms, in the
form proved here: (W2) for lists written out in the
text, (W3) for families of subsets of a given set, and
(W5) for pairs. The rest of (W2) and (W5) comes in
Section 1.6; (W3) for families with no ambient set needs
the axiom of Replacement.
Order from
sets
The problem. The set of Proposition 1.1.2
(b) is symmetric: . A pair must not be. We want a set,
built from and
by the axioms,
from which we can read off which of the
two came first, and the second coordinate after that.
Here is one way to see what to do. In the two elements
are on an equal footing; we must give a role that does not have. Put
into
every member of the pair, and into one member
only.
The first coordinate is the one in every
member.
Definition
1.2.1 (Ordered Pair as a Set)
For sets and
, the
ordered pair of and is the set Its first coordinate is and its second
coordinate is .
The pair is a set of the axioms: (Z3) gives and
, and (Z3)
once more gives the set whose elements are these two (Proposition 1.1.2
(b)). In words: the members of are the sets and , which coincide
when . Sets of
this form are called Kuratowski pairs.
The first coordinate lies in both members; the second
lies in the member , and in only if it equals
.
Examples, simplest first.
- . This is
the degenerate case: the two members coincide, and the
pair has one member. It matters,
because a proof that speaks of “the two members of a
pair” silently excludes it.
- . Its two members are different:
lies in
the second and not in the first, whose only element is
.
- Swap the coordinates: . The second member is the
same as before, ; the singleton member has
changed from to
. So
, and the
singleton member is what records the order.
Why this definition: shorter encodings
fail. It is natural to try something simpler
first. The next example shows three simpler sets, built
from and with written first, none of
which is a pair.
Example
(Three Encodings That Lose Information)
Consider the claim: any set built from and in which is mentioned first is
an ordered pair, that is, has the characteristic
property. Test it on the three encodings
Solution. The claim is
false, and each encoding has its own
counterexample.
(i) With , and
with the coordinates swapped, the encoding gives both times, although . The order is lost.
(ii) The same two
inputs give both times: the encoding is
, again symmetric in and .
(iii) This one is
not symmetric, and it fails in a less obvious way. Take
, , and , . Then
the same set, by (Z1). But : the only element
of is , which is
not , so
and
.
So equal encodings do not force equal first coordinates.
The trouble is that can coincide with a
first coordinate, and the encoding cannot tell which of
its elements was meant as “”.
The definition avoids both failures. Both of its
members are built from , so neither can be
mistaken for a lone coordinate, and the member singles out . Another encoding,
often called the Wiener pair, uses as a marker;
exercise C3 asks you to show that it has the
characteristic property.
The lesson of (iii) is a habit: a proposed encoding
is tested against the characteristic property with
all inputs, including inputs that are
themselves made of the sets being encoded.
Warning. “The smaller
member” names nothing when . It is tempting to read off the
first coordinate as “the element of the smaller member”
and the second as “the new element of the larger
member”. When , the pair has a single
member, and there is no smaller and larger. An argument
that compares the two members of must treat as a case of its
own.
The
characteristic property
Here is what makes the definition the right one: the
set
determines and
, each in its
place.
Theorem
1.2.1 (Characteristic Property of Pairs)
For all sets ,
Try it first (ten minutes): given , get first; then ask what changes when .
Idea. The attempt goes well at
first. The member of the left side is
a member of the right side, so or , and
either way Proposition 1.1.2
(d) gives .
Then must
be one of ,
, and the
natural move is to say “it is , the larger
one”, giving and so . That move is where the attempt runs into the
warning above. If , then and it may well equal ; if , the right side has
a single member. So the proof splits: when , the left side is
, and both
members of the right side must equal ; when , both sides have
two different members, and the matching above goes
through.
Before reading on: where is used?
Proof. If and , then by .
Suppose , that is, . Either or , and we take the
cases in turn.
Case 1: . Then , so . The members and of are members of
, so and . By Proposition 1.1.2
(d), the second equation gives and . Hence , and .
Case 2: . First, . Indeed, if , then as in Case 1, so the member of equals , and Proposition 1.1.2
(d) gives and
, which
contradicts .
Next, , so or . The second would give by Proposition 1.1.2
(d), which we have excluded. So , and by the same
proposition.
Finally, , so or . The first would give and by Proposition 1.1.2
(d), hence ,
which is excluded. So , using . By Proposition 1.1.2
(d), ; in the first
disjunct , and
in the second . So .
In both cases and . This proves the theorem.
So is
used twice in Case 2: to exclude , and to exclude
.
Once both are excluded, each side has exactly two
different members, and they can be matched.
Alternatively, the coordinates can
be read off a pair by two set operations. The members of are and (Proposition 1.1.2
(b)). An object lies in both if and only if it equals
, since it must
lie in , and
; so
(Proposition 1.1.2
(c)). And . So is the unique element
of . And
is if , and if ; so is the unique element
of when that set is non-empty, and when it is empty.
Both coordinates are thus determined by the set alone, which is the
characteristic property again. The case split has not
gone away here: it is the empty and non-empty cases of
. Comparing the unions of two pairs directly
avoids it: from with , Proposition 1.1.2
(d) gives in
both of its disjuncts.
What this pays. Sets, Relations,
and Cardinality, Section 1.3 took the ordered pair
as given, with the characteristic property, and said
after Sets, Relations, and Cardinality, Definition 1.3.1
that nothing else about pairs is used in Sets,
Relations, and Cardinality, Chapter 1, apart from
one working convention. From here on, the pair of Sets, Relations, and Cardinality, Definition 1.3.1
is the set of Definition 1.2.1,
and the property it was assumed to have is Theorem 1.2.1.
Everything built on pairs becomes a set built by the
axioms: a relation from to is a subset of (Sets, Relations, and Cardinality, Definition 1.3.3),
and a function is the pair of its graph and codomain (Sets, Relations, and Cardinality, Definition 1.4.1),
now a Kuratowski pair of two sets. The working
convention said that a pair is not a
number, and that a triple is not a pair. In the
picture of this chapter numbers and tuples will be sets
too, so both clauses become statements to be checked:
Section 1.4 checks the first for the natural numbers (Proposition 1.4.3),
and Section 1.6 checks the second (Proposition 1.6.5
(c)).
Products,
and the working rules recovered
The working rule (W5) said that the pairs with
coordinates in given sets form a set. With pairs built
from sets, this is now something to prove.
Proposition
1.2.2 (The Product Exists)
For all sets
and there is
exactly one set whose elements
are exactly the pairs with and :
Idea. Separation can only cut a set
out of a set we already have, so we first need
some set containing every pair with and . The members
and of such a pair
are subsets of , so the pair is a set of subsets of : an element of
. Cut out of that.
Proof. Let , a
set by Proposition 1.1.2
(c), and let , a set by (Z5) twice.
Let and
. Then , so and
; that is, and . Hence , that is, .
By (Z6) with ambient set and parameters , , let (The property is admissible: “” unwinds into
and , as Section 1.1
explained for defined symbols.) If , then
for some
, . Conversely, if
with
and , then by the first
paragraph, so . This is the displayed membership condition.
Any two sets with this condition are equal by (Z1).
The product of Sets, Relations, and Cardinality, Definition 1.3.2
has the same membership condition, so it is this set;
and is a set too. The construction never needed a
“set of all pairs”: every pair it collects lies in the
set , which
depends on and
.
The working rules of Sets, Relations, and
Cardinality, Section 1.1 can now be checked against
the axioms one by one.
Proposition
1.2.3 (The Working Rules from the
Axioms)
The axioms (Z1)–(Z6) give the working rules (W1)–(W5)
of Sets, Relations, and Cardinality, Section
1.1 in the following form.
- (W1) For every set
and every
admissible property (one whose unwinding
is a formula of the language, Section 1.1), is a
set.
- (W2) For each list
written out in the text, entry by entry, there is a set
whose elements are exactly .
- (W3) For sets and , is a set. For a
set and a family
of
subsets of , given
as a function (Sets, Relations, and Cardinality, Definition 1.2.3),
the union and the intersection of
Sets, Relations, and Cardinality, Definition 1.2.4
are sets.
- (W4) For every set
, is a
set.
- (W5) For sets and , is a set.
Idea. Three of the rules are
already in hand. For a written list, add one entry at a
time with . For
a union of a family of subsets of , the ambient set is what lets (Z6)
apply.
Proof. (W1) is (Z6), applied to the
unwinding of ,
with the sets
mentions as parameters; (W4) is (Z5), and (W5) is Proposition 1.2.2.
(W2) We build the set one entry at a time. The first
set is , by
(Z3). If has been built and the list has a further
entry , let
a set by Proposition 1.1.2
(c). Its elements are those of
together with , that is, the
with . A list written out in the text has a
definite number of entries, and the step is applied once
for each entry after the first.
(W3) is
a set by Proposition 1.1.2
(c). Now let be the function with , and let be its graph. By (Z6)
with ambient set
and parameters ,
, is a set; “” unwinds to . Every element of every
lies in , since ; so if and only if
for some
, the
membership condition of Sets, Relations, and Cardinality, Definition 1.2.4
(a). Hence is the
union. The intersection of Sets, Relations, and Cardinality, Definition 1.2.4
(b) is defined there by a set-builder inside , so it exists by
(Z6).
The proof of (W2) deserves a second look, because of
what it does not prove. It is not a
proof “for every ”: we have no yet, so the number of
entries cannot be a variable. It is a recipe which,
applied to any list actually written down, produces its
set in as many steps as the list has entries. That is
all (W2) is used for in Sets, Relations, and
Cardinality, Section 1.1, but Chapters 2 and 3 of
that volume also write for a
variable , for a function defined on (Sets, Relations, and Cardinality, Proposition 2.3.8,
Sets, Relations, and Cardinality, Definition 3.1.2).
That second half of (W2) needs the natural numbers and
as
sets; it is part (d) of a proposition in Section 1.6,
which also builds -tuples and so gives
(W5) for them.
The rest of the list is paid elsewhere. A family of
sets with no ambient set needs the axiom of
Replacement, which belongs to the volume on set theory.
And (W6), “,
, , are sets”, becomes a
series of constructions: in Section 1.3, and in Chapter 2, and
later in this
volume, from Cauchy sequences of rationals.
Quick check. Write
and as sets, using only braces and
.
Solution. , a set with one member, as
for every pair . And , with two different
members.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) In the proof of
Theorem 1.2.1,
where is the hypothesis of Case 2 used, and what replaces the
argument when ?
- (b) Run the proof of
Theorem 1.2.1
on the equation : which case applies, and what does each step
give?
- (c) Which axioms
make a
set?
- (d) State the idea
of the proof of Theorem 1.2.1
in two sentences.
Solution.
(a) Twice: to
show (if
, the member
would
equal ,
forcing ), and
to rule out (which would force ). When , the pair has
one member, so both members of must equal , and gives
by Proposition 1.1.2
(d).
(b) Here and
, and
because
and
;
so Case 2 applies. Step 1: . Step 2:
is a member of , and it cannot be , so
and . Step 3: is a member of and is not , so , which gives
. So
forces and .
(c) (Z3), three
times: once for , once for , and once for the set with these two
elements. Uniqueness of each is (Z1).
(d) The singleton
member of the
pair must be one of the members of the other pair, which
pins down the first coordinate. When the remaining
members must match and give the second coordinate; when
the pair has
a single member, and that case is handled on its
own.
B. Practice
Exercise
(B1: Coordinates from unions and intersections)
Let .
Compute
and , and
show that, when , the set has exactly one element,
namely .
Solution. The members of are and . An object lies
in both if and only if it equals (it is in ), and is in ; so . An
object lies in at least one member if and only if it
equals or ; so .
Now let .
Then if and only if ( or ) and , that is, if and
only if and
. Since
, the
element satisfies
this, and any
satisfying it equals . Hence .
Exercise
(B2: Nested pairs)
Write for the pair whose first coordinate is the
pair .
- (a) Prove that if and only if , and .
- (b) Determine
whether . Justify your answer.
Solution.
(a) by . By Theorem 1.2.1
applied to the outer pairs,
and . By
Theorem 1.2.1
again, gives and .
(b) No. Both
sides are pairs, so by Theorem 1.2.1
they are equal only if their first coordinates are
equal. The first coordinates are and , and , since . Hence the two pairs are
different.
C. Going deeper
Exercise
(C1: Exit check: Kuratowski pairs)
Prove that for all sets , if and only if and . You may use Proposition 1.1.2.
Solution. This is Theorem 1.2.1;
its proof above is a complete answer. In outline: is
substitution. For , if , the left side is
, so , giving
. If
, then (else the left
side would have a single member); equals or , the second
being excluded by , so ; and equals or , the first being
excluded by , so and .
Marking scheme. (10 points) - 1:
proves
by substitution. - 2: in the case , identifies and
concludes , hence and . - 3: in the case , shows or ,
excludes the second (via , itself proved), and concludes . - 3: obtains from the remaining
members, excluding and justifying . - 1: joins the two cases into the
conclusion.
Fatal errors (0 for the step): treating as ordered, or
matching “smaller with smaller and larger with larger”
without justification; omitting the case in an argument that
matches the members of the two pairs (or reads off ).
Second route (through and , as in the
“Alternatively” paragraph): reading off earns
the 3 points for ; reading off , with its empty case treated separately,
earns the 3 points for and the 2 points of the case .
Third route (comparing and of the two
pairs): showing and
for every pair (no case split is needed), then getting
from and from by Proposition 1.1.2
(d), earns the 3 + 3 points and also the 2 + 1 points of
the case structure; with this is
10.
Exercise
(C2: Find the error)
Here is an argument for Theorem 1.2.1,
direction .
- Let . (2) Matching the members of and
in the order written, and . (3) From , . (4) Then , and
so .
Is the conclusion true? Does the argument prove it?
If not, name the first line that fails, the rule it
breaks, and give a counterexample to that step.
Solution. The conclusion is
true: it is Theorem 1.2.1.
The argument does not prove it. The first failing
line is (2). It uses the rule “if , then and ”, which treats a set with two members as
if it were ordered. No result of Section 1.1 gives this
rule: Proposition 1.1.2
(d) allows the crossed matching and as well. A
counterexample to the step: take
and . Then by (Z1),
but ,
since and .
For pairs the two equations of line (2) happen to be
true, since they follow from the theorem. But showing
that the members of and match in this way is the work of the proof:
Case 1 handles , where has a single member, and Case 2 rules
out and before
matching. So line (2) assumes what is to be proved. This
is entry (N9) of Logic and Proof, Example (What is not allowed):
line (2) cites a general rule that is false, and for
pairs the matching it asserts is the goal itself.
A second, lesser point concerns line (4). “, so
” is true for
all , but it
needs a reason: Proposition 1.1.2
(d) with . The
disjunct gives directly, and the disjunct gives
. No
hypothesis
is needed, and an answer saying so is correct.
Repair: split into the cases and , as in the proof
of the theorem.
Exercise
(C3: Wiener’s encoding)
For sets and
let . Prove that if and
only if and
.
Solution (Hint 1). The empty set is
a marker. Which member of has as an
element?
Solution (Hint 2). Let and . Show first that and .
Solution. by .
Let , , , , and suppose . We have and . On
the other hand : the only element of is , and
because . Likewise .
So and
,
and in each set of members exactly one member has as an
element.
Since , or ; the second is impossible, since and .
So .
Since , or ; the first is impossible, since and
.
So .
From , Proposition 1.1.2
(d) gives (and ),
or (and ). The
second is impossible, as . So , and by Proposition 1.1.2
(d) again. From , the same proposition gives and then
.
Unlike Theorem 1.2.1,
this proof needs no case : the marker tells the two
members apart whatever and are.
Marking scheme. (10 points) - 3:
shows and (with the reason ), and
likewise for , . - 3: matches
and
,
excluding the crossed matches by the marker. - 2:
derives from
,
excluding . - 2: derives from .
Fatal errors (0 for the step): assuming the members
match in the order written; using Theorem 1.2.1,
which is about a different set.