let X be Subset of REAL ; :: thesis: ( X is bounded & not X is empty implies ( ex r, p being real number st
( r in X & p in X & p <> r ) iff lower_bound X < upper_bound X ) )

assume that
A1: X is bounded and
A2: not X is empty ; :: thesis: ( ex r, p being real number st
( r in X & p in X & p <> r ) iff lower_bound X < upper_bound X )

thus ( ex r, p being real number st
( r in X & p in X & p <> r ) implies lower_bound X < upper_bound X ) :: thesis: ( lower_bound X < upper_bound X implies ex r, p being real number st
( r in X & p in X & p <> r ) )
proof end;
assume that
A11: lower_bound X < upper_bound X and
A12: for r, p being real number st r in X & p in X holds
p = r ; :: thesis: contradiction
consider r being Element of REAL such that
A13: r in X by A2, SUBSET_1:10;
for x being set holds
( x in X iff x = r ) by A12, A13;
then X = {r} by TARSKI:def 1;
hence contradiction by A11, Th23; :: thesis: verum