Sets
- A set
is an unordered collection of distinct elements (also called members). is an element of set is denoted as . is not an element of set is denoted as .
- Two sets are equal if they have precisely the same elements. This is also called the axiom of extensionality. It can be written as:
- The universal set
is the set containing all elements for a specific context. This context is called the domain of discourse. - A singleton is a set with exactly one element.
Set Notation
- Roster notation is a method of defining a set by listing its elements between braces, separated by commas.
- Examples:
denotes the set containing the first 3 prime numbers, denotes the empty set, and denotes a singleton containing only the element . - When specifying a set, all that matters is whether each potential element is in the set or not. Consequently, a set does not change if elements are repeated or arranged in a different order.
- Example:
- Example:
- Examples:
- Set builder notation is a method to define a set by describing the properties that members must satisfy, rather than listing the elements.
- Notation:
- The set of all elements
for which the predicate is true. - Example:
defines the set of even natural numbers.
- Notation:
Subsets and Supersets
- A set
is a subset of set (denoted ) if every element in is also an element of . The set is a proper subset of (denoted ) if is a subset of but . - A set
is a superset of set (denoted ) if is a subset of set . The set is a proper superset of (denoted ) if is a proper subset of . - The power set of
is the set of all possible subsets of :
| Definition | Formula | Diagram |
|---|---|---|
| The union of sets |
||
| The intersection of sets |
||
| The difference of sets |
||
| The symmetric difference of sets |
||
| The complement of set |
Some properties of the the basic set operations are as follows:
- Commutative Laws: The order doesn't matter for union or intersection.
- Associative Laws: The grouping doesn't matter for union or intersection.
- Distributive Laws: Union and intersection can be "distributed" over each other.
- De Morgan's Laws: These describe how to find the complement of a union or intersection.
Ordered collections
-
A tuple is an ordered collection of elements.
- Unlike sets: may contain duplicates, and order matters.
- An ordered pair is a tuple of 2 elements.
- An n-tuple is a tuple of
elements.
-
Cartesian product (
) is the set of all possible ordered pairs where the first element is from and the second is from . -
A relation on sets
and is a subset of the Cartesian product . -
A binary relation on
is a subset of . - Notation: We often write
to mean (e.g., ).
- Notation: We often write
-
Properties of binary relations:
- Reflexive:
- Symmetric:
- Antisymmetric:
- Transitive:
- Reflexive:
-
If a relation is reflexive, symmetric, and transitive, it is an equivalence relation.
-
If a relation is reflexive, anti-symmetric, and transitive, it is a partial order.
Functions
- A function
from set to set (denoted ) is a relation where every input has exactly one output. - Domain: The set
of all possible inputs. - Codomain: The set
of all allowed outputs. - Range (or Image): The set
of all actual possible outputs.
- Domain: The set
- For a relation to be a function, it must be total and well-defined.
- Total: Every input has at least one output.
- For every
, there is some such that .
- For every
- Well-defined: Every input has at most one output.
- If
and , then .
- If
- Total: Every input has at least one output.
- A function may be classified based on its outputs.
- Injective (One-to-One): Every output corresponds to at most one input.
- Surjective (Onto): Every output corresponds to at least one input.
- Bijective (One-to-One Correspondence): Both Injective and Surjective.
- An inverse function
exists if and only if is bijective.
- An inverse function
- Injective (One-to-One): Every output corresponds to at most one input.
Hyperoperation Sequence
The hyperoperation sequence is an infinite sequence of arithmetic operations (called hyperoperations in this context), where each operation at Rank
| Hyperoperation | Inverse |
|---|---|
| Rank 0: succession is the foundational unary operation upon which all others are built. It simply advances a value to the next. |
The inverse of succession is predecession. |
| Rank 1: addition is defined as repeated succession. To add |
The inverse of addition is subtraction. |
| Rank 2: multiplication is defined as repeated addition. To multiply |
The inverse of multiplication is division. |
| Rank 3: exponentiation is defined as repeated multiplication. To raise |
The inverses of exponentiation are roots and logarithms. Because exponentiation is non-commutative, two distinct operations are required to reverse it. |
| Rank 4: tetration is defined as repeated exponentiation. To tetrate |
The inverses of tetration are super-roots and super-logarithms. Like exponentiation, tetration is non-commutative and requires two distinct operations to reverse. |
This pattern may be repeated indefinitely.
Number Sets
- Natural numbers (
) is the set of counting numbers. - Integers (
) is the set of all whole numbers. - Rational numbers (
) is the set of numbers that can be expressed as a fraction where and are integers, and . - Includes all numbers with finite and repeating decimals (e.g.,
, ).
- Real numbers (
) is the set of all numbers representing points on a continuous line (informally). - Complex numbers (
) is the set of all complex numbers that can be formed by combining a real and an imaginary part.
TODO: explain the relation with closure, and the stability of the complex number set.
Cardinality
Cardinality
- The cardinality of a set
is the number of elements in the set. Denoted . - TODO: write about countable vs uncountable infinities.