The Timpson Lyceum · Discrete Math (2025)
Set Operations and Combinatorial Proofs - Lecture 6 (Discrete Math)
Overview
This lecture moves from set relations (which return true or false) to set operations (which take sets and return new sets), then uses those operations to count. We define intersection, union, difference, symmetric difference, and the Cartesian (cross) product, and we collect the core algebraic laws — commutativity, associativity, identity with the empty set, distributivity, and De Morgan's laws — all of which follow directly from the corresponding rules of propositional logic. We then introduce the inclusion–exclusion principle for the size of a union and prove it by counting, applying it to a divisibility problem. The lecture closes with two combinatorial (counting) proofs of summation identities, illustrating the general technique of showing that both sides of an equation count the same thing.
Key Concepts
Relations vs. operations. A relation on sets (e.g. , , ) is a predicate that returns true or false. A set operation (intersection, union, difference, …) takes sets and returns a new set, just as and take numbers and return numbers.
Subset review.
- Subset: means — everything in is also in .
- Equality: iff and (the same elements).
- Proper subset: means and . A set is a subset of itself but never a proper subset of itself. (Think as and as .)
The set operations. For all :
- Intersection: — elements in both.
- Union: — elements in either (inclusive "or": being in both still counts).
- Difference: — in but not in .
- Symmetric difference: — in exactly one of the two sets (everything except the overlap).
Commutativity. and (because "and"/"or" are commutative). But in general — difference and the cross product are the two operations here that are not commutative.
Concrete computation. For , :
- , while
Algebra of sets (Theorem 12.3). For sets :
- Commutative: , .
- Associative: , .
- Identity / absorbing element: (like adding ), .
- Distributive: and .
Each law mirrors a propositional-logic identity: union/intersection are defined by "or"/"and," so any property of "or"/"and" transfers directly to the corresponding set operation (verifiable by a truth table).
Inclusion–exclusion (two sets). For finite sets, , equivalently Adding and counts the overlap twice, so subtract once. Forgetting to subtract the intersection is the classic error.
Disjoint and pairwise disjoint.
- and are disjoint iff (no shared elements).
- Sets are pairwise disjoint iff for all with — every pair is disjoint.
- Corollary: if are disjoint, then (the intersection term vanishes).
Cartesian (cross) product. — ordered pairs with first coordinate from , second from . Size: . Like difference, it is not commutative: in general (the pairs have their coordinates swapped).
De Morgan's laws for sets. and . Distributing a "minus" over a union flips it to an intersection (and vice versa) — the set-theory image of the logical .
Combinatorial proof technique. To prove an identity, find a collection of objects that both sides count; if they count the same set of objects, they are equal. Useful facts: counts all subsets of an -element set, and counts the arrangements (orderings) of distinct objects.
Worked Example
Inclusion–exclusion applied to divisibility. How many integers in are divisible by or ?
Let = multiples of and = multiples of in that range. Numbers divisible by both and are exactly the multiples of . Then
So 600 integers from to are divisible by or . (Naively answering double-counts the multiples of .)
Combinatorial proof that .
Let , so . Since has subsets, it has non-empty subsets (all subsets except ) — that is the right-hand side.
Now count the non-empty subsets a second way, by their maximum element . A subset whose largest element is consists of together with any subset of , and there are such choices. Summing over every possible maximum :
Both expressions count the non-empty subsets of , so they are equal: . (Check : .)
Summary
- Set relations return true/false; set operations (, , , , ) take sets and return sets.
- Union and intersection are commutative and associative; difference and the cross product are not commutative (, ).
- The empty set acts as an identity for union () and absorbs under intersection (); distributive and De Morgan laws hold, each inherited from propositional logic.
- Inclusion–exclusion: ; for disjoint sets it simplifies to .
- Sizes multiply for the cross product: .
- A combinatorial (counting) proof establishes an identity by exhibiting one collection of objects that both sides count — e.g. counting non-empty subsets by maximum element gives , and counting restricted arrangements gives .