let n be Element of NAT ; :: thesis: for A, B being non empty compact Subset of (TOP-REAL n) ex p, q being Point of (TOP-REAL n) st
( p in A & q in B & dist_min A,B = dist p,q )

let A, B be non empty compact Subset of (TOP-REAL n); :: thesis: ex p, q being Point of (TOP-REAL n) st
( p in A & q in B & dist_min A,B = dist p,q )

consider A', B' being Subset of (TopSpaceMetr (Euclid n)) such that
A1: ( A = A' & B = B' ) and
A2: dist_min A,B = min_dist_min A',B' by Def1;
TopStruct(# the carrier of (TOP-REAL n),the topology of (TOP-REAL n) #) = TopSpaceMetr (Euclid n) by EUCLID:def 8;
then ( A' is compact & B' is compact ) by A1, COMPTS_1:33;
then consider x1, x2 being Point of (Euclid n) such that
A3: ( x1 in A' & x2 in B' ) and
A4: dist x1,x2 = min_dist_min A',B' by A1, WEIERSTR:36;
reconsider p = x1, q = x2 as Point of (TOP-REAL n) by TOPREAL3:13;
take p ; :: thesis: ex q being Point of (TOP-REAL n) st
( p in A & q in B & dist_min A,B = dist p,q )

take q ; :: thesis: ( p in A & q in B & dist_min A,B = dist p,q )
thus ( p in A & q in B ) by A1, A3; :: thesis: dist_min A,B = dist p,q
thus dist_min A,B = dist p,q by A2, A4, TOPREAL6:def 1; :: thesis: verum