๐งฉDiscrete Mathematics
Essential Set Theory Notations
Study smarter with Fiveable
Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.
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. and are the same set, and is just .
- Roster form lists elements explicitly, which works well when sets are small and finite: .
- Ellipsis notation handles larger patterns: lists the integers from 1 to 100 without writing all of them.
Set-Builder Notation:
This defines sets by a property rather than listing every element. Read it as "the set of all such that is true."
- Essential for infinite or large sets. 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: means "all positive integers," which is more precise than just .
Element Of:
This symbol asserts that a specific object belongs to a set. If , then is a true statement.
- Fundamental to logical proofs. Proving requires showing AND .
- Distinguishes elements from sets. is true, but because the singleton set is not the same object as the number . (However, would be true, since is listed as an element.)
Not an Element Of:
This negates membership. states that 4 is absent from the set.
- Critical for complement definitions. means exactly that (and ).
- Appears in counterexample proofs. Showing one element a set can disprove a universal claim like "all even numbers are in ."
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, is correct, but is not, because 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:
means "every element of is also in ." Formally: if , then .
- Allows equality. A set is always a subset of itself: is always true.
- The empty set is a subset of everything. for any set . This is vacuously true: there's no element in that could fail to be in .
- To prove , pick an arbitrary and show it must be in .
Proper Subset:
means AND . In other words, contains everything does, plus at least one extra element.
- If and , then .
- If and , then is true but 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 , you must show containment AND find an element in that's not in .
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. and .
- 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:
The universal set contains all elements under consideration. It defines the "universe of discourse" for a problem.
- Context-dependent. In number theory, might be . In a survey problem, it might be all respondents.
- Required for complements. only makes sense relative to some universal set , because you need to know what "everything outside " means.
Compare: vs. . These are logical opposites. The empty set is contained in everything; the universal set contains everything. Complements swap between them: and .
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: .
- Duplicates appear once. , not .
- 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: .
- Can produce the empty set. When , we call and 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 but not in : .
- Not commutative. in general. For example, , but .
- Relates to complement. when working within a universal set.
Complement: or or
The complement is everything in the universal set that's outside : .
- Double complement returns the original. .
- De Morgan's Laws apply:
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:
Cardinality counts the number of elements in a set. If , then .
- Inclusion-exclusion principle for unions: . You subtract the intersection because those elements got counted twice.
- For three sets: .
- Infinite sets have cardinality too, but for this course, focus on finite sets.
Power Set: or
The power set is the set of all subsets of , including and itself.
- Cardinality is . If , then . Each element is either in or out of a given subset, giving 2 choices per element.
- Example: . That's subsets from two elements.
- Note the types: Elements of are sets, not individual elements. So is true, but is false.
Cartesian Product:
The Cartesian product gives all ordered pairs from two sets: .
- Order matters and cardinality multiplies. . The pair is different from .
- Foundation for relations and functions. Any relation from to is a subset of , and any function is a special kind of relation.
- Example: If and , then .
Compare: vs. . Both create new sets from , but power sets contain subsets while Cartesian products contain ordered pairs. If , then and . Same size, completely different structures.
Quick Reference Table
| Concept | Notation |
|---|---|
| Defining sets | , set-builder notation |
| Membership | , |
| Containment | , |
| Boundary sets | , |
| Combining sets | , |
| Removing elements | , complement |
| Measuring sets | $$ |
| Building structures | , |
Self-Check Questions
-
What's the difference between and ? Give an example where is true but is false.
-
If and , compute , , , and . Which two results are equal?
-
Explain why is true for every set , using the definition of subset.
-
Compare and when . List all elements of each and explain why they have the same cardinality but different types of elements.
-
Using De Morgan's Laws, rewrite in terms of complements and intersection. Then verify with , , .