Why This Matters
Set theory is the language underlying virtually every topic in discrete mathematics, from logic and proof techniques to functions, relations, and combinatorics. When you're working with probability, database queries, or algorithm analysis later in the course, you'll be using these notations constantly. The symbols here aren't abstract squiggles; they're precise tools for describing membership, containment, and combination of mathematical objects.
You're being tested on more than symbol recognition. Exam questions will ask you to translate between set-builder notation and roster form, determine subset relationships, compute cardinalities of combined sets, and apply operations in sequence. Don't just memorize what each symbol looks like. Know what logical relationship it expresses and how it connects to other operations. That's what separates a correct answer from a complete one.
Describing Sets and Their Elements
Before you can operate on sets, you need to describe them precisely. These notations establish what a set contains and how we specify membership.
Set Notation: {}
Curly braces are the most fundamental notation in set theory. They enclose all the elements that belong together into a single object.
- Order is irrelevant and duplicates collapse. {1,2,3} and {3,1,2} are the same set, and {1,1,2} is just {1,2}.
- Roster form lists elements explicitly, which works well when sets are small and finite: {a,b,c}.
- Ellipsis notation handles larger patterns: {1,2,3,โฆ,100} lists the integers from 1 to 100 without writing all of them.
Set-Builder Notation: {xโฃP(x)}
This defines sets by a property rather than listing every element. Read it as "the set of all x such that P(x) is true."
- Essential for infinite or large sets. {xโฃx>0} describes all positive numbers concisely, which roster form can't do.
- The vertical bar โฃ (or sometimes a colon :) separates the variable from its defining condition.
- You'll often see a domain restriction on the left side: {xโZโฃx>0} means "all positive integers," which is more precise than just {xโฃx>0}.
Element Of: โ
This symbol asserts that a specific object belongs to a set. If A={1,2,3}, then 2โA is a true statement.
- Fundamental to logical proofs. Proving xโAโฉB requires showing xโA AND xโB.
- Distinguishes elements from sets. 2โ{1,2,3} is true, but {2}๎ โ{1,2,3} because the singleton set {2} is not the same object as the number 2. (However, {2}โ{{2},3} would be true, since {2} is listed as an element.)
Not an Element Of: โ/
This negates membership. 4โ/{1,2,3} states that 4 is absent from the set.
- Critical for complement definitions. xโAโฒ means exactly that xโ/A (and xโU).
- Appears in counterexample proofs. Showing one element โ/ a set can disprove a universal claim like "all even numbers are in A."
Compare: โ vs. โ. Both describe relationships, but โ connects an element to a set, while โ connects a set to another set. Confusing these is a common exam error. For instance, 1โ{1,2} is correct, but 1โ{1,2} is not, because 1 isn't a set.
Containment and Subset Relationships
These notations describe when one set lives entirely inside another, a relationship that's central to proofs and logical arguments.
Subset: โ
AโB means "every element of A is also in B." Formally: if xโA, then xโB.
- Allows equality. A set is always a subset of itself: AโA is always true.
- The empty set is a subset of everything. โ
โA for any set A. This is vacuously true: there's no element in โ
that could fail to be in A.
- To prove AโB, pick an arbitrary xโA and show it must be in B.
Proper Subset: โ
AโB means AโB AND A๎ =B. In other words, B contains everything A does, plus at least one extra element.
- If A={1,2} and B={1,2,3}, then AโB.
- If A={1,2} and B={1,2}, then AโB is true but AโB is false.
- Watch notation variations. Some textbooks use โ for proper subset and reserve โ to mean the same as โ. Know your course's convention.
Compare: โ vs. โ. The difference is whether equality is permitted. If a problem asks you to prove AโB, you must show containment AND find an element in B that's not in A.
Special Sets: The Boundaries
These sets represent the extremes and serve as reference points for other operations.
Empty Set: โ
or {}
The empty set contains no elements. It's the unique set with cardinality zero.
- Subset of every set. This is vacuously true since there's no element in โ
that could fail to be in another set.
- Identity for union, annihilator for intersection. Aโชโ
=A and Aโฉโ
=โ
.
- Common mistake: Don't write {โ
} when you mean โ
. The set {โ
} actually contains one element (the empty set itself), so its cardinality is 1, not 0.
Universal Set: U
The universal set contains all elements under consideration. It defines the "universe of discourse" for a problem.
- Context-dependent. In number theory, U might be Z. In a survey problem, it might be all respondents.
- Required for complements. Aโฒ only makes sense relative to some universal set U, because you need to know what "everything outside A" means.
Compare: โ
vs. U. These are logical opposites. The empty set is contained in everything; the universal set contains everything. Complements swap between them: โ
โฒ=U and Uโฒ=โ
.
Set Operations: Combining and Separating
These operations take existing sets and produce new ones. They form the algebraic heart of set theory.
Union: โช
Union combines all elements from both sets: AโชB={xโฃxโAย ORย xโB}.
- Duplicates appear once. {1,2}โช{2,3}={1,2,3}, not {1,2,2,3}.
- Corresponds to logical OR. This connection is essential when translating between set theory and propositional logic.
- The result is always at least as large as the larger input set.
Intersection: โฉ
Intersection keeps only shared elements: AโฉB={xโฃxโAย ANDย xโB}.
- Can produce the empty set. When AโฉB=โ
, we call A and B disjoint.
- Corresponds to logical AND. Intersection is more restrictive than union.
- The result is always at most as large as the smaller input set.
Set Difference: โ or โ
Set difference gives you elements in A but not in B: AโB={xโฃxโAย ANDย xโ/B}.
- Not commutative. AโB๎ =BโA in general. For example, {1,2,3}โ{2,3,4}={1}, but {2,3,4}โ{1,2,3}={4}.
- Relates to complement. AโB=AโฉBโฒ when working within a universal set.
Complement: Aโฒ or Aห or Ac
The complement is everything in the universal set that's outside A: Aโฒ={xโUโฃxโ/A}.
- Double complement returns the original. (Aโฒ)โฒ=A.
- De Morgan's Laws apply:
- (AโชB)โฒ=AโฒโฉBโฒ
- (AโฉB)โฒ=AโฒโชBโฒ
These laws are worth memorizing. The pattern: when you "push" the complement through, union and intersection swap.
Compare: โช vs. โฉ. Union grows sets; intersection shrinks them. Exam problems often test whether you can apply De Morgan's Laws to switch between them correctly.
Counting and Constructing New Sets
These notations let you measure sets and build more complex structures from simpler ones.
Cardinality: โฃAโฃ
Cardinality counts the number of elements in a set. If A={a,b,c}, then โฃAโฃ=3.
- Inclusion-exclusion principle for unions: โฃAโชBโฃ=โฃAโฃ+โฃBโฃโโฃAโฉBโฃ. You subtract the intersection because those elements got counted twice.
- For three sets: โฃAโชBโชCโฃ=โฃAโฃ+โฃBโฃ+โฃCโฃโโฃAโฉBโฃโโฃAโฉCโฃโโฃBโฉCโฃ+โฃAโฉBโฉCโฃ.
- Infinite sets have cardinality too, but for this course, focus on finite sets.
Power Set: P(A) or 2A
The power set is the set of all subsets of A, including โ
and A itself.
- Cardinality is 2n. If โฃAโฃ=n, then โฃP(A)โฃ=2n. Each element is either in or out of a given subset, giving 2 choices per element.
- Example: P({1,2})={โ
,{1},{2},{1,2}}. That's 22=4 subsets from two elements.
- Note the types: Elements of P(A) are sets, not individual elements. So {1}โP({1,2}) is true, but 1โP({1,2}) is false.
Cartesian Product: ร
The Cartesian product gives all ordered pairs from two sets: AรB={(a,b)โฃaโAย andย bโB}.
- Order matters and cardinality multiplies. โฃAรBโฃ=โฃAโฃโ
โฃBโฃ. The pair (1,2) is different from (2,1).
- Foundation for relations and functions. Any relation R from A to B is a subset of AรB, and any function f:AโB is a special kind of relation.
- Example: If A={1,2} and B={x,y}, then AรB={(1,x),(1,y),(2,x),(2,y)}.
Compare: P(A) vs. AรA. Both create new sets from A, but power sets contain subsets while Cartesian products contain ordered pairs. If โฃAโฃ=2, then โฃP(A)โฃ=4 and โฃAรAโฃ=4. Same size, completely different structures.
Quick Reference Table
|
| Defining sets | {}, set-builder notation {xโฃP(x)} |
| Membership | โ, โ/ |
| Containment | โ, โ |
| Boundary sets | โ
, U |
| Combining sets | โช, โฉ |
| Removing elements | โ, complement Aโฒ |
| Measuring sets | $$ |
| Building structures | P(A), AรB |
Self-Check Questions
-
What's the difference between โ and โ? Give an example where {1}โA is true but {1}โA is false.
-
If A={1,2,3} and B={2,3,4}, compute AโชB, AโฉB, AโB, and BโA. Which two results are equal?
-
Explain why โ
โA is true for every set A, using the definition of subset.
-
Compare P(A) and AรA when A={a,b}. List all elements of each and explain why they have the same cardinality but different types of elements.
-
Using De Morgan's Laws, rewrite (AโชB)โฒ in terms of complements and intersection. Then verify with U={1,2,3,4}, A={1,2}, B={2,3}.