Set Operations

We can perform several mixing and matching operations on sets to get new sets:

The intersection of two sets $A$ and $B$, denoted as $A \cap B$ (

$A \cap B$
), is the set of elements that are in both $A$ and $B$. Formally: $A \cap B = \;$$\{ x \mid x \in A \,$$\text{ and } x \in B \}$. Examples:


Two sets $A$ and $B$ are disjoint if they have no elements in common, i.e., $A \cap B = \emptyset$. Examples: