# Construction of the real numbers

In mathematics, there are several ways of defining the real number system as an ordered field. The synthetic approach gives a list of axioms for the real numbers as a complete ordered field. Under the usual axioms of set theory, one can show that these axioms are categorical, in the sense that there is a model for the axioms, and any two such models are isomorphic. Any one of these models must be explicitly constructed, and most of these models are built using the basic properties of the rational number system as an ordered field.

## Synthetic approach

The synthetic approach axiomatically defines the real number system as a complete ordered field. Precisely, this means the following. A model for the real number system consists of a set R, two distinct elements 0 and 1 of R, two binary operations + and × on R (called addition and multiplication, respectively), and a binary relation ≤ on R, satisfying the following properties.

### Axioms

1. (R, +, ×) forms a field. In other words,
• For all x, y, and z in R, x + (y + z) = (x + y) + z and x × (y × z) = (x × y) × z. (associativity of addition and multiplication)
• For all x and y in R, x + y = y + x and x × y = y × x. (commutativity of addition and multiplication)
• For all x, y, and z in R, x × (y + z) = (x × y) + (x × z). (distributivity of multiplication over addition)
• For all x in R, x + 0 = x. (existence of additive identity)
• 0 is not equal to 1, and for all x in R, x × 1 = x. (existence of multiplicative identity)
• For every x in R, there exists an element −x in R, such that x + (−x) = 0. (existence of additive inverses)
• For every x ≠ 0 in R, there exists an element x−1 in R, such that x × x−1 = 1. (existence of multiplicative inverses)
2. (R, ≤) forms a totally ordered set. In other words,
• For all x in R, xx. (reflexivity)
• For all x and y in R, if xy and yx, then x = y. (antisymmetry)
• For all x, y, and z in R, if xy and yz, then xz. (transitivity)
• For all x and y in R, xy or yx. (totality)
3. The field operations + and × on R are compatible with the order ≤. In other words,
• For all x, y and z in R, if xy, then x + zy + z. (preservation of order under addition)
• For all x and y in R, if 0 ≤ x and 0 ≤ y, then 0 ≤ x × y (preservation of order under multiplication)
4. The order ≤ is complete in the following sense: every non-empty subset of R bounded above has a least upper bound. In other words,
• If A is a non-empty subset of R, and if A has an upper bound, then A has a least upper bound u, such that for every upper bound v of A, uv.

#### On the least upper bound property

Axiom 4, which requires the order to be Dedekind-complete, implies the Archimedean property.

The axiom is crucial in the characterization of the reals. For example, the totally ordered field of the rational numbers Q satisfy the first three axioms, but not the fourth. In other words, models of the rational numbers are also models of the first three axioms.

Note that the axiom is not firstorderizable, as it expresses a statement about collections of reals and not just individual such numbers. As such, the reals are not given by a first-order logic theory.

#### On models

Several models for axioms 1-4 are given down below. Any two models for axioms 1-4 are isomorphic, and so up to isomorphism, there is only one complete ordered Archimedean field.

When we say that any two models of the above axioms are isomorphic, we mean that for any two models (R, 0R, 1R, +R, ×R, ≤R) and (S, 0S, 1S, +S, ×S, ≤S), there is a bijection f : RS preserving both the field operations and the order. Explicitly,

• f is both injective and surjective.
• f(0R) = 0S and f(1R) = 1S.
• For all x and y in R, f(x +R y) = f(x) +S f(y) and f(x ×R y) = f(x) ×S f(y).
• For all x and y in R, xR y if and only if f(x) ≤S f(y).

### Tarski's axiomatization of the reals

An alternative synthetic axiomatization of the real numbers and their arithmetic was given by Alfred Tarski, consisting of only the 8 axioms shown below and a mere four primitive notions: a set called the real numbers, denoted R, a binary relation over R called order, denoted by infix <, a binary operation over R called addition, denoted by infix +, and the constant 1.

Axioms of order (primitives: R, <):

Axiom 1. If x < y, then not y < x. That is, "<" is an asymmetric relation.

Axiom 2. If x < z, there exists a y such that x < y and y < z. In other words, "<" is dense in R.

Axiom 3. "<" is Dedekind-complete. More formally, for all XY ⊆ R, if for all x ∈ X and y ∈ Y, x < y, then there exists a z such that for all x ∈ X and y ∈ Y, if z ≠ x and z ≠ y, then x < z and z < y.

To clarify the above statement somewhat, let X ⊆ R and Y ⊆ R. We now define two common English verbs in a particular way that suits our purpose:

X precedes Y if and only if for every x ∈ X and every y ∈ Y, x < y.
The real number z separates X and Y if and only if for every x ∈ X with x ≠ z and every y ∈ Y with y ≠ z, x < z and z < y.

Axiom 3 can then be stated as:

"If a set of reals precedes another set of reals, then there exists at least one real number separating the two sets."

Axioms of addition (primitives: R, <, +):

Axiom 4. x + (y + z) = (x + z) + y.

Axiom 5. For all x, y, there exists a z such that x + z = y.

Axiom 6. If x + y < z + w, then x < z or y < w.

Axioms for one (primitives: R, <, +, 1):

Axiom 7. 1 ∈ R.

Axiom 8. 1 < 1 + 1.

These axioms imply that R is a linearly ordered abelian group under addition with distinguished element 1. R is also Dedekind-complete and divisible.

## Explicit constructions of models

We shall not prove that any models of the axioms are isomorphic. Such a proof can be found in any number of modern analysis or set theory textbooks. We will sketch the basic definitions and properties of a number of constructions, however, because each of these is important for both mathematical and historical reasons. The first three, due to Georg Cantor/Charles Méray, Richard Dedekind/Joseph Bertrand and Karl Weierstrass all occurred within a few years of each other. Each has advantages and disadvantages. A major motivation in all three cases was the instruction of mathematics students.

### Construction from Cauchy sequences

A standard procedure to force all Cauchy sequences in a metric space to converge is adding new points to the metric space in a process called completion.

R is defined as the completion of Q with respect to the metric |x-y|, as will be detailed below (for completions of Q with respect to other metrics, see p-adic numbers.)

Let R be the set of Cauchy sequences of rational numbers. That is, sequences

x1, x2, x3,...

of rational numbers such that for every rational ε > 0, there exists an integer N such that for all natural numbers m,n > N, |xmxn| < ε. Here the vertical bars denote the absolute value.

Cauchy sequences (xn) and (yn) can be added and multiplied as follows:

(xn) + (yn) = (xn + yn)
(xn) × (yn) = (xn × yn).

Two Cauchy sequences are called equivalent if and only if the difference between them tends to zero. This defines an equivalence relation that is compatible with the operations defined above, and the set R of all equivalence classes can be shown to satisfy all axioms of the real numbers. We can embed Q into R by identifying the rational number r with the equivalence class of the sequence (r,r,r, …).

Comparison between real numbers is obtained by defining the following comparison between Cauchy sequences: (xn) ≥ (yn) if and only if x is equivalent to y or there exists an integer N such that xnyn for all n > N.

By construction, every real number x is represented by a Cauchy sequence of rational numbers. This representation is far from unique; every rational sequence that converges to x is a representation of x. This reflects the observation that one can often use different sequences to approximate the same real number.

The only real number axiom that does not follow easily from the definitions is the completeness of ≤, i.e. the least upper bound property. It can be proved as follows: Let S be a non-empty subset of R and U be an upper bound for S. Substituting a larger value if necessary, we may assume U is rational. Since S is non-empty, we can choose a rational number L such that L < s for some s in S. Now define sequences of rationals (un) and (ln) as follows:

Set u0 = U and l0 = L.

For each n consider the number:

mn = (un + ln)/2

If mn is an upper bound for S set:

un+1 = mn and ln+1 = ln

Otherwise set:

ln+1 = mn and un+1 = un

This defines two Cauchy sequences of rationals, and so we have real numbers l = (ln) and u = (un). It is easy to prove, by induction on n that:

un is an upper bound for S for all n

and:

ln is never an upper bound for S for any n

Thus u is an upper bound for S. To see that it is a least upper bound, notice that the limit of (un − ln) is 0, and so l = u. Now suppose b < u = l is a smaller upper bound for S. Since (ln) is monotonic increasing it is easy to see that b < ln for some n. But ln is not an upper bound for S and so neither is b. Hence u is a least upper bound for S and ≤ is complete.

The usual decimal notation can be translated to Cauchy sequences in a natural way. For example, the notation π = 3.1415... means that π is the equivalence class of the Cauchy sequence (3, 3.1, 3.14, 3.141, 3.1415, ...). The equation 0.999... = 1 states that the sequences (0, 0.9, 0.99, 0.999,...) and (1, 1, 1, 1,...) are equivalent, i.e., their difference converges to 0.

An advantage of constructing R as the completion of Q is that this construction is not specific to one example; it is used for other metric spaces as well.

### Construction by Dedekind cuts

A Dedekind cut in an ordered field is a partition of it, (A, B), such that A is nonempty and closed downwards, B is nonempty and closed upwards, and A contains no greatest element. Real numbers can be constructed as Dedekind cuts of rational numbers.

For convenience we may take the lower set $A\,$ as the representative of any given Dedekind cut $(A,B)\,$ , since $A$ completely determines $B$ . By doing this we may think intuitively of a real number as being represented by the set of all smaller rational numbers. In more detail, a real number $r$ is any subset of the set ${\textbf {Q}}$ of rational numbers that fulfills the following conditions:

1. $r$ is not empty
2. $r\neq {\textbf {Q}}$ 3. $r$ is closed downwards. In other words, for all $x,y\in {\textbf {Q}}$ such that $x , if $y\in r$ then $x\in r$ 4. $r$ contains no greatest element. In other words, there is no $x\in r$ such that for all $y\in r$ , $y\leq x$ • We form the set ${\textbf {R}}$ of real numbers as the set of all Dedekind cuts $A$ of ${\textbf {Q}}$ , and define a total ordering on the real numbers as follows: $x\leq y\Leftrightarrow x\subseteq y$ • We embed the rational numbers into the reals by identifying the rational number $q$ with the set of all smaller rational numbers $\{x\in {\textbf {Q}}:x . Since the rational numbers are dense, such a set can have no greatest element and thus fulfills the conditions for being a real number laid out above.
• Addition. $A+B:=\{a+b:a\in A\land b\in B\}$ • Subtraction. $A-B:=\{a-b:a\in A\land b\in ({\textbf {Q}}\setminus B)\}$ where ${\textbf {Q}}\setminus B$ denotes the relative complement of $B$ in ${\textbf {Q}}$ , $\{x:x\in {\textbf {Q}}\land x\notin B\}$ • Negation is a special case of subtraction: $-B:=\{a-b:a<0\land b\in ({\textbf {Q}}\setminus B)\}$ • Defining multiplication is less straightforward.
• if $A,B\geq 0$ then $A\times B:=\{a\times b:a\geq 0\land a\in A\land b\geq 0\land b\in B\}\cup \{x\in \mathrm {Q} :x<0\}$ • if either $A\,$ or $B\,$ is negative, we use the identities $A\times B=-(A\times -B)=-(-A\times B)=(-A\times -B)\,$ to convert $A\,$ and/or $B\,$ to positive numbers and then apply the definition above.
• We define division in a similar manner:
• if $A\geq 0{\mbox{ and }}B>0$ then $A/B:=\{a/b:a\in A\land b\in ({\textbf {Q}}\setminus B)\}$ • if either $A\,$ or $B\,$ is negative, we use the identities $A/B=-(A/{-B})=-(-A/B)=-A/{-B}\,$ to convert $A\,$ to a non-negative number and/or $B\,$ to a positive number and then apply the definition above.
• Supremum. If a nonempty set $S$ of real numbers has any upper bound in ${\textbf {R}}$ , then it has a least upper bound in ${\textbf {R}}$ that is equal to $\bigcup S$ .

As an example of a Dedekind cut representing an irrational number, we may take the positive square root of 2. This can be defined by the set $A=\{x\in {\textbf {Q}}:x<0\lor x\times x<2\}$ . It can be seen from the definitions above that $A$ is a real number, and that $A\times A=2\,$ . However, neither claim is immediate. Showing that $A\,$ is real requires showing that $A$ has no greatest element, i.e. that for any positive rational $x\,$ with $x\times x<2\,$ , there is a rational $y\,$ with $x and $y\times y<2\,.$ The choice $y={\frac {2x+2}{x+2}}\,$ works. Then $A\times A\leq 2$ but to show equality requires showing that if $r\,$ is any rational number less than 2, then there is positive $x\,$ in $A$ with $r .

An advantage of this construction is that each real number corresponds to a unique cut.

### Construction using hyperreal numbers

As in the hyperreal numbers, one constructs the hyperrationals *Q from the rational numbers by means of an ultrafilter. Here a hyperrational is by definition a ratio of two hyperintegers. Consider the ring B of all limited (i.e. finite) elements in *Q. Then B has a unique maximal ideal I, the infinitesimal numbers. The quotient ring B/I gives the field R of real numbers[citation needed]. Note that B is not an internal set in *Q. Note that this construction uses a non-principal ultrafilter over the set of natural numbers, the existence of which is guaranteed by the axiom of choice.

It turns out that the maximal ideal respects the order on *Q. Hence the resulting field is an ordered field. Completeness can be proved in a similar way to the construction from the Cauchy sequences.

### Construction from surreal numbers

Every ordered field can be embedded in the surreal numbers. The real numbers form a maximal subfield that is Archimedean (meaning that no real number is infinitely large). This embedding is not unique, though it can be chosen in a canonical way.

### Construction from integers (Eudoxus reals)

A relatively less known construction allows to define real numbers using only the additive group of integers $\mathbb {Z}$ with different versions. The construction has been formally verified by the IsarMathLib project. Shenitzer and Arthan refer to this construction as the Eudoxus reals, named after an ancient Greek astronomer and mathematician Eudoxus of Cnidus.

Let an almost homomorphism be a map $f:\mathbb {Z} \to \mathbb {Z}$ such that the set $\{f(n+m)-f(m)-f(n):n,m\in \mathbb {Z} \}$ is finite. (Note that $f(n)=\lfloor \alpha n\rfloor$ is an almost homomorphism for every $\alpha \in \mathbb {R}$ .) Almost homomorphisms form an abelian group under pointwise addition. We say that two almost homomorphisms $f,g$ are almost equal if the set $\{f(n)-g(n):n\in \mathbb {Z} \}$ is finite. This defines an equivalence relation on the set of almost homomorphisms. Real numbers are defined as the equivalence classes of this relation. Alternatively, the almost homomorphisms taking only finitely many values form a subgroup, and the underlying additive group of the real number is the quotient group. To add real numbers defined this way we add the almost homomorphisms that represent them. Multiplication of real numbers corresponds to functional composition of almost homomorphisms. If $[f]$ denotes the real number represented by an almost homomorphism $f$ we say that $0\leq [f]$ if $f$ is bounded or $f$ takes an infinite number of positive values on $\mathbb {Z} ^{+}$ . This defines the linear order relation on the set of real numbers constructed this way.

### Other constructions

A number of other constructions have been given, by:

As a reviewer of one noted: "The details are all included, but as usual they are tedious and not too instructive."