Claim 1. Let x∈X and let r>0 be a real number. If v∈BdX(x,r), that is dX(x,v)<r by the definition of the open ball, then dY(Φ(x),Φ(v))=dX(x,v)<r, so Φ(v)∈BdY(Φ(x),r). This proves the inclusion from left to right. Conversely, let y∈BdY(Φ(x),r). Since Φ is a bijection there is v∈X with y=Φ(v), and then
dX(x,v)=dY(Φ(x),Φ(v))=dY(Φ(x),y)<r,
so v∈BdX(x,r) and hence y∈Φ(BdX(x,r)).
Claim 2. We first show that Φ is continuous. Let W∈TdY and put U={x∈X:Φ(x)∈W}. Let x∈U. Since W is open in (Y,dY) and Φ(x)∈W, there is a real r>0 with BdY(Φ(x),r)⊆W. By claim 1, Φ(BdX(x,r))=BdY(Φ(x),r)⊆W, so every v∈BdX(x,r) satisfies Φ(v)∈W, that is BdX(x,r)⊆U. Since x∈U was arbitrary, U is open in (X,dX), that is U∈TdX. Hence Φ is continuous.
The inverse map Φ−1:Y→X is again a bijection, and it preserves distances: for y,y′∈Y, applying the hypothesis to u=Φ−1(y) and v=Φ−1(y′) gives
dX(Φ−1(y),Φ−1(y′))=dY(Φ(Φ−1(y)),Φ(Φ−1(y′)))=dY(y,y′).
So the argument just given, applied to Φ−1 in place of Φ and with the roles of (X,dX) and (Y,dY) interchanged, shows that Φ−1 is continuous.
Claim 3. Suppose first that A is compact in X. By claim 2 the map Φ is continuous, so claim 2 of Restriction of a Continuous Map, and Continuous Images of Compact Subsets shows that Φ(A) is compact in Y. Suppose conversely that Φ(A) is compact in Y. By claim 2 the map Φ−1 is continuous, so the same result, applied to Φ−1 and the subset Φ(A) of Y, shows that {Φ−1(y):y∈Φ(A)} is compact in X. Since Φ is a bijection, that set is A.