let n, k be natural number ; :: thesis: for X being set
for F being Function of (the_subsets_of_card n,X),k st card X = omega & X c= omega & k <> 0 holds
ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card n,H) is constant )

let X be set ; :: thesis: for F being Function of (the_subsets_of_card n,X),k st card X = omega & X c= omega & k <> 0 holds
ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card n,H) is constant )

defpred S1[ natural number ] means for k being natural number
for X being set
for F being Function of (the_subsets_of_card $1,X),k st card X = omega & X c= omega & k <> 0 holds
ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card $1,H) is constant );
A1: S1[ 0 ]
proof
let k be natural number ; :: thesis: for X being set
for F being Function of (the_subsets_of_card 0 ,X),k st card X = omega & X c= omega & k <> 0 holds
ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card 0 ,H) is constant )

let X be set ; :: thesis: for F being Function of (the_subsets_of_card 0 ,X),k st card X = omega & X c= omega & k <> 0 holds
ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card 0 ,H) is constant )

let F be Function of (the_subsets_of_card 0 ,X),k; :: thesis: ( card X = omega & X c= omega & k <> 0 implies ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card 0 ,H) is constant ) )

assume A2: card X = omega ; :: thesis: ( not X c= omega or not k <> 0 or ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card 0 ,H) is constant ) )

assume X c= omega ; :: thesis: ( not k <> 0 or ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card 0 ,H) is constant ) )

assume k <> 0 ; :: thesis: ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card 0 ,H) is constant )

set H = X;
A3: X c= X ;
reconsider H = X as Subset of X by A3;
take H ; :: thesis: ( not H is finite & F | (the_subsets_of_card 0 ,H) is constant )
thus not H is finite by A2; :: thesis: F | (the_subsets_of_card 0 ,H) is constant
for x, y being set st x in dom (F | (the_subsets_of_card 0 ,H)) & y in dom (F | (the_subsets_of_card 0 ,H)) holds
(F | (the_subsets_of_card 0 ,H)) . x = (F | (the_subsets_of_card 0 ,H)) . y
proof
let x, y be set ; :: thesis: ( x in dom (F | (the_subsets_of_card 0 ,H)) & y in dom (F | (the_subsets_of_card 0 ,H)) implies (F | (the_subsets_of_card 0 ,H)) . x = (F | (the_subsets_of_card 0 ,H)) . y )
A4: dom (F | (the_subsets_of_card 0 ,H)) = dom (F | {0 }) by Lm2
.= (dom F) /\ {0 } by RELAT_1:90 ;
assume x in dom (F | (the_subsets_of_card 0 ,H)) ; :: thesis: ( not y in dom (F | (the_subsets_of_card 0 ,H)) or (F | (the_subsets_of_card 0 ,H)) . x = (F | (the_subsets_of_card 0 ,H)) . y )
then A5: x in {0 } by A4, XBOOLE_0:def 4;
assume y in dom (F | (the_subsets_of_card 0 ,H)) ; :: thesis: (F | (the_subsets_of_card 0 ,H)) . x = (F | (the_subsets_of_card 0 ,H)) . y
then y in {0 } by A4, XBOOLE_0:def 4;
then y = 0 by TARSKI:def 1;
hence (F | (the_subsets_of_card 0 ,H)) . x = (F | (the_subsets_of_card 0 ,H)) . y by A5, TARSKI:def 1; :: thesis: verum
end;
hence F | (the_subsets_of_card 0 ,H) is constant by FUNCT_1:def 16; :: thesis: verum
end;
A6: for n being natural number st S1[n] holds
S1[n + 1]
proof
let n be natural number ; :: thesis: ( S1[n] implies S1[n + 1] )
assume A7: S1[n] ; :: thesis: S1[n + 1]
now
let k be natural number ; :: thesis: for X being set
for F being Function of (the_subsets_of_card (n + 1),X),k st card X = omega & X c= omega & k <> 0 holds
ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card (n + 1),H) is constant )

let X be set ; :: thesis: for F being Function of (the_subsets_of_card (n + 1),X),k st card X = omega & X c= omega & k <> 0 holds
ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card (n + 1),H) is constant )

let F be Function of (the_subsets_of_card (n + 1),X),k; :: thesis: ( card X = omega & X c= omega & k <> 0 implies ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card (n + 1),H) is constant ) )

assume A8: card X = omega ; :: thesis: ( X c= omega & k <> 0 implies ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card (n + 1),H) is constant ) )

assume A9: X c= omega ; :: thesis: ( k <> 0 implies ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card (n + 1),H) is constant ) )

assume A10: k <> 0 ; :: thesis: ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card (n + 1),H) is constant )

A11: for Y being set
for a being Element of Y st card Y = omega & Y c= X holds
ex Fa being Function of (the_subsets_of_card n,(Y \ {a})),k ex Ha being Subset of (Y \ {a}) st
( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant & ( for Y' being Element of the_subsets_of_card n,(Y \ {a}) holds Fa . Y' = F . (Y' \/ {a}) ) )
proof
let Y be set ; :: thesis: for a being Element of Y st card Y = omega & Y c= X holds
ex Fa being Function of (the_subsets_of_card n,(Y \ {a})),k ex Ha being Subset of (Y \ {a}) st
( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant & ( for Y' being Element of the_subsets_of_card n,(Y \ {a}) holds Fa . Y' = F . (Y' \/ {a}) ) )

let a be Element of Y; :: thesis: ( card Y = omega & Y c= X implies ex Fa being Function of (the_subsets_of_card n,(Y \ {a})),k ex Ha being Subset of (Y \ {a}) st
( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant & ( for Y' being Element of the_subsets_of_card n,(Y \ {a}) holds Fa . Y' = F . (Y' \/ {a}) ) ) )

assume A12: card Y = omega ; :: thesis: ( not Y c= X or ex Fa being Function of (the_subsets_of_card n,(Y \ {a})),k ex Ha being Subset of (Y \ {a}) st
( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant & ( for Y' being Element of the_subsets_of_card n,(Y \ {a}) holds Fa . Y' = F . (Y' \/ {a}) ) ) )

assume A13: Y c= X ; :: thesis: ex Fa being Function of (the_subsets_of_card n,(Y \ {a})),k ex Ha being Subset of (Y \ {a}) st
( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant & ( for Y' being Element of the_subsets_of_card n,(Y \ {a}) holds Fa . Y' = F . (Y' \/ {a}) ) )

set Y1 = the_subsets_of_card n,(Y \ {a});
A14: not Y is finite by A12;
not Y is empty by A12;
then A15: {a} c= Y by ZFMISC_1:37;
reconsider Y1 = the_subsets_of_card n,(Y \ {a}) as non empty set by A14;
deffunc H1( Element of Y1) -> set = F . ($1 \/ {a});
A18: for x being Element of Y1 holds H1(x) in k
proof
let x be Element of Y1; :: thesis: H1(x) in k
x in Y1 ;
then consider x' being Subset of (Y \ {a}) such that
A19: ( x = x' & card x' = n ) ;
x \/ {a} c= (Y \ {a}) \/ {a} by A19, XBOOLE_1:9;
then x \/ {a} c= Y \/ {a} by XBOOLE_1:39;
then reconsider y = x \/ {a} as Subset of Y by A15, XBOOLE_1:12;
reconsider x'' = x' as finite set by A19;
A20: not a in x'' A21: the_subsets_of_card (n + 1),Y c= the_subsets_of_card (n + 1),X by A13, Lm1;
card y = n + 1 by A19, A20, CARD_2:54;
then x \/ {a} in the_subsets_of_card (n + 1),Y ;
hence H1(x) in k by A10, A21, FUNCT_2:7; :: thesis: verum
end;
consider Fa being Function of Y1,k such that
A22: for x being Element of Y1 holds Fa . x = H1(x) from FUNCT_2:sch 8(A18);
reconsider Fa = Fa as Function of (the_subsets_of_card n,(Y \ {a})),k ;
set Y' = Y \ {a};
A23: Y c= omega by A9, A13, XBOOLE_1:1;
card (Y \ {a}) = omega by A14, A23, Th2, XBOOLE_1:1;
then consider Ha being Subset of (Y \ {a}) such that
A25: ( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant ) by A7, A10, A23, XBOOLE_1:1;
take Fa ; :: thesis: ex Ha being Subset of (Y \ {a}) st
( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant & ( for Y' being Element of the_subsets_of_card n,(Y \ {a}) holds Fa . Y' = F . (Y' \/ {a}) ) )

take Ha ; :: thesis: ( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant & ( for Y' being Element of the_subsets_of_card n,(Y \ {a}) holds Fa . Y' = F . (Y' \/ {a}) ) )
thus ( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant ) by A25; :: thesis: for Y' being Element of the_subsets_of_card n,(Y \ {a}) holds Fa . Y' = F . (Y' \/ {a})
let Y' be Element of the_subsets_of_card n,(Y \ {a}); :: thesis: Fa . Y' = F . (Y' \/ {a})
thus Fa . Y' = F . (Y' \/ {a}) by A22; :: thesis: verum
end;
X c= X ;
then A26: X in the_subsets_of_card omega ,X by A8;
then reconsider A = the_subsets_of_card omega ,X as non empty set ;
defpred S2[ set , set , set , set , set ] means for x1, x2 being Element of A
for y1, y2 being Element of omega st $2 = x1 & $3 = y1 & $4 = x2 & $5 = y2 holds
( ( y1 in x1 implies ex F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) ) & ( not y1 in x1 implies ( x2 = X & y2 = 0 ) ) );
A27: for a being Element of NAT
for x'' being Element of A
for y'' being Element of omega ex x1'' being Element of A ex y1'' being Element of omega st S2[a,x'',y'',x1'',y1'']
proof
let a be Element of NAT ; :: thesis: for x'' being Element of A
for y'' being Element of omega ex x1'' being Element of A ex y1'' being Element of omega st S2[a,x'',y'',x1'',y1'']

let x'' be Element of A; :: thesis: for y'' being Element of omega ex x1'' being Element of A ex y1'' being Element of omega st S2[a,x'',y'',x1'',y1'']
let y'' be Element of omega ; :: thesis: ex x1'' being Element of A ex y1'' being Element of omega st S2[a,x'',y'',x1'',y1'']
per cases ( y'' in x'' or not y'' in x'' ) ;
suppose A28: y'' in x'' ; :: thesis: ex x1'' being Element of A ex y1'' being Element of omega st S2[a,x'',y'',x1'',y1'']
then reconsider a' = y'' as Element of x'' ;
x'' in A ;
then consider x''' being Subset of X such that
A29: ( x''' = x'' & card x''' = omega ) ;
consider Fa being Function of (the_subsets_of_card n,(x'' \ {a'})),k, Ha being Subset of (x'' \ {a'}) such that
A30: ( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant & ( for Y' being Element of the_subsets_of_card n,(x'' \ {a'}) holds Fa . Y' = F . (Y' \/ {a'}) ) ) by A11, A29;
Ha c= x'' by XBOOLE_1:1;
then A31: Ha c= X by A29, XBOOLE_1:1;
then A32: Ha c= omega by A9, XBOOLE_1:1;
card Ha = omega by A30, Th2, A9, A31, XBOOLE_1:1;
then Ha in A by A31;
then reconsider x1'' = Ha as Element of A ;
set y1'' = min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ;
take x1'' ; :: thesis: ex y1'' being Element of omega st S2[a,x'',y'',x1'',y1'']
take min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ; :: thesis: S2[a,x'',y'',x1'', min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ]
now
let x1, x2 be Element of A; :: thesis: for y1, y2 being Element of omega st x'' = x1 & y'' = y1 & x1'' = x2 & min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } = y2 holds
( ( y1 in x1 implies ex F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) ) & ( not y1 in x1 implies S2[a,x'',y'',x1'', min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ] ) )

let y1, y2 be Element of omega ; :: thesis: ( x'' = x1 & y'' = y1 & x1'' = x2 & min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } = y2 implies ( ( y1 in x1 implies ex F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) ) & ( not y1 in x1 implies S2[a,x'',y'',x1'', min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ] ) ) )

assume A33: ( x'' = x1 & y'' = y1 ) ; :: thesis: ( x1'' = x2 & min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } = y2 implies ( ( y1 in x1 implies ex F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) ) & ( not y1 in x1 implies S2[a,x'',y'',x1'', min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ] ) ) )

assume A34: ( x1'' = x2 & min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } = y2 ) ; :: thesis: ( ( y1 in x1 implies ex F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) ) & ( not y1 in x1 implies S2[a,x'',y'',x1'', min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ] ) )

thus ( y1 in x1 implies ex F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) ) :: thesis: ( not y1 in x1 implies S2[a,x'',y'',x1'', min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ] )
proof
assume y1 in x1 ; :: thesis: ex F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) )

reconsider F1 = Fa as Function of (the_subsets_of_card n,(x1 \ {y1})),k by A33;
reconsider H1 = Ha as Subset of (x1 \ {y1}) by A33;
take F1 ; :: thesis: ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) )

take H1 ; :: thesis: ( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) )

thus not H1 is finite by A30; :: thesis: ( F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) )

thus F1 | (the_subsets_of_card n,H1) is constant by A30; :: thesis: ( x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) )

thus x2 = H1 by A34; :: thesis: ( y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) )

set A' = { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ;
for x being set st x in { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } holds
x in NAT
proof
let x be set ; :: thesis: ( x in { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } implies x in NAT )
assume x in { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ; :: thesis: x in NAT
then consider x' being Element of omega such that
A35: ( x' = x & x' > y'' & x' in Ha ) ;
thus x in NAT by A35; :: thesis: verum
end;
then reconsider A' = { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } as Subset of NAT by TARSKI:def 3;
A36: A' <> {}
proof
assume A37: A' = {} ; :: thesis: contradiction
set A'' = { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } ;
now
let x be set ; :: thesis: ( x in { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } implies x in Segm (y'' + 1) )
assume x in { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } ; :: thesis: x in Segm (y'' + 1)
then consider x' being Element of omega such that
A38: ( x = x' & x' <= y'' & x' in Ha ) ;
x' < y'' + 1 by A38, NAT_1:13;
hence x in Segm (y'' + 1) by A38, NAT_1:45; :: thesis: verum
end;
then B39: { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } c= Segm (y'' + 1) by TARSKI:def 3;
A40: now
let x be set ; :: thesis: ( x in A' \/ { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } implies b1 in Ha )
assume A41: x in A' \/ { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } ; :: thesis: b1 in Ha
per cases ( x in A' or x in { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } ) by A41, XBOOLE_0:def 3;
suppose x in A' ; :: thesis: b1 in Ha
then consider x' being Element of omega such that
A42: ( x = x' & x' > y'' & x' in Ha ) ;
thus x in Ha by A42; :: thesis: verum
end;
suppose x in { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } ; :: thesis: b1 in Ha
then consider x' being Element of omega such that
A43: ( x = x' & x' <= y'' & x' in Ha ) ;
thus x in Ha by A43; :: thesis: verum
end;
end;
end;
now
let x be set ; :: thesis: ( x in Ha implies b1 in A' \/ { b2 where y2''' is Element of omega : ( b2 <= y'' & b2 in Ha ) } )
assume A44: x in Ha ; :: thesis: b1 in A' \/ { b2 where y2''' is Element of omega : ( b2 <= y'' & b2 in Ha ) }
then reconsider x' = x as Element of omega by A32;
per cases ( x' <= y'' or x' > y'' ) ;
suppose x' <= y'' ; :: thesis: b1 in A' \/ { b2 where y2''' is Element of omega : ( b2 <= y'' & b2 in Ha ) }
then x in { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } by A44;
hence x in A' \/ { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } by XBOOLE_0:def 3; :: thesis: verum
end;
suppose x' > y'' ; :: thesis: b1 in A' \/ { b2 where y2''' is Element of omega : ( b2 <= y'' & b2 in Ha ) }
then x in A' by A44;
hence x in A' \/ { y2''' where y2''' is Element of omega : ( y2''' <= y'' & y2''' in Ha ) } by XBOOLE_0:def 3; :: thesis: verum
end;
end;
end;
hence contradiction by A30, A37, B39, A40, TARSKI:2; :: thesis: verum
end;
min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } in A' by A36, NAT_1:def 1;
then consider y2'' being Element of omega such that
A45: ( min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } = y2'' & y2'' > y'' & y2'' in Ha ) ;
thus y2 in H1 by A45, A34; :: thesis: ( y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) )

thus y1 < y2 by A45, A33, A34; :: thesis: ( ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) )

thus for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) by A33, A30; :: thesis: for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2'

let y2' be Element of omega ; :: thesis: ( y2' > y1 & y2' in H1 implies y2 <= y2' )
assume A46: y2' > y1 ; :: thesis: ( not y2' in H1 or y2 <= y2' )
assume A47: y2' in H1 ; :: thesis: y2 <= y2'
y2' in A' by A46, A47, A33;
hence y2 <= y2' by A34, NAT_1:def 1; :: thesis: verum
end;
assume not y1 in x1 ; :: thesis: S2[a,x'',y'',x1'', min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ]
hence S2[a,x'',y'',x1'', min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ] by A33, A28; :: thesis: verum
end;
hence S2[a,x'',y'',x1'', min* { y2' where y2' is Element of omega : ( y2' > y'' & y2' in Ha ) } ] ; :: thesis: verum
end;
suppose A48: not y'' in x'' ; :: thesis: ex x1'' being Element of A ex y1'' being Element of omega st S2[a,x'',y'',x1'',y1'']
reconsider x1'' = X as Element of A by A26;
reconsider y1'' = 0 as Element of omega by INT_1:16;
take x1'' ; :: thesis: ex y1'' being Element of omega st S2[a,x'',y'',x1'',y1'']
take y1'' ; :: thesis: S2[a,x'',y'',x1'',y1'']
thus S2[a,x'',y'',x1'',y1''] by A48; :: thesis: verum
end;
end;
end;
reconsider X0 = X as Element of A by A26;
set Y0 = min* X;
consider S being Function of NAT ,A, a being Function of NAT ,omega such that
A49: ( S . 0 = X0 & a . 0 = min* X & ( for i being Element of NAT holds S2[i,S . i,a . i,S . (i + 1),a . (i + 1)] ) ) from RECDEF_2:sch 3(A27);
defpred S3[ natural number ] means ( a . $1 in a . ($1 + 1) & S . ($1 + 1) c= S . $1 & a . $1 in S . $1 & a . ($1 + 1) in S . ($1 + 1) & not a . $1 in S . ($1 + 1) );
A50: S3[ 0 ]
proof
set i = 0 ;
reconsider i = 0 as Element of NAT by ORDINAL1:def 13;
reconsider x1 = S . i as Element of A ;
reconsider x2 = S . (i + 1) as Element of A ;
reconsider y1 = a . i as Element of omega ;
reconsider y2 = a . (i + 1) as Element of omega ;
S2[i,S . i,a . i,S . (i + 1),a . (i + 1)] by A49;
then A51: ( ( y1 in x1 implies ex F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) ) & ( not y1 in x1 implies ( x2 = X & y2 = 0 ) ) ) ;
consider F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k, H1 being Subset of (x1 \ {y1}) such that
A52: ( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 ) by A51, A49, A8, A9, CARD_1:47, NAT_1:def 1;
thus a . 0 in a . (0 + 1) by A52, NAT_1:45; :: thesis: ( S . (0 + 1) c= S . 0 & a . 0 in S . 0 & a . (0 + 1) in S . (0 + 1) & not a . 0 in S . (0 + 1) )
thus S . (0 + 1) c= S . 0 by A52, XBOOLE_1:1; :: thesis: ( a . 0 in S . 0 & a . (0 + 1) in S . (0 + 1) & not a . 0 in S . (0 + 1) )
thus a . 0 in S . 0 by A49, A8, A9, CARD_1:47, NAT_1:def 1; :: thesis: ( a . (0 + 1) in S . (0 + 1) & not a . 0 in S . (0 + 1) )
thus a . (0 + 1) in S . (0 + 1) by A52; :: thesis: not a . 0 in S . (0 + 1)
not y1 in x2 hence not a . 0 in S . (0 + 1) ; :: thesis: verum
end;
A53: for i being natural number st S3[i] holds
S3[i + 1]
proof
let i be natural number ; :: thesis: ( S3[i] implies S3[i + 1] )
assume A54: S3[i] ; :: thesis: S3[i + 1]
reconsider i' = i + 1 as Element of NAT by ORDINAL1:def 13;
reconsider x1 = S . i' as Element of A ;
reconsider x2 = S . (i' + 1) as Element of A ;
reconsider y1 = a . i' as Element of omega ;
reconsider y2 = a . (i' + 1) as Element of omega ;
consider F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k, H1 being Subset of (x1 \ {y1}) such that
A55: ( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) by A49, A54;
thus S3[i + 1] :: thesis: verum
proof
thus a . (i + 1) in a . ((i + 1) + 1) by A55, NAT_1:45; :: thesis: ( S . ((i + 1) + 1) c= S . (i + 1) & a . (i + 1) in S . (i + 1) & a . ((i + 1) + 1) in S . ((i + 1) + 1) & not a . (i + 1) in S . ((i + 1) + 1) )
thus S . ((i + 1) + 1) c= S . (i + 1) by A55, XBOOLE_1:1; :: thesis: ( a . (i + 1) in S . (i + 1) & a . ((i + 1) + 1) in S . ((i + 1) + 1) & not a . (i + 1) in S . ((i + 1) + 1) )
thus a . (i + 1) in S . (i + 1) by A54; :: thesis: ( a . ((i + 1) + 1) in S . ((i + 1) + 1) & not a . (i + 1) in S . ((i + 1) + 1) )
thus a . ((i + 1) + 1) in S . ((i + 1) + 1) by A55; :: thesis: not a . (i + 1) in S . ((i + 1) + 1)
not y1 in x2 hence not a . (i + 1) in S . ((i + 1) + 1) ; :: thesis: verum
end;
end;
A56: for i being natural number holds S3[i] from NAT_1:sch 2(A50, A53);
defpred S4[ natural number ] means for i, j being natural number st i >= j & i = $1 + j holds
( S . i c= S . j & ( for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj ) );
A57: S4[ 0 ] ;
A58: for l being natural number st S4[l] holds
S4[l + 1]
proof
let l be natural number ; :: thesis: ( S4[l] implies S4[l + 1] )
assume A59: S4[l] ; :: thesis: S4[l + 1]
thus S4[l + 1] :: thesis: verum
proof
let i, j be natural number ; :: thesis: ( i >= j & i = (l + 1) + j implies ( S . i c= S . j & ( for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj ) ) )

assume A60: i >= j ; :: thesis: ( not i = (l + 1) + j or ( S . i c= S . j & ( for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj ) ) )

assume A61: i = (l + 1) + j ; :: thesis: ( S . i c= S . j & ( for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj ) )

i <> j
proof
assume i = j ; :: thesis: contradiction
then 0 = l + 1 by A61;
hence contradiction ; :: thesis: verum
end;
then A62: i > j by A60, XXREAL_0:1;
set j' = j + 1;
( i >= j + 1 & i = l + (j + 1) ) by A62, A61, NAT_1:13;
then A63: ( S . i c= S . (j + 1) & ( for ai, aj' being natural number st i <> j + 1 & ai = a . i & aj' = a . (j + 1) holds
ai > aj' ) ) by A59;
S . (j + 1) c= S . j by A56;
hence S . i c= S . j by A63, XBOOLE_1:1; :: thesis: for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj

thus for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj :: thesis: verum
proof
let ai, aj be natural number ; :: thesis: ( i <> j & ai = a . i & aj = a . j implies ai > aj )
assume i <> j ; :: thesis: ( not ai = a . i or not aj = a . j or ai > aj )
assume A64: ( ai = a . i & aj = a . j ) ; :: thesis: ai > aj
per cases ( i = j + 1 or i <> j + 1 ) ;
suppose A65: i = j + 1 ; :: thesis: ai > aj
a . j in a . (j + 1) by A56;
hence ai > aj by A64, A65, NAT_1:45; :: thesis: verum
end;
suppose i <> j + 1 ; :: thesis: ai > aj
reconsider aj' = a . (j + 1) as natural number ;
aj in aj' by A64, A56;
then aj' > aj by NAT_1:45;
hence ai > aj by A63, A64, XXREAL_0:2; :: thesis: verum
end;
end;
end;
end;
end;
A66: for l being natural number holds S4[l] from NAT_1:sch 2(A57, A58);
A67: for i, j being natural number st i >= j holds
( S . i c= S . j & ( for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj ) )
proof
let i, j be natural number ; :: thesis: ( i >= j implies ( S . i c= S . j & ( for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj ) ) )

assume A68: i >= j ; :: thesis: ( S . i c= S . j & ( for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj ) )

then consider l being natural number such that
A69: i = j + l by NAT_1:10;
thus S . i c= S . j by A66, A68, A69; :: thesis: for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj

thus for ai, aj being natural number st i <> j & ai = a . i & aj = a . j holds
ai > aj by A66, A68, A69; :: thesis: verum
end;
A70: for i being Element of NAT
for Y being set
for Fi being Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k st Y = { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > i )
}
& ( for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ) holds
( Y c= S . (i + 1) & Fi | (the_subsets_of_card n,Y) is constant )
proof
let i be Element of NAT ; :: thesis: for Y being set
for Fi being Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k st Y = { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > i )
}
& ( for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ) holds
( Y c= S . (i + 1) & Fi | (the_subsets_of_card n,Y) is constant )

let Y be set ; :: thesis: for Fi being Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k st Y = { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > i )
}
& ( for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ) holds
( Y c= S . (i + 1) & Fi | (the_subsets_of_card n,Y) is constant )

let Fi be Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k; :: thesis: ( Y = { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > i )
}
& ( for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ) implies ( Y c= S . (i + 1) & Fi | (the_subsets_of_card n,Y) is constant ) )

assume A71: Y = { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > i )
}
; :: thesis: ( ex Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) st not Fi . Y' = F . (Y' \/ {(a . i)}) or ( Y c= S . (i + 1) & Fi | (the_subsets_of_card n,Y) is constant ) )
assume A72: for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ; :: thesis: ( Y c= S . (i + 1) & Fi | (the_subsets_of_card n,Y) is constant )
consider x1 being Element of A, y1 being Element of omega such that
A73: ( S . i = x1 & a . i = y1 ) ;
consider x2 being Element of A, y2 being Element of omega such that
A74: ( S . (i + 1) = x2 & a . (i + 1) = y2 ) ;
( y1 in x1 implies ( ex F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k ex H1 being Subset of (x1 \ {y1}) st
( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & y2 in H1 & y1 < y2 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) & ( not y1 in x1 implies ( x2 = X & y2 = 0 ) ) ) ) by A49, A73, A74;
then consider F1 being Function of (the_subsets_of_card n,(x1 \ {y1})),k, H1 being Subset of (x1 \ {y1}) such that
A75: ( not H1 is finite & F1 | (the_subsets_of_card n,H1) is constant & x2 = H1 & ( for x1' being Element of the_subsets_of_card n,(x1 \ {y1}) holds F1 . x1' = F . (x1' \/ {y1}) ) & ( for y2' being Element of omega st y2' > y1 & y2' in H1 holds
y2 <= y2' ) ) by A73, A56;
reconsider F1 = F1 as Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k by A73;
for x1' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds F1 . x1' = Fi . x1'
proof
let x1' be Element of the_subsets_of_card n,((S . i) \ {(a . i)}); :: thesis: F1 . x1' = Fi . x1'
thus F1 . x1' = F . (x1' \/ {(a . i)}) by A73, A75
.= Fi . x1' by A72 ; :: thesis: verum
end;
then A76: Fi | (the_subsets_of_card n,(S . (i + 1))) is constant by A75, A74, FUNCT_2:113;
now
let x be set ; :: thesis: ( x in Y implies x in S . (i + 1) )
assume x in Y ; :: thesis: x in S . (i + 1)
then consider x' being Element of omega such that
A77: ( x = x' & ex j being Element of NAT st
( a . j = x' & j > i ) ) by A71;
consider j being Element of NAT such that
A78: ( a . j = x & j > i ) by A77;
j >= i + 1 by A78, NAT_1:13;
then A79: S . j c= S . (i + 1) by A67;
a . j in S . j by A56;
hence x in S . (i + 1) by A78, A79; :: thesis: verum
end;
hence A80: Y c= S . (i + 1) by TARSKI:def 3; :: thesis: Fi | (the_subsets_of_card n,Y) is constant
A81: the_subsets_of_card n,Y c= the_subsets_of_card n,(S . (i + 1)) by Lm1, A80;
for x, y being set st x in dom (Fi | (the_subsets_of_card n,Y)) & y in dom (Fi | (the_subsets_of_card n,Y)) holds
(Fi | (the_subsets_of_card n,Y)) . x = (Fi | (the_subsets_of_card n,Y)) . y
proof
let x, y be set ; :: thesis: ( x in dom (Fi | (the_subsets_of_card n,Y)) & y in dom (Fi | (the_subsets_of_card n,Y)) implies (Fi | (the_subsets_of_card n,Y)) . x = (Fi | (the_subsets_of_card n,Y)) . y )
assume x in dom (Fi | (the_subsets_of_card n,Y)) ; :: thesis: ( not y in dom (Fi | (the_subsets_of_card n,Y)) or (Fi | (the_subsets_of_card n,Y)) . x = (Fi | (the_subsets_of_card n,Y)) . y )
then A82: ( x in dom Fi & x in the_subsets_of_card n,Y ) by RELAT_1:86;
then A83: x in dom (Fi | (the_subsets_of_card n,(S . (i + 1)))) by A81, RELAT_1:86;
assume y in dom (Fi | (the_subsets_of_card n,Y)) ; :: thesis: (Fi | (the_subsets_of_card n,Y)) . x = (Fi | (the_subsets_of_card n,Y)) . y
then A84: ( y in dom Fi & y in the_subsets_of_card n,Y ) by RELAT_1:86;
then A85: y in dom (Fi | (the_subsets_of_card n,(S . (i + 1)))) by A81, RELAT_1:86;
thus (Fi | (the_subsets_of_card n,Y)) . x = ((Fi | (the_subsets_of_card n,(S . (i + 1)))) | (the_subsets_of_card n,Y)) . x by A81, FUNCT_1:82
.= (Fi | (the_subsets_of_card n,(S . (i + 1)))) . x by A82, FUNCT_1:72
.= (Fi | (the_subsets_of_card n,(S . (i + 1)))) . y by A85, A76, A83, FUNCT_1:def 16
.= ((Fi | (the_subsets_of_card n,(S . (i + 1)))) | (the_subsets_of_card n,Y)) . y by A84, FUNCT_1:72
.= (Fi | (the_subsets_of_card n,Y)) . y by A81, FUNCT_1:82 ; :: thesis: verum
end;
hence Fi | (the_subsets_of_card n,Y) is constant by FUNCT_1:def 16; :: thesis: verum
end;
for x1, x2 being set st x1 in dom a & x2 in dom a & a . x1 = a . x2 holds
x1 = x2
proof
let x1, x2 be set ; :: thesis: ( x1 in dom a & x2 in dom a & a . x1 = a . x2 implies x1 = x2 )
assume A86: x1 in dom a ; :: thesis: ( not x2 in dom a or not a . x1 = a . x2 or x1 = x2 )
assume A87: x2 in dom a ; :: thesis: ( not a . x1 = a . x2 or x1 = x2 )
assume A88: a . x1 = a . x2 ; :: thesis: x1 = x2
assume A89: x1 <> x2 ; :: thesis: contradiction
reconsider i1 = x1 as Element of NAT by A86;
reconsider i2 = x2 as Element of NAT by A87;
reconsider ai1 = a . i1 as Element of NAT ;
reconsider ai2 = a . i2 as Element of NAT ;
end;
then A90: a is one-to-one by FUNCT_1:def 8;
A91: NAT = dom a by FUNCT_2:def 1;
A92: for i being Element of NAT holds card { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
= omega
proof
let i be Element of NAT ; :: thesis: card { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
= omega

set Z = { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
;
A93: dom (a | (NAT \ (Segm (i + 1)))) = (dom a) /\ (NAT \ (Segm (i + 1))) by RELAT_1:90
.= NAT /\ (NAT \ (Segm (i + 1))) by FUNCT_2:def 1
.= (NAT /\ NAT ) \ (Segm (i + 1)) by XBOOLE_1:49
.= NAT \ (Segm (i + 1)) ;
for z being set holds
( z in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
iff z in rng (a | (NAT \ (Segm (i + 1)))) )
proof
let z be set ; :: thesis: ( z in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
iff z in rng (a | (NAT \ (Segm (i + 1)))) )

hereby :: thesis: ( z in rng (a | (NAT \ (Segm (i + 1)))) implies z in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
)
assume z in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
; :: thesis: z in rng (a | (NAT \ (Segm (i + 1))))
then consider z' being Element of omega such that
A94: ( z = z' & ex j being Element of NAT st
( a . j = z' & j > i ) ) ;
consider j being Element of NAT such that
A95: ( a . j = z & j > i ) by A94;
j >= i + 1 by A95, NAT_1:13;
then not j in i + 1 by NAT_1:45;
then ( j in dom a & j in NAT \ (Segm (i + 1)) ) by A91, XBOOLE_0:def 5;
hence z in rng (a | (NAT \ (Segm (i + 1)))) by A95, FUNCT_1:73; :: thesis: verum
end;
assume z in rng (a | (NAT \ (Segm (i + 1)))) ; :: thesis: z in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}

then consider j being set such that
A96: ( j in dom (a | (NAT \ (Segm (i + 1)))) & z = (a | (NAT \ (Segm (i + 1)))) . j ) by FUNCT_1:def 5;
reconsider j = j as Element of NAT by A96;
not j in Segm (i + 1) by A96, A93, XBOOLE_0:def 5;
then j >= i + 1 by NAT_1:45;
then ( a . j = z & j > i ) by A96, FUNCT_1:70, NAT_1:13;
hence z in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
; :: thesis: verum
end;
then A97: { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i ) } = rng (a | (NAT \ (Segm (i + 1)))) by TARSKI:2;
A98: a | (NAT \ (Segm (i + 1))) is one-to-one by A90, FUNCT_1:84;
now
let z be set ; :: thesis: ( z in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
implies z in NAT )

assume z in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
; :: thesis: z in NAT
then consider z' being Element of omega such that
A99: ( z = z' & ex j being Element of NAT st
( a . j = z' & j > i ) ) ;
thus z in NAT by A99; :: thesis: verum
end;
then { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i ) } c= NAT by TARSKI:def 3;
hence card { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
= omega by A97, A93, Th2, A98, CARD_1:97; :: thesis: verum
end;
defpred S5[ set , set ] means for Y being set
for i being Element of NAT
for Fi being Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k st i = $1 & Y = { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > i )
}
& ( for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ) holds
ex l being natural number st
( l = $2 & l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} );
A101: for x being set st x in NAT holds
ex y being set st
( y in k & S5[x,y] )
proof
let x be set ; :: thesis: ( x in NAT implies ex y being set st
( y in k & S5[x,y] ) )

assume x in NAT ; :: thesis: ex y being set st
( y in k & S5[x,y] )

then reconsider i' = x as Element of NAT ;
set Y' = S . i';
reconsider a' = a . i' as Element of S . i' by A56;
S . i' in A ;
then consider Y'' being Subset of X such that
A102: ( Y'' = S . i' & card Y'' = omega ) ;
consider Fa being Function of (the_subsets_of_card n,((S . i') \ {a'})),k, Ha being Subset of ((S . i') \ {a'}) such that
A103: ( not Ha is finite & Fa | (the_subsets_of_card n,Ha) is constant & ( for Y'' being Element of the_subsets_of_card n,((S . i') \ {a'}) holds Fa . Y'' = F . (Y'' \/ {a'}) ) ) by A102, A11;
set Z = { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
;
A104: ( { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' ) } c= S . (i' + 1) & Fa | (the_subsets_of_card n,{ x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
)
is constant ) by A70, A103;
A105: ( a . i' in a . (i' + 1) & S . (i' + 1) c= S . i' & a . i' in S . i' & a . (i' + 1) in S . (i' + 1) & not a . i' in S . (i' + 1) ) by A56;
now
let x be set ; :: thesis: ( x in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
implies x in (S . i') \ {(a . i')} )

assume x in { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
; :: thesis: x in (S . i') \ {(a . i')}
then A106: x in S . (i' + 1) by A104;
not x in {(a . i')} by A106, A105, TARSKI:def 1;
hence x in (S . i') \ {(a . i')} by A106, A105, XBOOLE_0:def 5; :: thesis: verum
end;
then { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' ) } c= (S . i') \ {(a . i')} by TARSKI:def 3;
then A107: the_subsets_of_card n,{ x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
c= the_subsets_of_card n,((S . i') \ {a'}) by Lm1;
A108: Fa | (the_subsets_of_card n,{ x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
)
is Function of (the_subsets_of_card n,{ x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
)
,k by A10, A107, FUNCT_2:38;
card { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
= omega by A92;
then not card { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
c= card n ;
then ( card n c= card { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
& not { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
is empty ) ;
then not the_subsets_of_card n,{ x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
is empty by GROUP_10:2;
then consider y being Element of k such that
A109: rng (Fa | (the_subsets_of_card n,{ x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i' )
}
)
)
= {y} by A10, A108, A104, FUNCT_2:188;
reconsider y = y as set ;
take y ; :: thesis: ( y in k & S5[x,y] )
thus y in k by A10; :: thesis: S5[x,y]
thus S5[x,y] :: thesis: verum
proof
thus for Y being set
for i being Element of NAT
for Fi being Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k st i = x & Y = { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
& ( for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ) holds
ex l being natural number st
( l = y & l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} ) :: thesis: verum
proof
let Y be set ; :: thesis: for i being Element of NAT
for Fi being Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k st i = x & Y = { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
& ( for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ) holds
ex l being natural number st
( l = y & l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} )

let i be Element of NAT ; :: thesis: for Fi being Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k st i = x & Y = { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
& ( for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ) holds
ex l being natural number st
( l = y & l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} )

let Fi be Function of (the_subsets_of_card n,((S . i) \ {(a . i)})),k; :: thesis: ( i = x & Y = { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
& ( for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ) implies ex l being natural number st
( l = y & l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} ) )

assume A111: i = x ; :: thesis: ( not Y = { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
or ex Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) st not Fi . Y' = F . (Y' \/ {(a . i)}) or ex l being natural number st
( l = y & l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} ) )

assume A112: Y = { x' where x' is Element of omega : ex j being Element of NAT st
( a . j = x' & j > i )
}
; :: thesis: ( ex Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) st not Fi . Y' = F . (Y' \/ {(a . i)}) or ex l being natural number st
( l = y & l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} ) )

assume A113: for Y' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fi . Y' = F . (Y' \/ {(a . i)}) ; :: thesis: ex l being natural number st
( l = y & l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} )

reconsider k' = k as Element of NAT by ORDINAL1:def 13;
k' is Subset of NAT by STIRL2_1:8;
then reconsider l = y as natural number ;
take l ; :: thesis: ( l = y & l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} )
thus l = y ; :: thesis: ( l in k & rng (Fi | (the_subsets_of_card n,Y)) = {l} )
thus l in k by A10; :: thesis: rng (Fi | (the_subsets_of_card n,Y)) = {l}
for x1' being Element of the_subsets_of_card n,((S . i) \ {(a . i)}) holds Fa . x1' = Fi . x1'
proof
let x1' be Element of the_subsets_of_card n,((S . i) \ {(a . i)}); :: thesis: Fa . x1' = Fi . x1'
thus Fa . x1' = F . (x1' \/ {(a . i)}) by A111, A103
.= Fi . x1' by A113 ; :: thesis: verum
end;
hence rng (Fi | (the_subsets_of_card n,Y)) = {l} by A109, A112, A111, FUNCT_2:113; :: thesis: verum
end;
end;
end;
consider g being Function of NAT ,k such that
A114: for x being set st x in NAT holds
S5[x,g . x] from FUNCT_2:sch 1(A101);
g in Funcs NAT ,k by A10, FUNCT_2:11;
then consider g' being Function such that
A116: ( g = g' & dom g' = NAT & rng g' c= k ) by FUNCT_2:def 2;
consider k' being set such that
A117: ( k' in rng g & not g " {k'} is finite ) by A116, COMPL_SP:24;
set H = a .: (g " {k'});
A118: g " {k'} c= dom g by RELAT_1:167;
g " {k'},a .: (g " {k'}) are_equipotent by A90, A91, A118, CARD_1:60, XBOOLE_1:1;
then A119: card (g " {k'}) = card (a .: (g " {k'})) by CARD_1:21;
now
let y be set ; :: thesis: ( y in a .: (g " {k'}) implies y in X )
assume y in a .: (g " {k'}) ; :: thesis: y in X
then consider x being set such that
A121: ( [x,y] in a & x in g " {k'} ) by RELAT_1:def 13;
A122: ( x in dom a & y = a . x ) by A121, FUNCT_1:8;
then reconsider i = x as Element of NAT ;
A123: y in S . i by A122, A56;
S . i in the_subsets_of_card omega ,X ;
then consider Xi being Subset of X such that
A124: ( S . i = Xi & card Xi = omega ) ;
thus y in X by A124, A123; :: thesis: verum
end;
then reconsider H = a .: (g " {k'}) as Subset of X by TARSKI:def 3;
take H = H; :: thesis: ( not H is finite & F | (the_subsets_of_card (n + 1),H) is constant )
thus not H is finite by A117, A119; :: thesis: F | (the_subsets_of_card (n + 1),H) is constant
A125: for y being set st y in dom (F | (the_subsets_of_card (n + 1),H)) holds
(F | (the_subsets_of_card (n + 1),H)) . y = k'
proof
let y be set ; :: thesis: ( y in dom (F | (the_subsets_of_card (n + 1),H)) implies (F | (the_subsets_of_card (n + 1),H)) . y = k' )
assume y in dom (F | (the_subsets_of_card (n + 1),H)) ; :: thesis: (F | (the_subsets_of_card (n + 1),H)) . y = k'
then A126: ( y in dom F & y in the_subsets_of_card (n + 1),H ) by RELAT_1:86;
then consider Y being Subset of H such that
A127: ( y = Y & card Y = n + 1 ) ;
set y0 = min* Y;
Y c= X by XBOOLE_1:1;
then A128: Y c= NAT by A9, XBOOLE_1:1;
then A129: ( min* Y in Y & ( for k being Element of NAT st k in Y holds
min* Y <= k ) ) by A127, CARD_1:47, NAT_1:def 1;
then consider x0 being set such that
A130: ( x0 in dom a & x0 in g " {k'} & min* Y = a . x0 ) by FUNCT_1:def 12;
consider y0' being set such that
A131: ( y0' in rng g & [x0,y0'] in g & y0' in {k'} ) by A130, RELAT_1:166;
A132: ( x0 in dom g & g . x0 = y0' ) by A131, FUNCT_1:8;
reconsider x0 = x0 as Element of NAT by A132;
reconsider a' = a . x0 as Element of S . x0 by A56;
S . x0 in the_subsets_of_card omega ,X ;
then consider S0 being Subset of X such that
A133: ( S0 = S . x0 & card S0 = omega ) ;
consider F0 being Function of (the_subsets_of_card n,((S . x0) \ {a'})),k, H0 being Subset of ((S . x0) \ {a'}) such that
A134: ( not H0 is finite & F0 | (the_subsets_of_card n,H0) is constant & ( for Y' being Element of the_subsets_of_card n,((S . x0) \ {a'}) holds F0 . Y' = F . (Y' \/ {a'}) ) ) by A11, A133;
set Y0 = { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
;
consider l being natural number such that
A135: ( l = g . x0 & l in k & rng (F0 | (the_subsets_of_card n,{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
)
)
= {l} ) by A114, A134;
A136: rng (F0 | (the_subsets_of_card n,{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
)
)
= {k'} by A135, A132, A131, TARSKI:def 1;
set Y' = y \ {(min* Y)};
A137: ( { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 ) } c= S . (x0 + 1) & F0 | (the_subsets_of_card n,{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
)
is constant ) by A70, A134;
A138: ( a . x0 in a . (x0 + 1) & S . (x0 + 1) c= S . x0 & a . x0 in S . x0 & a . (x0 + 1) in S . (x0 + 1) & not a . x0 in S . (x0 + 1) ) by A56;
A139: not a . x0 in { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
by A137, A56;
{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 ) } c= S . x0 by A137, A138, XBOOLE_1:1;
then { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 ) } \ {(a . x0)} c= (S . x0) \ {(a . x0)} by XBOOLE_1:33;
then { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 ) } c= (S . x0) \ {(a . x0)} by A139, ZFMISC_1:65;
then A140: the_subsets_of_card n,{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
c= the_subsets_of_card n,((S . x0) \ {(a . x0)}) by Lm1;
now
let x be set ; :: thesis: ( x in y \ {(min* Y)} implies x in { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
)

assume A141: x in y \ {(min* Y)} ; :: thesis: x in { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}

then A142: ( x in y & not x in {(min* Y)} ) by XBOOLE_0:def 5;
consider j being set such that
A143: ( j in dom a & j in g " {k'} & x = a . j ) by A142, A127, FUNCT_1:def 12;
reconsider x' = x as Element of omega by A142, A127, A128;
ex j being Element of NAT st
( a . j = x' & j > x0 )
proof
reconsider j = j as Element of NAT by A143;
take j ; :: thesis: ( a . j = x' & j > x0 )
thus a . j = x' by A143; :: thesis: j > x0
A144: min* Y <= x' by A128, A141, A127, NAT_1:def 1;
thus j > x0 :: thesis: verum
end;
hence x in { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
; :: thesis: verum
end;
then A146: y \ {(min* Y)} is Subset of { x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
by TARSKI:def 3;
A147: {(min* Y)} c= y by A127, A129, ZFMISC_1:37;
A148: (y \ {(min* Y)}) \/ {(a . x0)} = y by A130, A147, XBOOLE_1:45;
reconsider y' = y as finite set by A127;
card (y \ {(min* Y)}) c= card y' by CARD_1:27;
then reconsider Y'' = y \ {(min* Y)} as finite set ;
min* Y in {(min* Y)} by TARSKI:def 1;
then A149: not a . x0 in y \ {(min* Y)} by A130, XBOOLE_0:def 5;
card y' = (card Y'') + 1 by A148, A149, CARD_2:54;
then A150: y \ {(min* Y)} in the_subsets_of_card n,{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
by A127, A146;
then A151: y \ {(min* Y)} in the_subsets_of_card n,((S . x0) \ {(a . x0)}) by A140;
reconsider Y' = y \ {(min* Y)} as Element of the_subsets_of_card n,((S . x0) \ {(a . x0)}) by A140, A150;
Y' in dom F0 by A10, A151, FUNCT_2:def 1;
then Y' in dom (F0 | (the_subsets_of_card n,{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
)
)
by A150, RELAT_1:86;
then (F0 | (the_subsets_of_card n,{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
)
) . Y' in rng (F0 | (the_subsets_of_card n,{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
)
)
by FUNCT_1:12;
then (F0 | (the_subsets_of_card n,{ x where x is Element of omega : ex j being Element of NAT st
( a . j = x & j > x0 )
}
)
) . Y' = k' by A136, TARSKI:def 1;
then A152: F0 . Y' = k' by A150, FUNCT_1:72;
F0 . Y' = F . (Y' \/ {(a . x0)}) by A134;
hence (F | (the_subsets_of_card (n + 1),H)) . y = k' by A152, A148, A126, FUNCT_1:72; :: thesis: verum
end;
for x, y being set st x in dom (F | (the_subsets_of_card (n + 1),H)) & y in dom (F | (the_subsets_of_card (n + 1),H)) holds
(F | (the_subsets_of_card (n + 1),H)) . x = (F | (the_subsets_of_card (n + 1),H)) . y
proof
let x, y be set ; :: thesis: ( x in dom (F | (the_subsets_of_card (n + 1),H)) & y in dom (F | (the_subsets_of_card (n + 1),H)) implies (F | (the_subsets_of_card (n + 1),H)) . x = (F | (the_subsets_of_card (n + 1),H)) . y )
assume x in dom (F | (the_subsets_of_card (n + 1),H)) ; :: thesis: ( not y in dom (F | (the_subsets_of_card (n + 1),H)) or (F | (the_subsets_of_card (n + 1),H)) . x = (F | (the_subsets_of_card (n + 1),H)) . y )
then A153: (F | (the_subsets_of_card (n + 1),H)) . x = k' by A125;
assume y in dom (F | (the_subsets_of_card (n + 1),H)) ; :: thesis: (F | (the_subsets_of_card (n + 1),H)) . x = (F | (the_subsets_of_card (n + 1),H)) . y
hence (F | (the_subsets_of_card (n + 1),H)) . x = (F | (the_subsets_of_card (n + 1),H)) . y by A153, A125; :: thesis: verum
end;
hence F | (the_subsets_of_card (n + 1),H) is constant by FUNCT_1:def 16; :: thesis: verum
end;
hence S1[n + 1] ; :: thesis: verum
end;
for n being natural number holds S1[n] from NAT_1:sch 2(A1, A6);
hence for F being Function of (the_subsets_of_card n,X),k st card X = omega & X c= omega & k <> 0 holds
ex H being Subset of X st
( not H is finite & F | (the_subsets_of_card n,H) is constant ) ; :: thesis: verum