let n be Nat; :: thesis: for A being Subset of (TOP-REAL n) holds
( A is bounded iff ex p being Point of (Euclid n) ex r being Real st A c= OpenHypercube (p,r) )

let A be Subset of (TOP-REAL n); :: thesis: ( A is bounded iff ex p being Point of (Euclid n) ex r being Real st A c= OpenHypercube (p,r) )
reconsider B = A as Subset of (Euclid n) by TOPREAL3:8;
thus ( A is bounded implies ex p being Point of (Euclid n) ex r being Real st A c= OpenHypercube (p,r) ) :: thesis: ( ex p being Point of (Euclid n) ex r being Real st A c= OpenHypercube (p,r) implies A is bounded )
proof
assume A is bounded ; :: thesis: ex p being Point of (Euclid n) ex r being Real st A c= OpenHypercube (p,r)
then A1: B is bounded by JORDAN2C:11;
per cases ( A is empty or not A is empty ) ;
suppose A2: A is empty ; :: thesis: ex p being Point of (Euclid n) ex r being Real st A c= OpenHypercube (p,r)
take p = the Point of (Euclid n); :: thesis: ex r being Real st A c= OpenHypercube (p,r)
take r = the Real; :: thesis: A c= OpenHypercube (p,r)
thus A c= OpenHypercube (p,r) by A2; :: thesis: verum
end;
suppose not A is empty ; :: thesis: ex p being Point of (Euclid n) ex r being Real st A c= OpenHypercube (p,r)
then consider p being object such that
A3: p in B by XBOOLE_0:def 1;
reconsider p = p as Element of (Euclid n) by A3;
consider r being Real such that
0 < r and
A4: for x, y being Point of (Euclid n) st x in B & y in B holds
dist (x,y) <= r by A1;
take p ; :: thesis: ex r being Real st A c= OpenHypercube (p,r)
take r1 = r + 1; :: thesis: A c= OpenHypercube (p,r1)
A5: B c= Ball (p,r1)
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in B or x in Ball (p,r1) )
assume A6: x in B ; :: thesis: x in Ball (p,r1)
then reconsider x = x as Element of (Euclid n) ;
dist (p,x) < r1 by A3, A4, A6, XREAL_1:39;
hence x in Ball (p,r1) by METRIC_1:11; :: thesis: verum
end;
Ball (p,r1) c= OpenHypercube (p,r1) by EUCLID_9:22;
hence A c= OpenHypercube (p,r1) by A5; :: thesis: verum
end;
end;
end;
given p being Point of (Euclid n), r being Real such that A7: A c= OpenHypercube (p,r) ; :: thesis: A is bounded
per cases ( n = 0 or n <> 0 ) ;
end;