MathIsimple
Chapter 1 • Course 1
3-4 Hours

Set Theory Foundations

Foundation Level
6 Sections
Essential for Real Analysis
Learning Objectives
By the end of this course, you will be able to:
  • Define and work with sets using set-builder and roster notation
  • Master set operations: union, intersection, complement, difference
  • Understand and verify subset relationships
  • Apply De Morgan's Laws and other set identities
  • Use Cartesian products and power sets in mathematical reasoning
  • Prove set equalities using element arguments
  • Understand cardinality and compare infinite sets
  • Apply set theory to function domains and ranges

Set Definitions & Notation

Understanding the fundamental building blocks of set theory

What is a Set?

Definition: Set

A set is a well-defined collection of distinct objects, called elements or members. The key properties of a set are:

Well-defined

For any object, we can definitively determine whether it is or is not a member of the set.

Distinct

Each element appears at most once. Duplicates are ignored: {1, 1, 2} = {1, 2}.

Unordered

Order does not matter: {1, 2, 3} = {3, 1, 2} = {2, 3, 1}.

Key Insight

The "well-defined" requirement is crucial. "The set of all tall people" is NOT a valid set because "tall" is subjective. However, "the set of all people over 6 feet" IS a valid set.

Set Representations

1. Roster (List) Notation

List all elements explicitly within curly braces:

A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\}

B={a,b,c}B = \{a, b, c\}

C={2,4,6,8,...}C = \{2, 4, 6, 8, ...\} (ellipsis for infinite sets with clear pattern)

2. Set-Builder Notation

Describe elements by a property they satisfy:

{xR:x2<9}\{x \in \mathbb{R} : x^2 < 9\}

"The set of all real numbers x such that x² < 9" = (-3, 3)

{nZ:n is even}\{n \in \mathbb{Z} : n \text{ is even}\}

"The set of all even integers" = {..., -4, -2, 0, 2, 4, ...}

Essential Set Notations
NotationMeaningExample
aAa \in A
Element a belongs to set A3{1,2,3,4,5}3 \in \{1, 2, 3, 4, 5\}
aAa \notin A
Element a does not belong to set A6{1,2,3,4,5}6 \notin \{1, 2, 3, 4, 5\}
ABA \subseteq B
A is a subset of B (A ⊆ B){1,2}{1,2,3}\{1, 2\} \subseteq \{1, 2, 3\}
ABA \subset B
A is a proper subset of B (A ⊂ B, A ≠ B){1,2}{1,2,3}\{1, 2\} \subset \{1, 2, 3\}
A=BA = B
A equals B (same elements){1,2,3}={3,1,2}\{1, 2, 3\} = \{3, 1, 2\}
\emptyset
Empty set (contains no elements){xR:x2<0}=\{x \in \mathbb{R} : x^2 < 0\} = \emptyset
A|A|
Cardinality (number of elements) of A{a,b,c}=3|\{a, b, c\}| = 3

Set Operations

Learn how to combine and manipulate sets using fundamental operations

Union

ABA \cup B
Definition:
{x:xA or xB}\{x : x \in A \text{ or } x \in B\}

Contains all elements that are in A or B (or both)

Example:
{1,2,3}{3,4,5}={1,2,3,4,5}\{1, 2, 3\} \cup \{3, 4, 5\} = \{1, 2, 3, 4, 5\}

Intersection

ABA \cap B
Definition:
{x:xA and xB}\{x : x \in A \text{ and } x \in B\}

Contains all elements that are in both A and B

Example:
{1,2,3}{3,4,5}={3}\{1, 2, 3\} \cap \{3, 4, 5\} = \{3\}

Difference

ABA \setminus B
Definition:
{x:xA and xB}\{x : x \in A \text{ and } x \notin B\}

Contains elements in A but not in B

Example:
{1,2,3}{3,4,5}={1,2}\{1, 2, 3\} \setminus \{3, 4, 5\} = \{1, 2\}

Complement

Ac or AA^c \text{ or } \overline{A}
Definition:
{xU:xA}\{x \in U : x \notin A\}

All elements in the universal set U that are not in A

Example:
If U={1,...,10},A={1,2,3}, then Ac={4,...,10}\text{If } U = \{1,...,10\}, A = \{1,2,3\}, \text{ then } A^c = \{4,...,10\}

Symmetric Difference

ABA \triangle B
Definition:
(AB)(BA)(A \setminus B) \cup (B \setminus A)

Elements in A or B, but not in both

Example:
{1,2,3}{3,4,5}={1,2,4,5}\{1, 2, 3\} \triangle \{3, 4, 5\} = \{1, 2, 4, 5\}

Fundamental Set Laws

Essential algebraic properties for working with sets

Commutative Laws

Union:

AB=BAA \cup B = B \cup A

Intersection:

AB=BAA \cap B = B \cap A
Associative Laws

Union:

(AB)C=A(BC)(A \cup B) \cup C = A \cup (B \cup C)

Intersection:

(AB)C=A(BC)(A \cap B) \cap C = A \cap (B \cap C)
Distributive Laws

Over Union:

A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)

Over Intersection:

A(BC)=(AB)(AC)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)
Identity Laws

Union:

A=AA \cup \emptyset = A

Intersection:

AU=AA \cap U = A
Complement Laws

Union:

AAc=UA \cup A^c = U

Intersection:

AAc=A \cap A^c = \emptyset
De Morgan's Laws

Union Complement:

(AB)c=AcBc(A \cup B)^c = A^c \cap B^c

Intersection Complement:

(AB)c=AcBc(A \cap B)^c = A^c \cup B^c
Why De Morgan's Laws Matter

De Morgan's Laws are essential for simplifying logical expressions and set operations. They show that complementation "distributes" over unions and intersections, but with a twist: unions become intersections and vice versa.

Theorem: De Morgan's Laws

Statement

For any sets A and B in a universal set U:

(AB)c=AcBc(A \cup B)^c = A^c \cap B^c
(AB)c=AcBc(A \cap B)^c = A^c \cup B^c
Proof of First Law: (AB)c=AcBc(A \cup B)^c = A^c \cap B^c

We prove this by double inclusion:

Part 1: Show (AB)cAcBc(A \cup B)^c \subseteq A^c \cap B^c

Let x(AB)cx \in (A \cup B)^c.

Then x(AB)x \notin (A \cup B) by definition of complement.

This means xAx \notin A AND xBx \notin B (negation of OR).

So xAcx \in A^c and xBcx \in B^c.

Therefore xAcBcx \in A^c \cap B^c. ✓

Part 2: Show AcBc(AB)cA^c \cap B^c \subseteq (A \cup B)^c

Let xAcBcx \in A^c \cap B^c.

Then xAcx \in A^c and xBcx \in B^c.

This means xAx \notin A and xBx \notin B.

So x(AB)x \notin (A \cup B) (neither in A nor B).

Therefore x(AB)cx \in (A \cup B)^c. ✓

\square

Countable & Uncountable Sets

Understanding different sizes of infinity

Countable Sets

A set S is countable if its elements can be put in one-to-one correspondence with the natural numbers (or a subset thereof).

Examples:

  • N\mathbb{N} = Natural numbers
  • Z\mathbb{Z} = Integers
  • Q\mathbb{Q} = Rational numbers

Uncountable Sets

A set is uncountable if it cannot be put in one-to-one correspondence with the natural numbers. It has a "larger" infinity.

Examples:

  • R\mathbb{R} = Real numbers
  • (0, 1) = Any interval of reals
  • P(N)\mathcal{P}(\mathbb{N}) = Power set of naturals

Standard Number Sets

SymbolNameDescriptionCountable?
N\mathbb{N}
Natural Numbers{1,2,3,4,...}or{0,1,2,3,...}\{1, 2, 3, 4, ...\} or \{0, 1, 2, 3, ...\}
Yes
Z\mathbb{Z}
Integers{...,2,1,0,1,2,...}\{..., -2, -1, 0, 1, 2, ...\}
Yes
Q\mathbb{Q}
Rational Numbers{pq:p,qZ,q0}\{\frac{p}{q} : p, q \in \mathbb{Z}, q \neq 0\}
Yes
R\mathbb{R}
Real NumbersAllpointsonthenumberlineAll points on the number line
No
C\mathbb{C}
Complex Numbers{a+bi:a,bR}\{a + bi : a, b \in \mathbb{R}\}
No
Cantor's Revolutionary Discovery

Cantor proved that Q\mathbb{Q} (rational numbers) is countable, but R\mathbb{R} (real numbers) is uncountable. This means there are "more" real numbers than rationals, even though both sets are infinite! This was a revolutionary idea that redefined our understanding of infinity.

Worked Examples

Step-by-step solutions to reinforce your understanding

Example 1: Proving a Set Identity

Problem:

ProvethatA(BC)=(AB)(AC)Prove that A \cap (B \cup C) = (A \cap B) \cup (A \cap C)

Solution:

We prove this by showing both sets contain the same elements.

LetxA(BC).ThenxAandx(BC).Let x \in A \cap (B \cup C). Then x \in A and x \in (B \cup C).

Sincex(BC),wehavexBorxC.Since x \in (B \cup C), we have x \in B or x \in C.

Case1:IfxB,thenxAandxB,soxAB.Case 1: If x \in B, then x \in A and x \in B, so x \in A \cap B.

Case2:IfxC,thenxAandxC,soxAC.Case 2: If x \in C, then x \in A and x \in C, so x \in A \cap C.

Ineithercase,x(AB)(AC).In either case, x \in (A \cap B) \cup (A \cap C). ✓

The reverse inclusion follows similarly, completing the proof. ∎

Example 2: Applying De Morgan's Laws

Problem:

Simplify(ABC)cusingDeMorgansLawsSimplify (A \cup B \cup C)^c using De Morgan's Laws

Solution:

Apply De Morgan's law to the first pair:

(ABC)c=((AB)C)c(A \cup B \cup C)^c = ((A \cup B) \cup C)^c

=(AB)cCc(by De Morgan’s law)= (A \cup B)^c \cap C^c \quad \text{(by De Morgan's law)}

=(AcBc)Cc(by De Morgan’s law again)= (A^c \cap B^c) \cap C^c \quad \text{(by De Morgan's law again)}

=AcBcCc= A^c \cap B^c \cap C^c

Thisgeneralizes:(i=1nAi)c=i=1nAicThis generalizes: (\bigcup_{i=1}^n A_i)^c = \bigcap_{i=1}^n A_i^c ∎

Example 3: Proving Countability of Rationals

Problem:

Provethatthesetofpositiverationalnumbersiscountable.Prove that the set of positive rational numbers is countable.

Solution:

We construct an explicit enumeration using Cantor's diagonal argument.

Arrange positive rationals in a grid: row i contains fractions with denominator i.

Row1:11,21,31,...Row 1: \frac{1}{1}, \frac{2}{1}, \frac{3}{1}, ...

Row2:12,22,32,...Row 2: \frac{1}{2}, \frac{2}{2}, \frac{3}{2}, ...

Row3:13,23,33,...Row 3: \frac{1}{3}, \frac{2}{3}, \frac{3}{3}, ...

Traversediagonally:11,21,12,13,22,31,...Traverse diagonally: \frac{1}{1}, \frac{2}{1}, \frac{1}{2}, \frac{1}{3}, \frac{2}{2}, \frac{3}{1}, ...

Skipduplicates(e.g.,22=11).Skip duplicates (e.g., \frac{2}{2} = \frac{1}{1}).

ThisgivesabijectionwithN,provingcountability.This gives a bijection with \mathbb{N}, proving countability. ∎

Historical Background

Georg Cantor (1845-1918)

German mathematician Georg Cantor founded set theory in 1874 with his revolutionary work on infinite sets. His work established that there are different "sizes" of infinity, a concept that was controversial at the time but now forms the foundation of modern mathematics.

"A set is a Many that allows itself to be thought of as a One."

— Georg Cantor

Advanced Theorems

Fundamental theorems that shaped modern set theory

Cantor's Theorem

For any set A, the power set P(A) has strictly greater cardinality than A: |P(A)| > |A|.

This theorem proves there is no 'largest' infinity and establishes a hierarchy of infinite cardinalities.

Schröder-Bernstein Theorem

If there exist injections f: A → B and g: B → A, then there exists a bijection between A and B, so |A| = |B|.

This theorem allows us to prove set equality without explicitly constructing a bijection.

Well-Ordering Theorem

Every non-empty set can be well-ordered, meaning it can be given a total order where every non-empty subset has a least element.

Equivalent to the Axiom of Choice, this theorem is fundamental in transfinite induction and ordinal arithmetic.

Continuum Hypothesis

There is no set whose cardinality is strictly between that of the integers and the real numbers: ℵ₁ = 2^ℵ₀.

Gödel and Cohen proved this is independent of ZFC set theory—it can neither be proved nor disproved from the standard axioms.

Partition Principle

A set S can be partitioned into disjoint subsets whose union is S, with each element in exactly one part.

Partitions define equivalence relations and vice versa.

Russell's Paradox Resolution

The 'set of all sets that don't contain themselves' leads to contradiction in naive set theory.

This paradox motivated the development of axiomatic set theories like ZFC.

Countable Union of Countable Sets

A countable union of countable sets is countable.

Used to prove ℚ is countable: ℚ = ∪ₙ{rationals with denominator n}.

Proof Techniques

Essential methods for proving set-theoretic statements

Direct Proof

Assume the hypothesis and derive the conclusion through logical steps.

Example: To prove A ⊆ B, let x ∈ A be arbitrary and show x ∈ B.

Proof by Contradiction

Assume the negation of what you want to prove and derive a contradiction.

Example: To prove a set is infinite, assume it's finite and show this leads to a contradiction.

Proof by Contraposition

Instead of proving P → Q, prove ¬Q → ¬P, which is logically equivalent.

Example: Instead of 'if x ∈ A ∩ B then x ∈ A', prove 'if x ∉ A then x ∉ A ∩ B'.

Mathematical Induction

Prove a base case P(1), then prove P(n) → P(n+1) for all n.

Example: Prove |P(A)| = 2^n for finite sets A with n elements.

Frequently Asked Questions

What's the difference between ⊆ and ⊂?

A ⊆ B (subset) means every element of A is in B, including the case A = B. A ⊂ B (proper subset) means A ⊆ B AND A ≠ B. For example, {1,2} ⊂ {1,2,3} but {1,2,3} ⊆ {1,2,3}.

Why is the empty set a subset of every set?

By definition, A ⊆ B means 'for all x, if x ∈ A then x ∈ B'. For the empty set ∅, there are no elements, so the statement 'if x ∈ ∅ then x ∈ B' is vacuously true for any B.

How do I prove two sets are equal?

Prove double inclusion: show A ⊆ B and B ⊆ A. This is called the 'element-chasing' method. Take an arbitrary element of one set and show it belongs to the other, then reverse.

Why can't we count the real numbers?

Cantor's diagonal argument proves this. Any attempted list of reals can be 'diagonalized' to construct a new real not in the list, showing no enumeration can be complete.

What is the power set and why is it larger than the original set?

The power set P(A) is the set of all subsets of A. For a set with n elements, |P(A)| = 2^n. Cantor's theorem proves |P(A)| > |A| for any set, even infinite ones.

What is the Cartesian product of two sets?

The Cartesian product A × B is the set of all ordered pairs (a, b) where a ∈ A and b ∈ B. For example, {1,2} × {a,b} = {(1,a), (1,b), (2,a), (2,b)}. The cardinality |A × B| = |A| · |B|.

What is the symmetric difference of two sets?

The symmetric difference A △ B = (A \ B) ∪ (B \ A) contains elements in exactly one of A or B, but not both. It can also be written as A △ B = (A ∪ B) \ (A ∩ B).

How do indexed families of sets work?

An indexed family {Aᵢ : i ∈ I} assigns a set Aᵢ to each index i in the index set I. The union ∪{Aᵢ : i ∈ I} contains all elements in at least one Aᵢ, and the intersection ∩{Aᵢ : i ∈ I} contains elements in all Aᵢ.

Practice Quiz

Test your understanding of set theory concepts

Set Theory Practice
10
Questions
0
Correct
0%
Accuracy
1
Which of the following correctly represents the set of natural numbers less than 5?
Easy
Not attempted
2
If A={1,2,3}A = \{1, 2, 3\} and B={2,3,4}B = \{2, 3, 4\}, what is ABA \cap B?
Easy
Not attempted
3
According to De Morgan's Law, (AB)c(A \cup B)^c equals:
Medium
Not attempted
4
Which of the following sets is countably infinite?
Medium
Not attempted
5
If ABA \subseteq B and BAB \subseteq A, what can we conclude?
Easy
Not attempted
6
What is the cardinality of the power set of {a,b,c}\{a, b, c\}?
Easy
Not attempted
7
Which statement about the empty set is FALSE?
Medium
Not attempted
8
If A={1,2}A = \{1, 2\} and B={a,b}B = \{a, b\}, how many elements does A×BA \times B have?
Easy
Not attempted
9
Which of the following is the set-builder notation for even positive integers?
Medium
Not attempted
10
If AB=AA \setminus B = A, what must be true about A and B?
Hard
Not attempted