let A, B be set ; :: thesis: ( ( for x being set holds
( x in A iff x is bag of ) ) & ( for x being set holds
( x in B iff x is bag of ) ) implies A = B )

assume that
A3: for x being set holds
( x in A iff x is bag of ) and
A4: for x being set holds
( x in B iff x is bag of ) ; :: thesis: A = B
now
let x be set ; :: thesis: ( x in A iff x in B )
( x in A iff x is bag of ) by A3;
hence ( x in A iff x in B ) by A4; :: thesis: verum
end;
hence A = B by TARSKI:2; :: thesis: verum