Let N be the natural numbers, ι the canonical map of R, and Z the integers. Every step below in which the same quantity is added to both sides of an inequality, or both sides are multiplied by a positive quantity, is justified by the elementary order arithmetic in an ordered field.
Claim 1. Let x<y in R, so 0<y−x. By claim 3 of the Archimedean property there is N∈N such that ι(N)−1 exists and
0<ι(N)−1<y−x.
By claim 3 of the properties of the canonical map, 0<ι(N).
Let n=⌊ι(N)x⌋ be the integer part of ι(N)x, so that
n≤ι(N)x<n+1,
and put q=(n+1)ι(N)−1. Both n+1 and ι(N) are integers, by claim 2 of the arithmetic lemma for the integers and by the definition of Z respectively, and ι(N)=0; hence q∈Q by the definition of the rational numbers.
Multiplying the strict inequality ι(N)x<n+1 by the positive number ι(N)−1 preserves it, and ι(N)−1(ι(N)x)=x, so
x<(n+1)ι(N)−1=q.
Multiplying n≤ι(N)x by the positive ι(N)−1 gives nι(N)−1≤x, so
q=(n+1)ι(N)−1=nι(N)−1+ι(N)−1≤x+ι(N)−1<x+(y−x)=y.
Hence x<q<y.
Claim 2. Let x∈R and let ε>0 be real. Then x<x+ε, so claim 1 provides q∈Q with x<q<x+ε. Then 0<q−x<ε, so ∣x−q∣=∣q−x∣=q−x<ε by the definition of the absolute value.
Claim 3. By the identification of the Euclidean distance on the real line with the absolute value metric, d(s,t)=∣s−t∣ for all s,t∈R, so for x∈R and real ε>0 the open ball of centre x and radius ε is {s∈R:∣s−x∣<ε}. By the theorem that metric open sets form a topology, the collection Td of metric open subsets of R is a topology, so the closure of a subset of R is defined.
By the characterization of the closure in a metric space by open balls, a point x∈R belongs to the closure of Q if and only if every open ball of centre x and positive radius contains a point of Q. Let x∈R and let ε>0 be real; claim 2 supplies q∈Q with ∣x−q∣<ε, and this q lies in the open ball of centre x and radius ε. Hence every x∈R belongs to the closure of Q, so that closure is R itself, which is precisely the assertion that Q is dense in (R,Td).