Professional Documents
Culture Documents
A0 = U − A
I If A ⊂ B, then A ∩ B = A
I If A ⊂ B, then A ∪ B = B
I If A ⊂ B, then B 0 ⊂ A0
I A − B = A ∩ B0
I A ⊕ B = (A ∪ B) − (A ∩ B)
Note: The parentheses are essential to indicate the groupings in the
distributive laws.
For example, A ∩ B ∪ C ?
A ∩ (B ∪ C ) = (A ∩ B) ∪ (A ∩ C )
(A ∩ B) ∪ C = (A ∪ C ) ∩ (B ∪ C ).
Proof of Set Laws
Prove the Distributive law A ∪ (B ∩ C ) = (A ∪ B) ∩ (A ∪ C ).
Proof: Let x ∈ A ∪ (B ∩ C )
⇒ x ∈ A or x ∈ (B ∩ C )
⇒ x ∈ A or (x ∈ B and x ∈ C )
⇒ (x ∈ A or x ∈ B) and (x ∈ A or x ∈ C )
⇒ x ∈ (A ∪ B) and x ∈ (A ∪ C )
⇒ x ∈ (A ∪ B) ∩ (A ∪ C )
Thus, A ∪ (B ∩ C ) ⊆ (A ∪ B) ∩ (A ∪ C ) · · · (i)
Similarly, Let y ∈ (A ∪ B) ∩ (A ∪ C )
⇒ y ∈ (A ∪ B) ∩ y ∈ (A ∪ C )
⇒ y ∈ (A ∪ B) and y ∈ (A ∪ C )
⇒ (y ∈ A or y ∈ B) and (y ∈ A or y ∈ C )
⇒ y ∈ A or (y ∈ B and y ∈ C )
⇒ y ∈ A or y ∈ (B ∩ C )
⇒ y ∈ A ∪ (B ∩ C )
Thus, (A ∪ B) ∩ (A ∪ C ) ⊆ A ∪ (B ∩ C ) · · · (ii)
Therefore, From, (i) and (ii)
A ∪ (B ∩ C ) = (A ∪ B) ∩ (A ∪ C ). (Proved)
Example: Prove that (A ∪ B)0 = (A0 ∩ B 0 ).
Proof: Let x ∈ (A ∪ B)0
⇒x ∈ / (A ∪ B)
⇒x ∈ / A and x ∈ / B)
⇒ x ∈ A0 and x ∈ B 0
⇒ x ∈ (A0 ∩ B 0 )
Thus, (A ∪ B)0 ⊆ (A0 ∩ B 0 ) · · · (i)
Similarly, Let y ∈ (A0 ∩ B 0 )
⇒ y ∈ A0 and y ∈ B 0
⇒y ∈ / A and y ∈ / B)
⇒x ∈ / (A ∪ B)
⇒ y ∈ (A ∪ B)0
Thus, (A0 ∩ B 0 ) ⊆ (A ∪ B)0 · · · (ii)
Therefore, From, (i) and (ii)
(A ∪ B)0 = (A0 ∩ B 0 ). (Proved)
Note: x ∈ / A∩B ⇒x ∈ / A or x ∈ / B. When x does not belongs to
A ∩ B, then x can not be a member of both the sets. Thus, x is
either a member of A alone or a member of B alone or x does not a
member to both the sets. In other words, either x ∈ / A and x ∈/ B.
Example: Prove that (A ∪ B)0 = (A0 ∩ B 0 ).
Proof: Let x ∈ (A ∪ B)0
⇒x ∈ / (A ∪ B)
⇒x ∈ / A and x ∈ / B)
⇒ x ∈ A0 and x ∈ B 0
⇒ x ∈ (A0 ∩ B 0 )
Thus, (A ∪ B)0 ⊆ (A0 ∩ B 0 ) · · · (i)
Similarly, Let y ∈ (A0 ∩ B 0 )
⇒ y ∈ A0 and y ∈ B 0
⇒y ∈ / A and y ∈ / B)
⇒x ∈ / (A ∪ B)
⇒ y ∈ (A ∪ B)0
Thus, (A0 ∩ B 0 ) ⊆ (A ∪ B)0 · · · (ii)
Therefore, From, (i) and (ii)
(A ∪ B)0 = (A0 ∩ B 0 ). (Proved)
Note: x ∈ / A∩B ⇒x ∈ / A or x ∈ / B. When x does not belongs to
A ∩ B, then x can not be a member of both the sets. Thus, x is
either a member of A alone or a member of B alone or x does not a
member to both the sets. In other words, either x ∈ / A and x ∈/ B.
Example: Prove that (X − Y ) − Z = X − (Y ∪ Z ) using set laws.
Proof:LHS = (X − Y ) − Z
= (X − Y ) ∩ Z 0 (by A − B = A ∩ B 0 )
= (X ∩ Y 0 ) ∩ Z 0 (by A − B = A ∩ B 0 )
= X ∩ (Y 0 ∩ Z 0 ) (by Associative law)
= X ∩ (Y ∪ Z )0 (by De Morgan’s law)
= X − (Y ∪ Z ) (by A − B = A ∩ B 0 )
= RHS (Proved)
Example:Let A, B and C denote subsets of a set S. C 0 is the
complement of C in S. If A ∩ C = B ∩ C and A ∩ C 0 = B ∩ C 0 .
Prove that A = B.
Proof: A = A ∩ S
= A ∩ (C ∪ C 0 ) (by ?)
= (A ∩ C ) ∪ (A ∩ C 0 ) (by Distributive law)
= (B ∩ C ) ∪ (B ∩ C 0 ) (by given conditions)
= B ∩ (C ∪ C 0 ) (by ?)
= B ∩ S (by set definition)
= B (Proved)
Example:Let A and B two sets. Prove that A ⊆ B if and only if
(iff) A ∪ B = B.
Proof: Let A ⊆ B (we want to proved A ∪ B = B)
Let x ∈ A ∪ B
⇒ x ∈ A or x ∈ B
⇒ x ∈ B (since A ⊆ B)
Thus, (A ∪ B) ⊆ B · · · (i)
Similarly, Let y ∈ B
⇒ y ∈ A or y ∈ B (since A ⊆ B)
⇒y ∈A∪B
Thus, B ⊆ A ∪ B · · · (ii)
Therefore, From, (i) and (ii)
A ∪ B = B. (Proved)
Conversely, Let A ∪ B = B (we want to proved A ⊆ B)
Let x ∈ A
⇒ x ∈ A or x ∈ B
⇒x ∈A∪B
⇒ x ∈ B (since A ∪ B = B)
Therefore, A ⊆ B. (Proved)
Example: Let A, B, C be sets such that A ∩ B = A ∩ C and
A ∪ B = A ∪ C . Prove that B = C .
Proof: Left for your exercise
Example:Show that X ∩ (Y − Z ) ⊂ X − (Y ∩ Z ).
Proof: Left for your exercise
Similarly, (c, d) ∈ (A ∩ C ) × (B ∩ D)
Example: For any non empty sets A and B, prove that
A×B =B ×A⇔A=B
Solution: Assume A = B, then
A×B =A×A
= B × A (Proved)
Conversely, Assume A × B = B × A
let x ∈ A
⇒ (x, b) ∈ A × B for b ∈ B
⇒ (x, b) ∈ B × A Since A × B = B × A
⇒x ∈B
Thus, A ⊆ B.
Similarly, Let y ∈ B
⇒ (y , a) ∈ B × A for a ∈ A
⇒ (y , a) ∈ A × B Since A × B = B × A
⇒y ∈A
Thus, B ⊆ A. (Proved)
Therefore, A = B.
Multiset
Properties:
i) Each set Ai is non-empty
ii) The subsets are pairwise disjoint, i.e
Ai ∩ Aj = Φ, i 6= j
iii) The union of Ai is A i.e ∪i=1 Ai = A
I Covering: A set A is defined to be set of non-empty subsets
Ai , in which union yields the original set A. The non-empty
subsets need not be disjoint.
Properties:
i) Each subset is non-empty.
ii) The subsets are not necessarily disjoint i.e Ai ∩ Aj 6= Φ
iii) The union of subsets Ai is A i.e ∪i=1 Ai = A
I Rule of Addition:
Given a partition on A, where Ai , i = 1, 2, ..., n are non-empty
subsets, then
n
|A| = | ∪ni=1 Ai | =
P
|Ai |
i=1
I Rule of Inclusion and Exclusion:
Given a set A be a covering on sets A1 , A2 , ..., An , then
If n = 2, i.e A has two subsets A1 , A2
|A| = |A1 ∪ A2 | = |A1 | + |A2 | − |A1 ∩ A2 |
If n = 3, then
|A| = |A1 ∪ A2 ∪ A3 |
= |A1 | + |A2 | + |A3 | − |A1 ∩ A2 | − |A2 ∩ A3 | − |A3 ∩ A1 |
+|A1 ∩ A2 ∩ A3 |
In general,
|A| = | ∪ni=1 Ai |
n
P n P
P n n P
P n P
n
= |Ai | − |Ai ∩ Aj | + |Ai ∩ Aj ∩ Ak |
i=1 i=1 j=1i6=j i=1 j=1 k=1i6=j6=k
. . . (−1)n+1 | ∩ni=1 Ai |
Some Results on Cardinality of Sets:
Some simple results related to the size of finite sets are:
1. |A ∪ B| = |A| + |B| − |A ∩ B|
2. |A ∪ B| = |A| + |B| if A ∩ B = Φ
3. |A ∪ B| ≤ |A| + |B|
4. |A ∩ B| ≤ min(|A|, |B|)
5. |A ⊕ B| = |A| + |B| − 2|A ∩ B|
6. |A − B| ≥ |A| − |B|
Proof 1:
Let n(A ∩ B) = k, Since A ∩ B ⊆ A and A ∩ B ⊆ B
We can assume that,
n(A) = a + k and n(B) = b + k for some +ve integers a and b.
Now, n(A ∪ B) = a + k + b
= (a + k) + (b + k) − k
= n(A) + n(B) − n(A ∩ B)
Some Results on Cardinality of Sets:
Some simple results related to the size of finite sets are:
1. |A ∪ B| = |A| + |B| − |A ∩ B|
2. |A ∪ B| = |A| + |B| if A ∩ B = Φ
3. |A ∪ B| ≤ |A| + |B|
4. |A ∩ B| ≤ min(|A|, |B|)
5. |A ⊕ B| = |A| + |B| − 2|A ∩ B|
6. |A − B| ≥ |A| − |B|
Proof 1:
Let n(A ∩ B) = k, Since A ∩ B ⊆ A and A ∩ B ⊆ B
We can assume that,
n(A) = a + k and n(B) = b + k for some +ve integers a and b.
Now, n(A ∪ B) = a + k + b
= (a + k) + (b + k) − k
= n(A) + n(B) − n(A ∩ B)
Example: Find the number of positive integers ≤ 200 and divisible
by 2 and 5.
Solution: Let A = {x : x ∈ N and x ≤ 200 and divisible by 2}
B = {x : x ∈ N and x ≤ 200 and divisible by 5}
Thus, A = {2, 4, 6, ..., 200} and B = {5, 10, 15, ...200}
and A ∩ B = {10, 20, ..., 200}
Now, n(A) = 100, n(B) = 40 and n(A ∩ B) = 20
By Inclusion and Exclusion principle,
n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
= 100 + 40 − 20 = 120