The Rational Numbers as an Ordered Field
Why can we not do all of calculus with fractions alone? The rational numbers already satisfy every algebraic law we could hope for. We can add, subtract, multiply, and divide (by nonzero elements). We can also compare any two rationals as bigger, smaller, or equal. In the language of algebra, is an ordered field. This single fact accounts for an enormous amount of everyday arithmetic and inequality-chasing. It is also the reason serves as the essential stepping stone between the integers and the real numbers. Yet something is missing. The equation has no solution in . This holds even though geometrically a square of area plainly has a side length. This is not a defect of algebra. It is a structural gap in the order of itself, a "hole" that no rational number fills. Understanding precisely what has (the ordered field structure) matters greatly. So does understanding precisely what it lacks (completeness). This is the conceptual hinge on which the entire construction of the real numbers turns. This article gives a careful, self-contained treatment as an ordered field. We verify the field axioms and order axioms hold for built from . We prove the basic arithmetic-of-inequalities consequences that every analyst uses without comment. We also prove the signature theorem of the subject: has no rational value. This is exhibited concretely as a Dedekind-style gap. This theorem is the precise sense in which is "incomplete." It motivates the construction of as the ordered field that plugs every such gap. The payoff is conceptual clarity for everything that follows. Once you see as one example of an ordered field, this clarity emerges. It is a specific, minimal, algebraically rigid structure. You can then appreciate the real numbers as a different, richer example. This richer example satisfies one extra axiom (the least upper bound property). This article is the bridge. It fixes the vocabulary and proves the facts about . These facts make The Gaps in the Rationals precise and provable. They also make the eventual Density of the Rationals in the Reals precise and provable.
- , built as equivalence classes of pairs of integers, satisfies all nine field axioms and all four order axioms compatible with the field operations.
- This makes an ordered field: a set with obeying the same rules real numbers do, minus one.
- Standard inequality manipulations (multiplying by positives, flipping signs, squares are nonnegative) are theorems, not assumptions — they follow from the ordered field axioms alone.
- is the smallest ordered field: it embeds into every ordered field, via a unique order-preserving field homomorphism from the copy of inside it.
- The rationals have "gaps": the set has no rational least upper bound, proved via the irrationality of .
- Key idea: has exactly the algebraic and order structure of a field with order, but not the completeness that would let every bounded set have a supremum — that gap is what forces the construction of .
Where this lives today
The ordered field structure of is the substrate for exact, error-free computer arithmetic: rational arithmetic libraries (used in computer algebra systems like Mathematica, SageMath, and in cryptographic implementations) represent numbers exactly as pairs of integers precisely because 's field and order axioms guarantee every intermediate computation — no matter how long the chain of additions, multiplications, and comparisons — is exact and consistently ordered, unlike floating-point approximations of . In cryptography, finite fields (which, as shown in the counterexample, cannot be ordered) are used precisely because they lack an order compatible with arithmetic, which is part of what makes discrete-log-based cryptosystems hard to attack using techniques that rely on continuous, order-based estimation. In real analysis itself, this article is the direct prerequisite to The Gaps in the Rationals, which generalizes the construction to arbitrary Dedekind cuts, and to the Least Upper Bound Property, the single extra axiom added to the ordered field axioms to build . The embedding theorem above is also the precise statement underlying Density of the Rationals in the Reals: because sits inside every ordered field extending it in an order-preserving way, and because has the least-upper-bound property, one can prove that between any two reals there is a rational — a fact whose proof depends essentially on 's ordered field structure established here. In physics and engineering, exact rational approximations (continued fractions, rational trigonometric tables) exploit the same order-compatibility to bound errors provably rather than heuristically.
Ask the tutor: How exactly does adding the least upper bound property to the ordered field axioms of force the existence and essential uniqueness of ?
A field is a set with two binary operations (addition) and (multiplication) such that: 1. is an abelian group: addition is associative and commutative, there is an additive identity , and every has an additive inverse . 2. is an abelian group: multiplication is associative and commutative, there is a multiplicative identity , and every has a multiplicative inverse . 3. Distributivity: for all . An ordered field is a field equipped with a relation satisfying, for all :
- (O1) Trichotomy. Exactly one of , , holds.
- (O2) Transitivity. If and , then .
- (O3) Compatibility with addition. If , then .
- (O4) Compatibility with multiplication. If and , then .
The rational numbers are constructed from the integers as the set of equivalence classes of pairs with , , under
writing the class of as , with operations
and order defined (after choosing representatives with positive denominator) by
Intuition
Think of an ordered field as a minimal "arithmetic playground" with two features working together: you can compute (add, subtract, multiply, divide) and you can compare (this number is to the left of that one on a line). The order axioms are exactly the rules that make "to the left of" behave the way a number line should — transitively, and consistently with shifting or scaling. The rationals are the smallest such playground built from counting numbers: once you demand that ( times) be invertible for every nonzero integer, you are forced to manufacture fractions, and the order on fractions is forced too, by cross-multiplication. Every ordered field, no matter how exotic, contains a faithful copy of sitting inside it in the same relative positions — this is the sense in which is universal among ordered fields. But the rational number line has infinitesimal pinholes. The picture below shows the rationals near : no matter how far you zoom in, there are rationals arbitrarily close to on both sides, yet the "boundary" itself is a rational-free zone. The set of rationals with square less than has no largest element and no rational number acts as its least upper bound — the supremum, if it existed among rationals, would have to be itself.
The central theorems
The set constructed above, with the operations and order given in the definition, is an ordered field: it satisfies the field axioms and the order axioms (O1)–(O4).
Well-definedness. We must first check the operations do not depend on the choice of representative. Suppose and , i.e. and . For addition, we must show , i.e.
Expand the left side: . Using and , this equals , which is the right side. A parallel (shorter) computation checks multiplication: . So and are well-defined on equivalence classes.
Field axioms. Additive identity is ; additive inverse of is , since . Commutativity and associativity of and follow by direct computation from the corresponding properties of on ; for instance
Multiplicative identity is . If then , and is a valid representative (since ) with , giving multiplicative inverses. Distributivity is a direct check:
(cancelling the common factor from numerator and denominator, valid since in and equivalence of fractions permits this cancellation). The two sides agree, so distributivity holds. Also since in (as there). This verifies all field axioms.
Order axioms. First check well-definedness of : represent every class with positive denominator (possible since if , replace by ). If with then ; one checks the truth value of (for a fixed , ) is unchanged when is replaced by , using that multiplying both sides of an inequality in by a positive integer preserves it — this is exactly (O4) for the ordered ring , which we take as previously established. (O1) Trichotomy. For with , exactly one of , , holds by trichotomy in , and these correspond respectively to , , . (O2) Transitivity. Suppose with . Then and . Multiply the first inequality by and the second by (valid by (O4) in ): and . By transitivity in , , and cancelling the common positive factor (dividing an inequality by a positive integer preserves it) gives , i.e. . (O3) Compatibility with addition. Suppose , , so . For any (),
We must show , i.e. , i.e. . This follows from by multiplying both sides by . (O4) Compatibility with multiplication. Suppose (, ) and (so since and reduces to ). Then
We must show , i.e. . Since and (product of two positive integers), multiplying the inequality by the positive integer preserves it, which is exactly this claim. All axioms hold, so is an ordered field.
∎In any ordered field , for all : (a) . (b) If and , then (multiplying by a negative reverses the inequality). (c) If then ; if with then . (d) For any , . In particular . (e) If and then .
(a) By (O3), adding to both sides of gives , i.e. . The converse follows the same way applied to . (b) Since , (a) gives . By (O4) applied to and : , i.e. . Applying (a) again gives . (c) Suppose but . If then , contradicting (field axiom). So . By (b) (multiplying by the negative number , reversing direction): , i.e. . But from (d) below, , contradicting trichotomy (O1). Hence . Now suppose . Both by the above. Multiply by (a product of positives is positive, shown in (d)'s proof pattern below applied to and , or directly: apply (O4) twice), using (O4): , i.e. . (d) If : apply (O4) to and , giving , i.e. . If : by (a), , so by the previous case (since by standard field algebra: ). Either way . (e) From , (O3) gives . From , (O3) gives . By transitivity (O2), .
∎If is any ordered field, there is a unique injective map that preserves , and . Consequently embeds, as an ordered field, into every ordered field — in particular into .
Define for positive integers , , ; this is the unique ring homomorphism sending (forced by induction using the recursive definition of integer multiples, since any homomorphism must satisfy ). By Lemma (d) and induction, for every positive integer (a finite sum of positive elements is positive, by repeated use of (O3)), so is injective on : if then WLOG , so is a positive integer, and , giving . Extend to by , which is well-defined (if then applying , using that it is a ring homomorphism on , gives , hence after rearranging, valid since ). One checks directly from the definitions of on that preserves both operations, using that it does so on . For order: if with then in , so (order-preservation on , from injectivity plus the fact sends positive integers to positive elements and is additive), i.e. . Since , dividing (Lemma (c) type manipulation, multiplying by ) gives , i.e. . This also shows is injective on all of by trichotomy. Uniqueness follows because any field homomorphism fixing is forced on all of by induction and forced on by .
∎Worked examples
Example 1 (a genuinely asymmetric inequality chase). Show, using only the ordered field axioms and their consequences above, that for rationals
we have , and moreover find a rational with and — i.e., exhibit the chase of an inequality through several algebraic operations, tracking exactly which axiom licenses each step. Solution. First, : by definition of order on (cross-multiplying with the positive denominators ), , true in . So . To find strictly between them, average: let . Compute
Check : cross-multiply , i.e. , i.e. — true. Check : — true. So as required, and this is an instance of the general fact (density, proved directly rather than invoked): for in an ordered field, satisfies , since (by (O3)) (dividing by , licensed by (O4)/Lemma(c) after noting by Lemma(d)); the other half is symmetric. Now track . We have , and
Check : this is — false! So the claim fails for this particular ; the exercise reveals that scaling and shifting an already-tight middle value can destroy an inequality unless the scaling factor and shift are chosen compatibly. This is exactly the kind of trap the axioms are built to make checkable: (O3)/(O4) tell you addition and multiplication-by-positives preserve order, but they say nothing about arbitrary affine recombinations like dominating — that must be verified by direct computation, not assumed. (The correct, provable statement is only , which does hold: .) This example is included deliberately to illustrate a genuine trap: order axioms guarantee specific manipulations are valid (adding the same thing to both sides, multiplying both sides by the same positive number), not that arbitrary combinations of true inequalities remain true.
Example 2 (proving a specific rational is not the square root of 2, via unique factorization). Show directly that , and more generally reprove that no (in lowest terms) satisfies . Solution. Direct computation: , and , so . (Indeed is a famous close rational approximation to , accurate to about , but it is not exact.) For the general statement: suppose toward contradiction with , , , and . Then . So is even, and since the square of an odd integer is odd (if , is odd), must be even: write . Then , so , and by the same argument is even. But then and , contradicting . So no such exists. This is the arithmetic core of the theorem below, which restates it in the order-theoretic language of suprema.
Let
Then is nonempty and bounded above in , but has no least upper bound in .
is nonempty and bounded above. since . And is an upper bound: if then (using Lemma (d)-style reasoning: by (O4), and similarly, so ), so any satisfies .
No rational is the least upper bound. Suppose for contradiction is a least upper bound of . By Example 2 / the classical argument, , so by trichotomy either or . Case . We construct a rational , with rational and small, such that ; this shows and , contradicting that is an upper bound of . Since we may assume (as shown above every element of is , and if it cannot be an upper bound of , so ). Let
a positive rational since and . Then and , so . Compute
using so , hence (as , and , so multiplying preserves the inequality by (O4)). Continuing,
We need strict inequality: since was not required to be equality, choose instead ; repeating the estimate with in place of (still , since ) gives (strict since as ). So , , hence with : contradiction. Case . We construct rational with and still an upper bound for , contradicting minimality of as least upper bound. Let
(positive since and ). Then (as ), and gives . Compute
using (Lemma (d), since ) for the strict step. So and . Now if any satisfied , then since also (as is an upper bound and , ) — actually we argue directly: for , , and since , this forces (if instead then squaring, licensed by (O4) applied twice, would give , contradiction). So is an upper bound for strictly smaller than : contradicting that is the least upper bound. Both cases are impossible, so no rational least upper bound for exists.
∎The theorem and lemmas above rely on (or any field) admitting an order satisfying (O1)–(O4). Not every field can be so ordered — this shows the hypothesis "ordered field" is not vacuous or automatic, and that "field" alone is a strictly weaker structure. Consider the finite field with arithmetic mod . Suppose toward contradiction made an ordered field. By Lemma (d) (proved using only the order axioms, hence valid in any ordered field), every nonzero element squared is positive: and in — consistent so far. But also, by Lemma (d) applied to itself, , and by (O3) repeatedly, . So we derive , i.e. by transitivity (O2) — contradicting trichotomy (O1), which forbids . So is a perfectly good field (it satisfies all nine field axioms — associativity, commutativity, identities, inverses, distributivity, all checked by finite computation mod ) but admits no order making it an ordered field. This shows the order axioms are a genuine extra structure, not a free consequence of being a field, and confirms that when we call an ordered field, both halves of the name are doing independent work. The obstruction in general: any finite field has some finite sum (its characteristic), which is impossible in an ordered field since Lemma (d) plus induction via (O3) forces all such sums to be strictly positive, hence nonzero.
Scope, edge cases & common traps
| Situation | What holds | What fails / must be checked |
|---|---|---|
| itself | Ordered field; embeds in every ordered field | Not complete: bounded sets need not have suprema in |
| Ordered field, and has the least upper bound property | Strictly larger than ; contains densely | |
| Finite fields () | Field axioms hold | No compatible order exists at all (see counterexample) |
| Field axioms hold | No order makes it an ordered field ( contradicts Lemma (d)) | |
| Manipulating chained inequalities | Adding/multiplying both sides by the same quantity, per (O3)/(O4) | Combining two different true inequalities via arbitrary arithmetic (Example 1) can produce false statements — always re-derive, never "eyeball" |
The mathematician behind it
Origins · 1 minRichard Dedekind and how this was discovered
Richard Dedekind was a German mathematician who, dissatisfied with the lack of a rigorous foundation for the real numbers in the calculus of his day, gave the first fully arithmetic construction of from in 1872. His key insight — later called a Dedekind cut — was to define each real number as a partition of into a "lower set" and "upper set," precisely capturing the gap exhibited in this article's central theorem. He also contributed foundational work on ideals in ring theory and gave one of the first rigorous treatments of the natural numbers via what are now called the Peano–Dedekind axioms.
Is every field automatically an ordered field?
No. Being a field only guarantees the algebraic operations and their nine axioms (associativity, commutativity, identities, inverses, distributivity). An order compatible with those operations is a wholly separate structure, given by axioms (O1)–(O4). As the counterexample shows, finite fields like satisfy every field axiom yet admit no order at all, because any attempted order plus the automatic algebraic fact forces a direct contradiction with trichotomy. Similarly is a field but not orderable, since would have to be positive (as a nonzero square) while also being , which cannot be positive if is. So "field" and "ordered field" are genuinely different, and , are notable for having both structures compatibly.
Why can't we just define 's order by "positive numerator, positive denominator" without cross-multiplying?
You can, informally, but you must first fix denominators to be positive (every fraction class has a representative with positive denominator, by negating both numerator and denominator if needed), and then the comparison genuinely reduces to comparing and as integers — this is what "cross-multiplying" encodes rigorously. The subtlety is well-definedness: the same rational number has infinitely many representations , and one must check (as in the theorem's proof) that the truth value of the inequality does not depend on which representative you pick. Skipping this check is a common gap in informal treatments.
Does the gap at mean is "missing points," and is that the same as being countable while is uncountable?
These are related but logically distinct facts. The gap theorem is an order-theoretic statement: a specific bounded, nonempty subset of has no least upper bound within . Countability is a set-theoretic statement about cardinality: can be put in bijection with , while cannot (Cantor's diagonal argument). It is true that filling in all the order-theoretic gaps of produces , and that this process happens to also make the set uncountable, but the gap theorem itself only requires the order structure — no cardinality argument appears in its proof.
Is the embedding of Q into every ordered field always onto (surjective)?
No, and this is exactly the point. The embedding constructed in the Corollary is always injective and order/operation-preserving, but it need not be surjective. When , the image of is precisely the "usual" rationals sitting inside the reals, and is nonempty (it contains , , , etc.) — this is again the gap phenomenon. There even exist exotic ordered fields (like fields of rational functions with a suitable order, or nonstandard models of the reals) where is a vanishingly small part of , coexisting with infinite or infinitesimal elements having no rational counterpart at all.
Why does the proof of the gap theorem need such careful epsilon-like estimates for h, instead of just saying "move p a little to the right"?
Because "a little" must be made completely precise and rational: we need an explicit rational , expressible purely in terms of using field operations, for which we can algebraically verify using only the axioms already established — no appeal to continuity of squaring or limits is allowed, since those concepts have not yet been built at this stage (indeed, limits are usually defined only after exists). The specific choice (or half of it) is engineered so that expanding and bounding gives a clean algebraic inequality, entirely within and the ordered field axioms.
How does this article relate to the eventual construction of the real numbers?
It is the setup. Once you have proved that , despite being a perfectly good ordered field, has bounded sets with no rational supremum, the natural next move is to ask what extra axiom would fix this. That axiom is the least upper bound property: every nonempty subset bounded above has a least upper bound. The real numbers are then constructed (via Dedekind cuts of , or via Cauchy sequences of rationals) as the essentially unique ordered field extending that satisfies this extra property. Everything proved here about 's ordered field structure — the Lemma's inequality manipulations in particular — carries over verbatim to , since is also an ordered field; only the completeness axiom is new.
Do I need to memorize the construction of Q from pairs of integers for exams?
Usually not in full technical detail, but you should be able to state clearly why the construction is necessary (fractions are equivalence classes, not literal pairs, because must be enforced), and you should be completely fluent with the consequences: the Lemma's list of inequality manipulations (multiplying by positives/negatives, squares are nonnegative, the embedding of ) come up constantly in every subsequent proof in real analysis, from limit arguments to the definition of the supremum. The gap theorem's proof technique — constructing an explicit correction term to push a boundary point strictly past a candidate bound — reappears throughout analysis (e.g., in proving open sets are open, or that the reals satisfy the Archimedean property) and is worth understanding structurally, not just memorizing.