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