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
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:70;
A4: ((seq_n^ 1) taken_every 2) . n = (seq_n^ 1) . (2 * n) by ASYMPT_0:def 18
.= (2 * n) to_power 1 by A3, Def3
.= 2 * n by POWER:30 ;
(seq_n^ 1) . n = n to_power 1 by A2, Def3
.= n by POWER:30 ;
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
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:30 ;
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:11;
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 Element of NAT such that
A12: for m being Element of NAT st m >= N0 holds
abs (((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 5;
reconsider N2 = max (max N0,N),(max [/c\],2) as Element of NAT by A17, A18, INT_1:16;
set N3 = (2 to_power N2) - 1;
2 to_power N2 > 0 by POWER:39;
then 2 to_power N2 >= 0 + 1 by NAT_1:13;
then (2 to_power N2) - 1 >= 0 by XREAL_1:21;
then reconsider N3 = (2 to_power N2) - 1 as Element of NAT by INT_1:16;
A26: 2 to_power N3 > 0 by POWER:39;
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:22;
then A29: (seq_n^ 1) . N3 = N3 to_power 1 by Def3
.= N3 by POWER:30 ;
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:12;
then N3 * (log 2,2) <= log 2,(c * N3) by POWER:63;
then N3 * 1 <= log 2,(c * N3) by POWER:60;
then A30: N3 <= (log 2,c) + (log 2,N3) by A15, A28, POWER:61;
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:12;
then (log 2,N3) + (log 2,N3) >= (log 2,c) + (log 2,N3) by XREAL_1:8;
then N3 <= 2 * (log 2,N3) by A30, XXREAL_0:2;
then N3 / 2 <= log 2,N3 by XREAL_1:81;
then (N3 " ) * (N3 * (1 / 2)) <= (log 2,N3) * (N3 " ) by XREAL_1:66;
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: abs (((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:30 ;
hence contradiction by A31, A32, ABSVALUE:def 1; :: thesis: verum
end;
now
let n be Element of NAT ; :: thesis: ( n >= 0 implies (seq_n^ 1) . n <= (seq_n^ 1) . (n + 1) )
assume n >= 0 ; :: thesis: (seq_n^ 1) . n <= (seq_n^ 1) . (n + 1)
A33: n + 0 <= n + 1 by XREAL_1:8;
A34: (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
.= n by POWER:30 ;
:: thesis: verum
end;
end;
end;
(seq_n^ 1) . (n + 1) = (n + 1) to_power 1 by Def3
.= n + 1 by POWER:30 ;
hence (seq_n^ 1) . n <= (seq_n^ 1) . (n + 1) by A34, A33; :: thesis: verum
end;
then A35: seq_n^ 1 is eventually-nondecreasing by ASYMPT_0:def 8;
(seq_n^ 1) taken_every 2 is Element of Funcs NAT ,REAL by FUNCT_2:11;
then (seq_n^ 1) taken_every 2 in Big_Oh (seq_n^ 1) by A1;
then seq_n^ 1 is_smooth_wrt 2 by A35, ASYMPT_0:def 19;
hence seq_n^ 1 is smooth by ASYMPT_0:37; :: thesis: not f is eventually-nondecreasing
A36: 3 = 4 - 1 ;
hereby :: thesis: verum
assume f is eventually-nondecreasing ; :: thesis: contradiction
then consider N being Element of NAT such that
A37: for n being Element of NAT st n >= N holds
f . n <= f . (n + 1) by ASYMPT_0:def 8;
set N1 = (2 to_power (N + 2)) - 1;
A38: 2 to_power 2 = 2 ^2 by POWER:53
.= 4 ;
A39: N + 2 >= 0 + 2 by XREAL_1:8;
then 2 to_power (N + 2) >= 2 to_power 2 by PRE_FF:10;
then (2 to_power (N + 2)) - 1 >= 3 by A36, A38, XREAL_1:11;
then reconsider N1 = (2 to_power (N + 2)) - 1 as Element of NAT by INT_1:16;
2 to_power (N + 2) > (N + 2) + 1 by A39, Lm1;
then A40: N1 > N + 2 by XREAL_1:22;
N + 2 >= N + 0 by XREAL_1:8;
then A41: N1 >= N by A40, XXREAL_0:2;
N1 + 1 in POWEROF2SET ;
then A42: f . (N1 + 1) = N1 + 1 by A5;
not N1 in POWEROF2SET by A39, Lm49;
then f . N1 = 2 to_power N1 by A5;
then f . N1 > f . (N1 + 1) by A42, A40, POWER:44;
hence contradiction by A37, A41; :: thesis: verum
end;