Section 2.3 made an ordered
commutative ring and showed, in a Quick check, that
is not a field,
because has
no solution in it. This section repairs that defect the
way Section 2.1 repaired the missing subtraction in
. There, a pair
recorded
“” without
performing it; here a pair records “ divided by ” without performing it.
We define as a
set of classes of such pairs, give it addition and
multiplication through representatives, check that they
are well defined, and prove that is a field containing
a copy of .
Fractions
as pairs
At school, , and are “the same
number”, and the test for sameness is
cross-multiplication: when . The test is the
useful part. It mentions only multiplication of
integers, which we have, and not division, which we do
not. So we keep the test and let a rational number
be what the equivalent fractions have
in common: the class of all of them.
A rational number is a quotient you have not
computed yet: the set of all fractions that would
compute to it.
Signs need a decision. The fractions and name the
same number, and allowing both would put a sign in two
places. We require the denominator to be
positive, so that a sign can sit only in the
numerator. This is the convention Sets, Relations,
and Cardinality, Section 2.5 already used for its
fractions, and Section 2.5 below will profit from it:
there, the order of is read off a single
inequality between integers. Recall that , by Theorem 2.3.4
(b).
On , let mean
. We reuse
the symbol of
Section 2.1; which relation is meant is always clear
from the pairs, natural numbers there and an integer
with a positive integer here.
Idea. Reflexivity and symmetry are
just reflexivity and symmetry of : with this form of the
test, reads . For transitivity we are given and , and want . Multiply the
first equation by
and use the second to replace : this gives . We cannot
divide by , but
has no zero
divisors, so a factor can be canceled.
Proof. Let . All computations are in the
commutative ring (Theorem 2.3.1).
(Eq1) ,
so .
(Eq2) If , then , so .
(Eq3) Let and . Then, using (F5), (F6) and the two
hypotheses, Hence , by (F9) and Proposition 2.3.2
(c). Since , , so by (O1). By Proposition 2.3.5
(f), ,
that is, .
So . This proves the proposition.
The hypothesis that denominators are non-zero is used
once, for the middle pair , and it is needed
there. On , with the same formula, (since
) and (since ), but
(since ). The pair is related to everything, and transitivity
collapses through it.
Definition
2.4.1 (The Rational Numbers)
Let be the
equivalence relation of Proposition 2.4.1
on . The set of rational
numbers is the quotient set (Sets, Relations, and Cardinality, Definition 2.5.4)
A rational number is an
element of : a
class with
and . We
call a
numerator and a
denominator of the representative .
In words: a rational number is a set of
pairs, all the pairs with positive
that
cross-multiply with . It is not a pair, and it is not a number
with a sign and a bar. Numerators and denominators
belong to representatives, not to the class: and represent the same
rational number with different denominators. Nothing in
the definition needs checking beyond Proposition 2.4.1,
which makes the quotient set meaningful. By Sets, Relations, and Cardinality, Theorem 2.5.1,
every pair lies in exactly one class, and holds
exactly when .
Examples.
- . Indeed, means
. Then , and would give (Proposition 2.3.5
(b)), so .
Conversely each with has and . Its elements with denominator at
most are , , .
- , since means
. This is
the class that will be the integer .
- The degenerate case: , since means
. Every fraction with numerator lies in this one class,
whatever its denominator; it will be the zero of .
-
contains and
, since and
. It does not contain , which is not
even an element of . Describing the whole class
needs divisibility, which a later chapter of this volume
develops on the constructed .
A non-example by minimal change.
Allow the denominator : take instead of
, with the same formula. Reflexivity
and symmetry survive, by the same lines. Transitivity
fails, as the triple , ,
above shows, so there is no quotient set. Sets,
Relations, and Cardinality, Section 2.5 met the
same failure in an exercise; it is the reason
denominators must be non-zero.
Why positive and not merely non-zero
denominators? Non-zero denominators would also
give an equivalence relation, and, as the last example
of this section shows, essentially the same set . The difference
appears with the order. With positive denominators,
“ is
positive” can mean “”, one inequality in ; with non-zero
denominators, it would have to say “ and have the same sign”,
and a naive comparison of two fractions breaks, as the
warning at the end of this section shows.
Warning. Do not read as the number
. There is no
division in ,
and has no
multiplication yet, so “” means nothing at
this point. The class is a set of pairs, and any
statement made with one representative, such as “the
denominator of is ”,
must be checked against all of them (here it fails:
is also in
the class). The fraction notation becomes honest once
is placed
inside , in Proposition 2.4.4
and the identification that follows it.
Quick check. Is in
?
Solution. The question is
malformed: , so is not an
element of , and says nothing about
it. In the variant with non-zero denominators (the last
example of this section), the answer is yes: .
This construction pays a debt. Sets, Relations,
and Cardinality, Section 2.5 described as the quotient of
by cross-multiplication while was still the school
integers; now
is the ring of Section 2.3, and the quotient is the
definition of .
Adding and
multiplying classes
The school rules and are a heuristic
for the definition, nothing more; the definition below
does not depend on them, and the proofs never use
them.
Definition
2.4.2 (Operations on the Rationals)
For , define
The right-hand sides are classes of elements of :
since and
, by (O4), so
by Theorem 2.3.4
(b). Each formula is computed from chosen
representatives, so the definition is
legitimate only once we know that other representatives
give the same class. That is the next proposition.
Proposition
2.4.2 (The Operations on the Rationals Are Well
Defined)
Let , with as in Proposition 2.4.1.
The maps from to
satisfy the hypotheses of Theorem 2.2.1
(b), and satisfies the hypothesis of Theorem 2.2.1
(a). Hence , and of Definition 2.4.2
are functions , and .
Idea. This is the move of Section
2.2, check on representatives, one argument at a
time. Change the first pair to an equivalent
one with the second fixed, then the second with the
first fixed; Theorem 2.2.1
(b) joins the two changes by transitivity. Each change
is one identity in : expand both
cross-products and use the hypothesis (or
)
once.
Proof. All computations are in the
commutative ring (Theorem 2.3.1),
and we reorder products by (F5), (F6) without
comment.
Multiplication, first argument. Let , so , and let . We need
, that is, . Indeed
Multiplication, second argument. Let , so , and let . We need
. Indeed
Addition, first argument. Let . We
need , that is, . By (F9), and the right-hand sides are equal because
.
Addition, second argument. Let . We
need , that is, . By (F9), and the right-hand sides are equal because
.
Negation. If , then
by Proposition 2.3.2
(c), so .
So and satisfy the
hypotheses of Theorem 2.2.1
(b): for a change of both arguments, , and transitivity joins the
two steps, which is what the proof of that lemma does.
By its conclusion, there is exactly one function
with , and likewise for . By Theorem 2.2.1
(a), is a function . This proves
the proposition.
Not every formula in representatives passes this
test, and the failures are instructive.
Example
(Formulas that ignore the class)
Decide which of the following rules define a function
on .
- (a) .
- (b) .
- (c) .
Solution.
(a) Not a
function. , since , yet the rule gives for one
representative and for the other. A function has one value at
each argument (Sets, Relations, and Cardinality, Definition 1.4.1),
and this rule offers two at the same class.
(b) Not a
function, for the same pair: the outputs are and .
(c) A function.
First,
by Proposition 2.3.5
(e), as , so
. If , then
by (F5), (F6), so , and Theorem 2.2.1
(a) applies. The function is ,
since by Definition 2.4.2.
The tempting argument for (a) runs: “a rational
number
is , so and are determined by , and so is ”. Its conclusion is
false, and the flaw is the word “is”: is
a representative of , and is another, just
as legitimate. A rule defined through representatives is
a function on classes only when every representative
gives the same value, and that has to be proved, as in
(c).
The ring axioms for are checked by the
move of Section 2.3, reduce to the level
below: each side of an axiom, written on
representatives, is the class of an explicit pair in
, and the two pairs are compared by
an identity in .
One small observation recurs: for every and , here by (O4), so by Theorem 2.3.4
(b), and the relation makes sense. Scaling both entries
by the same positive integer does not change the
class.
Theorem
2.4.3 (The Rationals Form a Field)
, with the
operations of Definition 2.4.2,
is a field (Definition 2.3.1),
with zero
and one . A
rational number is zero if and only if . If , its inverse is
; if , its inverse is
.
Idea. Eight laws are identities
between pairs of integers, checked in a table as for
. As there, (F4)
gives pairs that are related rather than equal; here
(F9) does too, and the scaling observation is what
relates them. The genuinely new axiom is (F8): inverting
should
swap numerator and denominator, and the sign of decides whether the
swapped pair is allowed.
Proof. By Proposition 2.4.2,
the operations are functions. Let ; by Sets, Relations, and Cardinality, Definition 2.5.4,
, , with and .
As in Section 2.3, “equal” means that the two pairs are
the same pair of integers, by the laws (F1)–(F9) of
(Theorem 2.3.1);
“related” means that they are related by , so that the classes
agree by Sets, Relations, and Cardinality, Theorem 2.5.1
(b).
| (F1) |
|
|
equal |
| (F2) |
|
|
equal: both first entries are |
| (F3) |
|
|
equal, by Proposition 2.3.2
(b) |
| (F4) |
|
|
related: |
| (F5) |
|
|
equal |
| (F6) |
|
|
equal |
| (F7) |
|
|
equal |
| (F9) |
|
|
related: the right pair is the left pair scaled by
|
In (F4), by Proposition 2.3.2
(c), and by Proposition 2.3.2
(b). In (F9), the right side is ; its first entry is and its second is , so the
scaling observation above, with , relates it to the
left pair.
The zero. if and only if ,
that is, .
. would need in , which Theorem 2.3.1
excludes.
(F8). Let , so . If , then , so
, and since . If , then by Proposition 2.3.5
(a), so , and by Proposition 2.3.2
(c) and . By (O1), one of the two cases
occurs. So every non-zero element has an inverse, and
is a field.
This proves the theorem.
Six rows of the table are “equal” and two, (F4) and
(F9), are “related”; the second needs the scaling
observation because the sum formula multiplies the
denominators and
, so their common
factor appears
twice. The case split in (F8) is the price of the
convention: the obvious inverse of a negative
is not a
class at all, since its “denominator” is negative, and we
must move the sign to the numerator.
Quick check. Compute and
, and
check the second answer by multiplying.
Solution. . For
the
numerator is negative, so the inverse is . Check: , and since .
The
integers inside the rationals
As sat
inside through
(Proposition 2.2.3),
sits inside
through the
classes with denominator .
Proposition
2.4.4 (The Integers Embed in the
Rationals)
Let , . Then is injective, and for
all ,
with and . Moreover, writing in
the field :
- (a) for and , ;
- (b) every rational
number is
for some
and , and for and ,
if and only if ;
- (c) .
Idea. The classes with denominator
add and multiply
exactly as their numerators do, by the formulas of Definition 2.4.2
with . For
(a), is
the inverse of , and multiplying it by gives ; (b) and (c) are
(a) read through Sets, Relations, and Cardinality, Theorem 2.5.1.
Proof. Injective. If , then by Sets, Relations, and Cardinality, Theorem 2.5.1
(b), that is, , so .
Operations. By Definition 2.4.2,
, , and . Also and are the zero and one of (Theorem 2.4.3).
(a) Since , ,
and by Theorem 2.4.3
its inverse is (the case of a positive numerator; inverses
are unique, Section 2.3). Hence
(b) Every element
of is for some (Sets, Relations, and Cardinality, Definition 2.5.4),
which is
by (a). By (a) again,
means , which holds if and only if (Sets, Relations, and Cardinality, Theorem 2.5.1
(b)).
(c) Each lies in , and every element of
has this form
by (b). This proves the proposition.
Identification. From now on we write
for , as Section 2.2
wrote for , and regard
as a subset of
; together with
Section 2.2, . This is a convenient abuse,
made honest by :
it is injective and carries , , , and of to those of , so a computation
with integers gives the same result read in or in . (One could replace
by itself inside , but nothing needs
it.) With this convention, (a)–(c) read: The last equation is the description of that Sets,
Relations, and Cardinality, Section 2.1 took as a
definition; it is now a theorem about the constructed
set. The fraction bar is division in the field , and the school rules
for fractions, such as , are now the formulas of Definition 2.4.2
read through (a). The order of , and the fact that
respects it, are
Section 2.5’s business.
Other
denominators
The convention of positive denominators was a choice.
The next example shows that the other natural choice
gives the same set of rational numbers, and where it
would cost us.
Example
(Non-zero denominators give the same rationals)
Let , and for let
mean . Show that is an equivalence
relation on , and
that is a well-defined bijection.
Solution. Equivalence
relation. The proof of Proposition 2.4.1
works on with two
changes: the pairs are taken in instead of ,
and the line deriving from is dropped, since in the middle denominator
is non-zero by
definition. That is the only property of the
denominators the proof uses.
Well defined. Apply Theorem 2.2.1
(a) to the inclusion from to
: if , then , which
says .
Injective. If , then by Sets, Relations, and Cardinality, Theorem 2.5.1
(b), so , so and .
Surjective. Let , with . By (O1), or . If , the class is . If , then (Proposition 2.3.5
(a)), and , since by
Proposition 2.3.2
(c); so the class is .
So is a
bijection: the two constructions have “the same”
rational numbers, matched by .
Warning. The rule “ if and only if ” is
not well defined on . Compare
with : ,
that is, ,
true. Now replace by the equivalent : the rule asks
whether , that is, , which is
false. Multiplying an inequality by a negative
denominator reverses it (Proposition 2.3.5
(d)), so the rule’s verdict depends on the
representative. With positive denominators this cannot
happen, which is why Definition 2.4.1
uses them.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) In Definition 2.4.2,
why is ?
- (b) Where does the
proof of transitivity in Proposition 2.4.1
use that a denominator is non-zero, and which
denominator is it?
- (c) Find the inverse
of in
, as a class
with positive denominator.
- (d) True or false:
. Give a reason.
Solution.
(a)
means and
(Theorem 2.3.4
(b)); then by (O4), so , again by Theorem 2.3.4
(b).
(b) In the last
step: from it concludes by Proposition 2.3.5
(f), which needs . Here
is the denominator of the middle pair
.
(c) The numerator
is negative, so
by Theorem 2.4.3
the inverse is . Check: ,
since .
(d) True. has
positive numerator, so its inverse is by Theorem 2.4.3;
directly, .
B. Practice
Exercise
(B1: Three rows in detail)
Let , , be rational numbers. Verify in detail,
naming the law of used at each step,
the rows (F9), (F4) and (F2) of the table in the proof
of Theorem 2.4.3.
Solution. All operations are those
of Definition 2.4.2;
(F1)–(F9) refer to the laws of (Theorem 2.3.1).
(F9). , so by (F9) and (F5). On the other side,
and
, so
by (F5), (F6) and (F9). The pairs and are related, since by (F5),
(F6). By Sets, Relations, and Cardinality, Theorem 2.5.1
(b), .
(F4). , so . By Proposition 2.3.2
(c), ,
so the numerator is by (F4). The pair is related to
, since (Proposition 2.3.2
(b)). So .
(F2). , so by (F9), (F5), (F6). And ,
so by the same laws. The pairs are equal, so
.
Exercise
(B2: Addition is well defined)
Prove, without looking back at Proposition 2.4.2,
that the addition of Definition 2.4.2
is well defined. The first half is done for you.
Change the first argument. Let , that is, , and
fix . Then
so .
Name the move, then complete it.
Solution. The move is check
on representatives, one argument at a time:
having changed the first argument with the second fixed,
change the second with the first fixed, and join the two
changes by transitivity.
Change the second argument. Let , that is, , and
fix . Then,
by (F5), (F6), (F9) in , so .
Join. Let and . Write for the sum formula on
representatives. The first step, with fixed, gives ; the second, with fixed,
gives . By transitivity (Proposition 2.4.1),
, so the
classes and are equal (Sets, Relations, and Cardinality, Theorem 2.5.1
(b)). These are exactly the hypotheses, and the
conclusion, of Theorem 2.2.1
(b), which then gives addition as a function .
C. Going deeper
Exercise
(C1: The least denominator)
- (a) Show that the
rule “” does not define a function .
- (b) Prove that there
is exactly one function such that, for every
, is the least for
which
for some .
- (c) Compute , justifying that
no smaller denominator is possible.
Solution (Hint 1). For (b), fix
and look at the
set of all denominators of representatives of . Which result of
Section 2.3 gives a least element?
Solution (Hint 2). Let .
It is non-empty because a class contains its
representative.
Solution.
(a) ,
since , but the rule gives for one representative
and for the
other. A function has one value at each argument (Sets, Relations, and Cardinality, Definition 1.4.1).
(b) For , let .
Note that holds if and only if . If , then by Sets, Relations, and Cardinality, Theorem 2.5.1
(a). Conversely, write (Sets, Relations, and Cardinality, Definition 2.5.4);
then
means (Sets, Relations, and Cardinality, Definition 2.5.2),
so by Sets, Relations, and Cardinality, Theorem 2.5.1
(b). So is the
set of denominators allowed in the definition of .
has a
least element. By Sets, Relations, and Cardinality, Definition 2.5.4,
for some pair, and by Sets, Relations, and Cardinality, Theorem 2.5.1
(a), so
and is
non-empty. Every element of is positive, so is an integer lower
bound. By Proposition 2.3.6,
has a least
element, and it is unique, by antisymmetry of (Proposition 2.3.5
(i)).
Existence and uniqueness of . Let be the function whose
graph is .
Each has exactly
one partner , so
is a function (Sets, Relations, and Cardinality, Definition 1.4.1),
and it has the required property. Any function with the
property must take the value at every , so it equals (Sets, Relations, and Cardinality, Proposition 1.4.1).
Unlike the rule in (a), is defined from the
class itself, not
from a chosen representative, so there is nothing to
check for well-definedness.
- (c) by Proposition 2.4.4
(a). A pair
lies in this class if and only if .
- is
impossible: it needs . By discreteness (Theorem 2.3.4
(c)), or
. If , then ; if , then , by Proposition 2.3.5
(c) (or equality). Either way , by (O1).
- works:
, so .
Since is the
only element of below (discreteness), .
Marking scheme. (10 points) - 2: (a)
exhibits two representatives of one class with different
denominators. - 2: (b) defines the set of denominators
of from the
class, and shows it non-empty. - 2: (b) gets a least
element from Proposition 2.3.6,
with the lower bound named. - 2: (b) explains why this
defines exactly one function (one value per class; any
such function has those values). - 2: (c) shows has no integer
solution and exhibits . Fatal errors (0 for the step): defining
as
“ divided by a
common factor” (divisibility is not available, and the
formula uses a representative); in (c), “ has no solution
since ”
(uses division in to decide a question
about without
the discreteness argument).
Exercise
(C2: Find the error)
Here is a proof that multiplication on is well defined. Is
the conclusion true? Is the proof correct? If not, name
the first line that fails, the error, and give a
counterexample to the step.
- Let , and let . (2) Then . (3) So . (4) That is,
, so the product does not depend on
the first representative. (5) The second argument is
handled in the same way.
Solution. The conclusion is
true: it is Proposition 2.4.2.
The proof is not correct.
The failing line is (3). Line (2) is
correct: it is (1) restated by Sets, Relations, and Cardinality, Theorem 2.5.1
(b), and says that and name the same class. Line (3) then
multiplies that class by , using the
multiplication of . But that
multiplication is exactly what is being shown to exist:
until it is known to be well defined, “”
has no meaning, or rather means “, computed from
the representative ”, and whether this depends on the
representative is the claim. The line cites the goal,
which is circular: entry (N9) of Logic and Proof, Example (What is not allowed).
Counterexample to the step. The inference
“, so ” fails for formulas
in
representatives. With , the same lines “prove” that
is a function on , since “ is a function of
the class ”. It is not: and
(Example (Formulas that ignore the class)
(a)).
Repair. Replace (2)–(3) by an identity in
: from , , so . Do the same for the second argument,
and conclude with Theorem 2.2.1
(b). Lines (1), (4) and (5) are correct as stated, once
(3) is replaced.
Marking scheme. (10 points) - 2:
says that the conclusion is true and that the proof is
not correct. - 3: names line (3) as the failing line and
explains that it uses the multiplication of , which is being
defined. - 2: names the error as circular, entry (N9). -
2: gives a counterexample to the step (any formula in
representatives that is not constant on classes, such as
). - 1: gives
the repair through the integer identity . Fatal errors (0 for the step):
declaring the conclusion false; blaming line (1) or (2),
which only restate the hypothesis.