The rational numbers have a problem that makes them unsuitable for use in calculus — they have "gaps" in them. This may not be obvious or even make sense at first, because the rational numbers are a dense space — between any two rational numbers you can always find infinitely many other rational numbers. How could there be gaps in a set like that?
But using the construction of Dedekind cuts, we can suss out these gaps into plain view. A Dedekind cut of a totally ordered set is a pair of sets such that:
One example of such a cut might be the set where is the negative rational numbers and is the nonnegative rational numbers (positive or zero). We see that it satisfies the two properties of a Dedekind cut:
In fact, Dedekind cuts are intended to represent sets of rational numbers that are less than or greater than a specific real number (once we've defined them). To represent this, let's call them and .
If a space is complete (doesn't have any gaps in it), then in any Dedekind cut , either will have a greatest element or will have a least element. (We can't have both at the same time — why?)
Suppose had a greatest element and had a least element . We can't have , because the same number would be in both sets. So then because the rational numbers are a dense space, there must exist a rational number so that . Then is not in either or , contradicting property 1 of a Dedekind cut.
But in the rational numbers, we can find a Dedekind cut where neither nor have a greatest or least element respectively.
Consider the pair of sets where and .
So is a Dedekind cut. However, there is no rational number whose cube is equal to , so has no greatest element and has no least element.
This represents a gap in the numbers, because we can invent a new number to place in that gap (in this case ), which is "between" any two numbers in and .
Before we move on, we will define one more structure that makes the construction more elegant. Define a one-sided Dedekind cut as any Dedekind cut with the additional property that the set has no greatest element (in which case we now call it ). The case where has a greatest element can be trivially transformed into the equivalent case on the other side by moving to where it is automatically the least element due to being less than any other element in .
Then we define the real numbers as the set of one-sided Dedekind cuts of the rational numbers.
Now we can define the comparison_operator for two real numbers numbers and as follows: when .
Using this, we can show that unlike in the Cauchy sequence definition, we don't need to define any equivalence classes — every real number is uniquely defined by a one-sided Dedekind cut.
If , then and . By the definition of the comparison operator, we have that and , which means that , which means that the Dedekind cuts corresponding to and are also equal.