defpred S1[ set ] means for x, y being Element of X
for n being Nat st n = $1 holds
ex u being Element of X ex f being sequence of the carrier of X st
( u = f . n & f . 0 = x & ( for j being Nat st j < n holds
f . (j + 1) = (f . j) \ y ) );
now :: thesis: for n being Nat st ( for x, y being Element of X
for k being Nat st k = n holds
ex u being Element of X ex f being sequence of the carrier of X st
( u = f . k & f . 0 = x & ( for j being Nat st j < k holds
f . (j + 1) = (f . j) \ y ) ) ) holds
for x, y being Element of X
for k being Nat st k = n + 1 holds
ex z being Element of the carrier of X ex f99 being sequence of the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Nat st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )
let n be Nat; :: thesis: ( ( for x, y being Element of X
for k being Nat st k = n holds
ex u being Element of X ex f being sequence of the carrier of X st
( u = f . k & f . 0 = x & ( for j being Nat st j < k holds
f . (j + 1) = (f . j) \ y ) ) ) implies for x, y being Element of X
for k being Nat st k = n + 1 holds
ex z being Element of the carrier of X ex f99 being sequence of the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Nat st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) ) )

assume A1: for x, y being Element of X
for k being Nat st k = n holds
ex u being Element of X ex f being sequence of the carrier of X st
( u = f . k & f . 0 = x & ( for j being Nat st j < k holds
f . (j + 1) = (f . j) \ y ) ) ; :: thesis: for x, y being Element of X
for k being Nat st k = n + 1 holds
ex z being Element of the carrier of X ex f99 being sequence of the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Nat st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )

let x, y be Element of X; :: thesis: for k being Nat st k = n + 1 holds
ex z being Element of the carrier of X ex f99 being sequence of the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Nat st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )

let k be Nat; :: thesis: ( k = n + 1 implies ex z being Element of the carrier of X ex f99 being sequence of the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Nat st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) ) )

consider u being Element of X, f being sequence of the carrier of X such that
u = f . n and
A2: f . 0 = x and
A3: for j being Nat st j < n holds
f . (j + 1) = (f . j) \ y by A1;
defpred S2[ set , set ] means for j being Nat st $1 = j holds
( ( j < n + 1 implies $2 = f . $1 ) & ( n + 1 <= j implies $2 = (f . n) \ y ) );
assume k = n + 1 ; :: thesis: ex z being Element of the carrier of X ex f99 being sequence of the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being 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 ; :: thesis: ex v being Element of X st S2[k,v]
reconsider i = k as Nat ;
A5: now :: thesis: ( n + 1 <= i implies ex v being Element of the carrier of X st
for j being Nat st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) ) )
assume A6: n + 1 <= i ; :: thesis: ex v being Element of the carrier of X st
for j being 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; :: thesis: for j being Nat st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )

let j be Nat; :: thesis: ( k = j implies ( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) ) )
assume k = j ; :: thesis: ( ( 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; :: thesis: ( n + 1 <= j implies v = (f . n) \ y )
assume n + 1 <= j ; :: thesis: v = (f . n) \ y
thus v = (f . n) \ y ; :: thesis: verum
end;
now :: thesis: ( i < n + 1 implies ex v being Element of the carrier of X st
for j being Nat st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) ) )
assume A7: i < n + 1 ; :: thesis: ex v being Element of the carrier of X st
for j being Nat st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )

take v = f . k; :: thesis: for j being Nat st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )

let j be Nat; :: thesis: ( k = j implies ( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) ) )
assume A8: k = j ; :: thesis: ( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies v = (f . n) \ y ) )
thus ( j < n + 1 implies v = f . k ) ; :: thesis: ( n + 1 <= j implies v = (f . n) \ y )
thus ( n + 1 <= j implies v = (f . n) \ y ) by A7, A8; :: thesis: verum
end;
hence ex v being Element of X st S2[k,v] by A5; :: thesis: verum
end;
consider f9 being sequence of the carrier of X such that
A9: for k being Element of NAT holds S2[k,f9 . k] from FUNCT_2:sch 3(A4);
A10: for k being Nat holds S2[k,f9 . k]
proof
let k be Nat; :: thesis: S2[k,f9 . k]
k in NAT by ORDINAL1:def 12;
hence S2[k,f9 . k] by A9; :: thesis: verum
end;
take z = f9 . (n + 1); :: thesis: ex f99 being sequence of the carrier of X st
( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Nat st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )

take f99 = f9; :: thesis: ( z = f99 . (n + 1) & f99 . 0 = x & ( for j being Nat st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y ) )

thus z = f99 . (n + 1) ; :: thesis: ( f99 . 0 = x & ( for j being 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, A10; :: thesis: for j being Nat st j < n + 1 holds
f99 . (j + 1) = (f99 . j) \ y

let j be Nat; :: thesis: ( j < n + 1 implies f99 . (j + 1) = (f99 . j) \ y )
A11: now :: thesis: ( j < n implies f99 . (j + 1) = (f99 . j) \ y )
assume A12: j < n ; :: thesis: f99 . (j + 1) = (f99 . j) \ y
then ( f . (j + 1) = (f . j) \ y & j < n + 1 ) by A3, NAT_1:13;
then A13: f . (j + 1) = (f9 . j) \ y by A10;
j + 1 < n + 1 by A12, XREAL_1:6;
hence f99 . (j + 1) = (f99 . j) \ y by A10, A13; :: thesis: verum
end;
A14: n < n + 1 by NAT_1:13;
A15: now :: thesis: ( j = n implies f99 . (j + 1) = (f99 . j) \ y )
assume A16: j = n ; :: thesis: f99 . (j + 1) = (f99 . j) \ y
then f99 . (j + 1) = (f . j) \ y by A10;
hence f99 . (j + 1) = (f99 . j) \ y by A14, A10, A16; :: thesis: verum
end;
assume j < n + 1 ; :: thesis: f99 . (j + 1) = (f99 . j) \ y
then j <= n by NAT_1:13;
hence f99 . (j + 1) = (f99 . j) \ y by A11, A15, XXREAL_0:1; :: thesis: verum
end;
then A17: for n being Nat st S1[n] holds
S1[n + 1] ;
now :: thesis: for x, y being Element of X
for n being Nat st n = 0 holds
ex u being Element of the carrier of X ex f9 being sequence of the carrier of X st
( u = f9 . n & f9 . 0 = x & ( for j being Nat st j < n holds
f9 . (j + 1) = (f9 . j) \ y ) )
let x, y be Element of X; :: thesis: for n being Nat st n = 0 holds
ex u being Element of the carrier of X ex f9 being sequence of the carrier of X st
( u = f9 . n & f9 . 0 = x & ( for j being Nat st j < n holds
f9 . (j + 1) = (f9 . j) \ y ) )

let n be Nat; :: thesis: ( n = 0 implies ex u being Element of the carrier of X ex f9 being sequence of the carrier of X st
( u = f9 . n & f9 . 0 = x & ( for j being Nat st j < n holds
f9 . (j + 1) = (f9 . j) \ y ) ) )

assume A18: n = 0 ; :: thesis: ex u being Element of the carrier of X ex f9 being sequence of the carrier of X st
( u = f9 . n & f9 . 0 = x & ( for j being Nat st j < n holds
f9 . (j + 1) = (f9 . j) \ y ) )

reconsider f = NAT --> x as sequence of the carrier of X ;
take u = f . n; :: thesis: ex f9 being sequence of the carrier of X st
( u = f9 . n & f9 . 0 = x & ( for j being Nat st j < n holds
f9 . (j + 1) = (f9 . j) \ y ) )

take f9 = f; :: thesis: ( u = f9 . n & f9 . 0 = x & ( for j being Nat st j < n holds
f9 . (j + 1) = (f9 . j) \ y ) )

thus ( u = f9 . n & f9 . 0 = x ) by FUNCOP_1:7; :: thesis: for j being Nat st j < n holds
f9 . (j + 1) = (f9 . j) \ y

thus for j being Nat st j < n holds
f9 . (j + 1) = (f9 . j) \ y by A18, NAT_1:3; :: thesis: verum
end;
then A19: S1[ 0 ] ;
for n being Nat holds S1[n] from NAT_1:sch 2(A19, A17);
hence ex b1 being Element of X ex f being sequence of the carrier of X st
( b1 = f . n & f . 0 = x & ( for j being Nat st j < n holds
f . (j + 1) = (f . j) \ y ) ) ; :: thesis: verum