Naive Set Theory
Definition 39: Set and Set Membership
A set is a mathematical object completely defined by its elements or members. If an object is an element of a set , then we say that is an element of and denote that .
Notation: Set Roster Notation
A set can be defined by explicitly listing its elements, separated by commas and enclosed in curly braces. For example, the set of natural numbers less than 5 can be defined as .
Since a set is defined by the objects that belong to it, the following principles hold:
- The order in which we denote elements of a set does not matter.
- Repeated elements in a set do not affect the set’s identity.
Example.
Definition 40: Subset and Proper Subset
A set is a subset of a set , denoted , iff implies . Furthermore, is a proper subset of , denoted or , iff and there exists some element in that is not in . Formally:
Definition 41: Superset and Proper Superset
A set is a superset of a set , denoted , iff . Furthermore, is a proper superset of , denoted or , iff .
Example.
Definition 42: Empty Set
The empty set or is the unique set that has no elements.
Theorem 11: Universality of the Empty Set
For all sets , .
Notation: Set Builder Notation
A set can also be defined by specifying a property that its elements must satisfy. This is called set builder notation.
If is the set of all elements such that is true, we can write:
If we want to specify the universe of objects we are considering, we can write:
If needs to satisfy multiple predicates , we can write:
Corollary 3
If is defined using set builder notation over a universe , then .
Corollary 4
If is defined using set builder notation with predicate , then if and only if is true.
Definition 43: Standard Numeric Sets
The following sets of numbers are commonly used in mathematics:
-
The natural numbers are the set of non-negative
1 integers:
-
The integers are the set of whole numbers and their negatives:
-
The positive integers are the set of integers greater than :
-
The rational numbers are the set of numbers that can be expressed as a fraction of two integers (with a nonzero denominator):
- The real numbers are the set of all points on the number line, including both rational and irrational numbers.
Definition 44: Principle of Extensionality
Two sets and are equal, denoted , if and only if they have the same elements. Formally:
Theorem 12: Double Containment Theorem
Two sets and are equal if and only if and . Formally:
Set Operations
It may be useful to define new sets in terms of existing sets using set operations.
Definition 45: Intersection of Two Sets
The intersection of two sets and , denoted , is the set of all elements that are in both and . Formally:
Terminology: Disjoint Sets
Two sets and are disjoint if their intersection is the empty set, i.e. .
Definition 46: Power Set
The power set of a set , denoted , is the set of all subsets of . Formally:
Lists, Cartesian Products, Strings
A list, sequence, or tuple, is a collection of objects where the order of the objects matters and repetition is allowed. In the world of sets, it would be beneficial if lists were not “separate” objects, but rather could be represented as sets. This way, the theory of sets would be sufficient to define and reason about lists, sequences, tuples, and other ordered collections without needing to introduce new primitive objects.
In general, let be an ordered -tuple. Fix the following properties:
- Order. if there exists some such that .
- Repetition. for any .
The following is a way to represent ordered pairs as sets:
Definition 47: Kuratowski Pairing Function
The Kuratowski pairing of two objects and is:
We can extend the Kuratowski pairing function to represent ordered triples, quadruples, and in general -tuples as sets:
Thus, the Kuratowski pairing function can be generalized:
Definition 48: Kuratowski List
The Kuratowski list of a finite sequence of objects is the set defined as:
The set of all lists can be denoted using a Cartesian product of sets. For two sets, it is defined as follows:
Definition 49: Cartesian Product
The Cartesian product of two sets and , denoted , is the set of all pairings of an element from and an element from . Formally:
Example.
Let and . Then the Cartesian product is:
Notation
In the context of sets, let the standard notation for an ordered sequence represent the Kuratowski list .
Definition 50: Alphabets and Strings
A string is a sequence of characters from a given alphabet .
Definition 51: Finite Strings
A finite string of length over an alphabet is an element of the catesian product of with itself times:
The set of all finite strings over of length is denoted .
Example.
Definition 52: Set of All Finite Strings
The set of all finite strings over an alphabet is denoted and is defined as the union of for all :
Exercises
Exercise 7.
Exercise 8.
- 1Sometimes, is defined to exclude . Use the definition that includes for these notes.