Set Theory
Set theory is a fundamental part of mathematics where we study collections of objects, which we call sets. The theory was introduced by Georg Cantor in the late 19th century. The language and tools of set theory are used in almost every branch of mathematics, making it an indispensable area of study.
What is a set?
A set is a well-defined collection of distinct objects. These objects are called elements or members of the set. Sets are usually denoted by capital letters such as A, B, C, etc. If an element x
is in the set A
, we write x ∈ A
. If x
is not in A
, we write x ∉ A
.
Example: A = {1, 2, 3}
In this example, 1, 2, and 3 are elements of the set A
. We say 1 ∈ A, 2 ∈ A, and 3 ∈ A. If we consider the element 4, since it is not in the set A
, we write 4 ∉ A.
How to describe a set
Sets can be described in a variety of ways, but we will focus on two primary methods: the roster method and the set-builder method.
Rooster method
In the roster method, we list all the elements of the set inside curly braces, separated by commas. For example:
B = {apple, banana, cherry}
This group B contains three fruit elements: apple, banana, and cherry.
Set-builder method
In the set-builder method, we describe the properties or attributes that the elements of the set have in common. This is written using a vertical bar or colon. For example:
C = { x | x is a positive even number } C = { x : x > 0 and x mod 2 = 0 }
Both descriptions specify the set C as the set of all positive even numbers.
Basic set operations
There are several basic operations we can perform on sets. These include union, intersection, difference, and complement.
Union of sets
The union of two sets is the set of elements that are either in one of the sets or in both. If A
and B
are sets, then their union is represented by A ∪ B
. For example,
A = {1, 2, 3} B = {3, 4, 5} A ∪ B = {1, 2, 3, 4, 5}
Intersection of sets
The intersection of two sets is the set of elements that are common to both sets. It is represented by A ∩ B
for sets A
and B
. For example,
A = {1, 2, 3} B = {3, 4, 5} A ∩ B = {3}
Difference of sets
The difference of two sets A
and B
, denoted A - B
or A B
, is the set of elements that are in A
but not in B
. For example,
A = {1, 2, 3} B = {3, 4, 5} a − b = {1, 2}
The set A - B
contains those elements of A
that are not in B
.
Complement of a set
If U
is the universal set, which means that it is the set of all possible elements under consideration, and A
is a subset of U
, then the complement of A
, denoted A'
or A c
, is the set of elements that are in U
but not in A
. For example,
U = {1, 2, 3, 4, 5} A = {1, 2, 3} A' = {4, 5}
Venn diagrams
Venn diagrams are a visual way to represent sets and their operations. They consist of circles (representing sets) within a rectangle (representing the universal set). The overlapping regions of the circles show intersections, while the regions outside the overlap show differences.
In this Venn diagram, two overlapping circles represent sets A and B. The overlapping part represents the intersection of A ∩ B.
Subsets and supersets
A set A
is called a subset of a set B
if every element of A
is also an element of B
. It is denoted by A ⊆ B
. If A
is a subset of B
but is not equal to B
, then A
is called a proper subset and is denoted by A ⊂ B
.
A = {1, 2} B = {1, 2, 3, 4} A ⊆ B
This statement tells us that all the elements of set A
are contained in set B
. Set A
is a proper subset of B
because it does not contain all the elements of B
.
Power set
The power set of any set S
is the set of all possible subsets of S
, including the empty set and S
itself. The power set is denoted by P(S)
or 2 S
.
S = {a, b} P(S) = { {}, {a}, {b}, {a, b} }
For a set with n
elements, the power set will have 2 n
elements.
Cartesian product
The Cartesian product of two sets A
and B
, denoted A × B
, is the set of all ordered pairs (a, b)
where a
is in A
and b
is in B
.
A = {1, 2} B = {x, y} A × B = { (1, x), (1, y), (2, x), (2, y) }
The Cartesian product can be viewed as a grid or table, with the elements of set A
on one axis and the elements of set B
on the other, with each bracket representing an ordered pair.
Infinite sets and cardinality
Set theory distinguishes between finite and infinite sets. Infinite sets are sets that do not have a finite number of elements. The cardinality of a set is a measure of the "number of elements" in the set. For finite sets, this is a simple calculation, but infinite sets have infinite cardinality.
For example, the set of natural numbers N = {1, 2, 3, ...}
has an infinite number of elements. Georg Cantor demonstrated the surprising result that infinite sets can also have different sizes (cardinalities).
Countable vs. uncountable sets
An infinite set is countable if its elements can be put into one-to-one correspondence with natural numbers. For example, the set of even numbers {2, 4, 6, ...}
is countable because every number can be paired with a natural number.
If a set has more elements than the set of natural numbers, then the set is uncountable. The most famous example of an uncountable set is the set of real numbers between 0 and 1.
Applications of set theory
Set theory is used extensively in many areas of mathematics, and also in computer science, logic, and philosophy. Here are some notable applications:
- Defining a function: A function from a set
A
to a setB
can be viewed as a subset of the Cartesian productA × B
- Probability: The probability of an event can be viewed as a measure of a set of outcomes in a sample space.
- Database theory: Operations such as selection and projection in relational databases can be explained using set theory.
Set theory also forms the basis of other important mathematical structures such as groups, rings, and fields.
Beyond its foundational role, set theory remains an area of active research, where mathematicians examine large cardinals, determinacy, and force, among other topics.
Overall, set theory provides the foundation for modern mathematics. It allows mathematicians to work rigorously with infinity and is helpful in developing logical reasoning.