Section 2.1 built as the set of classes
of on , and gave
each integer a normal form (Proposition 2.1.2).
The integers cannot yet be added. Every operation on
classes will be defined by a formula on representatives,
and Sets, Relations, and Cardinality, Section
2.5 showed what can go wrong: a formula that gives two
answers for one class (Sets, Relations, and Cardinality, Example (A rule on classes that is not a function)).
This section proves, once and for all, the lemma that
says when such a formula defines a function. It then
uses the lemma for the sum, product and negative of
integers, and finds a copy of inside .
Definitions
through representatives
In Sets, Relations, and Cardinality, Section
2.5 the addition of was defined by
, and Sets, Relations, and Cardinality, Proposition 2.5.5
checked that the right side depends only on the classes,
not on the integers and used to name them. In
Sets, Relations, and Cardinality, Example (A rule on classes that is not a function)
the same kind of formula, , gave
one class two values, and so defined no function.
The same situation will recur throughout this volume:
for in this
section, for in
Section 2.4, and for later in this volume.
Each time, a set is a quotient , and something
is defined on it by a formula on elements of . Rather than repeat the
argument of Sets, Relations, and Cardinality, Proposition 2.5.5
for every formula, we separate it into two parts: a
general lemma, proved here once, which turns a
check on representatives into a
function on classes; and the check itself, which is
different for each formula and is all that remains to do
each time.
A rule “ something computed from ” is called well
defined when representatives of the same class
always give the same result. The lemma below says that
being well defined is enough, in three settings: a map
from one quotient to another, a binary operation on a
quotient, and a property of classes.
The
lemma
A rule on classes is a function as soon as
equivalent inputs give equivalent outputs.
Theorem
2.2.1 (Functions on Classes)
Let be an
equivalence relation on a set , and an equivalence
relation on a set . Classes are taken for
in and for in .
- (a) Let be a
function such that, for all , implies
. Then there is exactly
one function with for every
.
- (b) Let
be a function such that, for all , Then there is exactly one
function with
for all .
- (c) Let be such
that, for all , and imply . Let . Then, for every
, if and
only if .
In words: (a) says that a map on elements that
respects the two relations passes to a map on classes;
(b) says that a binary operation that respects in each
argument separately passes to an operation on
classes; (c) says that a property that respects can be asked of a
class, and the answer is the answer for any of its
representatives. Clause (a) will give the negative of an
integer, (b) its sum and product, and (c) the positive
integers in Section 2.3.
Idea. A function is a graph with
exactly one output for each input (Sets, Relations, and Cardinality, Definition 1.4.1).
The obvious graph is the set of all pairs . It has at
least one output for each class, because every class is
some . The only
danger is two outputs for one class, coming from two
representatives
and of it;
Sets, Relations, and Cardinality, Theorem 2.5.1
(b) turns “same class” into , the
hypothesis turns that into ,
and Sets, Relations, and Cardinality, Theorem 2.5.1
(b) turns it back into “same output”. For (b) the same
plan works, once the two one-argument hypotheses are
chained into one statement about both arguments by
transitivity.
Proof. (a) Let a set by specification (Sets, Relations, and Cardinality, Definition 1.1.3).
We check the two clauses of Sets, Relations, and Cardinality, Definition 1.4.1.
(Fn1): every is for some (Sets, Relations, and Cardinality, Definition 2.5.4),
and then . (Fn2): suppose and , say
, , and , .
Then , so by Sets, Relations, and Cardinality, Theorem 2.5.1
(b). By the hypothesis, , so by
Sets, Relations, and Cardinality, Theorem 2.5.1
(b), that is, . So , the function with
graph and
codomain , is a
function , and because
.
For uniqueness, let also satisfy for
every . Every
is
some , and then
. The two functions have the same domain
and codomain, so by Sets, Relations, and Cardinality, Proposition 1.4.1.
(b) First, for all with and , by the first hypothesis (with fixed) and the second
(with
fixed). By transitivity, (Eq3) of Sets, Relations, and Cardinality, Definition 2.5.1,
.
Now let be
the set of such that and for some
, a set
by specification. (Fn1): an element of is a pair of classes (Sets, Relations, and Cardinality, Definition 1.3.2),
and , for some (Sets, Relations, and Cardinality, Definition 2.5.4);
then . (Fn2): suppose and lie in , with , , and ,
. From the characteristic property of pairs
(Sets, Relations, and Cardinality, Definition 1.3.1)
gives and , so and by Sets, Relations, and Cardinality, Theorem 2.5.1
(b). By the first paragraph, , so by Sets, Relations, and Cardinality, Theorem 2.5.1
(b). So , with
codomain ,
defines a function with .
Uniqueness is as in (a), by Sets, Relations, and Cardinality, Proposition 1.4.1.
(c) If , then by the
definition of . If , then
for
some .
By Sets, Relations, and Cardinality, Theorem 2.5.1
(b), ,
so by
(Eq2). The hypothesis, applied to and , gives .
This proves the theorem.
The functions
and are said to
be induced by and . In practice we write
the conclusion of (a) as “the rule is
well defined”, and of (b) as “the operation is well defined”, and the work is always
the check of the hypotheses.
Sum,
product and negative of integers
To guess the formulas, borrow the school picture once
more. If
records “” and
records
“”, then
school algebra gives These identities are a
heuristic: they come from the school
integers, which this chapter does not assume, and they
are used only to find the definition. Each right side is
again a difference of two natural numbers, so it can be
recorded as a pair.
Definition
2.2.1 (Sum, Product and Negative of
Integers)
For all , let The sum and product are the functions that Theorem 2.2.1
(b), with and the equivalence relation of Proposition 2.1.1,
induces from the maps ,
given by the pairs on the right; the
negative is the function that Theorem 2.2.1
(a) induces from . We also write for .
In words: to add integers, add representatives
coordinatewise; to multiply, use the cross formula; to
negate, swap the coordinates. All the arithmetic on the
right happens in , where it is always
possible. The definition is legitimate only if the
hypotheses of Theorem 2.2.1
hold for the three maps on pairs; the next proposition
checks them, and until then the three formulas are
rules, not yet functions.
The move used in the proof is the one this chapter is
built on.
Check on representatives, one argument at a
time. To show that is well defined, change to an equivalent with fixed, then change
to an equivalent
with fixed. Each change
is a computation at the level below, in here; Theorem 2.2.1
(b) joins the two by transitivity.
Proposition
2.2.2 (The Operations on Integers Are Well
Defined)
The maps and
of Definition 2.2.1
satisfy the hypotheses of Theorem 2.2.1
(b), and the map satisfies those of Theorem 2.2.1
(a), with on
both sides. Hence the sum, product and negative of Definition 2.2.1
are well-defined functions.
Idea. Each hypothesis is an
equation in to
be derived from another. The given equation is the
cross-sum equation for ; the target is the
cross-sum equation for the two outputs. For the sum,
adding to
both sides of the given equation and rearranging is
enough. For the product, the target has and in every term, so we
multiply the given equation by , and separately by
, and add the
results; the rest is rearranging. Both formulas are
unchanged when the two input pairs are swapped, so the
second argument costs nothing.
Before reading on: why may we change one argument
at a time, rather than both at once?
Proof. Let with , that is,
All rearrangements below use Theorem 1.5.3:
commutativity and associativity of , commutativity of , and
distributivity.
Sum, first argument. We need , that is, . The left side is ,
which by Eq. 2.2.1
equals , and that is the right side rearranged.
Product, first argument. We need that is, the cross-sum equation
(2.2.2)
Multiply both sides of Eq. 2.2.1
by and use
distributivity: . Multiply both sides of Eq. 2.2.1,
read from right to left, by : . Adding these two equations, The left side rearranges to the left side of
Eq. 2.2.2,
and the right side to its right side. This proves Eq. 2.2.2.
Second arguments. By commutativity in , , and
likewise So if , then, by the first-argument
case applied with the roles of the two pairs exchanged,
for and . This is the second hypothesis of Theorem 2.2.1
(b).
Negative. The pair is related to
when , and that is Eq. 2.2.1
read from right to left. This is the hypothesis of Theorem 2.2.1
(a).
By Theorem 2.2.1
(b) and (a), the three rules define functions ,
and , as claimed.
The answer to the prompt is the first paragraph of
the proof of Theorem 2.2.1
(b): two one-argument changes,
and , are joined by transitivity
of . Changing
both at once is also possible, but the computation then
mixes four equations in eight unknowns; one argument at
a time keeps each computation to a single
hypothesis.
Rules that
fail
Every check happens in the hypotheses of the lemma.
Here they fail, next to a rule where they hold.
Example
(The first coordinate is not a function of the
class)
- (a) Does the rule
define a function ?
- (b) Does the rule
define a function ?
- (c) A student
argues: “Each integer has a pair with least
first coordinate, by Theorem 1.6.2
applied to the non-empty set of first coordinates of the
pairs in ; call
that least first coordinate . Then is a function , since each
determines its
own least first coordinate. So is a
function, namely ,
with for every .” Find the error.
Solution.
(a) No. , since
, so
by Sets, Relations, and Cardinality, Theorem 2.5.1
(b). Read with the representative , the rule gives
; read with , it gives . One input gets two
values, and (Fn2) of Sets, Relations, and Cardinality, Definition 1.4.1
fails. The hypothesis of Theorem 2.2.1
(a), with and equality on as (so that
means ), fails at , .
(b) Yes. Let
, so . Then by Theorem 1.5.3
(b), (c), which is . By Theorem 2.2.1
(a), the rule is a function. In fact it is ,
since .
(c) The
conclusion is false, by (a), so some step fails. The
function is fine:
the least first coordinate is computed from the set
alone. The
failing step is the last clause, “ for every
”. It holds
only when
happens to be the pair with least first coordinate. The
argument chose a particular representative to define
, and then used an
arbitrary one. Counterexample to the
step: contains , so , while the representative has first
coordinate .
Warning. A formula that
looks right need not be well defined. “, like the sum” is not a definition:
,
since , but with the outputs are and , and ,
since . And well defined is necessary, not
sufficient. The rule is well defined, since
it is the negative of the product; but it gives , so the “square” of the
class of is
that class itself, not . Well-definedness says that a rule is a
function; whether it is the right function is a separate
question.
The natural
numbers inside the integers
The integers were built to contain the natural
numbers and more. They do not literally contain them:
the natural number is the empty set (Definition 1.5.1
(c)), while every integer is a non-empty class (Sets, Relations, and Cardinality, Theorem 2.5.1
(a)), so . What contains is a
copy of , the classes in
normal form , and the copy has the same arithmetic.
Proposition
2.2.3 (The Natural Numbers Embed in the
Integers)
Let , .
- (a) is injective, and
for all ,
- (b) For every , and
. For every , .
- (c) .
Idea. The identities in (a) and (b)
are computations with the formulas of Definition 2.2.1
in which at least one operand is some , and
its zero second coordinate makes most terms vanish.
Injectivity and (c) are the two halves of Proposition 2.1.2:
(b) of it says that different natural numbers give
different classes, and (a) says that every class is in
normal form.
Proof. (a) If , then
, so by Proposition 2.1.2
(b); hence is
injective (Sets, Relations, and Cardinality, Definition 1.4.3).
By Definition 2.2.1,
since (Definition 1.5.1
(a)), and since (Definition 1.5.1
(b)),
(Theorem 1.5.3
(e)) and .
(b) Let . Then , and
by Theorem 1.5.3
(e) (,
) and
. Finally,
, so ,
using (Theorem 1.5.3
(a)).
(c) Both sets on
the right consist of integers. Let . By Proposition 2.1.2
(a),
or for
some . In
the first case . In the second, by Definition 2.2.1.
So lies in the
right side.
Identification. From now on we write
for and regard as a subset of . This is a convenient
abuse of notation, and (a) makes it honest: because
is injective,
different natural numbers stay different; because preserves and , a sum or product
of natural numbers is the same whether computed in or in . One could rebuild
so that it
contains
literally, by putting each in place of , but nothing
later needs it. The order of is matched to an
order on in
Section 2.3.
With this convention, (b) reads : the
pair records
the difference it was meant to record. The notation
is defined in
Section 2.3, where is set up in every ring at
once. Clause (c) reads which is word for word the definition of the
integers in Sets, Relations, and Cardinality,
Section 2.1. There it was a definition inside the
familiar real numbers; here it is a theorem about a set
built from .
The positive integers keep the definition of Sets,
Relations, and Cardinality, Section 2.1, which mentions only , and so is now a
subset of . In
particular has the solution in
, since by Proposition 2.1.2
(a).
Quick check. Compute
from Definition 2.2.1,
and write the two factors and the product as or with .
Solution. . By Proposition 2.1.2
(a): , so
; , so ; and , so . So the product of and is , as school predicts;
here it is a computation in , not a rule of
signs.
The integers now have a sum, a product and a
negative, each a function on classes, and they contain a
copy of with
its arithmetic. Section 2.3 checks that these operations
obey the usual laws, by reducing each law to a law of
, and defines
the order.
Exercises
A. Check your
understanding
Exercise
(A1)
These questions are about the proof of Proposition 2.2.2.
- (a) Which hypothesis
of Theorem 2.2.1
(b) does the computation leading to Eq. 2.2.2
verify?
- (b) Run that
computation with , and : check
that , compute both outputs, and check that
they are equivalent.
- (c) Where in the
proof are the laws of arithmetic in used?
- (d) Give the idea of
the proof in two sentences.
Solution.
(a) The first:
for all , implies , with , , .
(b) , so
.
The outputs are and , so they are equivalent. The two
intermediate equations are , here , and , here , since . Both outputs are
representatives of , and indeed .
(c) In every
rearrangement: commutativity and associativity of (to regroup the
four-term sums), distributivity (to multiply Eq. 2.2.1
by and by ), and commutativity of
and (in the second-argument
step, to see that both formulas are symmetric in the two
input pairs).
(d) A change of
representative in one argument is an equation in , and multiplying it
by and by and adding gives
exactly the cross-sum equation for the two products. The
second argument follows by symmetry of the formula, and
transitivity (inside Theorem 2.2.1
(b)) combines the two changes.
B. Practice
Exercise
(B1: Two rules that pass the check)
Prove that each rule defines a function , and identify
it in terms of the operations of Definition 2.2.1.
- (a) .
- (b) .
Solution.
(a) Let , that is, . The target is , the same equation read
from right to left. By Theorem 2.2.1
(a), the rule is a function. It is the negative of Definition 2.2.1.
(b) Every output
is the zero class: , since . So for the outputs and are both related to , hence to each
other by (Eq2) and (Eq3) of Proposition 2.1.1,
and Theorem 2.2.1
(a) applies. The function is the constant map , where .
In terms of Definition 2.2.1
it is , since by Theorem 1.5.3
(b).
Exercise
(B2: Determine which)
Determine which of the following rules define a
function. Justify your answer.
- (a) , .
- (b) , .
- (c) , , where .
Solution.
(a) No. ,
since , but the rule gives for the first
representative and for the second.
(b) Yes. If ,
then by distributivity (Theorem 1.5.3
(d)) which is ; Theorem 2.2.1
(a) applies. The function is : , and by (Definition 1.5.1
(c)) and Theorem 1.5.3
(d), (e).
(c) No. ,
since . The rule gives for the first
representative and for the second, and ,
since .
C. Going deeper
Exercise
(C1: Properties of classes, and an operation that half
works)
- (a) Prove Theorem 2.2.1
(c), and give an example, different from the one in the
remark after the theorem, of a subset for which its conclusion fails for of Definition 2.1.1.
- (b) Give an example
of an equivalence relation on and a function such that the first hypothesis of Theorem 2.2.1
(b) holds and the second fails. Check each property, and
show that no function as in the conclusion of
(b) exists for your example.
Solution.
- (a) Proof.
Let . If
, then by the
definition of . Conversely, if , there is
with
;
then
(Sets, Relations, and Cardinality, Theorem 2.5.1
(b)), so by symmetry, and the hypothesis on , applied to and , gives .
Example. Let . Then , so ; and , so , but
.
The hypothesis fails at . Any example must contain a pair
of and an
equivalent pair outside , since that is exactly
the negation of the hypothesis.
- (b)
Example. On , let mean “ if and only if
”. This is an
equivalence relation: it says that and have the same value
under the function sending to and every other number
to , so it is an
equivalence relation by Sets, Relations, and Cardinality, Example (The fibers of a function).
Its two classes are and . Let
First hypothesis holds. Let and . If , then . If , both values are , and .
Second hypothesis fails. , since neither
is ; but and , and .
No induced . If
held for all ,
then, since , we would get , and because .
What any example must have. (i) is not equality:
some class has two elements with , else the
second hypothesis holds trivially. (ii) has at least two
classes, else every two outputs are related and both
hypotheses hold. (iii) For some and some , the values
and lie in
different classes, while for every , changing within its class never
moves out
of its class. A different answer can be checked against
(i)–(iii).
Exercise
(C2: One at a time or both at once)
Let be an
equivalence relation on and
a function. Prove that the hypotheses of Theorem 2.2.1
(b) hold if and only if, for all , Name the property of that each direction
uses.
Solution. Let and . The first
hypothesis, with
fixed, gives ; the second, with fixed, gives . By transitivity
(Eq3), . This direction is the first
paragraph of the proof of Theorem 2.2.1
(b).
Let
and
. By
reflexivity (Eq1), , so the
displayed condition with gives : the first hypothesis. Likewise and give : the second.
So the two forms are interchangeable. The
one-at-a-time form is the one to check, because each
check involves a single hypothesis ; the
both-at-once form is the one the proof of the lemma
uses.