let D be non empty bounded_above Subset of REAL ; :: thesis: upper_bound D = upper_bound (Cl D)
A1: for q being real number st ( for p being real number st p in D holds
p <= q ) holds
upper_bound (Cl D) <= q
proof
let q be real number ; :: thesis: ( ( for p being real number st p in D holds
p <= q ) implies upper_bound (Cl D) <= q )

assume A2: for p being real number st p in D holds
p <= q ; :: thesis: upper_bound (Cl D) <= q
for p being real number st p in Cl D holds
p <= q
proof
let p be real number ; :: thesis: ( p in Cl D implies p <= q )
assume p in Cl D ; :: thesis: p <= q
then consider s being Real_Sequence such that
A3: rng s c= D and
A4: s is convergent and
A5: lim s = p by MEASURE6:100;
for n being Element of NAT holds s . n <= q
proof
let n be Element of NAT ; :: thesis: s . n <= q
dom s = NAT by FUNCT_2:def 1;
then s . n in rng s by FUNCT_1:def 5;
hence s . n <= q by A2, A3; :: thesis: verum
end;
hence p <= q by A4, A5, PREPOWER:3; :: thesis: verum
end;
hence upper_bound (Cl D) <= q by SEQ_4:62; :: thesis: verum
end;
A6: upper_bound (Cl D) >= upper_bound D by MEASURE6:94, SEQ_4:65;
for p being real number st p in D holds
p <= upper_bound (Cl D)
proof
let p be real number ; :: thesis: ( p in D implies p <= upper_bound (Cl D) )
assume p in D ; :: thesis: p <= upper_bound (Cl D)
then upper_bound D >= p by SEQ_4:def 4;
hence p <= upper_bound (Cl D) by A6, XXREAL_0:2; :: thesis: verum
end;
hence upper_bound D = upper_bound (Cl D) by A1, SEQ_4:63; :: thesis: verum