set 00 = the Element of F1();
defpred S1[ Nat, set , set ] means ( ( 0 <= $1 & $1 <= F3() - 2 implies P1[$1 + 1,$2,$3] ) & ( ( not 0 <= $1 or not $1 <= F3() - 2 ) implies $3 = the Element of F1() ) );
A2:
for n being Nat
for x being Element of F1() ex y being Element of F1() st S1[n,x,y]
proof
let n be
Nat;
for x being Element of F1() ex y being Element of F1() st S1[n,x,y]let x be
Element of
F1();
ex y being Element of F1() st S1[n,x,y]
(
0 <= n &
n <= F3()
- 2 implies ex
y being
Element of
F1() st
S1[
n,
x,
y] )
proof
A3:
0 + 1
<= n + 1
by XREAL_1:6;
assume that
0 <= n
and A4:
n <= F3()
- 2
;
ex y being Element of F1() st S1[n,x,y]
n + 1
<= (F3() - 2) + 1
by A4, XREAL_1:6;
then consider y being
Element of
F1()
such that A5:
P1[
n + 1,
x,
y]
by A1, A3;
take
y
;
S1[n,x,y]
thus
(
0 <= n &
n <= F3()
- 2 implies
P1[
n + 1,
x,
y] )
by A5;
( ( not 0 <= n or not n <= F3() - 2 ) implies y = the Element of F1() )
thus
( ( not
0 <= n or not
n <= F3()
- 2 ) implies
y = the
Element of
F1() )
by A4;
verum
end;
hence
ex
y being
Element of
F1() st
S1[
n,
x,
y]
;
verum
end;
consider f being sequence of F1() such that
A6:
( f . 0 = F2() & ( for n being Nat holds S1[n,f . n,f . (n + 1)] ) )
from RECDEF_1:sch 2(A2);
defpred S2[ object , object ] means for r being Real st r = $1 holds
$2 = f . (r - 1);
A7:
for x being object st x in REAL holds
ex y being object st S2[x,y]
proof
let x be
object ;
( x in REAL implies ex y being object st S2[x,y] )
assume
x in REAL
;
ex y being object st S2[x,y]
then reconsider r =
x as
Real ;
take
f . (r - 1)
;
S2[x,f . (r - 1)]
thus
S2[
x,
f . (r - 1)]
;
verum
end;
consider g being Function such that
A8:
( dom g = REAL & ( for x being object st x in REAL holds
S2[x,g . x] ) )
from CLASSES1:sch 1(A7);
Seg F3() c= REAL
by NUMBERS:19;
then A9:
dom (g | (Seg F3())) = Seg F3()
by A8, RELAT_1:62;
then reconsider p = g | (Seg F3()) as FinSequence by FINSEQ_1:def 2;
then
rng p c= F1()
;
then reconsider p = p as FinSequence of F1() by FINSEQ_1:def 4;
take
p
; ( len p = F3() & ( p /. 1 = F2() or F3() = 0 ) & ( for n being Nat st 1 <= n & n <= F3() - 1 holds
P1[n,p /. n,p /. (n + 1)] ) )
thus
len p = F3()
by A9, FINSEQ_1:def 3; ( ( p /. 1 = F2() or F3() = 0 ) & ( for n being Nat st 1 <= n & n <= F3() - 1 holds
P1[n,p /. n,p /. (n + 1)] ) )
( F3() <> 0 implies p /. 1 = F2() )
hence
( p /. 1 = F2() or F3() = 0 )
; for n being Nat st 1 <= n & n <= F3() - 1 holds
P1[n,p /. n,p /. (n + 1)]
let n be Nat; ( 1 <= n & n <= F3() - 1 implies P1[n,p /. n,p /. (n + 1)] )
assume that
A17:
1 <= n
and
A18:
n <= F3() - 1
; P1[n,p /. n,p /. (n + 1)]
consider k being Nat such that
A19:
n = k + 1
by A17, NAT_1:6;
A20:
for n being Nat st n <= F3() - 1 holds
p /. (n + 1) = f . n
A24:
k <= k + 1
by NAT_1:11;
k <= (F3() - 1) - 1
by A18, A19, XREAL_1:19;
then
P1[k + 1,f . k,f . (k + 1)]
by A6;
then
P1[k + 1,f . k,p /. ((k + 1) + 1)]
by A20, A18, A19;
hence
P1[n,p /. n,p /. (n + 1)]
by A20, A18, A19, A24, XXREAL_0:2; verum