ΘρϵηΠατπ

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:={aX:aR}
reflexive relation
Given a binary relation R on X, we say it is reflexive when every element of X is related to itself. Symbolically xX,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,yX if xRy then yRx
Anti-Symmetric Relation
Given a binary relation R on X, we say it is anti-symmetric when for any x,yX, 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,yX, 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,zX if xRy and yRz then yRx
The Subset Relation Is Transitive
Suppose that A,B,C are sets, then if AB and BC then AC
Suppose that aA then aB and so aC as needed.
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,yX if xy then xRy or yRx
Strongly Connected Relation
Given a binary relation R on X, we say it is strongly connected if for any x,yX 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 {yX:yx}
Equivalence Classes Are Either Equal or Disjoint
Suppose that (X,) is an equivalence relation, then given a,bX then either
  • [a]=[b]
  • [a][b]=

If it's the case that p[a][b] then we know ap and pb therefore ab. Now given any x[a] we see that xab so that xb so that x[b] therefore [a][b], similarly given any y[b] then yba so that y[a] therefore [b][a] so we have [a]=[b]

On the other hand if we know that [a][b]\eq then what we want to prove is certainly true.

A Set Is a Union of Its Equivalence Classes
Suppose that (X,) is an equivalence relation, then aX[a]=X
We know that the left-hand side is a subset, but then it is also a superset because given any point pX then p[p] so it must be in the union
The Set of Equivalence Classes Is a Partition of X
Suppose that (X,) is an equivalence relation then the set {[a]:aX} is a partition of X
We already know that they cover the set, so now suppose that [a][b]X then since they are not equal they are disjoint, as needed.
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 pX 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 n1, then relation on by aRb if and only if a%n=b%n defines an equivalence relation

Given any aG, then clearly a%n=a%n so that aRa, if aRb, then a%n=b%n and then b%n=a%n, finally if a%n=b%n and b%n=c%n therefore a%n=c%n

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 𝒳 is a set of sets, then (𝒳,) is a partial order
It is true that for any set X𝒳 we have XX, thus it is reflexive, also we know that if A,B𝒳 then if AB and BA we have A=B so it is anti symmetric, finally we already know it is transitive.
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(abab)
Consider the partial order (X,), since is a collection of tuples we just need to consider <={(x,x):xX}
Comparable
Suppose R is a partial order, then elements a,bR 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
TODO
The Smallest Element of a Set is Unique
Supose that (S,) is a partial order, then the smallest element is unique
Suppose that there are two smallest elements a,bS since a is the smallest then ab and since b is the smallest then ba by transitivity a=b and so the smallest element is unique.
Interval
Suppose that (S,) is a partial order, then a subset AS is defined to be an interval if: x,yA,tS:xtytA. 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.

Let be a collection of intervals in S, let's prove A:=𝒜 is also an interval.

Suppose x,yA and xty for some tS. We must show that tA. Since x and y are in A, and A is the intersection of all Ai, it follows that: xAi and yAi for all iI.

Since each Ai is an interval, for every iI we have xtytAi. so that tAi for all iI consequently, tiIAi=A.