Subset:

Set identities

Inclusion-exclusion principle

|A1∪A2∪…∪An|=|A1|+|A2|+…+|An||A_1 \cup A_2 \cup \dots \cup A_n| = |A_1| + |A_2| + \dots + |A_n|

−[|A1∩A2|+|A1∩A3|+…+|An−1∩An|]- \big[\, |A_1 \cap A_2| + |A_1 \cap A_3| + \dots + |A_{n-1} \cap A_n| \,\big]

+[|A1∩A2∩A3|+|A1∩A2∩A4|+…+|An−2∩An−1∩An|]+ \big[\, |A_1 \cap A_2 \cap A_3| + |A_1 \cap A_2 \cap A_4| + \dots + |A_{n-2} \cap A_{n-1} \cap A_n| \,\big]

+⋯+(−1)n−1|A1∩A2∩…∩An|+ \cdots+ (-1)^{n-1} |A_1 \cap A_2 \cap \dots \cap A_n|

Cartesian Product

A×B={(a,b)|a∈A,b∈B}A \times B = \{(a, b) \ | \ a \in A, b \in B\}

Power Set

𝒫(S)={A∣A⊆S}\mathcal{P}(S) = \{\, A \mid A \subseteq S \,\}

For set S with n elements, |𝒫(S)|=2n\text{For set S with } n \text{ elements, } \left| \mathcal{P}(S) \right| = 2^n

Partition

The partition of set A is the set of nonempty sets,{A1,…,An} where A1∪…∪An=A, and Ai∩Aj=⌀,∀i,j∈{1,…,n},i≠j\{A_1, \ldots, A_n\} \text{ where } A_1 \cup \ldots \cup A_n = A, \text{ and } A_i \cap A_j = \varnothing, \; \forall\, i,j \in \{1, \ldots, n\}, \; i \neq j

Common questions

Prove by set identities

Element chasing - LHS and RHS subsets of each other

Membership table

Prove that (AΔB)ΔB=A using a membership table.\text{Prove that }(A \Delta B)\Delta B = A \text{ using a membership table.}