Write s=dX(x1,x2) and t=dY(y1,y2), so that dX×Y(p,q)=max{s,t} by the definition of the product metric. Points of the Cartesian product X×Y are ordered pairs, so (x1,y1)=(x2,y2) holds if and only if x1=x2 and y1=y2. We use the numbering of the conditions in the definition of a metric, the properties of the maximum recorded in Elementary Properties of the Maximum of Two Elements, and the order arithmetic of Elementary Order Arithmetic in an Ordered Field and Elementary Arithmetic in an Ordered Field. We also use repeatedly that if a≤b and c≤e then a+c≤b+e; this follows from claims 2 and 3 of Elementary Arithmetic in an Ordered Field together with the associativity and commutativity of addition in the underlying field.
Claim 2. This is claim 1 of Elementary Properties of the Maximum of Two Elements applied to s and t.
Claim 3. Suppose max{s,t}<r. By claim 2 we have s≤max{s,t} and t≤max{s,t}, so claim 2 of Elementary Order Arithmetic in an Ordered Field gives s<r and t<r. Conversely, suppose s<r and t<r. By claim 2 of Elementary Properties of the Maximum of Two Elements the element max{s,t} equals s or t, and in either case max{s,t}<r.
Claim 1. We verify the four conditions in the definition of a metric.
Condition 1. Condition 1 for dX gives 0≤s, and claim 2 of the present theorem gives s≤dX×Y(p,q); transitivity of ≤ gives 0≤dX×Y(p,q).
Condition 2. Suppose dX×Y(p,q)=0. By claim 2 of the present theorem, s≤0 and t≤0; condition 1 for dX and dY gives 0≤s and 0≤t, so antisymmetry gives s=0 and t=0. Condition 2 for dX and dY then gives x1=x2 and y1=y2, that is p=q. Conversely, suppose p=q. Then s=dX(x1,x1)=0 and t=dY(y1,y1)=0 by condition 2 for dX and dY, and max{0,0}=0 because 0≤0 by reflexivity, so dX×Y(p,q)=0.
Condition 3. Condition 3 for dX and dY gives dX(x2,x1)=s and dY(y2,y1)=t, so dX×Y(q,p)=max{s,t}=dX×Y(p,q).
Condition 4. Let w=(x3,y3)∈X×Y. Condition 4 for dX gives
dX(x1,x3)≤dX(x1,x2)+dX(x2,x3),
and claim 2 of the present theorem, applied to the pairs p,q and q,w, gives dX(x1,x2)≤dX×Y(p,q) and dX(x2,x3)≤dX×Y(q,w). Adding these two inequalities and using transitivity,
dX(x1,x3)≤dX×Y(p,q)+dX×Y(q,w).
The same argument with dY gives dY(y1,y3)≤dX×Y(p,q)+dX×Y(q,w). By claim 3 of Elementary Properties of the Maximum of Two Elements,
dX×Y(p,w)=max{dX(x1,x3),dY(y1,y3)}≤dX×Y(p,q)+dX×Y(q,w).
Hence dX×Y satisfies all four conditions and is a metric on X×Y.