let X, Y be set ; :: thesis: ( card X = card Y implies card (2Set X) = card (2Set Y) )
assume card X = card Y ; :: thesis: card (2Set X) = card (2Set Y)
then consider g being Function such that
A1: ( g is one-to-one & dom g = X & rng g = Y ) by CARD_1:5, WELLORD2:def 4;
deffunc H1( set ) -> Element of $1 = the Element of $1;
deffunc H2( set ) -> Element of $1 \ {H1($1)} = the Element of $1 \ {H1($1)};
deffunc H3( object ) -> set = {(g . H1( In ($1,(bool X)))),(g . H2( In ($1,(bool X))))};
consider f being Function such that
A2: ( dom f = 2Set X & ( for x being object st x in 2Set X holds
f . x = H3(x) ) ) from FUNCT_1:sch 3();
now :: thesis: for y being object holds
( ( y in rng f implies y in 2Set Y ) & ( y in 2Set Y implies y in rng f ) )
let y be object ; :: thesis: ( ( y in rng f implies y in 2Set Y ) & ( y in 2Set Y implies b1 in rng f ) )
hereby :: thesis: ( y in 2Set Y implies b1 in rng f )
assume y in rng f ; :: thesis: y in 2Set Y
then consider x being object such that
A3: ( x in dom f & f . x = y ) by FUNCT_1:def 3;
consider X9 being Subset of X such that
A4: ( x = X9 & card X9 = 2 ) by A2, A3;
A5: y = {(g . H1( In (X9,(bool X)))),(g . H2( In (X9,(bool X))))} by A2, A3, A4
.= {(g . H1(X9)),(g . H2(X9))} ;
not X9 is trivial then ( X9 <> {} & X9 \ {H1(X9)} <> {} ) by ZFMISC_1:139;
then A7: ( H1(X9) in X9 & H2(X9) in X9 \ {H1(X9)} ) ;
then ( H2(X9) in X9 & not H2(X9) in {H1(X9)} ) by XBOOLE_0:def 5;
then ( H2(X9) in X9 & H1(X9) <> H2(X9) ) by TARSKI:def 1;
then A8: g . H1(X9) <> g . H2(X9) by A1, A7, FUNCT_1:def 4;
( g . H1(X9) in Y & g . H2(X9) in Y ) by A1, A7, FUNCT_1:3;
then A9: {(g . H1(X9)),(g . H2(X9))} c= Y by ZFMISC_1:32;
card {(g . H1(X9)),(g . H2(X9))} = 2 by A8, CARD_2:57;
hence y in 2Set Y by A5, A9; :: thesis: verum
end;
assume y in 2Set Y ; :: thesis: b1 in rng f
then consider Y9 being Subset of Y such that
A10: ( y = Y9 & card Y9 = 2 ) ;
consider y1, y2 being object such that
A11: ( y1 <> y2 & Y9 = {y1,y2} ) by A10, CARD_2:60;
( y1 in Y9 & y2 in Y9 ) by A11, TARSKI:def 2;
then A12: ( y1 in rng g & y2 in rng g ) by A1;
then consider x1 being object such that
A13: ( x1 in dom g & g . x1 = y1 ) by FUNCT_1:def 3;
consider x2 being object such that
A14: ( x2 in dom g & g . x2 = y2 ) by A12, FUNCT_1:def 3;
A15: x1 <> x2 by A11, A13, A14;
reconsider X9 = {x1,x2} as Subset of X by A1, A13, A14, ZFMISC_1:32;
card X9 = 2 by A15, CARD_2:57;
then A16: X9 in 2Set X ;
per cases ( H1(X9) = x1 or H1(X9) = x2 ) by TARSKI:def 2;
suppose A17: H1(X9) = x1 ; :: thesis: b1 in rng f
then X9 \ {H1(X9)} = {x2} by A15, ZFMISC_1:17;
then A18: H2(X9) = x2 by TARSKI:def 1;
f . X9 = {(g . H1( In (X9,(bool X)))),(g . H2( In (X9,(bool X))))} by A2, A16
.= y by A10, A11, A13, A14, A17, A18 ;
hence y in rng f by A2, A16, FUNCT_1:3; :: thesis: verum
end;
suppose A19: H1(X9) = x2 ; :: thesis: b1 in rng f
then X9 \ {H1(X9)} = {x1} by A15, ZFMISC_1:17;
then A20: H2(X9) = x1 by TARSKI:def 1;
f . X9 = {(g . H1( In (X9,(bool X)))),(g . H2( In (X9,(bool X))))} by A2, A16
.= y by A10, A11, A13, A14, A19, A20 ;
hence y in rng f by A2, A16, FUNCT_1:3; :: thesis: verum
end;
end;
end;
then A21: rng f = 2Set Y by TARSKI:2;
now :: thesis: for x1, x2 being object st x1 in dom f & x2 in dom f & f . x1 = f . x2 holds
x1 = x2
let x1, x2 be object ; :: thesis: ( x1 in dom f & x2 in dom f & f . x1 = f . x2 implies b1 = b2 )
assume A22: ( x1 in dom f & x2 in dom f & f . x1 = f . x2 ) ; :: thesis: b1 = b2
then consider X1 being Subset of X such that
A23: ( x1 = X1 & card X1 = 2 ) by A2;
consider X2 being Subset of X such that
A24: ( x2 = X2 & card X2 = 2 ) by A2, A22;
A25: f . x1 = {(g . H1( In (X1,(bool X)))),(g . H2( In (X1,(bool X))))} by A2, A22, A23
.= {(g . H1(X1)),(g . H2(X1))} ;
A26: f . x2 = {(g . H1( In (X2,(bool X)))),(g . H2( In (X2,(bool X))))} by A2, A22, A24
.= {(g . H1(X2)),(g . H2(X2))} ;
not X1 is trivial
proof end;
then ( X1 <> {} & X1 \ {H1(X1)} <> {} ) by ZFMISC_1:139;
then A28: ( H1(X1) in X1 & H2(X1) in X1 \ {H1(X1)} ) ;
then ( H2(X1) in X1 & not H2(X1) in {H1(X1)} ) by XBOOLE_0:def 5;
then A29: ( H2(X1) in X1 & H2(X1) <> H1(X1) ) by TARSKI:def 1;
A30: ( H1(X1) in X & H2(X1) in X ) by A28;
not X2 is trivial
proof end;
then ( X2 <> {} & X2 \ {H1(X2)} <> {} ) by ZFMISC_1:139;
then A32: ( H1(X2) in X2 & H2(X2) in X2 \ {H1(X2)} ) ;
then ( H2(X2) in X2 & not H2(X2) in {H1(X2)} ) by XBOOLE_0:def 5;
then A33: ( H2(X2) in X2 & H2(X2) <> H1(X2) ) by TARSKI:def 1;
A34: ( H1(X2) in X & H2(X2) in X ) by A32;
A35: ( X1 is finite & X2 is finite ) by A23, A24;
( {H1(X1),H2(X1)} c= X1 & card {H1(X1),H2(X1)} = 2 ) by A29, ZFMISC_1:32, CARD_2:57;
then A36: {H1(X1),H2(X1)} = X1 by A23, A35, CARD_2:102;
( {H1(X2),H2(X2)} c= X2 & card {H1(X2),H2(X2)} = 2 ) by A33, ZFMISC_1:32, CARD_2:57;
then A37: {H1(X2),H2(X2)} = X2 by A24, A35, CARD_2:102;
A38: ( f . x1 in rng f & f . x2 in rng f ) by A22, FUNCT_1:3;
then consider Y1 being Subset of Y such that
A39: ( f . x1 = Y1 & card Y1 = 2 ) by A21;
consider Y2 being Subset of Y such that
A40: ( f . x2 = Y2 & card Y2 = 2 ) by A21, A38;
A41: g . H1(X1) <> g . H2(X1)
proof
assume g . H1(X1) = g . H2(X1) ; :: thesis: contradiction
then f . x1 = {(g . H1(X1))} by A25, ENUMSET1:29;
hence contradiction by A39, CARD_1:30; :: thesis: verum
end;
A42: g . H1(X2) <> g . H2(X2)
proof
assume g . H1(X2) = g . H2(X2) ; :: thesis: contradiction
then f . x2 = {(g . H1(X2))} by A26, ENUMSET1:29;
hence contradiction by A40, CARD_1:30; :: thesis: verum
end;
A43: {(g . H1(X1)),(g . H2(X1))} = {(g . H1(X2)),(g . H2(X2))} by A22, A25, A26;
per cases then ( g . H1(X1) = g . H1(X2) or g . H1(X1) = g . H2(X2) ) by ZFMISC_1:6;
suppose A44: g . H1(X1) = g . H1(X2) ; :: thesis: b1 = b2
then A45: H1(X1) = H1(X2) by A1, A30, A34, FUNCT_1:def 4;
{(g . H1(X1)),(g . H2(X1))} \ {(g . H1(X1))} = {(g . H2(X1))} by A41, ZFMISC_1:17;
then {(g . H2(X1))} = {(g . H2(X2))} by A42, A43, A44, ZFMISC_1:17;
then H2(X1) = H2(X2) by A1, A28, A32, FUNCT_1:def 4, ZFMISC_1:3;
hence x1 = x2 by A23, A24, A36, A37, A45; :: thesis: verum
end;
suppose A46: g . H1(X1) = g . H2(X2) ; :: thesis: b1 = b2
then A47: H1(X1) = H2(X2) by A1, A28, A32, FUNCT_1:def 4;
{(g . H1(X1)),(g . H2(X1))} \ {(g . H1(X1))} = {(g . H2(X1))} by A41, ZFMISC_1:17;
then {(g . H2(X1))} = {(g . H1(X2))} by A42, A43, A46, ZFMISC_1:17;
then H2(X1) = H1(X2) by A1, A28, A32, FUNCT_1:def 4, ZFMISC_1:3;
hence x1 = x2 by A23, A24, A36, A37, A47; :: thesis: verum
end;
end;
end;
hence card (2Set X) = card (2Set Y) by A2, A21, FUNCT_1:def 4, CARD_1:70; :: thesis: verum