let x, y be object ; for Y being set st not y in union Y holds
card Y = card (swap (Y,x,y))
let Y be set ; ( not y in union Y implies card Y = card (swap (Y,x,y)) )
assume A1:
not y in union Y
; card Y = card (swap (Y,x,y))
set P = { X where X is Element of Y : x in X } ;
set Py = { ((X \ {x}) \/ {y}) where X is Element of Y : x in X } ;
set N = { X where X is Element of Y : ( not x in X & X in Y ) } ;
set Nx = { (X \/ {x}) where X is Element of Y : ( not x in X & X in Y ) } ;
deffunc H1( set ) -> set = ($1 \ {x}) \/ {y};
consider f being Function such that
A2:
( dom f = { X where X is Element of Y : x in X } & ( for A being set st A in { X where X is Element of Y : x in X } holds
f . A = H1(A) ) )
from FUNCT_1:sch 5();
A3:
rng f c= { ((X \ {x}) \/ {y}) where X is Element of Y : x in X }
{ ((X \ {x}) \/ {y}) where X is Element of Y : x in X } c= rng f
then A7:
rng f = { ((X \ {x}) \/ {y}) where X is Element of Y : x in X }
by A3;
f is one-to-one
then A11:
{ X where X is Element of Y : x in X } , { ((X \ {x}) \/ {y}) where X is Element of Y : x in X } are_equipotent
by A2, A7, WELLORD2:def 4;
deffunc H2( set ) -> set = $1 \/ {x};
consider g being Function such that
A12:
( dom g = { X where X is Element of Y : ( not x in X & X in Y ) } & ( for A being set st A in { X where X is Element of Y : ( not x in X & X in Y ) } holds
g . A = H2(A) ) )
from FUNCT_1:sch 5();
A13:
rng g c= { (X \/ {x}) where X is Element of Y : ( not x in X & X in Y ) }
{ (X \/ {x}) where X is Element of Y : ( not x in X & X in Y ) } c= rng g
then A17:
rng g = { (X \/ {x}) where X is Element of Y : ( not x in X & X in Y ) }
by A13;
g is one-to-one
then A20:
{ X where X is Element of Y : ( not x in X & X in Y ) } , { (X \/ {x}) where X is Element of Y : ( not x in X & X in Y ) } are_equipotent
by A12, A17, WELLORD2:def 4;
A21:
{ X where X is Element of Y : x in X } c= Y
A23:
{ X where X is Element of Y : ( not x in X & X in Y ) } c= Y
Y c= { X where X is Element of Y : ( not x in X & X in Y ) } \/ { X where X is Element of Y : x in X }
then A25:
Y = { X where X is Element of Y : ( not x in X & X in Y ) } \/ { X where X is Element of Y : x in X }
by A21, A23, XBOOLE_1:8;
A26:
{ (X \/ {x}) where X is Element of Y : ( not x in X & X in Y ) } misses { ((X \ {x}) \/ {y}) where X is Element of Y : x in X }
{ X where X is Element of Y : ( not x in X & X in Y ) } misses { X where X is Element of Y : x in X }
hence
card Y = card (swap (Y,x,y))
by CARD_1:5, A26, A11, A20, CARD_1:31, A25; verum