let X be RealNormSpace; :: thesis: for f being PartFunc of (DualSp X),REAL
for S being non empty Subset of (DualSp X) st S is weakly*-sequentially-compact & f is_weakly*_continuous_on S holds
( ex r being Real st
for x being Point of (DualSp X) st x in S holds
|.(f . x).| <= r & ex x0 being Point of (DualSp X) st
( x0 in S & ( for x being Point of (DualSp X) st x in S holds
f . x <= f . x0 ) ) & ex v0 being Point of (DualSp X) st
( v0 in S & ( for x being Point of (DualSp X) st x in S holds
f . v0 <= f . x ) ) )

let f be PartFunc of (DualSp X),REAL; :: thesis: for S being non empty Subset of (DualSp X) st S is weakly*-sequentially-compact & f is_weakly*_continuous_on S holds
( ex r being Real st
for x being Point of (DualSp X) st x in S holds
|.(f . x).| <= r & ex x0 being Point of (DualSp X) st
( x0 in S & ( for x being Point of (DualSp X) st x in S holds
f . x <= f . x0 ) ) & ex v0 being Point of (DualSp X) st
( v0 in S & ( for x being Point of (DualSp X) st x in S holds
f . v0 <= f . x ) ) )

let S be non empty Subset of (DualSp X); :: thesis: ( S is weakly*-sequentially-compact & f is_weakly*_continuous_on S implies ( ex r being Real st
for x being Point of (DualSp X) st x in S holds
|.(f . x).| <= r & ex x0 being Point of (DualSp X) st
( x0 in S & ( for x being Point of (DualSp X) st x in S holds
f . x <= f . x0 ) ) & ex v0 being Point of (DualSp X) st
( v0 in S & ( for x being Point of (DualSp X) st x in S holds
f . v0 <= f . x ) ) ) )

assume that
A1: S is weakly*-sequentially-compact and
A2: f is_weakly*_continuous_on S ; :: thesis: ( ex r being Real st
for x being Point of (DualSp X) st x in S holds
|.(f . x).| <= r & ex x0 being Point of (DualSp X) st
( x0 in S & ( for x being Point of (DualSp X) st x in S holds
f . x <= f . x0 ) ) & ex v0 being Point of (DualSp X) st
( v0 in S & ( for x being Point of (DualSp X) st x in S holds
f . v0 <= f . x ) ) )

A4: dom (f | S) = S by RELAT_1:62, A2;
thus A5: ex r being Real st
for x being Point of (DualSp X) st x in S holds
|.(f . x).| <= r :: thesis: ( ex x0 being Point of (DualSp X) st
( x0 in S & ( for x being Point of (DualSp X) st x in S holds
f . x <= f . x0 ) ) & ex v0 being Point of (DualSp X) st
( v0 in S & ( for x being Point of (DualSp X) st x in S holds
f . v0 <= f . x ) ) )
proof
assume A6: for r being Real ex x being Point of (DualSp X) st
( x in S & not |.(f . x).| <= r ) ; :: thesis: contradiction
defpred S1[ Element of NAT , Point of (DualSp X)] means ( $2 in S & $1 < |.(f . $2).| );
A7: for x being Element of NAT ex y being Element of (DualSp X) st S1[x,y] by A6;
consider seq being Function of NAT,(DualSp X) such that
A9: for x being Element of NAT holds S1[x,seq . x] from FUNCT_2:sch 3(A7);
A10: dom seq = NAT by FUNCT_2:def 1;
for x being object st x in NAT holds
seq . x in S by A9;
then reconsider seq = seq as sequence of S by A10, FUNCT_2:3;
consider seq1 being sequence of (DualSp X) such that
A11: ( seq1 is subsequence of seq & seq1 is weakly*-convergent & w*-lim seq1 in S ) by A1;
A12: f | S is_weakly*_continuous_in w*-lim seq1 by A11, A2, Th10;
A13: rng seq1 c= dom (f | S) by A4, A11, RELAT_1:def 19;
then A14: ( (f | S) /* seq1 is convergent & lim ((f | S) /* seq1) = (f | S) . (w*-lim seq1) ) by Th12, A12, A11;
set r = (f | S) . (w*-lim seq1);
set g = (f | S) /* seq1;
consider r being Real such that
A15: ( 0 < r & ( for n being Nat holds |.(((f | S) /* seq1) . n).| < r ) ) by SEQ_2:3, A14;
consider N being increasing sequence of NAT such that
A16: seq1 = seq * N by A11, VALUED_0:def 17;
consider n0 being Nat such that
A17: r < n0 by SEQ_4:3;
n0 <= N . n0 by SEQM_3:14;
then A18: r < N . n0 by A17, XXREAL_0:2;
A19: n0 in NAT by ORDINAL1:def 12;
A20: seq1 . n0 = seq . (N . n0) by ORDINAL1:def 12, FUNCT_2:15, A16;
A22: ((f | S) /* seq1) . n0 = (f | S) . (seq1 . n0) by FUNCT_2:108, A19, A13
.= f . (seq . (N . n0)) by A20, FUNCT_1:49 ;
r < |.(((f | S) /* seq1) . n0).| by A18, XXREAL_0:2, A9, A22;
hence contradiction by A15; :: thesis: verum
end;
consider r being Real such that
A24: for x being Point of (DualSp X) st x in S holds
|.(f . x).| <= r by A5;
dom (f | S) <> {} by A2, RELAT_1:62;
then reconsider Y = rng (f | S) as non empty real-membered set by RELAT_1:42;
consider s being object such that
A25: s in S by XBOOLE_0:def 1;
reconsider s = s as Point of (DualSp X) by A25;
|.(f . s).| <= r by A24, A25;
then A27P: 0 <= r by COMPLEX1:46;
for z being Real st z in Y holds
|.z.| < r + 1
proof
let z be Real; :: thesis: ( z in Y implies |.z.| < r + 1 )
assume z in Y ; :: thesis: |.z.| < r + 1
then consider t being object such that
A28: ( t in dom (f | S) & z = (f | S) . t ) by FUNCT_1:def 3;
A29: t in S by RELAT_1:62, A2, A28;
reconsider t = t as Point of (DualSp X) by A28;
(f | S) . t = f . t by A29, FUNCT_1:49;
then A30: |.((f | S) . t).| <= r by A29, A24;
r + 0 < r + 1 by XREAL_1:8;
hence |.z.| < r + 1 by A30, A28, XXREAL_0:2; :: thesis: verum
end;
then A31: Y is real-bounded by A27P, SEQ_4:4;
thus ex x0 being Point of (DualSp X) st
( x0 in S & ( for x being Point of (DualSp X) st x in S holds
f . x <= f . x0 ) ) :: thesis: ex v0 being Point of (DualSp X) st
( v0 in S & ( for x being Point of (DualSp X) st x in S holds
f . v0 <= f . x ) )
proof
set M = upper_bound Y;
defpred S1[ Nat, Point of (DualSp X)] means ( $2 in S & |.(((f | S) . $2) - (upper_bound Y)).| < 1 / ($1 + 1) );
A32: for x being Element of NAT ex y being Element of (DualSp X) st S1[x,y]
proof
let n be Element of NAT ; :: thesis: ex y being Element of (DualSp X) st S1[n,y]
consider r being Real such that
A34: ( r in Y & (upper_bound Y) - (1 / (n + 1)) < r ) by A31, SEQ_4:def 1;
r <= upper_bound Y by A34, SEQ_4:def 1, A31;
then A35P: r + 0 < (upper_bound Y) + (1 / (n + 1)) by XREAL_1:8;
consider t being object such that
A36: ( t in dom (f | S) & r = (f | S) . t ) by A34, FUNCT_1:def 3;
reconsider t = t as Point of (DualSp X) by A36;
take t ; :: thesis: S1[n,t]
thus ( t in S & |.(((f | S) . t) - (upper_bound Y)).| < 1 / (n + 1) ) by A35P, A34, RINFSUP1:1, RELAT_1:62, A2, A36; :: thesis: verum
end;
consider seq being Function of NAT,(DualSp X) such that
A38: for n being Element of NAT holds S1[n,seq . n] from FUNCT_2:sch 3(A32);
A39: dom seq = NAT by FUNCT_2:def 1;
reconsider seq = seq as sequence of (DualSp X) ;
now :: thesis: for y being object st y in rng seq holds
y in S
let y be object ; :: thesis: ( y in rng seq implies y in S )
assume y in rng seq ; :: thesis: y in S
then consider x being object such that
A40: ( x in dom seq & y = seq . x ) by FUNCT_1:def 3;
reconsider x = x as Element of NAT by A40;
thus y in S by A40, A38; :: thesis: verum
end;
then A42: rng seq c= dom (f | S) by A4;
A43: now :: thesis: for p being Real st 0 < p holds
ex n being Nat st
for m being Nat st n <= m holds
|.((((f | S) /* seq) . m) - (upper_bound Y)).| < p
let p be Real; :: thesis: ( 0 < p implies ex n being Nat st
for m being Nat st n <= m holds
|.((((f | S) /* seq) . m) - (upper_bound Y)).| < p )

assume A44: 0 < p ; :: thesis: ex n being Nat st
for m being Nat st n <= m holds
|.((((f | S) /* seq) . m) - (upper_bound Y)).| < p

consider n being Nat such that
A45: n > (1 / p) - 1 by SEQ_4:3;
take n = n; :: thesis: for m being Nat st n <= m holds
|.((((f | S) /* seq) . m) - (upper_bound Y)).| < p

let m be Nat; :: thesis: ( n <= m implies |.((((f | S) /* seq) . m) - (upper_bound Y)).| < p )
assume A46: n <= m ; :: thesis: |.((((f | S) /* seq) . m) - (upper_bound Y)).| < p
(1 / p) - 1 < m by A45, A46, XXREAL_0:2;
then ((1 / p) - 1) + 1 < m + 1 by XREAL_1:8;
then (p ") " > (m + 1) " by A44, XREAL_1:88;
then A48: 1 / (m + 1) < p ;
A49: ( m is Element of NAT & m in NAT ) by ORDINAL1:def 12;
then |.(((f | S) . (seq . m)) - (upper_bound Y)).| < p by A38, A48, XXREAL_0:2;
hence |.((((f | S) /* seq) . m) - (upper_bound Y)).| < p by A42, A49, FUNCT_2:108; :: thesis: verum
end;
then (f | S) /* seq is convergent by SEQ_2:def 6;
then A51: lim ((f | S) /* seq) = upper_bound Y by A43, SEQ_2:def 7;
for x being object st x in NAT holds
seq . x in S by A38;
then A52: seq is sequence of S by A39, FUNCT_2:3;
then consider seq1 being sequence of (DualSp X) such that
A53: ( seq1 is subsequence of seq & seq1 is weakly*-convergent & w*-lim seq1 in S ) by A1;
A54: f | S is_weakly*_continuous_in w*-lim seq1 by A53, A2, Th10;
A55: rng seq1 c= dom (f | S) by A52, A4, A53, RELAT_1:def 19;
then A56: ( (f | S) /* seq1 is convergent & lim ((f | S) /* seq1) = (f | S) . (w*-lim seq1) ) by Th12, A53, A54;
consider N being increasing sequence of NAT such that
A57: seq1 = seq * N by A53, VALUED_0:def 17;
(f | S) /* seq1 = (f | S) * seq1 by A55, FUNCT_2:def 11
.= ((f | S) * seq) * N by RELAT_1:36, A57
.= ((f | S) /* seq) * N by A42, FUNCT_2:def 11 ;
then A58: (f | S) . (w*-lim seq1) = upper_bound Y by A43, SEQ_2:def 6, SEQ_4:17, A51, A56;
take x0 = w*-lim seq1; :: thesis: ( x0 in S & ( for x being Point of (DualSp X) st x in S holds
f . x <= f . x0 ) )

thus x0 in S by A53; :: thesis: for x being Point of (DualSp X) st x in S holds
f . x <= f . x0

let x be Point of (DualSp X); :: thesis: ( x in S implies f . x <= f . x0 )
assume A59: x in S ; :: thesis: f . x <= f . x0
then A60: f . x = (f | S) . x by FUNCT_1:49;
A61: (f | S) . x in Y by A59, A4, FUNCT_1:3;
(f | S) . (w*-lim seq1) = f . x0 by FUNCT_1:49, A53;
hence f . x <= f . x0 by A31, A60, A61, A58, SEQ_4:def 1; :: thesis: verum
end;
set N = lower_bound Y;
defpred S1[ Nat, Point of (DualSp X)] means ( $2 in S & |.(((f | S) . $2) - (lower_bound Y)).| < 1 / ($1 + 1) );
A63: for x being Element of NAT ex y being Element of (DualSp X) st S1[x,y]
proof
let n be Element of NAT ; :: thesis: ex y being Element of (DualSp X) st S1[n,y]
consider r being Real such that
A65: ( r in Y & r < (lower_bound Y) + (1 / (n + 1)) ) by A31, SEQ_4:def 2;
lower_bound Y <= r by A65, SEQ_4:def 2, A31;
then A66P: (lower_bound Y) - (1 / (n + 1)) < r - 0 by XREAL_1:8;
consider t being object such that
A67: ( t in dom (f | S) & r = (f | S) . t ) by A65, FUNCT_1:def 3;
reconsider t = t as Point of (DualSp X) by A67;
take t ; :: thesis: S1[n,t]
thus ( t in S & |.(((f | S) . t) - (lower_bound Y)).| < 1 / (n + 1) ) by A66P, RELAT_1:62, A2, A67, A65, RINFSUP1:1; :: thesis: verum
end;
consider seq being Function of NAT,(DualSp X) such that
A69: for n being Element of NAT holds S1[n,seq . n] from FUNCT_2:sch 3(A63);
A70: dom seq = NAT by FUNCT_2:def 1;
reconsider seq = seq as sequence of (DualSp X) ;
now :: thesis: for y being object st y in rng seq holds
y in S
let y be object ; :: thesis: ( y in rng seq implies y in S )
assume y in rng seq ; :: thesis: y in S
then consider x being object such that
A71: ( x in dom seq & y = seq . x ) by FUNCT_1:def 3;
reconsider x = x as Element of NAT by A71;
thus y in S by A71, A69; :: thesis: verum
end;
then A73: rng seq c= dom (f | S) by A4;
A74: now :: thesis: for p being Real st 0 < p holds
ex n being Nat st
for m being Nat st n <= m holds
|.((((f | S) /* seq) . m) - (lower_bound Y)).| < p
let p be Real; :: thesis: ( 0 < p implies ex n being Nat st
for m being Nat st n <= m holds
|.((((f | S) /* seq) . m) - (lower_bound Y)).| < p )

assume A75: 0 < p ; :: thesis: ex n being Nat st
for m being Nat st n <= m holds
|.((((f | S) /* seq) . m) - (lower_bound Y)).| < p

consider n being Nat such that
A76: n > (1 / p) - 1 by SEQ_4:3;
take n = n; :: thesis: for m being Nat st n <= m holds
|.((((f | S) /* seq) . m) - (lower_bound Y)).| < p

let m be Nat; :: thesis: ( n <= m implies |.((((f | S) /* seq) . m) - (lower_bound Y)).| < p )
assume A77: n <= m ; :: thesis: |.((((f | S) /* seq) . m) - (lower_bound Y)).| < p
(1 / p) - 1 < m by A76, A77, XXREAL_0:2;
then ((1 / p) - 1) + 1 < m + 1 by XREAL_1:8;
then (p ") " > (m + 1) " by A75, XREAL_1:88;
then A79: 1 / (m + 1) < p ;
A80: ( m is Element of NAT & m in NAT ) by ORDINAL1:def 12;
then |.(((f | S) . (seq . m)) - (lower_bound Y)).| < p by A79, XXREAL_0:2, A69;
hence |.((((f | S) /* seq) . m) - (lower_bound Y)).| < p by A73, A80, FUNCT_2:108; :: thesis: verum
end;
then (f | S) /* seq is convergent by SEQ_2:def 6;
then A82: lim ((f | S) /* seq) = lower_bound Y by A74, SEQ_2:def 7;
for x being object st x in NAT holds
seq . x in S by A69;
then A83: seq is sequence of S by A70, FUNCT_2:3;
then consider seq1 being sequence of (DualSp X) such that
A84: ( seq1 is subsequence of seq & seq1 is weakly*-convergent & w*-lim seq1 in S ) by A1;
A85: f | S is_weakly*_continuous_in w*-lim seq1 by A84, A2, Th10;
A86: rng seq1 c= dom (f | S) by A83, A4, A84, RELAT_1:def 19;
then A87: ( (f | S) /* seq1 is convergent & lim ((f | S) /* seq1) = (f | S) . (w*-lim seq1) ) by Th12, A84, A85;
consider K being increasing sequence of NAT such that
A88: seq1 = seq * K by A84, VALUED_0:def 17;
(f | S) /* seq1 = (f | S) * seq1 by A86, FUNCT_2:def 11
.= ((f | S) * seq) * K by RELAT_1:36, A88
.= ((f | S) /* seq) * K by A73, FUNCT_2:def 11 ;
then A89: (f | S) . (w*-lim seq1) = lower_bound Y by SEQ_2:def 6, A74, SEQ_4:17, A82, A87;
take v0 = w*-lim seq1; :: thesis: ( v0 in S & ( for x being Point of (DualSp X) st x in S holds
f . v0 <= f . x ) )

thus v0 in S by A84; :: thesis: for x being Point of (DualSp X) st x in S holds
f . v0 <= f . x

let x be Point of (DualSp X); :: thesis: ( x in S implies f . v0 <= f . x )
assume A90: x in S ; :: thesis: f . v0 <= f . x
then A91: f . x = (f | S) . x by FUNCT_1:49;
A92: (f | S) . x in Y by A90, A4, FUNCT_1:3;
(f | S) . (w*-lim seq1) = f . v0 by FUNCT_1:49, A84;
hence f . v0 <= f . x by A31, A91, A92, A89, SEQ_4:def 2; :: thesis: verum