let x, y be object ; for X being set st x in X holds
swap ({X},x,y) = {((X \ {x}) \/ {y})}
let X be set ; ( x in X implies swap ({X},x,y) = {((X \ {x}) \/ {y})} )
assume A1:
x in X
; swap ({X},x,y) = {((X \ {x}) \/ {y})}
thus
swap ({X},x,y) c= {((X \ {x}) \/ {y})}
XBOOLE_0:def 10 {((X \ {x}) \/ {y})} c= swap ({X},x,y)
let a be object ; TARSKI:def 3 ( not a in {((X \ {x}) \/ {y})} or a in swap ({X},x,y) )
assume
a in {((X \ {x}) \/ {y})}
; a in swap ({X},x,y)
then
( a = (X \ {x}) \/ {y} & X in {X} )
by TARSKI:def 1;
then
a in { ((A \ {x}) \/ {y}) where A is Element of {X} : x in A }
by A1;
hence
a in swap ({X},x,y)
by XBOOLE_0:def 3; verum