Set operation
A set operation applies some rule to define new sets given previously-defined sets. Every set operation has a corresponding logical analogue.
Complement
The complement of a set is the set of all elements not in that set. A universal set must be defined in order to use this operation. The complement of a set \(A\) is denoted \(\overline{A}\) and can be read as "\(A\) complement" or "not \(A.\)"
The set complement's logical analogue is negation.
Intersection
The intersection of two sets is the set of all elements they have in common. The intersection of two sets \(A\) and \(B\) is denoted \(A \cap B\) and is read as "\(A\) intersect \(B.\)"
If \(A \cap B = \emptyset\), then \(A\) and \(B\) are disjoint from each other, or in other words, they have no elements in common.
The set intersection's logical analogue is conjunction.
Similar to \(\sum\) notation, there is a way to compactly represent the intersection of a sequence of sets.
Union
The union of two sets is the set of all elements they have, common or not. The union of two sets \(A\) and \(B\) is denoted \(A \cup B\) and is read as "\(A\) union \(B.\)"
The set union's logical analogue is disjunction.
Similar to \(\sum\) notation, there is a way to compactly represent the union of a sequence of sets.
Difference
The difference of two sets is the set of all elements in the first set that the second set doesn't have. The difference of two sets \(A\) and \(B\) is denoted \(A - B\) and is read as "\(A\) minus \(B.\)"
This is a directed set operation, so the choice of which set is first and which is second matters. In other words, \(A - B \ne B - A\) unless \(A = B.\)
Interestingly, the set difference's logical analogue is the negation of the conditional.
Symmetric difference
The symmetric difference of two sets is the set of all elements they don't have in common. The symmetric difference of two sets \(A\) and \(B\) is denoted \(A \oplus B\) and is read "\(A\) symmetric difference \(B.\)" However, feel free to instead say "\(A\) xor \(B.\)"
The set symmetric difference's logical analogue is exclusive disjunction.