let x, X, y be set ; :: thesis: ( x in X & y in X implies X \ {x},X \ {y} are_equipotent )
assume that
A1: x in X and
A2: y in X ; :: thesis: X \ {x},X \ {y} are_equipotent
defpred S1[ set , set ] means ( ( $1 = y & $2 = x ) or ( $1 <> y & $1 = $2 ) );
A3: for a being set st a in X \ {x} holds
ex b being set st S1[a,b]
proof
let a be set ; :: thesis: ( a in X \ {x} implies ex b being set st S1[a,b] )
assume a in X \ {x} ; :: thesis: ex b being set st S1[a,b]
( a = y implies ex b being set st S1[a,b] ) ;
hence ex b being set st S1[a,b] ; :: thesis: verum
end;
A4: for a, b1, b2 being set st a in X \ {x} & S1[a,b1] & S1[a,b2] holds
b1 = b2 ;
consider f being Function such that
A5: ( dom f = X \ {x} & ( for a being set st a in X \ {x} holds
S1[a,f . a] ) ) from FUNCT_1:sch 2(A4, A3);
take f ; :: according to WELLORD2:def 4 :: thesis: ( f is one-to-one & proj1 f = X \ {x} & proj2 f = X \ {y} )
thus f is one-to-one :: thesis: ( proj1 f = X \ {x} & proj2 f = X \ {y} )
proof
let b1 be set ; :: according to FUNCT_1:def 4 :: thesis: for b1 being set holds
( not b1 in proj1 f or not b1 in proj1 f or not f . b1 = f . b1 or b1 = b1 )

let b2 be set ; :: thesis: ( not b1 in proj1 f or not b2 in proj1 f or not f . b1 = f . b2 or b1 = b2 )
assume that
A6: ( b1 in dom f & b2 in dom f ) and
A7: ( f . b1 = f . b2 & b1 <> b2 ) ; :: thesis: contradiction
A8: ( not b1 in {x} & not b2 in {x} ) by A5, A6, XBOOLE_0:def 5;
( S1[b1,f . b1] & S1[b2,f . b2] ) by A5, A6;
hence contradiction by A7, A8, TARSKI:def 1; :: thesis: verum
end;
thus dom f = X \ {x} by A5; :: thesis: proj2 f = X \ {y}
thus rng f c= X \ {y} :: according to XBOOLE_0:def 10 :: thesis: X \ {y} c= proj2 f
proof
let z be set ; :: according to TARSKI:def 3 :: thesis: ( not z in rng f or z in X \ {y} )
assume z in rng f ; :: thesis: z in X \ {y}
then consider a being set such that
A9: a in dom f and
A10: z = f . a by FUNCT_1:def 3;
A11: now end;
now
assume a <> y ; :: thesis: z in X \ {y}
then ( not a in {y} & a = z ) by A5, A9, A10, TARSKI:def 1;
hence z in X \ {y} by A5, A9, XBOOLE_0:def 5; :: thesis: verum
end;
hence z in X \ {y} by A11; :: thesis: verum
end;
let z be set ; :: according to TARSKI:def 3 :: thesis: ( not z in X \ {y} or z in proj2 f )
assume A14: z in X \ {y} ; :: thesis: z in proj2 f
then not z in {y} by XBOOLE_0:def 5;
then A15: z <> y by TARSKI:def 1;
A16: now end;
now end;
hence z in proj2 f by A16; :: thesis: verum