-ary relation
An
-ary relation on the sets
is a subset
of their
cartesian product, where we say that the relation holds between
when
Binary Relation
A binary relation is a -ary relation, when , then we write to say that is related to .
Note: A binary relation on is stated simply as a relation on
The Reverse of a Binary Relation
Suppose that is a binary relation then
set filtered by a relation
Suppose that is a set, and that is a unary relation on , then we define
reflexive relation
Given a
binary relation on
, we say it is reflexive when every element of
is related to itself. Symbolically
symmetric relation
Given a
binary relation on
, we say it is symmetric if the relation goes both ways, that is for any
if
then
Anti-Symmetric Relation
Given a
binary relation on
, we say it is anti-symmetric when for any
, if
and
we have that
Asymmetric Relation
Given a
binary relation on
, we say it is
asymmetric when for any
, if
then it's false that
.
Transitive Relation
Given a
binary relation on
, we say it is transitive if for any
if
and
then
The Subset Relation Is Transitive
Suppose that are sets, then if and then
Suppose that then and so as needed.
Equivalence Relation
An equivalence relation is a reflexive, symmetric and transitive relation
when is an equivalence relation, we denote it by instead of
Connected Relation
Given a
binary relation on
, we say it is
connected if for any
if
then
or
Strongly Connected Relation
Given a
binary relation on
, we say it is
strongly connected if for any
or
Equivalence Class
Given an
equivalence relation an equivalence class is a complete set of equivalent elements, which we denote by
which is defined to be the set
Equivalence Classes Are Either Equal or Disjoint
Suppose that
is an
equivalence relation, then given
then either
If it's the case that then we know and therefore . Now given any we see that so that so that therefore , similarly given any then so that therefore so we have
On the other hand if we know that then what we want to prove is certainly true.
A Set Is a Union of Its Equivalence Classes
Suppose that
is an
equivalence relation, then
The Set of Equivalence Classes Is a Partition of X
Suppose that
is an
equivalence relation then the set
is a
partition of
We already know that they
cover the set, so now suppose that
then since they are not equal
they are disjoint, as needed.
A Set Modulo an Equivalence Relation
Suppose that
is an
equivalence relation and
a partition of
Sometimes people call this dividing, roughly speaking when you divide 20 objects into groups of 4, it's as if each collection of 5 elements became one, which is roughly what happens when you mod out by an equivalence relation.
Unpacking an Equivalence Class
Suppose that
is an
equivalence relation then for any
we define the almost trivial function
The reason why we have the above definition is so that we can mod out by an equivalence relation, and then peel of the equivalence classes to end back up with elements of , in other words , is a collection of "representatives" in .
Congruences induce a Equivalence Relation
Fix
, then relation on
by
if and only if
defines an
equivalence relation
Given any , then clearly so that , if , then and then , finally if and therefore
Induced Equivalence Relation
Suppose that suppose that we have a
relation on
, then we can extend it to an equivalence relation by adding the minimal number of tuples
to construct
so that
is an
equivalence relation. We denote this by
The Subset Relation Is a Partial Order
Suppose that
is a set of sets, then
is a
partial order
It is true that for any set
we have
, thus it is reflexive, also we know that if
then if
and
we have so it is anti symmetric, finally we already know it is
transitive.
Every Partial Order Admits a Strict Partial Order
Suppose that is a partial order, then there exists a relation such that is a partial order such that
Consider the partial order , since is a collection of tuples we just need to consider
Comparable
Suppose
is a
partial order, then elements
are said to be
comparable if
or
, otherwise they are said to be
incomparable
With the strict partial order we can see that and are incomparable.
Note that a total order is sometimes known as a simple order.
well order
A well order on a set is a total order on along with the property that every non-empty subset of has a least element under this ordering
The Smallest Element of a Set is Unique
Supose that
is a
partial order, then the smallest element is unique
Suppose that there are two smallest elements since is the smallest then and since is the smallest then by transitivity and so the smallest element is unique.
Interval
Suppose that
is a
partial order, then a subset
is defined to be an interval if:
and we denote
Intersection of Intervals
The intersection of any collection of intervals in a general ordered set is also an interval.
Let be a collection of intervals in , let's prove is also an interval.
Suppose and for some . We must show that . Since and are in , and is the intersection of all , it follows that:
Since each is an interval, for every we have so that consequently, .