defpred S1[ set ] means for x, y being Element of X
for n being Element of NAT st n = $1 holds
ex u being Element of X ex f being Function of NAT, the carrier of X st
( u = f . n & f . 0 = x & ( for j being Element of NAT st j < n holds
f . (j + 1) = (f . j) \ y ) );
now let n be
Element of
NAT ;
( ( for x, y being Element of X
for k being Element of NAT st k = n holds
ex u being Element of X ex f being Function of NAT, the carrier of X st
( u = f . k & f . 0 = x & ( for j being Element of NAT st j < k holds
f . (j + 1) = (f . j) \ y ) ) ) implies for x, y being Element of X
for k being Element of NAT st k = n + 1 holds
ex z being Element of the carrier of X ex f99 being Function of NAT, the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Element of NAT st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) ) )assume A1:
for
x,
y being
Element of
X for
k being
Element of
NAT st
k = n holds
ex
u being
Element of
X ex
f being
Function of
NAT, the
carrier of
X st
(
u = f . k &
f . 0 = x & ( for
j being
Element of
NAT st
j < k holds
f . (j + 1) = (f . j) \ y ) )
;
for x, y being Element of X
for k being Element of NAT st k = n + 1 holds
ex z being Element of the carrier of X ex f99 being Function of NAT, the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Element of NAT st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )let x,
y be
Element of
X;
for k being Element of NAT st k = n + 1 holds
ex z being Element of the carrier of X ex f99 being Function of NAT, the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Element of NAT st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )let k be
Element of
NAT ;
( k = n + 1 implies ex z being Element of the carrier of X ex f99 being Function of NAT, the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Element of NAT st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) ) )consider u being
Element of
X,
f being
Function of
NAT, the
carrier of
X such that
u = f . n
and A2:
f . 0 = x
and A3:
for
j being
Element of
NAT st
j < n holds
f . (j + 1) = (f . j) \ y
by A1;
defpred S2[
set ,
set ]
means for
j being
Element of
NAT st $1
= j holds
( (
j < n + 1 implies $2
= f . $1 ) & (
n + 1
<= j implies $2
= (f . n) \ y ) );
assume
k = n + 1
;
ex z being Element of the carrier of X ex f99 being Function of NAT, the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Element of NAT st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )A4:
for
k being
Element of
NAT ex
v being
Element of
X st
S2[
k,
v]
proof
let k be
Element of
NAT ;
ex v being Element of X st S2[k,v]
reconsider i =
k as
Element of
NAT ;
A5:
now assume A6:
n + 1
<= i
;
ex v being Element of the carrier of X st
for j being Element of NAT st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )take v =
(f . n) \ y;
for j being Element of NAT st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )let j be
Element of
NAT ;
( k = j implies ( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) ) )assume
k = j
;
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )hence
(
j < n + 1 implies
v = f . k )
by A6;
( n + 1 <= j implies v = (f . n) \ y )assume
n + 1
<= j
;
v = (f . n) \ ythus
v = (f . n) \ y
;
verum end;
now assume A7:
i < n + 1
;
ex v being Element of the carrier of X st
for j being Element of NAT st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )take v =
f . k;
for j being Element of NAT st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )let j be
Element of
NAT ;
( k = j implies ( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) ) )assume A8:
k = j
;
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )thus
(
j < n + 1 implies
v = f . k )
;
( n + 1 <= j implies v = (f . n) \ y )thus
(
n + 1
<= j implies
v = (f . n) \ y )
by A7, A8;
verum end;
hence
ex
v being
Element of
X st
S2[
k,
v]
by A5;
verum
end; consider f9 being
Function of
NAT, the
carrier of
X such that A9:
for
k being
Element of
NAT holds
S2[
k,
f9 . k]
from FUNCT_2:sch 3(A4);
take z =
f9 . (n + 1);
ex f99 being Function of NAT, the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Element of NAT st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )take f99 =
f9;
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Element of NAT st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )thus
z = f99 . (n + 1)
;
( f99 . 0 = x & ( for j being Element of NAT st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )
0 < n + 1
by NAT_1:5;
hence
f99 . 0 = x
by A2, A9;
for j being Element of NAT st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ ylet j be
Element of
NAT ;
( j < n + 1 implies f99 . (j + 1) = (f99 . j) \ y )A13:
n < n + 1
by NAT_1:13;
A14:
now assume A15:
j = n
;
f99 . (j + 1) = (f99 . j) \ ythen
f99 . (j + 1) = (f . j) \ y
by A9;
hence
f99 . (j + 1) = (f99 . j) \ y
by A13, A9, A15;
verum end; assume
j < n + 1
;
f99 . (j + 1) = (f99 . j) \ ythen
j <= n
by NAT_1:13;
hence
f99 . (j + 1) = (f99 . j) \ y
by A10, A14, XXREAL_0:1;
verum end;
then A16:
for n being Element of NAT st S1[n] holds
S1[n + 1]
;
then A18:
S1[ 0 ]
;
for n being Element of NAT holds S1[n]
from NAT_1:sch 1(A18, A16);
hence
ex b1 being Element of X ex f being Function of NAT, the carrier of X st
( b1 = f . n & f . 0 = x & ( for j being Element of NAT st j < n holds
f . (j + 1) = (f . j) \ y ) )
; verum