πŸ—οΈ Ξ˜ΟΟ΅Ξ·Ξ Ξ±Ο„Ο€πŸš§ (under construction)

n-ary relation
An n-ary relation on the sets X1,X2,…,Xn is a subset R of their cartesian product, where we say that the relation holds between x1,x2,…,xn when (x1,x2,…,xn)∈R
Unary Relation
A unary relation R on X is a 1-ary relation
Binary Relation

A binary relation R is a 2-ary relation, when (x,y)∈R, then we write xRy to say that x is related to y.

Note: A binary relation on XΓ—X is stated simply as a relation on X

The Reverse of a Binary Relation
Suppose that R is a binary relation then rev(R):={(y,x):(x,y)∈R}
set filtered by a relation
Suppose that X is a set, and that R is a unary relation on X, then we define XR:={a∈X:a∈R}
reflexive relation
Given a binary relation R on X, we say it is reflexive when every element of X is related to itself. Symbolically βˆ€x∈X,xRx
symmetric relation
Given a binary relation R on X, we say it is symmetric if the relation goes both ways, that is for any x,y∈X if xRy then yRx
Anti-Symmetric Relation
Given a binary relation R on X, we say it is anti-symmetric when for any x,y∈X, if xRy and yRx we have that x=y
Asymmetric Relation
Given a binary relation R on X, we say it is asymmetric when for any x,y∈X, if xRy then it's false that yRx.
Transitive Relation
Given a binary relation R on X, we say it is transitive if for any x,y,z∈X if xRy and yRz then yRx
The Subset Relation Is Transitive
Suppose that A,B,C are sets, then if AβŠ†B and BβŠ†C then AβŠ†C
Equivalence Relation

An equivalence relation is a reflexive, symmetric and transitive relation

when R is an equivalence relation, we denote it by ~ instead of R

Connected Relation
Given a binary relation R on X, we say it is connected if for any x,y∈X if xβ‰ y then xRy or yRx
Strongly Connected Relation
Given a binary relation R on X, we say it is strongly connected if for any x,y∈X xRy or yRx
Equivalence Class
Given an equivalence relation ~ an equivalence class is a complete set of equivalent elements, which we denote by [x] which is defined to be the set {y∈X:y~x}
Equivalence Classes Are Either Equal or Disjoint
Suppose that (X,~) is an equivalence relation, then given a,b∈X then either
  • [a]=[b]
  • [a]∩[b]=βˆ…
A Set Is a Union of Its Equivalence Classes
Suppose that (X,~) is an equivalence relation, then ⋃a∈X[a]=X
The Set of Equivalence Classes Is a Partition of X
Suppose that (X,~) is an equivalence relation then the set {[a]:a∈X} is a partition of X
A Set Modulo an Equivalence Relation
Suppose that (X,~) is an equivalence relation and P={[pα],α∈I} a partition of X X⧡~:=P

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 (X,~) is an equivalence relation then for any p∈X we define the almost trivial function unpack([p])=p

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 X, in other words unpack(X⧡~)βŠ†X, is a collection of "representatives" in X.

Congruences induce a Equivalence Relation
Fix nβˆˆβ„•1, then relation on β„€ by aRb if and only if a%n=b%n defines an equivalence relation
Induced Equivalence Relation
Suppose that suppose that we have a relation on X, then we can extend it to an equivalence relation by adding the minimal number of tuples (a,b) to construct Rβ€² so that Rβ€² is an equivalence relation. We denote this by ~(R)=Rβ€²
Partial Order

A partial order is a binary relation denoted by ≀ on a set X such that ≀ is reflexive, anti-symmetric and transitive relation.

The Subset Relation Is a Partial Order
Suppose that X is a set of sets, then (X,βŠ†) is a partial order
Strict Partial Order
A strict partial order is a binary relation denoted by < on a set X such that < is transitive and asymmetric.
Every Partial Order Admits a Strict Partial Order
Suppose that (X,≀) is a partial order, then there exists a relation < such that (X,<) is a partial order such that a<b⟺(a≀b∧aβ‰ b)
Comparable
Suppose R is a partial order, then elements a,b∈R are said to be comparable if aRb or bRa, otherwise they are said to be incomparable

With the strict partial order βŠ‚ we can see that {1} and {2} are incomparable.

Total Order
A total order is a partial order which is strongly connected.

Note that a total order is sometimes known as a simple order.

well order
A well order on a set S is a total order on S along with the property that every non-empty subset of S has a least element under this ordering
well ordering
Every set X can be well ordered
The Smallest Element of a Set is Unique
Supose that (S,≀) is a partial order, then the smallest element is unique
Interval
Suppose that (S,≀) is a partial order, then a subset AβŠ†S is defined to be an interval if: βˆ€x,y∈A,βˆ€t∈S:x≀t≀y⟹t∈A. and we denote A=(x,y)
Intersection of Intervals
The intersection of any collection of intervals in a general ordered set is also an interval.