ΘρϵηΠατπ

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
Suppose that a∈A then a∈B and so a∈C 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,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]=∅

If it's the case that p∈[a]∩[b] then we know a∼p and p∼b therefore a∼b. Now given any x∈[a] we see that x∼a∼b so that x∼b so that x∈[b] therefore [a]⊆[b], similarly given any y∈[b] then y∼b∼a so that y∈[a] therefore [b]⊆[a] so we have [a]=[b]

On the other hand if we know that [a]∩[b]=∅ 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 ⋃a∈X[a]=X
We know that the left-hand side is a subset, but then it is also a superset because given any point p∈X 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]:a∈X} 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 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

Given any a∈G, 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 X⊆X, thus it is reflexive, also we know that if A,B∈𝒳 then if A⊆B and B⊆A 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⟺(a≤b∧a≠b)
Consider the partial order (X,≤), since ≤ is a collection of tuples we just need to consider <=≤∖{(x,x):x∈X}
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
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,b∈S since a is the smallest then a≤b and since b is the smallest then b≤a by transitivity a=b and so 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.

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

Suppose x,y∈A and x≤t≤y for some t∈S. We must show that t∈A. Since x and y are in A, and A is the intersection of all Ai, it follows that: x∈Ai and y∈Ai for all i∈I.

Since each Ai is an interval, for every i∈I we have x≤t≤y⟹t∈Ai. so that t∈Ai for all i∈I consequently, t∈⋂i∈IAi=A.