The Rational Numbers as an Ordered Field

Why can we not do all of calculus with fractions alone? The rational numbers Q\mathbb{Q} 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, Q\mathbb{Q} is an ordered field. This single fact accounts for an enormous amount of everyday arithmetic and inequality-chasing. It is also the reason Q\mathbb{Q} serves as the essential stepping stone between the integers and the real numbers. Yet something is missing. The equation x2=2x^2 = 2 has no solution in Q\mathbb{Q}. This holds even though geometrically a square of area 22 plainly has a side length. This is not a defect of algebra. It is a structural gap in the order of Q\mathbb{Q} itself, a "hole" that no rational number fills. Understanding precisely what Q\mathbb{Q} 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 Q\mathbb{Q} a careful, self-contained treatment as an ordered field. We verify the field axioms and order axioms hold for Q\mathbb{Q} built from Z\mathbb{Z}. We prove the basic arithmetic-of-inequalities consequences that every analyst uses without comment. We also prove the signature theorem of the subject: 2\sqrt{2} has no rational value. This is exhibited concretely as a Dedekind-style gap. This theorem is the precise sense in which Q\mathbb{Q} is "incomplete." It motivates the construction of R\mathbb{R} as the ordered field that plugs every such gap. The payoff is conceptual clarity for everything that follows. Once you see Q\mathbb{Q} 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 Q\mathbb{Q}. 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.

Key takeaways
  • Q\mathbb{Q}, 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 Q\mathbb{Q} an ordered field: a set with +,⋅,<+, \cdot, < 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.
  • Q\mathbb{Q} is the smallest ordered field: it embeds into every ordered field, via a unique order-preserving field homomorphism from the copy of Z\mathbb{Z} inside it.
  • The rationals have "gaps": the set {q∈Q:q2<2,q>0}\{q \in \mathbb{Q} : q^2 < 2, q>0\} has no rational least upper bound, proved via the irrationality of 2\sqrt 2.
  • Key idea: Q\mathbb{Q} 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 R\mathbb{R}.

Where this lives today

The ordered field structure of Q\mathbb Q 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 Q\mathbb{Q}'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 R\mathbb{R}. 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 2\sqrt2 construction to arbitrary Dedekind cuts, and to the Least Upper Bound Property, the single extra axiom added to the ordered field axioms to build R\mathbb R. The embedding theorem above is also the precise statement underlying Density of the Rationals in the Reals: because Q\mathbb Q sits inside every ordered field extending it in an order-preserving way, and because R\mathbb R 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 Q\mathbb Q'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 Q\mathbb{Q} force the existence and essential uniqueness of R\mathbb{R}?

DefinitionOrdered field

A field is a set FF with two binary operations ++ (addition) and ⋅\cdot (multiplication) such that: 1. (F,+)(F,+) is an abelian group: addition is associative and commutative, there is an additive identity 00, and every x∈Fx \in F has an additive inverse −x-x. 2. (F∖{0},⋅)(F\setminus\{0\},\cdot) is an abelian group: multiplication is associative and commutative, there is a multiplicative identity 1≠01 \neq 0, and every x≠0x \neq 0 has a multiplicative inverse x−1x^{-1}. 3. Distributivity: x(y+z)=xy+xzx(y+z) = xy + xz for all x,y,z∈Fx,y,z \in F. An ordered field is a field FF equipped with a relation << satisfying, for all x,y,z∈Fx,y,z \in F:

  • (O1) Trichotomy. Exactly one of x<yx<y, x=yx=y, y<xy<x holds.
  • (O2) Transitivity. If x<yx<y and y<zy<z, then x<zx<z.
  • (O3) Compatibility with addition. If x<yx<y, then x+z<y+zx+z < y+z.
  • (O4) Compatibility with multiplication. If x<yx<y and 0<z0<z, then xz<yzxz < yz.

The rational numbers Q\mathbb{Q} are constructed from the integers Z\mathbb{Z} as the set of equivalence classes of pairs (a,b)(a,b) with a,b∈Za,b\in\mathbb{Z}, b≠0b\neq 0, under

(a,b)∼(c,d)  ⟺  ad=bc,(a,b) \sim (c,d) \iff ad = bc,

writing the class of (a,b)(a,b) as ab\tfrac{a}{b}, with operations

ab+cd:=ad+bcbd,ab⋅cd:=acbd,\frac{a}{b}+\frac{c}{d} := \frac{ad+bc}{bd}, \qquad \frac{a}{b}\cdot\frac{c}{d} := \frac{ac}{bd},

and order defined (after choosing representatives with positive denominator) by

ab<cd  ⟺  ad<bc(b,d>0).\frac{a}{b} < \frac{c}{d} \iff ad < bc \quad (b,d>0).

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 1+1+⋯+11+1+\cdots+1 (nn 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 Q\mathbb{Q} sitting inside it in the same relative positions — this is the sense in which Q\mathbb{Q} is universal among ordered fields. But the rational number line has infinitesimal pinholes. The picture below shows the rationals near 2\sqrt 2: no matter how far you zoom in, there are rationals arbitrarily close to 2\sqrt{2} on both sides, yet the "boundary" itself is a rational-free zone. The set of rationals with square less than 22 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 2\sqrt2 itself.

Figure
The rational line has a gap exactly at 2≈1.41421\sqrt{2}\approx 1.41421
1 2 √2 ≈ 1.41421 1.4 1.41 1.414 1.5 1.42 1.415 Rationals cluster on both sides, but none equals √2 — a genuine gap in ℚ.

The central theorems

TheoremQ is an ordered field

The set Q\mathbb{Q} constructed above, with the operations +,⋅+,\cdot and order << given in the definition, is an ordered field: it satisfies the field axioms and the order axioms (O1)–(O4).

Proof

Well-definedness. We must first check the operations do not depend on the choice of representative. Suppose (a,b)∼(a′,b′)(a,b)\sim(a',b') and (c,d)∼(c′,d′)(c,d)\sim(c',d'), i.e. ab′=a′bab'=a'b and cd′=c′dcd'=c'd. For addition, we must show (ad+bc,bd)∼(a′d′+b′c′,b′d′)(ad+bc,bd) \sim (a'd'+b'c', b'd'), i.e.

(ad+bc)b′d′=(a′d′+b′c′)bd.(ad+bc)b'd' = (a'd'+b'c')bd.

Expand the left side: adb′d′+bcb′d′=(ab′)dd′+(cd′)bb′adb'd' + bcb'd' = (ab')dd' + (cd')bb'. Using ab′=a′bab'=a'b and cd′=c′dcd'=c'd, this equals a′b dd′+c′d bb′=a′d′ bd+b′c′ bda'b\,dd' + c'd\,bb' = a'd'\,bd + b'c'\,bd, which is the right side. A parallel (shorter) computation checks multiplication: (ac)(b′d′)=(ab′)(cd′)=(a′b)(c′d)=(a′c′)(bd)(ac)(b'd') = (ab')(cd') = (a'b)(c'd) = (a'c')(bd). So ++ and ⋅\cdot are well-defined on equivalence classes.

Field axioms. Additive identity is 01\tfrac{0}{1}; additive inverse of ab\tfrac ab is −ab\tfrac{-a}{b}, since ab+−ab=ab−abb2=0b2∼01\tfrac{a}{b}+\tfrac{-a}{b} = \tfrac{ab-ab}{b^2}=\tfrac{0}{b^2}\sim\tfrac01. Commutativity and associativity of ++ and ⋅\cdot follow by direct computation from the corresponding properties of +,⋅+,\cdot on Z\mathbb{Z}; for instance

ab+cd=ad+bcbd=cb+dadb=cd+ab.\frac ab+\frac cd = \frac{ad+bc}{bd} = \frac{cb+da}{db} = \frac cd + \frac ab.

Multiplicative identity is 11\tfrac11. If ab≠01\tfrac ab \neq \tfrac 01 then a≠0a\neq 0, and ba\tfrac ba is a valid representative (since a≠0a \ne 0) with ab⋅ba=abab∼11\tfrac ab \cdot \tfrac ba = \tfrac{ab}{ab} \sim \tfrac 11, giving multiplicative inverses. Distributivity is a direct check:

ab(cd+ef)=ab⋅cf+dedf=a(cf+de)bdf=acf+adebdf,\frac ab\left(\frac cd+\frac ef\right) = \frac ab\cdot\frac{cf+de}{df} = \frac{a(cf+de)}{bdf} = \frac{acf+ade}{bdf},
ab⋅cd+ab⋅ef=acbd+aebf=acbf+aebdb2df=bf⋅ac+bd⋅aeb⋅bdf=acf+adebdf\frac ab\cdot\frac cd + \frac ab \cdot \frac ef = \frac{ac}{bd}+\frac{ae}{bf} = \frac{acbf+aebd}{b^2df} = \frac{bf\cdot ac + bd\cdot ae}{b\cdot bdf} = \frac{acf+ade}{bdf}

(cancelling the common factor bb from numerator and denominator, valid since b≠0b\neq0 in Z\mathbb{Z} and equivalence of fractions permits this cancellation). The two sides agree, so distributivity holds. Also 0≠10\ne 1 since 0⋅1≠1⋅10\cdot 1 \ne 1\cdot 1 in Z\mathbb{Z} (as 0≠10\ne 1 there). This verifies all field axioms.

Order axioms. First check well-definedness of <<: represent every class with positive denominator (possible since if b<0b<0, replace (a,b)(a,b) by (−a,−b)(-a,-b)). If ab∼a′b′\tfrac ab \sim \tfrac{a'}{b'} with b,b′>0b,b'>0 then ab′=a′bab'=a'b; one checks the truth value of ad<bcad<bc (for a fixed cd\tfrac cd, d>0d>0) is unchanged when (a,b)(a,b) is replaced by (a′,b′)(a',b'), using that multiplying both sides of an inequality in Z\mathbb{Z} by a positive integer preserves it — this is exactly (O4) for the ordered ring Z\mathbb{Z}, which we take as previously established. (O1) Trichotomy. For ab,cd\tfrac ab,\tfrac cd with b,d>0b,d>0, exactly one of ad<bcad<bc, ad=bcad=bc, bc<adbc<ad holds by trichotomy in Z\mathbb{Z}, and these correspond respectively to ab<cd\tfrac ab<\tfrac cd, ab=cd\tfrac ab=\tfrac cd, cd<ab\tfrac cd<\tfrac ab. (O2) Transitivity. Suppose ab<cd<ef\tfrac ab<\tfrac cd<\tfrac ef with b,d,f>0b,d,f>0. Then ad<bcad<bc and cf<decf<de. Multiply the first inequality by f>0f>0 and the second by b>0b>0 (valid by (O4) in Z\mathbb Z): adf<bcfadf < bcf and bcf<bdebcf < bde. By transitivity in Z\mathbb Z, adf<bdeadf<bde, and cancelling the common positive factor dd (dividing an inequality by a positive integer preserves it) gives af<beaf<be, i.e. ab<ef\tfrac ab<\tfrac ef. (O3) Compatibility with addition. Suppose ab<cd\tfrac ab<\tfrac cd, b,d>0b,d>0, so ad<bcad<bc. For any ef\tfrac ef (f>0f>0),

ab+ef=af+bebf,cd+ef=cf+dedf.\frac ab+\frac ef=\frac{af+be}{bf}, \qquad \frac cd+\frac ef=\frac{cf+de}{df}.

We must show (af+be)(df)<(bf)(cf+de)(af+be)(df) < (bf)(cf+de), i.e. adf2+bdef<bcf2+bdefadf^2+bdef < bcf^2+bdef, i.e. adf2<bcf2adf^2<bcf^2. This follows from ad<bcad<bc by multiplying both sides by f2>0f^2>0. (O4) Compatibility with multiplication. Suppose ab<cd\tfrac ab<\tfrac cd (ad<bcad<bc, b,d>0b,d>0) and 0<ef0<\tfrac ef (so e>0e>0 since f>0f>0 and 0⋅f<e⋅10\cdot f<e\cdot 1 reduces to 0<e0<e). Then

ab⋅ef=aebf,cd⋅ef=cedf.\frac ab\cdot\frac ef = \frac{ae}{bf}, \qquad \frac cd \cdot \frac ef = \frac{ce}{df}.

We must show ae⋅df<bf⋅ceae\cdot df < bf\cdot ce, i.e. (ad)(ef)<(bc)(ef)(ad)(ef) < (bc)(ef). Since ad<bcad<bc and ef=e⋅f>0ef = e\cdot f>0 (product of two positive integers), multiplying the inequality ad<bcad<bc by the positive integer efef preserves it, which is exactly this claim. All axioms hold, so Q\mathbb Q is an ordered field. ■\blacksquare

∎
LemmaBasic consequences of the order axioms

In any ordered field FF, for all x,y,z,w∈Fx,y,z,w \in F: (a) x<y  ⟺  −y<−xx<y \iff -y<-x. (b) If x<yx<y and z<0z<0, then yz<xzyz < xz (multiplying by a negative reverses the inequality). (c) If 0<x0<x then 0<x−10<x^{-1}; if x<yx<y with 0<x0<x then 0<y−1<x−10<y^{-1}<x^{-1}. (d) For any x≠0x\neq 0, x2>0x^2>0. In particular 1=12>01=1^2>0. (e) If x<yx<y and z<wz<w then x+z<y+wx+z<y+w.

Proof

(a) By (O3), adding −x−y-x-y to both sides of x<yx<y gives x+(−x−y)<y+(−x−y)x+(-x-y) < y+(-x-y), i.e. −y<−x-y<-x. The converse follows the same way applied to −y<−x-y<-x. (b) Since z<0z<0, (a) gives 0<−z0<-z. By (O4) applied to x<yx<y and 0<−z0<-z: x(−z)<y(−z)x(-z)<y(-z), i.e. −xz<−yz-xz<-yz. Applying (a) again gives yz<xzyz<xz. (c) Suppose 0<x0<x but x−1≤0x^{-1}\le 0. If x−1=0x^{-1}=0 then 1=x⋅x−1=01=x\cdot x^{-1}=0, contradicting 1≠01\ne0 (field axiom). So x−1<0x^{-1}<0. By (b) (multiplying 0<x0<x by the negative number x−1x^{-1}, reversing direction): x⋅x−1<0⋅x−1x\cdot x^{-1} < 0 \cdot x^{-1}, i.e. 1<01<0. But from (d) below, 1=12>01=1^2>0, contradicting trichotomy (O1). Hence 0<x−10<x^{-1}. Now suppose 0<x<y0<x<y. Both x−1,y−1>0x^{-1},y^{-1}>0 by the above. Multiply x<yx<y by x−1y−1>0x^{-1}y^{-1}>0 (a product of positives is positive, shown in (d)'s proof pattern below applied to x−1x^{-1} and y−1y^{-1}, or directly: apply (O4) twice), using (O4): x⋅(x−1y−1)<y⋅(x−1y−1)x\cdot(x^{-1}y^{-1}) < y\cdot (x^{-1}y^{-1}), i.e. y−1<x−1y^{-1} < x^{-1}. (d) If x>0x>0: apply (O4) to 0<x0<x and 0<x0<x, giving 0⋅x<x⋅x0\cdot x < x\cdot x, i.e. 0<x20<x^2. If x<0x<0: by (a), 0<−x0<-x, so by the previous case 0<(−x)2=x20<(-x)^2 = x^2 (since (−x)(−x)=x⋅x(-x)(-x)=x\cdot x by standard field algebra: (−x)(−x)=−(x⋅(−x))=−(−(x⋅x))=x2(-x)(-x) = -(x\cdot(-x)) = -(-(x\cdot x)) = x^2). Either way x2>0x^2>0. (e) From x<yx<y, (O3) gives x+z<y+zx+z<y+z. From z<wz<w, (O3) gives y+z<y+wy+z<y+w. By transitivity (O2), x+z<y+wx+z<y+w. ■\blacksquare

∎
CorollaryQ is not the whole of an ordered field extending it

If FF is any ordered field, there is a unique injective map φ:Q→F\varphi:\mathbb{Q}\to F that preserves +,⋅,<+,\cdot,<, and φ(1)=1F\varphi(1)=1_F. Consequently Q\mathbb{Q} embeds, as an ordered field, into every ordered field — in particular into R\mathbb{R}.

Proof

Define φ(n)=1F+⋯+1F⏟n\varphi(n) = \underbrace{1_F+\cdots+1_F}_{n} for positive integers nn, φ(0)=0F\varphi(0)=0_F, φ(−n)=−φ(n)\varphi(-n)=-\varphi(n); this is the unique ring homomorphism Z→F\mathbb Z\to F sending 1↦1F1\mapsto1_F (forced by induction using the recursive definition of integer multiples, since any homomorphism must satisfy φ(n+1)=φ(n)+1F\varphi(n+1)=\varphi(n)+1_F). By Lemma (d) and induction, φ(n)>0F\varphi(n) > 0_F for every positive integer nn (a finite sum of positive elements is positive, by repeated use of (O3)), so φ\varphi is injective on Z\mathbb{Z}: if m≠nm\ne n then WLOG m<nm<n, so n−mn-m is a positive integer, and φ(n)−φ(m)=φ(n−m)>0F\varphi(n)-\varphi(m) = \varphi(n-m) > 0_F, giving φ(m)≠φ(n)\varphi(m)\ne\varphi(n). Extend to Q\mathbb Q by φ(a/b):=φ(a)φ(b)−1\varphi(a/b) := \varphi(a)\varphi(b)^{-1}, which is well-defined (if ab′=a′bab'=a'b then applying φ\varphi, using that it is a ring homomorphism on Z\mathbb Z, gives φ(a)φ(b′)=φ(a′)φ(b)\varphi(a)\varphi(b')=\varphi(a')\varphi(b), hence φ(a)φ(b)−1=φ(a′)φ(b′)−1\varphi(a)\varphi(b)^{-1}=\varphi(a')\varphi(b')^{-1} after rearranging, valid since φ(b),φ(b′)≠0\varphi(b),\varphi(b')\ne0). One checks directly from the definitions of +,⋅+,\cdot on Q\mathbb Q that φ\varphi preserves both operations, using that it does so on Z\mathbb{Z}. For order: if ab<cd\tfrac ab<\tfrac cd with b,d>0b,d>0 then ad<bcad<bc in Z\mathbb Z, so φ(ad)<φ(bc)\varphi(ad)<\varphi(bc) (order-preservation on Z\mathbb Z, from injectivity plus the fact φ\varphi sends positive integers to positive elements and is additive), i.e. φ(a)φ(d)<φ(b)φ(c)\varphi(a)\varphi(d)<\varphi(b)\varphi(c). Since φ(b),φ(d)>0\varphi(b),\varphi(d)>0, dividing (Lemma (c) type manipulation, multiplying by φ(b)−1φ(d)−1>0\varphi(b)^{-1}\varphi(d)^{-1}>0) gives φ(a)φ(b)−1<φ(c)φ(d)−1\varphi(a)\varphi(b)^{-1} < \varphi(c)\varphi(d)^{-1}, i.e. φ(a/b)<φ(c/d)\varphi(a/b)<\varphi(c/d). This also shows φ\varphi is injective on all of Q\mathbb Q by trichotomy. Uniqueness follows because any field homomorphism fixing 11 is forced on all of Z\mathbb Z by induction and forced on Q\mathbb Q by φ(a/b)φ(b)=φ(a)\varphi(a/b)\varphi(b)=\varphi(a). ■\blacksquare

∎

Worked examples

Example 1 (a genuinely asymmetric inequality chase). Show, using only the ordered field axioms and their consequences above, that for rationals

p=73,q=52,p = \frac{7}{3}, \qquad q = \frac{5}{2},

we have p<qp<q, and moreover find a rational rr with p<r<qp<r<q and 3p<2r+1<3q3p < 2r+1 < 3q — i.e., exhibit the chase of an inequality through several algebraic operations, tracking exactly which axiom licenses each step. Solution. First, p<qp<q: by definition of order on Q\mathbb Q (cross-multiplying with the positive denominators 3,23,2), p<q  ⟺  7⋅2<3⋅5  ⟺  14<15p<q \iff 7\cdot 2 < 3\cdot 5 \iff 14<15, true in Z\mathbb Z. So p<qp<q. To find rr strictly between them, average: let r=12(p+q)r = \tfrac12(p+q). Compute

p+q=73+52=14+156=296,r=2912.p+q = \frac{7}{3}+\frac52 = \frac{14+15}{6} = \frac{29}{6}, \qquad r = \frac{29}{12}.

Check p<rp<r: cross-multiply 73<2912\tfrac73 < \tfrac{29}{12}, i.e. 7⋅12<3⋅297\cdot12 < 3\cdot 29, i.e. 84<8784<87 — true. Check r<qr<q: 2912<52  ⟺  29⋅2<12⋅5  ⟺  58<60\tfrac{29}{12}<\tfrac52 \iff 29\cdot2 < 12\cdot5 \iff 58<60 — true. So p<r<qp<r<q as required, and this is an instance of the general fact (density, proved directly rather than invoked): for p<qp<q in an ordered field, r=12(p+q)r=\tfrac12(p+q) satisfies p<r<qp<r<q, since p<q⇒p+p<p+qp<q \Rightarrow p+p<p+q (by (O3)) ⇒2p<p+q⇒p<12(p+q)\Rightarrow 2p<p+q \Rightarrow p< \tfrac12(p+q) (dividing by 2>02>0, licensed by (O4)/Lemma(c) after noting 2=1+1>02=1+1>0 by Lemma(d)); the other half is symmetric. Now track 3p<2r+1<3q3p<2r+1<3q. We have 3p=3⋅73=73p = 3\cdot\tfrac73 = 7, and

2r+1=2⋅2912+1=296+1=29+66=356,3q=3⋅52=152=456.2r+1 = 2\cdot\frac{29}{12}+1 = \frac{29}{6}+1 = \frac{29+6}{6} = \frac{35}{6}, \qquad 3q = 3\cdot\frac52=\frac{15}{2}=\frac{45}{6}.

Check 7<3567 < \tfrac{35}{6}: this is 426<356\tfrac{42}{6}<\tfrac{35}{6} — false! So the claim 3p<2r+13p<2r+1 fails for this particular rr; 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 2r+12r+1 dominating 3p3p — that must be verified by direct computation, not assumed. (The correct, provable statement is only 3p<3q3p<3q, which does hold: 7<7.57 < 7.5.) 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 (1712)2≠2\left(\tfrac{17}{12}\right)^2 \neq 2, and more generally reprove that no p=ab∈Qp=\tfrac ab\in\mathbb Q (in lowest terms) satisfies p2=2p^2=2. Solution. Direct computation: (1712)2=289144\left(\tfrac{17}{12}\right)^2 = \tfrac{289}{144}, and 2=2881442 = \tfrac{288}{144}, so (1712)2=2+1144≠2\left(\tfrac{17}{12}\right)^2 = 2 + \tfrac{1}{144} \ne 2. (Indeed 17/1217/12 is a famous close rational approximation to 2\sqrt2, accurate to about 0.003%0.003\%, but it is not exact.) For the general statement: suppose toward contradiction p=abp=\tfrac ab with a,b∈Za,b\in\mathbb Z, b≠0b\neq 0, gcd⁡(a,b)=1\gcd(a,b)=1, and p2=2p^2=2. Then a2=2b2a^2 = 2b^2. So a2a^2 is even, and since the square of an odd integer is odd (if a=2k+1a=2k+1, a2=4k2+4k+1a^2=4k^2+4k+1 is odd), aa must be even: write a=2ca=2c. Then 4c2=2b24c^2=2b^2, so b2=2c2b^2=2c^2, and by the same argument bb is even. But then 2∣a2\mid a and 2∣b2\mid b, contradicting gcd⁡(a,b)=1\gcd(a,b)=1. So no such pp exists. ■\blacksquare This is the arithmetic core of the theorem below, which restates it in the order-theoretic language of suprema.

TheoremThe rationals have a gap at 2\sqrt 2: no supremum exists

Let

S={ q∈Q:q>0 and q2<2 }.S = \{\, q\in\mathbb{Q} : q>0 \text{ and } q^2<2 \,\}.

Then SS is nonempty and bounded above in Q\mathbb{Q}, but SS has no least upper bound in Q\mathbb{Q}.

Proof

SS is nonempty and bounded above. 1∈S1\in S since 12=1<21^2=1<2. And 22 is an upper bound: if q>2q>2 then q2>4>2q^2>4>2 (using Lemma (d)-style reasoning: q>2>0⇒q⋅q>2⋅qq>2>0 \Rightarrow q\cdot q > 2\cdot q by (O4), and 2⋅q>2⋅2=42\cdot q > 2\cdot 2=4 similarly, so q2>4q^2>4), so any q∈Sq\in S satisfies q≤2q\le 2.

No rational is the least upper bound. Suppose for contradiction p∈Qp\in\mathbb Q is a least upper bound of SS. By Example 2 / the classical argument, p2≠2p^2\ne 2, so by trichotomy either p2<2p^2<2 or p2>2p^2>2. Case p2<2p^2<2. We construct a rational p+hp+h, with h>0h>0 rational and small, such that (p+h)2<2(p+h)^2<2; this shows p+h∈Sp+h\in S and p+h>pp+h>p, contradicting that pp is an upper bound of SS. Since p∈Sp\in S we may assume 0<p<20<p<2 (as shown above every element of SS is ≤2\le 2, and if p≤0p\le 0 it cannot be an upper bound of S∋1>0S\ni 1>0, so p>0p>0). Let

h=min⁡(1, 2−p22p+1)>0,h = \min\left(1, \ \frac{2-p^2}{2p+1}\right) > 0,

a positive rational since 2−p2>02-p^2>0 and 2p+1>02p+1>0. Then 0<h≤10<h\le 1 and h≤2−p22p+1h\le \tfrac{2-p^2}{2p+1}, so h(2p+1)≤2−p2h(2p+1) \le 2-p^2. Compute

(p+h)2=p2+2ph+h2=p2+h(2p+h)≤p2+h(2p+1)(p+h)^2 = p^2+2ph+h^2 = p^2 + h(2p+h) \le p^2+h(2p+1)

using h≤1h\le 1 so h2≤hh^2\le h, hence h(2p+h)≤h(2p+1)h(2p+h)\le h(2p+1) (as 2p+h≤2p+12p+h \le 2p+1, and h>0h>0, so multiplying preserves the inequality by (O4)). Continuing,

(p+h)2≤p2+(2−p2)=2.(p+h)^2 \le p^2 + (2-p^2) = 2.

We need strict inequality: since h≤2−p22p+1h\le \tfrac{2-p^2}{2p+1} was not required to be equality, choose instead h′=12h>0h' = \tfrac12 h>0; repeating the estimate with h′h' in place of hh (still h′≤1h'\le 1, h′≤2−p22p+1h'\le \tfrac{2-p^2}{2p+1} since h′<hh'<h) gives (p+h′)2≤p2+h′(2p+1)≤p2+12(2−p2)<p2+(2−p2)=2(p+h')^2 \le p^2 + h'(2p+1) \le p^2 + \tfrac12(2-p^2) < p^2+(2-p^2)=2 (strict since 12(2−p2)<2−p2\tfrac12(2-p^2) < 2-p^2 as 2−p2>02-p^2>0). So (p+h′)2<2(p+h')^2<2, p+h′>0p+h'>0, hence p+h′∈Sp+h'\in S with p+h′>pp+h'>p: contradiction. Case p2>2p^2>2. We construct 0<h<p0<h<p rational with (p−h)2>2(p-h)^2>2 and p−hp-h still an upper bound for SS, contradicting minimality of pp as least upper bound. Let

h=min⁡(p2, p2−22p)>0h = \min\left(\frac p2,\ \frac{p^2-2}{2p}\right) > 0

(positive since p>0p>0 and p2−2>0p^2-2>0). Then 0<h<p0<h<p (as h≤p/2<ph\le p/2 <p), and h≤p2−22ph\le \tfrac{p^2-2}{2p} gives 2ph≤p2−22ph \le p^2-2. Compute

(p−h)2=p2−2ph+h2>p2−2ph≥p2−(p2−2)=2,(p-h)^2 = p^2-2ph+h^2 > p^2-2ph \ge p^2-(p^2-2) = 2,

using h2>0h^2>0 (Lemma (d), since h≠0h\ne0) for the strict step. So (p−h)2>2(p-h)^2>2 and p−h>0p-h>0. Now if any q∈Sq\in S satisfied q>p−hq > p-h, then since also q≤pq\le p (as pp is an upper bound and q∈Qq\in\mathbb{Q}, q>0q>0) — actually we argue directly: for q∈Sq\in S, q2<2<(p−h)2q^2<2<(p-h)^2, and since q,p−h>0q,p-h>0, this forces q<p−hq<p-h (if instead q≥p−h>0q\ge p-h>0 then squaring, licensed by (O4) applied twice, would give q2≥(p−h)2q^2 \ge (p-h)^2, contradiction). So p−hp-h is an upper bound for SS strictly smaller than pp: contradicting that pp is the least upper bound. Both cases are impossible, so no rational least upper bound for SS exists. ■\blacksquare

∎
Counterexampledropping the order axioms: a field with no compatible order at all

The theorem and lemmas above rely on Q\mathbb Q (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 F=F3={0,1,2}F=\mathbb{F}_3 = \{0,1,2\} with arithmetic mod 33. Suppose toward contradiction << made FF an ordered field. By Lemma (d) (proved using only the order axioms, hence valid in any ordered field), every nonzero element squared is positive: 12=1>01^2=1>0 and 22=4=1>02^2=4=1>0 in F3\mathbb F_3 — consistent so far. But also, by Lemma (d) applied to 11 itself, 1>01>0, and by (O3) repeatedly, 1<1+1=2<1+1+1=01<1+1=2<1+1+1=0. So we derive 0<1<2<00<1<2<0, i.e. 0<00<0 by transitivity (O2) — contradicting trichotomy (O1), which forbids x<xx<x. So F3\mathbb{F}_3 is a perfectly good field (it satisfies all nine field axioms — associativity, commutativity, identities, inverses, distributivity, all checked by finite computation mod 33) 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 Q\mathbb{Q} an ordered field, both halves of the name are doing independent work. The obstruction in general: any finite field has some finite sum 1+1+⋯+1=01+1+\cdots+1=0 (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

SituationWhat holdsWhat fails / must be checked
Q\mathbb{Q} itselfOrdered field; embeds in every ordered fieldNot complete: bounded sets need not have suprema in Q\mathbb Q
R\mathbb{R}Ordered field, and has the least upper bound propertyStrictly larger than Q\mathbb Q; contains Q\mathbb Q densely
Finite fields (Fp\mathbb F_p)Field axioms holdNo compatible order exists at all (see counterexample)
C\mathbb{C}Field axioms holdNo order makes it an ordered field (i2=−1<0i^2=-1<0 contradicts Lemma (d))
Manipulating chained inequalitiesAdding/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
RD
Richard Dedekind
1831–1916 · Braunschweig and Göttingen, Germany

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 R\mathbb R from Q\mathbb Q in 1872. His key insight — later called a Dedekind cut — was to define each real number as a partition of Q\mathbb Q 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.

History
- 1858 — Dedekind, teaching calculus in Zürich, notices that no one had rigorously proved that a bounded monotonic sequence converges, and traces the issue to the lack of a rigorous construction of R\mathbb{R}.
- 1872 — Dedekind publishes Stetigkeit und irrationale Zahlen ("Continuity and Irrational Numbers"), constructing R\mathbb R via cuts of Q\mathbb Q, formalizing exactly the "gap" phenomenon proved above.
- 1872 — Independently, Georg Cantor and Eduard Heine develop the equivalent construction of R\mathbb R via equivalence classes of Cauchy sequences of rationals.
- 1899 — Hilbert's axiomatic treatment in Grundlagen der Geometrie and related work crystallizes the modern axiomatic notion of "ordered field," separating algebraic and order structure explicitly.
- 1930s — The theory of ordered fields and formally real fields is systematized by Artin and Schreier, connecting order structure to the algebra of sums of squares.
Is every field automatically an ordered field?

No. Being a field only guarantees the algebraic operations +,⋅+,\cdot 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 F3\mathbb F_3 satisfy every field axiom yet admit no order at all, because any attempted order plus the automatic algebraic fact 1+1+1=01+1+1=0 forces a direct contradiction with trichotomy. Similarly C\mathbb{C} is a field but not orderable, since i2=−1i^2=-1 would have to be positive (as a nonzero square) while also being −1-1, which cannot be positive if 11 is. So "field" and "ordered field" are genuinely different, and Q\mathbb Q, R\mathbb R are notable for having both structures compatibly.

Why can't we just define Q\mathbb{Q}'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 ab<cd\tfrac ab < \tfrac cd genuinely reduces to comparing adad and bcbc as integers — this is what "cross-multiplying" encodes rigorously. The subtlety is well-definedness: the same rational number has infinitely many representations ab=2a2b=⋯\tfrac ab = \tfrac{2a}{2b} = \cdots, 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 2\sqrt2 mean Q\mathbb{Q} is "missing points," and is that the same as Q\mathbb Q being countable while R\mathbb R is uncountable?

These are related but logically distinct facts. The gap theorem is an order-theoretic statement: a specific bounded, nonempty subset of Q\mathbb{Q} has no least upper bound within Q\mathbb Q. Countability is a set-theoretic statement about cardinality: Q\mathbb Q can be put in bijection with N\mathbb N, while R\mathbb R cannot (Cantor's diagonal argument). It is true that filling in all the order-theoretic gaps of Q\mathbb Q produces R\mathbb R, 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 φ:Q→F\varphi:\mathbb Q \to F constructed in the Corollary is always injective and order/operation-preserving, but it need not be surjective. When F=RF=\mathbb R, the image of φ\varphi is precisely the "usual" rationals sitting inside the reals, and R∖φ(Q)\mathbb R\setminus\varphi(\mathbb Q) is nonempty (it contains 2\sqrt2, π\pi, ee, 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 φ(Q)\varphi(\mathbb Q) is a vanishingly small part of FF, 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 h>0h>0, expressible purely in terms of pp using field operations, for which we can algebraically verify (p+h)2<2(p+h)^2<2 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 R\mathbb R exists). The specific choice h=min⁡(1,(2−p2)/(2p+1))h=\min(1,(2-p^2)/(2p+1)) (or half of it) is engineered so that expanding (p+h)2(p+h)^2 and bounding h2≤hh^2 \le h gives a clean algebraic inequality, entirely within Q\mathbb{Q} 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 Q\mathbb Q, 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 Q\mathbb Q, or via Cauchy sequences of rationals) as the essentially unique ordered field extending Q\mathbb Q that satisfies this extra property. Everything proved here about Q\mathbb Q's ordered field structure — the Lemma's inequality manipulations in particular — carries over verbatim to R\mathbb{R}, since R\mathbb R 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 12=24\tfrac12=\tfrac24 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 Q\mathbb Q) 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 hh 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.

Before this

Where this leads