In discrete mathematics, sets and functions establish the ground rules for structures, but binary relations provide the formal machinery needed to model and analyze connections between objects. This module explores how binary relations generalize functions, partitions domains, and establish order structures through equivalence relations and posets.
A set is an unordered collection of distinct objects. We write if is a member of the set , and otherwise.
Sets can be specified via:
The Cartesian product of two sets and , denoted , is the set of all ordered pairs:
Two ordered pairs are equal if and only if their respective coordinates are equal:
More generally, an ordered -tuple is an ordered list of elements, denoted .
For a finite universal set , a subset can be represented by a bit-vector of length , where the -th bit is if and if .
Universal Set U = {a, b, c, d, e}
Subset A = {a, c, e} --> Bit-Vector: [1, 0, 1, 0, 1]
Subset B = { b, c, d } --> Bit-Vector: [0, 1, 1, 1, 0]
Union (A U B) = [1, 0, 1, 0, 1] OR [0, 1, 1, 1, 0] = [1, 1, 1, 1, 1]
Inter. (A n B) = [1, 0, 1, 0, 1] AND [0, 1, 1, 1, 0] = [0, 0, 1, 0, 0]A function (or mapping) is a special type of relation that assigns to each element exactly one element .
Formally, a relation is a function if and only if:
For any :
Floor: [-1.4] = -2 [1.6] = 1
-----------------------------------> Real line
-2 -1 0 1 2
Ceiling: [-1.4] = -1 [1.6] = 2Given and , the composition is defined by:
A binary relation from set to set is a subset of the Cartesian product . We write to denote . If , we refer to as a .
Unlike functions, a single element can be related to multiple elements in , or to none at all.
Function (Mapping) General Relation
Domain Codomain Domain Codomain
[ a ] ------> [ 1 ] [ a ] ------> [ 1 ]
[ b ] ---\ [ b ] ---\---> [ 2 ]
\--> [ 2 ] \---> [ 3 ]
[ c ] ------> [ 3 ] [ c ] (unmapped)is reflexive if every element is related to itself.
is symmetric if relationship directions can be reversed.
is antisymmetric if two distinct elements cannot be mutually related to each other.
is transitive if relationships cascade through intermediate elements.
If a relation lacks a property, we construct its closure by adding the minimum number of ordered pairs to satisfy that property:
An equivalence relation is a binary relation on a set that is simultaneously reflexive, symmetric, and transitive.
Let be an equivalence relation on . For any , the equivalence class of , denoted , is the set of all elements related to :
Any element is called a representative of the equivalence class.
The collection of all equivalence classes of elements in is the quotient set, denoted :
A key theorem of set theory states that the quotient set forms a partition of . A partition of a set is a collection of non-empty, pairwise disjoint subsets whose union is :
Let , and be a fixed positive integer. The relation congruence modulo , written , is defined by:
For , the quotient set consists of exactly three equivalence classes:
A relation on a set is a partial ordering if it is reflexive, antisymmetric, and transitive. A set together with a partial ordering is called a partially ordered set, or poset, and is written as (or ).
A Hasse diagram is a graphical representation of a finite poset. It is constructed by omitting:
We say covers if and there is no element such that . In a Hasse diagram, we draw an edge from up to if and only if covers .
Let under the relation ( divides ).
6
/ \
2 3
\ /
1Let . The poset is .
{a, b, c}
/ | \
{a, b} {a, c} {b, c}
| \ / \ / |
{a} {b} {c}
\ | /
{}Let be a poset:
Let be a subset of a poset :
A subset of the Cartesian product of two sets, defining an association between their elements.
A binary relation that is simultaneously reflexive, symmetric, and transitive, partitioning a set into equivalence classes.
The collection of all equivalence classes of a set under a given equivalence relation, forming a complete partition of the set.
A relation that is reflexive, antisymmetric, and transitive, establishing a hierarchical ordering among elements.
A simplified graphical representation of a finite poset where transitive and reflexive edges are omitted and direction is indicated vertically.
Test your understanding with 5 questions
Let $A = \{1, 2, 3, 4\}$ and $R = \{(1,1), (1,2), (2,1), (2,2), (3,3), (3,4), (4,3), (4,4)\}$. Which of the following is the correct quotient set $A/R$?
Which mathematical properties must a binary relation satisfy to be classified as a partial order (poset)?
Let $f: \mathbb{R} \to \mathbb{R}$ be defined as the floor function $f(x) = \lfloor x \rfloor$. If $x = -1.4$, what are the values of the floor $\lfloor x \rfloor$ and ceiling $\lceil x \rceil$ of $x$ respectively?
If a poset $\langle P, \le \rangle$ has a least element, how many least elements can it possibly contain?
Let $A = \{2, 3, 6, 12\}$. Consider the divisibility relation $|$ on $A$ (where $x | y$ iff $y$ is an integral multiple of $x$). What are the minimal elements of the poset $\langle A, | \rangle$?
6 Modules
6 Modules