ΘρϵηΠατπ

Set Difference

Set Difference
Suppose that A,B are sets, then AB:={aA:aB} and call it the set difference of A and B
set difference is empty iff one is a superset of the other
Suppose that A,B are sets, then A\B=, if and only if AB
TODO
Difference of a Superset is Empty
Suppose that A,BX are sets such that AB, then (XB)A=
Let p(XB)A, therefore pX, pB and pA, this is impossible since if pA then pB as AB, therefore no such p is an element of this set, so that (XB)A=
Empty Intersection implies Superset Difference
Suppose that A,BX are sets, assuming AB= , then XAB
Taking an element pB we'd like to show that pXA, we can see pX because BX, it's also clear that pA since if it were then AB which would be a contradiction. Combining this, we have that pXA as needed.
Set Difference with Itself is Empty
X\X=
X\X={xX:xX}=
Set Difference with the Empty set is Itself
X\=X
TODO
Redundant Intersection in Difference
Suppose that A,B,X are sets then (AX)\B=(AX)\(BX)

Suppose that p(AX)\B therefore pA, pX but pB, we can see that p(AX) and since pB, then p(BX), therefore p(AX)\(BX)

Now suppose that p(AX)\(BX), so that pAX and pBX, from this we deduct that pX, so to avoid contradiction, we must have pB, since we also know pA, we can say that p(AX)B

Intersection Distributes through Set Difference
Suppose that A,B,X are sets then (A\B)X=(AX)\B

Suppose that p(A\B)X so pA, pB and pX, this means that pAX and pB, this shows that p(AX)\B as needed

Now suppose that p(AX)\B so pA, pX but pB, recombining this information we can see that p(A\B)X, as needed.

Union Intersection Inversion through set Difference
Suppose that A,B,C are sets then A\(BC)=A\BA\C

We know that xA\(BC) is true iff xA and x(BC), equivalent to xB or xC, since xA, we can biconditionally re-write this as xA\B or xA\C iff x(A\B)(A\C)

Since all connectives in the above proof are bi-conditionals, then we know that A\(BC)=(A\B)(A\C)

Double Difference creates Intersection
Suppose that A,B,C are sets such that AB, then A\(B\C)=(A\B)C

Suppose that xA\(B\C) which is true iff xA and x(B\C) which means that it's not true that (xBandxC) so that xB or xC, since xA and we know that AB then xB, which forcs xC to avoid a contradiction, therefore

Suppose that xA\BC, therefore xA, xB and xC, thus we can see that xB\C thus xA\(B\C)

Triple Difference Equality
Suppose that A,B,C are sets such that AB, then A\(B\C)=(AC)(AB)

xA\(B\C) iff xA and x(B\C) equivalent to the following statement not being true: (xBxC) which is xB or xC, therefore xAC or xAB so that x(AC)(AB)

The above chain of steps can be traversed forwards or backwards since each connective is an iff, therefore the proof is complete

Double Set Difference Yields Intersection
Suppose that A,B are sets, then A\(A\B)=AB

Suppose that xA\(A\B) which is true iff xA and x(A\B) which means that it's not true that xAxB we already know that xA holds, so we must have that xB to be false, which means that xB so that xAB

Suppose that xAB, since xB, then it's not true that xB, therefore x(A\B) since xA, this shows that xA\(A\B)

Double Set Difference Cancels for Subsets
Suppose that BA then A(AB)=B
Recall that A(AB)=AB and since BA we know it's equal to B
TODO
Suppose that YX and Y\A=YU, then A=Y(X\U) solves the given equation
Suppose that A=Y(X\U), then Y\A=Y\(Y(X\U))=(Y\Y)(Y\(X\U))=
DeMorgan's Laws
Suppose that M is a family of sets, then X\(AMA)=AM(X\A) and X\(AMA)=AM(X\A)

Note that, pX\(AMA), if and only if pX and xAMA, which is equivalent to: for all AM pA, which is the same as p(X\A) for each AM, so by definition pAM(X\A). Since each connective in the previous paragraph was an iff, then this implies the two sets are equal

For the second proof, we'll follow a similar structure to the first. Note that, pX\(AMA), if and only if pX and xAMA, which is equivalent to: there is some AM pA, which is the same as p(X\A) for some AM, so by definition pAM(X\A). Since each connective in the previous paragraph was an iff, then this implies the two sets are equal