let seq be Real_Sequence; :: thesis: ex Nseq being V30 sequence of NAT st seq * Nseq is monotone
defpred S1[ Element of NAT ] means for m being Element of NAT st $1 < m holds
seq . $1 < seq . m;
consider XN being Subset of NAT such that
A1:
for n being Element of NAT holds
( n in XN iff S1[n] )
from SUBSET_1:sch 3();
A2:
now given k1 being
Element of
NAT such that A3:
for
n being
Element of
NAT st
n in XN holds
n <= k1
;
:: thesis: ex Nseq1 being V30 sequence of NAT st seq * Nseq1 is monotoneset seq1 =
seq ^\ (1 + k1);
consider Nseq being
V30 sequence of
NAT such that A7:
seq ^\ (1 + k1) = seq * Nseq
by VALUED_0:def 17;
defpred S2[
set ,
set ,
set ]
means for
k,
l being
Element of
NAT st
k = $2 &
l = $3 holds
(
k < l &
(seq ^\ (1 + k1)) . l <= (seq ^\ (1 + k1)) . k & ( for
m being
Element of
NAT st
k < m &
(seq ^\ (1 + k1)) . m <= (seq ^\ (1 + k1)) . k holds
l <= m ) );
A14:
for
n,
x being
Element of
NAT ex
y being
Element of
NAT st
S2[
n,
x,
y]
reconsider 0' =
0 as
Element of
NAT ;
consider f being
Function of
NAT ,
NAT such that
f . 0 = 0'
and A19:
for
n being
Element of
NAT holds
S2[
n,
f . n,
f . (n + 1)]
from RECDEF_1:sch 2(A14);
A20:
rng f c= NAT
by RELSET_1:12;
then A21:
rng f c= REAL
by XBOOLE_1:1;
A22:
dom f = NAT
by FUNCT_2:def 1;
then reconsider f =
f as
Real_Sequence by A21, FUNCT_2:def 1, RELSET_1:11;
then reconsider f =
f as
V30 sequence of
NAT by SEQM_3:def 11;
reconsider Nseq1 =
Nseq * f as
V30 sequence of
NAT ;
take Nseq1 =
Nseq1;
:: thesis: seq * Nseq1 is monotonethen
seq * Nseq1 is
non-increasing
by SEQM_3:def 14;
hence
seq * Nseq1 is
monotone
by SEQM_3:def 7;
:: thesis: verum end;
now assume A24:
for
l being
Element of
NAT ex
n being
Element of
NAT st
(
n in XN & not
n <= l )
;
:: thesis: ex Nseq being V30 sequence of NAT st seq * Nseq is monotonedefpred S2[
set ,
set ,
set ]
means for
k,
l being
Element of
NAT st
k = $2 &
l = $3 holds
(
l in XN &
k < l & ( for
m being
Element of
NAT st
m in XN &
k < m holds
l <= m ) );
A25:
for
n,
x being
Element of
NAT ex
y being
Element of
NAT st
S2[
n,
x,
y]
consider n1 being
Element of
NAT such that A30:
(
n1 in XN & not
n1 <= 0 )
by A24;
reconsider 0' =
n1 as
Element of
NAT ;
consider f being
Function of
NAT ,
NAT such that A31:
f . 0 = 0'
and A32:
for
n being
Element of
NAT holds
S2[
n,
f . n,
f . (n + 1)]
from RECDEF_1:sch 2(A25);
A33:
rng f c= NAT
by RELSET_1:12;
then A34:
rng f c= REAL
by XBOOLE_1:1;
A35:
dom f = NAT
by FUNCT_2:def 1;
then reconsider f =
f as
Real_Sequence by A34, FUNCT_2:def 1, RELSET_1:11;
then reconsider f =
f as
V30 sequence of
NAT by SEQM_3:def 11;
take Nseq =
f;
:: thesis: seq * Nseq is monotonethen
seq * Nseq is
increasing
by SEQM_3:def 11;
hence
seq * Nseq is
monotone
by SEQM_3:def 7;
:: thesis: verum end;
hence
ex Nseq being V30 sequence of NAT st seq * Nseq is monotone
by A2; :: thesis: verum