set X = POWEROF2SET ;
set p = seq_logn ;
set g = seq_n^ 1;
set h = (seq_n^ 1) taken_every 2;
set q = seq_logn /" (seq_n^ 1);
A1: now :: thesis: for n being Element of NAT st n >= 1 holds
( ((seq_n^ 1) taken_every 2) . n <= 2 * ((seq_n^ 1) . n) & ((seq_n^ 1) taken_every 2) . n >= 0 )
let n be Element of NAT ; :: thesis: ( n >= 1 implies ( ((seq_n^ 1) taken_every 2) . n <= 2 * ((seq_n^ 1) . n) & ((seq_n^ 1) taken_every 2) . n >= 0 ) )
assume A2: n >= 1 ; :: thesis: ( ((seq_n^ 1) taken_every 2) . n <= 2 * ((seq_n^ 1) . n) & ((seq_n^ 1) taken_every 2) . n >= 0 )
then A3: 2 * n > 2 * 0 by XREAL_1:68;
A4: ((seq_n^ 1) taken_every 2) . n = (seq_n^ 1) . (2 * n) by ASYMPT_0:def 15
.= (2 * n) to_power 1 by A3, Def3
.= 2 * n by POWER:25 ;
(seq_n^ 1) . n = n to_power 1 by A2, Def3
.= n by POWER:25 ;
hence ((seq_n^ 1) taken_every 2) . n <= 2 * ((seq_n^ 1) . n) by A4; :: thesis: ((seq_n^ 1) taken_every 2) . n >= 0
thus ((seq_n^ 1) taken_every 2) . n >= 0 by A4; :: thesis: verum
end;
let f be Real_Sequence; :: thesis: ( ( for n being Element of NAT holds
( ( n in POWEROF2SET implies f . n = n ) & ( not n in POWEROF2SET implies f . n = 2 to_power n ) ) ) implies ( f in Big_Theta ((seq_n^ 1),POWEROF2SET) & not f in Big_Theta (seq_n^ 1) & seq_n^ 1 is smooth & not f is eventually-nondecreasing ) )

assume A5: for n being Element of NAT holds
( ( n in POWEROF2SET implies f . n = n ) & ( not n in POWEROF2SET implies f . n = 2 to_power n ) ) ; :: thesis: ( f in Big_Theta ((seq_n^ 1),POWEROF2SET) & not f in Big_Theta (seq_n^ 1) & seq_n^ 1 is smooth & not f is eventually-nondecreasing )
A6: now :: thesis: for n being Element of NAT st n >= 1 & n in POWEROF2SET holds
( 1 * ((seq_n^ 1) . n) <= f . n & f . n <= 1 * ((seq_n^ 1) . n) )
let n be Element of NAT ; :: thesis: ( n >= 1 & n in POWEROF2SET implies ( 1 * ((seq_n^ 1) . n) <= f . n & f . n <= 1 * ((seq_n^ 1) . n) ) )
assume that
A7: n >= 1 and
A8: n in POWEROF2SET ; :: thesis: ( 1 * ((seq_n^ 1) . n) <= f . n & f . n <= 1 * ((seq_n^ 1) . n) )
A9: (seq_n^ 1) . n = n to_power 1 by A7, Def3
.= n by POWER:25 ;
hence 1 * ((seq_n^ 1) . n) <= f . n by A5, A8; :: thesis: f . n <= 1 * ((seq_n^ 1) . n)
thus f . n <= 1 * ((seq_n^ 1) . n) by A5, A8, A9; :: thesis: verum
end;
f is Element of Funcs (NAT,REAL) by FUNCT_2:8;
hence f in Big_Theta ((seq_n^ 1),POWEROF2SET) by A6; :: thesis: ( not f in Big_Theta (seq_n^ 1) & seq_n^ 1 is smooth & not f is eventually-nondecreasing )
A10: Big_Theta (seq_n^ 1) = { t where t is Element of Funcs (NAT,REAL) : ex c, d being Real ex N being Element of NAT st
( c > 0 & d > 0 & ( for n being Element of NAT st n >= N holds
( d * ((seq_n^ 1) . n) <= t . n & t . n <= c * ((seq_n^ 1) . n) ) ) )
}
by ASYMPT_0:27;
hereby :: thesis: ( seq_n^ 1 is smooth & not f is eventually-nondecreasing )
A11: lim (seq_logn /" (seq_n^ 1)) = 0 by Lm11;
seq_logn /" (seq_n^ 1) is convergent by Lm11;
then consider N0 being Nat such that
A12: for m being Nat st m >= N0 holds
|.(((seq_logn /" (seq_n^ 1)) . m) - 0).| < 1 / 2 by A11, SEQ_2:def 7;
assume f in Big_Theta (seq_n^ 1) ; :: thesis: contradiction
then consider t being Element of Funcs (NAT,REAL) such that
A13: t = f and
A14: ex c, d being Real ex N being Element of NAT st
( c > 0 & d > 0 & ( for n being Element of NAT st n >= N holds
( d * ((seq_n^ 1) . n) <= t . n & t . n <= c * ((seq_n^ 1) . n) ) ) ) by A10;
consider c, d being Real, N being Element of NAT such that
A15: c > 0 and
d > 0 and
A16: for n being Element of NAT st n >= N holds
( d * ((seq_n^ 1) . n) <= t . n & t . n <= c * ((seq_n^ 1) . n) ) by A14;
set N2 = max ((max (N0,N)),(max ([/c\],2)));
A17: max ((max (N0,N)),(max ([/c\],2))) >= max (N0,N) by XXREAL_0:25;
A18: max ((max (N0,N)),(max ([/c\],2))) is Integer
proof
per cases ( max ((max (N0,N)),(max ([/c\],2))) = max (N0,N) or max ((max (N0,N)),(max ([/c\],2))) = max ([/c\],2) ) by XXREAL_0:16;
suppose max ((max (N0,N)),(max ([/c\],2))) = max (N0,N) ; :: thesis: max ((max (N0,N)),(max ([/c\],2))) is Integer
hence max ((max (N0,N)),(max ([/c\],2))) is Integer ; :: thesis: verum
end;
suppose max ((max (N0,N)),(max ([/c\],2))) = max ([/c\],2) ; :: thesis: max ((max (N0,N)),(max ([/c\],2))) is Integer
hence max ((max (N0,N)),(max ([/c\],2))) is Integer by XXREAL_0:16; :: thesis: verum
end;
end;
end;
max (N0,N) >= N0 by XXREAL_0:25;
then A19: max ((max (N0,N)),(max ([/c\],2))) >= N0 by A17, XXREAL_0:2;
A20: max ((max (N0,N)),(max ([/c\],2))) >= max ([/c\],2) by XXREAL_0:25;
max ([/c\],2) >= [/c\] by XXREAL_0:25;
then A21: max ((max (N0,N)),(max ([/c\],2))) >= [/c\] by A20, XXREAL_0:2;
A22: max ([/c\],2) >= 2 by XXREAL_0:25;
then A23: max ((max (N0,N)),(max ([/c\],2))) >= 2 by A20, XXREAL_0:2;
max (N0,N) >= N by XXREAL_0:25;
then A24: max ((max (N0,N)),(max ([/c\],2))) >= N by A17, XXREAL_0:2;
A25: [/c\] >= c by INT_1:def 7;
reconsider N2 = max ((max (N0,N)),(max ([/c\],2))) as Element of NAT by A17, A18, INT_1:3;
set N3 = (2 to_power N2) - 1;
2 to_power N2 > 0 by POWER:34;
then 2 to_power N2 >= 0 + 1 by NAT_1:13;
then reconsider N3 = (2 to_power N2) - 1 as Element of NAT by INT_1:3;
A26: 2 to_power N3 > 0 by POWER:34;
not N3 in POWEROF2SET by A20, A22, Lm49, XXREAL_0:2;
then A27: t . N3 = 2 to_power N3 by A5, A13;
2 to_power N2 > N2 + 1 by A23, Lm1;
then A28: N3 > N2 by XREAL_1:20;
then A29: (seq_n^ 1) . N3 = N3 to_power 1 by Def3
.= N3 by POWER:25 ;
N3 >= N by A24, A28, XXREAL_0:2;
then 2 to_power N3 <= c * N3 by A16, A27, A29;
then log (2,(2 to_power N3)) <= log (2,(c * N3)) by A26, PRE_FF:10;
then N3 * (log (2,2)) <= log (2,(c * N3)) by POWER:55;
then N3 * 1 <= log (2,(c * N3)) by POWER:52;
then A30: N3 <= (log (2,c)) + (log (2,N3)) by A15, A28, POWER:53;
N3 >= [/c\] by A21, A28, XXREAL_0:2;
then N3 >= c by A25, XXREAL_0:2;
then log (2,N3) >= log (2,c) by A15, PRE_FF:10;
then (log (2,N3)) + (log (2,N3)) >= (log (2,c)) + (log (2,N3)) by XREAL_1:6;
then N3 <= 2 * (log (2,N3)) by A30, XXREAL_0:2;
then N3 / 2 <= log (2,N3) by XREAL_1:79;
then (N3 ") * (N3 * (1 / 2)) <= (log (2,N3)) * (N3 ") by XREAL_1:64;
then ((N3 ") * N3) * (1 / 2) <= (log (2,N3)) * (N3 ") ;
then A31: (log (2,N3)) / N3 >= 1 / 2 by A28, XCMPLX_0:def 7;
N3 >= N0 by A19, A28, XXREAL_0:2;
then A32: |.(((seq_logn /" (seq_n^ 1)) . N3) - 0).| < 1 / 2 by A12;
(seq_logn /" (seq_n^ 1)) . N3 = (seq_logn . N3) / ((seq_n^ 1) . N3) by Lm4
.= (log (2,N3)) / ((seq_n^ 1) . N3) by A28, Def2
.= (log (2,N3)) / (N3 to_power 1) by A28, Def3
.= (log (2,N3)) / N3 by POWER:25 ;
hence contradiction by A31, A32, ABSVALUE:def 1; :: thesis: verum
end;
now :: thesis: for n being Nat st n >= 0 holds
(seq_n^ 1) . n <= (seq_n^ 1) . (n + 1)
let n be Nat; :: thesis: ( n >= 0 implies (seq_n^ 1) . n <= (seq_n^ 1) . (n + 1) )
A33: n in NAT by ORDINAL1:def 12;
assume n >= 0 ; :: thesis: (seq_n^ 1) . n <= (seq_n^ 1) . (n + 1)
A34: n + 0 <= n + 1 by XREAL_1:6;
A35: (seq_n^ 1) . n = n
proof
per cases ( n = 0 or n > 0 ) ;
suppose n = 0 ; :: thesis: (seq_n^ 1) . n = n
hence (seq_n^ 1) . n = n by Def3; :: thesis: verum
end;
suppose n > 0 ; :: thesis: (seq_n^ 1) . n = n
hence (seq_n^ 1) . n = n to_power 1 by Def3, A33
.= n by POWER:25 ;
:: thesis: verum
end;
end;
end;
(seq_n^ 1) . (n + 1) = (n + 1) to_power 1 by Def3
.= n + 1 by POWER:25 ;
hence (seq_n^ 1) . n <= (seq_n^ 1) . (n + 1) by A35, A34; :: thesis: verum
end;
then A36: seq_n^ 1 is eventually-nondecreasing ;
(seq_n^ 1) taken_every 2 is Element of Funcs (NAT,REAL) by FUNCT_2:8;
then seq_n^ 1 is_smooth_wrt 2 by A36, A1;
hence seq_n^ 1 is smooth by ASYMPT_0:37; :: thesis: not f is eventually-nondecreasing
A37: 3 = 4 - 1 ;
hereby :: thesis: verum
assume f is eventually-nondecreasing ; :: thesis: contradiction
then consider N being Nat such that
A38: for n being Nat st n >= N holds
f . n <= f . (n + 1) ;
set N1 = (2 to_power (N + 2)) - 1;
A39: 2 to_power 2 = 2 ^2 by POWER:46
.= 4 ;
A40: N + 2 >= 0 + 2 by XREAL_1:6;
then 2 to_power (N + 2) >= 2 to_power 2 by PRE_FF:8;
then (2 to_power (N + 2)) - 1 >= 3 by A37, A39, XREAL_1:9;
then reconsider N1 = (2 to_power (N + 2)) - 1 as Element of NAT by INT_1:3;
2 to_power (N + 2) > (N + 2) + 1 by A40, Lm1;
then A41: N1 > N + 2 by XREAL_1:20;
N + 2 >= N + 0 by XREAL_1:6;
then A42: N1 >= N by A41, XXREAL_0:2;
N1 + 1 in POWEROF2SET ;
then A43: f . (N1 + 1) = N1 + 1 by A5;
not N1 in POWEROF2SET by A40, Lm49;
then f . N1 = 2 to_power N1 by A5;
then f . N1 > f . (N1 + 1) by A43, A41, POWER:39;
hence contradiction by A38, A42; :: thesis: verum
end;