Write a=Rez, b=Imz, c=Rew, d=Imw, so that z=a+bi and w=c+di are the canonical representations given by claim 3 of Canonical Form and Arithmetic of Complex Numbers and the definition of real and imaginary parts. All computations in canonical form use claim 4 of Canonical Form and Arithmetic of Complex Numbers, and all statements about identities and inverses of real numbers inside C use claim 1 of the same lemma. By definition z=a+(βb)i, and by definition β£zβ£ is the unique real number with 0β€β£zβ£ and β£zβ£2=a2+b2. Since R is an ordered field by The Real Numbers, we use its field axioms, the two order-compatibility conditions, and the properties of the total order. As in the statement, 2x abbreviates x+x and x2 abbreviates xβ
x for real x.
Step 0 (three facts about real numbers).
(i) If uβ€v and 0β€t, then utβ€vt. Indeed, adding βu to uβ€v gives 0β€v+(βu), so 0β€(v+(βu))t=vt+(β(ut)) by the second order-compatibility condition and the identity xβ
(βy)=β(xβ
y); adding ut gives utβ€vt.
(ii) If 0β€x, 0β€y and x2β€y2, then xβ€y; and if 0β€x, 0β€y and x2=y2, then x=y. For the second assertion, x and y are both nonnegative real numbers whose square is the same nonnegative real number, so they are equal by Existence and Uniqueness of the Nonnegative Square Root. For the first, suppose xβ€y fails. Since the order is total, yβ€x and yξ =x. By (i), yβ
yβ€xβ
y and xβ
yβ€xβ
x, so y2β€x2; with x2β€y2 and antisymmetry, x2=y2, whence x=y by the second assertion, a contradiction.
(iii) If x is real and x+x=0, then x=0. If 0β€x, adding x to both sides gives xβ€x+x=0, so x=0 by antisymmetry; if xβ€0, adding x gives 0=x+xβ€x, so again x=0.
Claim 1. By claim 4 of Canonical Form and Arithmetic of Complex Numbers,
z+w=(a+c)+(b+d)i,zw=(acβbd)+(ad+bc)i,
and these are canonical representations, so z+wβ=(a+c)+(β(b+d))i=(a+(βb)i)+(c+(βd)i)=z+w. Similarly
zw=(a+(βb)i)(c+(βd)i)=(acβ(βb)(βd))+(a(βd)+(βb)c)i=(acβbd)+(β(ad+bc))i=zw.
Also z=a+(β(βb))i=a+bi=z. Finally, z=z means a+(βb)i=a+bi, which by uniqueness of the canonical representation means βb=b, i.e. b+b=0, i.e. b=0 by Step 0(iii); and b=0 holds if and only if z=aβR, since conversely every real x has canonical representation x+0i and hence imaginary part 0.
Claim 2. z+z=(a+a)+(b+(βb))i=2a=2Rez and zβz=(a+(βa))+(b+b)i=(2b)i=(2Imz)i.
Claim 3. By claim 4 of Canonical Form and Arithmetic of Complex Numbers,
zz=(aβ
aβbβ
(βb))+(aβ
(βb)+bβ
a)i=(a2+b2)+0i=a2+b2=β£zβ£2.
The real and imaginary parts of z are a and βb, so β£zβ£ is the nonnegative real number with β£zβ£2=a2+(βb)2=a2+b2=β£zβ£2; since β£zβ£ and β£zβ£ are nonnegative with equal squares, β£zβ£=β£zβ£ by Step 0(ii). If β£zβ£=0 then a2+b2=β£zβ£2=0; since 0β€a2 and 0β€b2 by Existence and Uniqueness of the Square Root of a Sum of Two Squares applied to the pairs a,0 and b,0, adding b2 to 0β€a2 gives b2β€a2+b2=0, so b2=0 and hence b=0 because a field has no zero divisors, and symmetrically a=0; thus z=0. Conversely, if z=0 then a=b=0, so β£zβ£2=0 and therefore β£zβ£=0, again because a field has no zero divisors.
Claim 4. Using claim 4 of Canonical Form and Arithmetic of Complex Numbers and expanding in R,
β£zwβ£2=(acβbd)2+(ad+bc)2=a2c2+b2d2+a2d2+b2c2=(a2+b2)(c2+d2)=β£zβ£2β£wβ£2=(β£zβ£β£wβ£)2,
the cross terms cancelling. Both β£zwβ£ and β£zβ£β£wβ£ are nonnegative, the latter by the second order-compatibility condition applied to 0β€β£zβ£ and 0β€β£wβ£, so β£zwβ£=β£zβ£β£wβ£ by Step 0(ii).
Claim 5. Let zξ =0. By claim 3, β£zβ£ξ =0, so β£zβ£2ξ =0 and the real number β£zβ£β2=1/β£zβ£2 exists; by claim 1 of Canonical Form and Arithmetic of Complex Numbers it is also the multiplicative inverse of β£zβ£2 in C. Using commutativity and associativity of multiplication in C and claim 3,
zβ
(β£zβ£β2z)=β£zβ£β2(zz)=β£zβ£β2β£zβ£2=1.
Since multiplicative inverses in a field are unique, zβ1=β£zβ£β2z.
Claim 6. By Existence and Uniqueness of the Square Root of a Sum of Two Squares applied to b and 0 we have 0β€b2, so adding a2 gives a2β€a2+b2=β£zβ£2. If aβ€0, then aβ€0β€β£zβ£ by transitivity. If 0β€a, then aβ€β£zβ£ by Step 0(ii). The same argument applied to βa, using (βa)2=a2, gives βaβ€β£zβ£; and the argument with b and βb in place of a, using b2β€a2+b2, gives bβ€β£zβ£ and βbβ€β£zβ£.
Claim 7. Expanding in R,
β£z+wβ£2=(a+c)2+(b+d)2=(a2+b2)+2(ac+bd)+(c2+d2)=β£zβ£2+2(ac+bd)+β£wβ£2.
By claim 4 of Canonical Form and Arithmetic of Complex Numbers, zw=(ac+bd)+(bcβad)i, so ac+bd=Re(zw). By claim 6 applied to zw, then claim 4 and claim 3,
ac+bdβ€β£zwβ£=β£zβ£β£wβ£=β£zβ£β£wβ£.
Adding this inequality to itself, which is permitted by the first order-compatibility condition applied twice, gives 2(ac+bd)β€2β£zβ£β£wβ£; adding β£zβ£2+β£wβ£2 to both sides gives
β£z+wβ£2β€β£zβ£2+2β£zβ£β£wβ£+β£wβ£2=(β£zβ£+β£wβ£)2.
Both β£z+wβ£ and β£zβ£+β£wβ£ are nonnegative, the latter because adding β£wβ£ to 0β€β£zβ£ gives β£wβ£β€β£zβ£+β£wβ£, and 0β€β£wβ£. Hence β£z+wβ£β€β£zβ£+β£wβ£ by Step 0(ii).
Claim 8. Let xβR. Its canonical representation is x+0i, so β£xβ£ is the nonnegative real number with β£xβ£2=x2+02=x2. If 0β€x, then x is nonnegative with x2=β£xβ£2, so β£xβ£=x by Step 0(ii). Otherwise, since the order is total, xβ€0, so 0β€βx and (βx)2=x2=β£xβ£2, whence β£xβ£=βx by Step 0(ii).
Claim 9. We verify the four conditions of Metric Space for dCβ(z,w)=β£zβwβ£, which is a real number for every pair of complex numbers z,w. Condition 1, 0β€β£zβwβ£, holds by the definition of the modulus. Condition 2: by claim 3, β£zβwβ£=0 if and only if zβw=0, that is, if and only if z=w. Condition 3: wβz=(β1)(zβw) by the field identities (β1)x=βx and β(x+y)=(βx)+(βy), so by claim 4 and claim 8, β£wβzβ£=β£β1β£β£zβwβ£=1β
β£zβwβ£=β£zβwβ£. Condition 4: for complex z,w,u we have zβu=(zβw)+(wβu), so claim 7 gives β£zβuβ£β€β£zβwβ£+β£wβuβ£. Hence dCβ is a metric on C.