Preorders and Reflexive-Transitive Closure
Preorders
Definition
A relation on is a preorder if it is:
- Reflexive:
- Transitive:
A preorder captures a notion of “being related through a chain of steps” with the base case of being related to oneself.
Examples
- on : reflexive and transitive
- on : reflexive and transitive
- Reachability in a directed graph: always a preorder
- Divisibility on : reflexive and transitive
Partial Orders
Definition
A partial order is a preorder that is also antisymmetric:
Preorder vs Partial Order
A preorder may have distinct elements with and .
Example: ” and live in the same country” is a preorder but not a partial order.
Example: Divisibility on is a preorder: and , but .
Quotient to Partial Order
Every preorder induces an equivalence relation:
On the quotient , the induced relation is a partial order.
Operations on Preorders
Intersection
If and are preorders on , then is a preorder.
Proof: Reflexive since and , so . Transitive since if and , then and , so .
Composition
If and are preorders, need not be a preorder.
Example: Let and be any preorder. Then is a preorder. But for other relations, composition can fail transitivity.
Reflexive-Transitive Closure
Definition
For any relation on , the reflexive-transitive closure is:
where and .
Alternative Definition
This is the intersection of all preorders containing .
Examinable Proof: Equivalence of Definitions
Theorem: The two definitions of coincide.
Proof:
Step 1: as defined by union is a preorder containing .
- : Clear since .
- Reflexive: .
- Transitive: If and , there exist with and . Then .
Step 2: is contained in every preorder containing .
Let be a preorder with . By induction, for all .
- Base: by reflexivity.
- Step: by transitivity.
Thus .
Step 3: Since is a preorder containing and is contained in all such preorders, it equals their intersection.
Transitive Closure
The transitive closure is defined similarly but without reflexivity:
This is the smallest transitive relation containing .
Relationship
Computing Closure via Matrix
For an -vertex graph with adjacency matrix :
This computes efficiently.
Summary
- A preorder is reflexive and transitive
- A partial order is a preorder that is also antisymmetric
- is the reflexive-transitive closure
- is the smallest preorder containing