let X be set ; for x, y being object st x <> y holds
( Funcs (X,{x,y}), bool X are_equipotent & card (Funcs (X,{x,y})) = card (bool X) )
let x, y be object ; ( x <> y implies ( 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
A1:
( 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();
assume A2:
x <> y
; ( Funcs (X,{x,y}), bool X are_equipotent & card (Funcs (X,{x,y})) = card (bool X) )
thus
Funcs (X,{x,y}), bool X are_equipotent
card (Funcs (X,{x,y})) = card (bool X)proof
deffunc H2(
object )
-> object =
x;
take
f
;
WELLORD2:def 4 ( f is one-to-one & proj1 f = Funcs (X,{x,y}) & proj2 f = bool X )
thus
f is
one-to-one
( proj1 f = Funcs (X,{x,y}) & proj2 f = bool X )proof
let x1,
x2 be
object ;
FUNCT_1:def 4 ( not x1 in proj1 f or not x2 in proj1 f or not f . x1 = f . x2 or x1 = x2 )
assume that A3:
x1 in dom f
and A4:
x2 in dom f
and A5:
f . x1 = f . x2
;
x1 = x2
consider g2 being
Function such that A6:
x2 = g2
and A7:
dom g2 = X
and A8:
rng g2 c= {x,y}
by A1, A4, FUNCT_2:def 2;
A9:
f . x2 = g2 " {x}
by A1, A4, A6;
consider g1 being
Function such that A10:
x1 = g1
and A11:
dom g1 = X
and A12:
rng g1 c= {x,y}
by A1, A3, FUNCT_2:def 2;
A13:
f . x1 = g1 " {x}
by A1, A3, A10;
now for z being object st z in X holds
g1 . z = g2 . zlet z be
object ;
( z in X implies g1 . z = g2 . z )assume A14:
z in X
;
g1 . z = g2 . zA15:
now ( not g1 . z in {x} implies g1 . z = g2 . z )assume A16:
not
g1 . z in {x}
;
g1 . z = g2 . zthen A17:
g1 . z <> x
by TARSKI:def 1;
not
z in g2 " {x}
by A5, A13, A9, A16, FUNCT_1:def 7;
then
not
g2 . z in {x}
by A7, A14, FUNCT_1:def 7;
then A18:
g2 . z <> x
by TARSKI:def 1;
g1 . z in rng g1
by A11, A14, FUNCT_1:def 3;
then A19:
g1 . z = y
by A12, A17, TARSKI:def 2;
g2 . z in rng g2
by A7, A14, FUNCT_1:def 3;
hence
g1 . z = g2 . z
by A8, A18, A19, TARSKI:def 2;
verum end; hence
g1 . z = g2 . z
by A15;
verum end;
hence
x1 = x2
by A10, A11, A6, A7, FUNCT_1:2;
verum
end;
thus
dom f = Funcs (
X,
{x,y})
by A1;
proj2 f = bool X
thus
rng f c= bool X
XBOOLE_0:def 10 bool X c= proj2 f
deffunc H3(
object )
-> object =
y;
let z be
object ;
TARSKI:def 3 ( not z in bool X or z in proj2 f )
reconsider zz =
z as
set by TARSKI:1;
defpred S1[
object ]
means $1
in zz;
consider g being
Function such that A26:
(
dom g = X & ( for
t being
object st
t in X holds
( (
S1[
t] implies
g . t = H2(
t) ) & ( not
S1[
t] implies
g . t = H3(
t) ) ) ) )
from PARTFUN1:sch 1();
assume A27:
z in bool X
;
z in proj2 f
A28:
g " {x} = zz
rng g c= {x,y}
then A32:
g in Funcs (
X,
{x,y})
by A26, FUNCT_2:def 2;
then
f . g = g " {x}
by A1;
hence
z in proj2 f
by A1, A32, A28, FUNCT_1:def 3;
verum
end;
hence
card (Funcs (X,{x,y})) = card (bool X)
by CARD_1:5; verum