The construction of the rationals follows a very similar procedure to the construction of the integers. The main difference is that here, I am interested in learning how to divide integers, rather than subtract naturals.

Note:

I wrote this page assuming the reader is comparing it with the one linked before, it will double the benefit of reading this one. Most ideas are the same, changing the sum to a product and ensuring everything works well.

Consider the following equation.

In , this will not always have a solution, for instance . How do I “add” the missing solution to produce a larger structure?

The set of rationals is a quotient

I want to be able to talk about an object of the form  from within the naturals. In the above example, such an object would indeed solve the equation, namely . I will encode this sought behavior by means of an equivalence relation defined as follows.

Definition.

Let be the relation on defined by if and only if .

By now, this should be a routine exercise: is an equivalence relation. The equivalence classes are called rational numbers, and .

Definition (Addition and multiplication in ).

Exercise.

Lemma.

The addition and multiplication of rationals is well-defined, associative, commutative and distribute over each other. (Definition for all these words is found here.)

The rationals contain the integers

Theorem (Embedding of in ).

There is an injective function that preserves the algebraic and order structures of .

Proof:

Define .

Theorem.

There is a unique rational such that , whenever . Note here that the rational number really is .

I denote the rational by the symbol .

Proof:

Suppose that and similarly for , then take .

Congratulations! You have learned to divide numbers.

The order of

Unlike the integers, the order of my new structure is actually significantly more complex than that of the integers.

Theorem ( is dense).

Let be rationals. Then there exists a rational such that .

Proof:

Simply take . The details are left to the reader.

The reals

The construction of the reals is considerably longer than the constructions I presented so far. I chose to skip it entirely.

In simple terms, the reals satisfy the same properties of ordered field that the rationals do, with the added bonus that it has no holes. This idea is made precise in the Topology chapter of the course.

Lemma.

Let be integers and their GCD. Then, . Clearly, . This is called the reduced form of the fraction.

Proven here.

Theorem.

There is a real number such that , but such a real cannot be rational.

Proof:

I only focus on the second statement, as the existence is trickier than you might think.

By contradiction, suppose that for and integers. By the lemma, I can assume that , since otherwise, I can divide both numbers by their GCD until it is in reduced form.

It follows from that is an even number. Since 2 is prime, by Euclid’s lemma, must also be even, say . But then, , which by the same argument means that must be even. This contradicts .

Exercise.

Generalize this to: the -root of a prime number is never rational.