Skip to main content

Section 9.1 Counting for Sets

Subsection 9.1.1 The Addition Rule

In the language of set theory,

More generally,

In the language of set theory,

Similar to the FCP, the addition rule can be thought of as axiom.

Subsection 9.1.2 The Difference Rule

If \(B \subseteq A\text{,}\) then \(B\) and \(A \setminus B\) are disjoint sets, and \(B \cup (A \setminus B) = A\text{.}\) Thus, \(B\) and \(A \setminus B\) partition \(A\text{,}\) so,

\begin{equation*} n(B) + n(A \setminus B) = n(A) \end{equation*}

Then, subtracting \(n(B)\) from both sides gives the result.

Subsection 9.1.3 The Inclusion-Exclusion Principle

Recall that for disjoint sets, the addition rule specifies the number of elements in the union of the sets. Next, consider if the sets are overlapping. Consider a Venn diagram with two sets, \(A\) and \(B\text{.}\)

When \(n(A)\) and \(n(B)\) are added, their intersection is counted twice. Then, for the correct number of elements, we need to subtract \(n(A \cap B)\text{.}\) Thus,

For three sets \(A, B, C\text{,}\) adding \(n(A)\text{,}\) \(n(B)\text{,}\) and \(n(C)\) counts the intersections \(n(A \cap B)\text{,}\) \(n(A \cap C)\text{,}\) and \(n(B \cap C)\) each twice. Then, to compensate for this, we subtract off each of these three intersections. However, then this again overcompensates by not counting the intersection \(n(A \cap B \cap C)\) at all. Then, finally, we add back \(n(A \cap B \cap C)\text{.}\) In summary,

In fact, there is a more general and mathematically advanced formula for the cardinality of the union of \(n\) sets, which relies on generalizing this reasoning.