Construction of the real numbers

In mathematics, there are several equivalent ways of defining the real numbers. One of them is that they form a complete ordered field that does not contain any smaller complete ordered field. Such a definition does not prove that such a complete ordered field exists, and the existence proof consists of constructing a mathematical structure that satisfies the definition.

The article presents several such constructions. They are equivalent in the sense that, given the result of any two such constructions, there is a unique isomorphism of ordered field between them. This results from the above definition and is independent of particular constructions. These isomorphisms allow identifying the results of the constructions, and, in practice, to forget which construction has been chosen.

Axiomatic definitions
An axiomatic definition of the real numbers consists of defining them as the elements of a complete ordered field. This means the following: The real numbers form a set, commonly denoted $$\mathbb{R}$$, containing two distinguished elements denoted 0 and 1, and on which are defined  two binary operations and one binary relation; the operations are called addition and multiplication of real numbers and denoted respectively with $+$ and $×$; the binary relation is inequality, denoted $$\le.$$ Moreover, the following properties called axioms must be satisfied.

The existence of such a structure is a theorem, which is proved by constructing such a structure. A consequence of the axioms is that this structure is unique up to an isomorphism, and thus, the real numbers can be used and manipulated, without referring to the method of construction.

Axioms

 * 1) $$\mathbb{R}$$ is a field under addition and multiplication. In other words,
 * 2) * For all x, y, and z in $$\mathbb{R}$$, x + (y + z) = (x + y) + z and x × (y × z) = (x × y) × z. (associativity of addition and multiplication)
 * 3) * For all x and y in $$\mathbb{R}$$, x + y = y + x and x × y = y × x. (commutativity of addition and multiplication)
 * 4) * For all x, y, and z in $$\mathbb{R}$$, x × (y + z) = (x × y) + (x × z). (distributivity of multiplication over addition)
 * 5) * For all x in $$\mathbb{R}$$, x + 0 = x. (existence of additive identity)
 * 6) * 0 is not equal to 1, and for all x in $$\mathbb{R}$$, x × 1 = x. (existence of multiplicative identity)
 * 7) * For every x in $$\mathbb{R}$$, there exists an element &minus;x in $$\mathbb{R}$$, such that x + (&minus;x) = 0. (existence of additive inverses)
 * 8) * For every x ≠ 0 in $$\mathbb{R}$$, there exists an element x&minus;1 in $$\mathbb{R}$$, such that x × x&minus;1 = 1. (existence of multiplicative inverses)
 * 9) $$\mathbb{R}$$ is totally ordered for $$\leq$$. In other words,
 * 10) * For all x in $$\mathbb{R}$$, x ≤ x. (reflexivity)
 * 11) * For all x and y in $$\mathbb{R}$$, if x ≤ y and y ≤ x, then x = y. (antisymmetry)
 * 12) * For all x, y, and z in $$\mathbb{R}$$, if x ≤ y and y ≤ z, then x ≤ z. (transitivity)
 * 13) * For all x and y in $$\mathbb{R}$$, x ≤ y or y ≤ x. (totality)
 * 14) Addition and multiplication are compatible with the order. In other words,
 * 15) * For all x, y and z in $$\mathbb{R}$$, if x ≤ y, then x + z ≤ y + z. (preservation of order under addition)
 * 16) * For all x and y in $$\mathbb{R}$$, if 0 ≤ x and 0 ≤ y, then 0 ≤ x × y (preservation of order under multiplication)
 * 17) The order ≤ is complete in the following sense: every non-empty subset of $$\mathbb{R}$$ that is bounded above has a least upper bound. In other words,
 * 18) * If A is a non-empty subset of $$\mathbb{R}$$, and if A has an upper bound in $$\R,$$ then A has a least upper bound u, such that for every upper bound v of A, u ≤ v.

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 nonfirstorderizable, 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
A model of real numbers is a mathematical structure that satisfies the above axioms. Several models are given below. Any two models are isomorphic; so, the real numbers are unique up to isomorphisms.

Saying that any two models are isomorphic means that for any two models $$(\mathbb{R}, 0_\R, 1_\R, +_\R, \times_\R, \le_\R)$$ and $$(S, 0_S, 1_S, +_S, \times_S, \le_S),$$ there is a bijection $$f\colon\mathbb{R}\to S$$ that preserves both the field operations and the order. Explicitly,
 * $f$ is both injective and surjective.
 * $f(0_{ℝ}) = 0_{S}$ and $f(1_{ℝ}) = 1_{S}$.
 * $f(x +_{ℝ} y) = f(x) +_{S} f(y)$ and $f(x ×_{ℝ} y) = f(x) ×_{S} f(y)$, for all $x$ and $y$ in $$\mathbb{R}.$$
 * $x ≤_{ℝ} y$ if and only if $f(x) ≤_{S} f(y)$, for all $x$ and $y$ in $$\mathbb{R}.$$

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 $$\mathbb{R}$$, a binary relation over $$\mathbb{R}$$ called order, denoted by the infix operator <, a binary operation over $$\mathbb{R}$$ called addition, denoted by the infix operator +, and the constant 1.

Axioms of order (primitives: $$\mathbb{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 $$\mathbb{R}$$.

Axiom 3. "<" is Dedekind-complete. More formally, for all X, Y ⊆ $$\mathbb{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 &lt; z and z &lt; y.

To clarify the above statement somewhat, let X ⊆ $$\mathbb{R}$$ and Y ⊆ $$\mathbb{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 &isin; X and every y &isin; Y, x < y.


 * The real number z separates X and Y if and only if for every x &isin; X with x &ne; z and every y &isin; Y with y &ne; 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: $$\mathbb{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: $$\mathbb{R}$$, <, +, 1):

Axiom 7. 1 ∈ $$\mathbb{R}$$.

Axiom 8. 1 < 1 + 1.

These axioms imply that $$\mathbb{R}$$ is a linearly ordered abelian group under addition with distinguished element 1. $$\mathbb{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.

$$\mathbb{R}$$ is defined as the completion of the set $$\Q$$ of the rational numbers with respect to the metric $|x − y|$ Normally, metrics are defined with real numbers as values, but this does not make the construction/definition circular, since all numbers that are implied (even implicitely) are rational numbers.

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

of rational numbers such that for every rational $(x_{1}, x_{2}, x_{3},...)$, there exists an integer $ε > 0$ such that for all natural numbers $N$, one has $m, n > N$. Here the vertical bars denote the absolute value.

Cauchy sequences $|x_{m} − x_{n}| < ε$ and $(x_{n})$ can be added and multiplied as follows:

Two Cauchy sequences $(y_{n})$ and $(x_{n}) + (y_{n}) = (x_{n} + y_{n})$ are called equivalent if and only if the difference between them tends to zero; that is, for every rational number $(x_{n}) &times; (y_{n}) = (x_{n} &times; y_{n})$, there exists an integer $(x_{n})$ such that for all natural numbers $(y_{n})$, one has $ε > 0$.

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. $$\Q$$ can be considered as a subset of $$\R$$ by identifying a rational number $N$ with the equivalence class of the Cauchy sequence $n > N$.

Comparison between real numbers is obtained by defining the following comparison between Cauchy sequences: $|x_{n} − y_{n}| < ε$ if and only if  $r$ is equivalent to $(r, r, r, ...)$ or there exists an integer $(x_{n}) ≥ (y_{n})$ such that $x$ for all $y$.

By construction, every real number $N$ is represented by a Cauchy sequence of rational numbers. This representation is far from unique; every rational sequence that converges to $x_{n} ≥ y_{n}$ is a Cauchy sequence representing $n > N$. 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 $x$, i.e. the least upper bound property. It can be proved as follows: Let $x$ be a non-empty subset of $$\R'$$ and $x$ be an upper bound for $≤$. Substituting a larger value if necessary, we may assume $S$ is rational. Since $U$ is non-empty, we can choose a rational number $S$ such that $U$ for some $S$ in $L$. Now define sequences of rationals $L < s$ and $s$ as follows:

Set $S$ and $(u_{n})$. For each $(l_{n})$ consider the number $u_{0} = U$. If $l_{0} = L$ is an upper bound for $n$, set $m_{n} = (u_{n} + l_{n})/2$ and $m_{n}$. Otherwise set $S$ and $u_{n+1} = m_{n}$.

This defines two Cauchy sequences of rationals, and so the real numbers $l_{n+1} = l_{n}$ and $l_{n+1} = m_{n}$. It is easy to prove, by induction on $u_{n+1} = u_{n}$ that $l = (l_{n})$ is an upper bound for $u = (u_{n})$ for all $n$ and $u_{n}$ is never an upper bound for $S$ for any $n$

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

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

An advantage of constructing $$\R$$ as the completion of $$\Q$$ is that this construction can be used for every other metric spaces.

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 < y$$, 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 < q \} $$. 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<y\,$$ and $$y \times y <2\,.$$ The choice $$y=\frac{2x+2}{x+2}\,$$ works. Then $$A \times A \le 2$$ but to show equality requires showing that if $$r\,$$ is any rational number with $$r < 2\,$$, then there is positive $$x\,$$ in $$A$$ with $$r<x \times x\,$$.

An advantage of this construction is that each real number corresponds to a unique cut. Furthermore, by relaxing the first two requirements of the definition of a cut, the extended real number system may be obtained by associating $$-\infty$$ with the empty set and $$\infty$$ with all of $$\textbf{Q}$$.

Construction using hyperreal numbers
As in the hyperreal numbers, one constructs the $$^*\mathbb{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 $$^*\mathbb{Q}$$. Then $$B$$ has a unique maximal ideal $$I$$, the infinitesimal hyperrational numbers. The quotient ring $$B/I$$ gives the field $$\mathbb{R}$$ of real numbers. 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 $$^*\mathbb{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 or infinitely small). 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. and 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
write: "Few mathematical structures have undergone as many revisions or have been presented in as many guises as the real numbers. Every generation reexamines the reals in the light of its values and mathematical objectives."

A number of other constructions have been given, by:

For an overview, see.

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