A bound for the differences of h. Let s,t∈A. By Metric Space (v), applied twice,
h(s)=dY(x(s),y(s))≤dY(x(s),x(t))+dY(x(t),y(t))+dY(y(t),y(s)),
and, with s and t exchanged, h(t)≤dY(x(t),x(s))+h(s)+dY(y(s),y(t)). By Metric Space (iv), dY(x(t),x(s))=dY(x(s),x(t)) and dY(y(t),y(s))=dY(y(s),y(t)), so both h(s)−h(t) and h(t)−h(s) are at most dY(x(s),x(t))+dY(y(s),y(t)), that is (the difference and the absolute value being read in the type Real of The Real Numbers as a Type (i), by Differences, Quotients and Absolute Values of Real Numbers, Read in the Type Real (i) and Differences, Quotients and Absolute Values of Real Numbers, Read in the Type Real (iii)),
dR(h(s),h(t))=∣h(s)−h(t)∣≤dY(x(s),x(t))+dY(y(s),y(t)).(1)
Continuity ((i)). Let t∈A. The choices are made in this order. First a real ε>0 is given; its half ε/2 is a real number with ε/2+ε/2=ε by Closure Facts in an Ordered Field: Negatives, Differences, Quotients, Absolute Values, Powers, Natural Numbers, Halves and Minima (vii), with the ordered field R for its F. Then, as x is continuous on A, it is continuous at t relative to A by Continuous Map Between Metric Spaces (ii), and Continuous Map Between Metric Spaces (i), applied to ε/2>0, gives a real δ1>0 such that every s∈A with dX(t,s)<δ1 satisfies dY(x(s),x(t))<ε/2. In the same way, continuity of y at t relative to A, applied to ε/2, gives a real δ2>0 such that every s∈A with dX(t,s)<δ2 satisfies dY(y(s),y(t))<ε/2. Let δ>0 be the smaller of δ1 and δ2; it depends on t and ε only. Now let s∈A with dX(t,s)<δ. Then dX(t,s)<δ1 and dX(t,s)<δ2, and by (1)
dR(h(s),h(t))≤dY(x(s),x(t))+dY(y(s),y(t))<2ε+2ε=ε.
So h is continuous at t relative to A, as a map from (X,dX) to (R,dR). As t∈A was arbitrary, h is continuous on A by Continuous Map Between Metric Spaces (ii).