Sets
A set is a collection of objects called elements.
If is an element of a set , we write
If is not an element of , we write
Sets are fundamental throughout mathematics because nearly every mathematical structure can be described in terms of collections and relations between collections.
Examples include:
and finite sets such as
Equality of Sets
Two sets are equal if they contain exactly the same elements.
Thus
means:
for every object .
Order does not matter in sets, and repeated elements are ignored.
For example,
Similarly,
Subsets
A set is a subset of if every element of belongs to .
We write
Thus
means:
For example,
If
then is called a proper subset of .
Empty Set
The empty set is the set containing no elements.
It is denoted by
The empty set is a subset of every set.
Indeed, the statement
is automatically true because there are no elements in .
Union and Intersection
The union of two sets and is the set
The intersection is
For example, if
then
and
Set Difference
The difference of sets is
For example,
Set difference removes elements belonging to the second set.
Cartesian Products
Given sets and , the Cartesian product is
Its elements are ordered pairs.
For example,
Cartesian products are fundamental for defining coordinate systems, relations, and functions of several variables.
Functions
A function from a set to a set assigns to every element of exactly one element of .
We write
If , then its image under is denoted
The set is the domain of the function, and is the codomain.
Image and Preimage
The image of a subset
is
If
the preimage of is
Preimages are important because they behave well with unions and intersections.
Injective Functions
A function is injective if distinct inputs produce distinct outputs.
Formally,
Equivalently,
An injective function never identifies different elements.
For example,
from to is injective.
Surjective Functions
A function is surjective if every element of occurs as an output.
Thus for every
there exists
such that
For example,
from to is surjective.
Bijective Functions
A function is bijective if it is both injective and surjective.
A bijection establishes a perfect correspondence between two sets.
If a bijection exists between and , the sets have the same cardinality.
For finite sets, this means they contain the same number of elements.
Composition of Functions
If
and
their composition is the function
defined by
Function composition is associative:
Composition is one of the central operations throughout mathematics.
Identity Functions
For a set , the identity function is
defined by
It leaves every element unchanged.
Identity functions satisfy
and
Inverse Functions
A function
has an inverse if there exists a function
such that
for all
and
for all
A function has an inverse precisely when it is bijective.
Finite and Infinite Sets
A set is finite if its elements can be counted using a natural number.
Otherwise it is infinite.
The set
of natural numbers is infinite.
Infinite sets exhibit surprising behavior. For example, there exists a bijection between
and the even integers:
Thus an infinite set may have the same size as a proper subset of itself.
Countable Sets
A set is countable if it is finite or has a bijection with .
Examples of countable sets include:
- integers,
- rational numbers,
- algebraic numbers.
The rational numbers are countable despite being dense in the real line.
Uncountable Sets
A set is uncountable if it is not countable.
The real numbers form an uncountable set.
Cantor’s diagonal argument proves that no enumeration of real numbers can include them all.
Thus infinities come in different sizes.
Relations
A relation on a set is a subset of
Examples include:
- equality,
- divisibility,
- congruence modulo ,
- order relations.
Relations are fundamental for defining algebraic and arithmetic structures.
Equivalence Relations
A relation on is an equivalence relation if it is:
- reflexive,
- symmetric,
- transitive.
Congruence modulo is a basic example:
Equivalence relations partition sets into equivalence classes.
These ideas appear constantly in algebra and number theory.
Conceptual Importance
Sets and functions form the language of modern mathematics.
Functions describe transformations and structure-preserving maps. Sets organize mathematical objects into collections suitable for rigorous reasoning.
Nearly every construction in number theory, algebra, geometry, and analysis depends ultimately on these foundational concepts.