A relation R on a set X is a subset of X \times X ( R \subseteq X \times X)
(a,b) \in R \equiv aRb \equiv a \sim b
Defining the equality symbol as a set: EQ = \{(x, x): x \in X\}
\leq LTE
\lt LT
= EQ
LTE = LT \cup EQ
R \subseteq X \times X is said to be an equivalence relation iff R is reflexive, symmetric and transitive.
The equivalence class of an element x \in X is the set [x]_\sim = \{ y \in X: x \sim y\}
A partition is a set containing subsets of some set X such that their collective symmetric difference equals to X. A partition of X is a set \{A_i: i \in I \land A_i \subseteq X\} such that:
Functions can be expressed as a relation as well:
f \subseteq X \times Y is said to be a function iff
For example: y = \frac{1}{x} is not a function because it doesn’t meet the first requirement, unless f is defined as f \subseteq (\mathbb{C} - \{0\}, \mathbb{C})