let x, y, X be set ; :: thesis: ( x <> y implies ( Funcs X,{x,y}, bool X are_equipotent & card (Funcs X,{x,y}) = card (bool X) ) )
assume A1:
x <> y
; :: thesis: ( Funcs X,{x,y}, bool X are_equipotent & card (Funcs X,{x,y}) = card (bool X) )
deffunc H1( Function) -> set = $1 " {x};
consider f being Function such that
A2:
( dom f = Funcs X,{x,y} & ( for g being Function st g in Funcs X,{x,y} holds
f . g = H1(g) ) )
from FUNCT_5:sch 1();
thus
Funcs X,{x,y}, bool X are_equipotent
:: thesis: card (Funcs X,{x,y}) = card (bool X)proof
take
f
;
:: according to WELLORD2:def 4 :: thesis: ( f is one-to-one & proj1 f = Funcs X,{x,y} & proj2 f = bool X )
thus
f is
one-to-one
:: thesis: ( proj1 f = Funcs X,{x,y} & proj2 f = bool X )proof
let x1 be
set ;
:: according to FUNCT_1:def 8 :: thesis: for b1 being set holds
( not x1 in proj1 f or not b1 in proj1 f or not f . x1 = f . b1 or x1 = b1 )let x2 be
set ;
:: thesis: ( not x1 in proj1 f or not x2 in proj1 f or not f . x1 = f . x2 or x1 = x2 )
assume A3:
(
x1 in dom f &
x2 in dom f &
f . x1 = f . x2 )
;
:: thesis: x1 = x2
then consider g1 being
Function such that A4:
(
x1 = g1 &
dom g1 = X &
rng g1 c= {x,y} )
by A2, FUNCT_2:def 2;
consider g2 being
Function such that A5:
(
x2 = g2 &
dom g2 = X &
rng g2 c= {x,y} )
by A2, A3, FUNCT_2:def 2;
A6:
(
f . x1 = g1 " {x} &
f . x2 = g2 " {x} )
by A2, A3, A4, A5;
now let z be
set ;
:: thesis: ( z in X implies g1 . z = g2 . z )assume A7:
z in X
;
:: thesis: g1 . z = g2 . znow assume A10:
not
g1 . z in {x}
;
:: thesis: g1 . z = g2 . zthen
not
z in g2 " {x}
by A3, A6, FUNCT_1:def 13;
then
( not
g2 . z in {x} &
g1 . z in rng g1 &
g2 . z in rng g2 )
by A4, A5, A7, FUNCT_1:def 5, FUNCT_1:def 13;
then
(
g2 . z <> x &
g1 . z <> x &
g1 . z in {x,y} &
g2 . z in {x,y} )
by A4, A5, A10, TARSKI:def 1;
then
(
g1 . z = y &
g2 . z = y )
by TARSKI:def 2;
hence
g1 . z = g2 . z
;
:: thesis: verum end; hence
g1 . z = g2 . z
by A8;
:: thesis: verum end;
hence
x1 = x2
by A4, A5, FUNCT_1:9;
:: thesis: verum
end;
thus
dom f = Funcs X,
{x,y}
by A2;
:: thesis: proj2 f = bool X
thus
rng f c= bool X
:: according to XBOOLE_0:def 10 :: thesis: bool X c= proj2 f
let z be
set ;
:: according to TARSKI:def 3 :: thesis: ( not z in bool X or z in proj2 f )
assume A13:
z in bool X
;
:: thesis: z in proj2 f
defpred S1[
set ]
means $1
in z;
deffunc H2(
set )
-> set =
x;
deffunc H3(
set )
-> set =
y;
consider g being
Function such that A14:
(
dom g = X & ( for
t being
set st
t in X holds
( (
S1[
t] implies
g . t = H2(
t) ) & ( not
S1[
t] implies
g . t = H3(
t) ) ) ) )
from PARTFUN1:sch 1();
rng g c= {x,y}
then A16:
g in Funcs X,
{x,y}
by A14, FUNCT_2:def 2;
A17:
g " {x} = z
f . g = g " {x}
by A2, A16;
hence
z in proj2 f
by A2, A16, A17, FUNCT_1:def 5;
:: thesis: verum
end;
hence
card (Funcs X,{x,y}) = card (bool X)
by CARD_1:21; :: thesis: verum