Sets and Set Operations
Introduction
Sets are the foundation of modern mathematics. A set is simply a collection of distinct objects, called elements or members. Despite this simple definition, set theory provides the language in which essentially all of mathematics can be expressed—from numbers to functions to probability spaces.
Set theory was developed in the late th century by Georg Cantor and has since become indispensable in computer science (databases, type theory), probability (sample spaces and events), and logic. Understanding sets and their operations is a prerequisite for nearly every advanced mathematical topic.
Basic Definitions
Notation and Membership
Sets are typically denoted by capital letters ( and elements by lowercase letters. If is an element of set we write (read " is in " or " belongs to "). If is not in we write
Sets can be defined by listing elements (roster notation): or by describing a property (set-builder notation):
Important Sets
Standard number sets have special symbols:
— natural numbers (some include )
— integers
— rational numbers (fractions where , )
— real numbers
— complex numbers
The empty set (or ) contains no elements. It is a subset of every set.
Subsets and Equality
Set is a subset of , written , if every element of is also in :
Two sets are equal if and only if each is a subset of the other:
A proper subset (or ) means and .
Set Operations
Union
The union of and contains all elements in either set:
Intersection
The intersection of and contains elements in both sets:
Sets are disjoint if their intersection is empty: .
Difference
The difference (or relative complement) contains elements in but not in :
Complement
Given a universal set containing all objects under consideration, the complement of is:
Cartesian Product
The Cartesian product is the set of all ordered pairs:
For example, is the Cartesian plane.
Power Set
The power set (or ) is the set of all subsets of :
If , then . For example,
.
Laws of Set Algebra
Set operations satisfy fundamental algebraic properties that parallel logical operations.
Commutative Laws
Associative Laws
Distributive Laws
De Morgan's Laws
These laws state that the complement of a union is the intersection of complements, and vice versa.
Identity and Domination
(identity)
(domination)
Complement Laws
Cardinality
The cardinality of a finite set is the number of elements it contains.
The inclusion–exclusion principle gives the cardinality of a union:
For three sets:
Connection to Other Concepts
In probability, the sample space is a set and events are subsets. The probability axioms and rules (including inclusion-exclusion) mirror set operations.
Functions are defined as special relations, which are subsets of Cartesian products. The domain, codomain, range, and graph of a function are all sets.
In topology, open sets and their properties define the structure of a space. In measure theory, sigma-algebras are collections of sets closed under countable operations.
Summary
A set is a collection of distinct elements. Membership ( and subset ( are the fundamental relations. Sets are equal if they have exactly the same elements.
The core operations—union (, intersection (, complement, and difference—satisfy algebraic laws including commutativity, associativity, distributivity, and De Morgan's laws.
Sets provide the language for mathematics, underpinning everything from number systems to probability to analysis. Mastery of set notation and operations is essential for advanced study.