Skip to content
Part IA Michaelmas, Lent Term

Preorders and Reflexive-Transitive Closure

Preorders

Definition

A relation RR on AA is a preorder if it is:

  1. Reflexive: ∀a∈A.aRa\forall a \in A. aRa
  2. Transitive: ∀a,b,c∈A.(aRb∧bRc⇒aRc)\forall a, b, c \in A. (aRb \land bRc \Rightarrow aRc)

A preorder captures a notion of “being related through a chain of steps” with the base case of being related to oneself.

Examples

  • ≤\leq on R\mathbb{R}: reflexive and transitive
  • ⊆\subseteq on P(X)\mathcal{P}(X): reflexive and transitive
  • Reachability in a directed graph: always a preorder
  • Divisibility ∣\mid on Z+\mathbb{Z}^+: reflexive and transitive

Partial Orders

Definition

A partial order is a preorder that is also antisymmetric:

aRb∧bRa⇒a=baRb \land bRa \Rightarrow a = b

Preorder vs Partial Order

A preorder may have distinct elements a≠ba \neq b with aRbaRb and bRabRa.

Example: ”xx and yy live in the same country” is a preorder but not a partial order.

Example: Divisibility on Z\mathbb{Z} is a preorder: −1∣1-1 \mid 1 and 1∣−11 \mid -1, but −1≠1-1 \neq 1.

Quotient to Partial Order

Every preorder RR induces an equivalence relation:

a∼b  ⟺  aRb∧bRaa \sim b \iff aRb \land bRa

On the quotient A/∼A / {\sim}, the induced relation is a partial order.

Operations on Preorders

Intersection

If RR and SS are preorders on AA, then R∩SR \cap S is a preorder.

Proof: Reflexive since aRaaRa and aSaaSa, so a(R∩S)aa(R \cap S)a. Transitive since if a(R∩S)ba(R \cap S)b and b(R∩S)cb(R \cap S)c, then aRb∧aSbaRb \land aSb and bRc∧bScbRc \land bSc, so aRc∧aScaRc \land aSc.

Composition

If RR and SS are preorders, R∘SR \circ S need not be a preorder.

Example: Let R=idR = \text{id} and SS be any preorder. Then R∘S=SR \circ S = S is a preorder. But for other relations, composition can fail transitivity.

Reflexive-Transitive Closure

Definition

For any relation RR on AA, the reflexive-transitive closure is:

R∘∗=⋃n≥0R∘nR^{\circ *} = \bigcup_{n \geq 0} R^{\circ n}

where R∘0=idAR^{\circ 0} = \text{id}_A and R∘(n+1)=R∘R∘nR^{\circ (n+1)} = R \circ R^{\circ n}.

Alternative Definition

R∘∗=⋂{P:R⊆P,P is a preorder}R^{\circ *} = \bigcap \{P : R \subseteq P, P \text{ is a preorder}\}

This is the intersection of all preorders containing RR.

Examinable Proof: Equivalence of Definitions

Theorem: The two definitions of R∘∗R^{\circ *} coincide.

Proof:

Step 1: R∘∗R^{\circ *} as defined by union is a preorder containing RR.

  • R⊆R∘∗R \subseteq R^{\circ *}: Clear since R∘1=RR^{\circ 1} = R.
  • Reflexive: R∘0=id⊆R∘∗R^{\circ 0} = \text{id} \subseteq R^{\circ *}.
  • Transitive: If aR∘∗ba R^{\circ *} b and bR∘∗cb R^{\circ *} c, there exist m,nm, n with aR∘mba R^{\circ m} b and bR∘ncb R^{\circ n} c. Then aR∘(m+n)ca R^{\circ (m+n)} c.

Step 2: R∘∗R^{\circ *} is contained in every preorder containing RR.

Let PP be a preorder with R⊆PR \subseteq P. By induction, R∘n⊆PR^{\circ n} \subseteq P for all nn.

  • Base: R∘0=id⊆PR^{\circ 0} = \text{id} \subseteq P by reflexivity.
  • Step: R∘(n+1)=R∘R∘n⊆P∘P⊆PR^{\circ (n+1)} = R \circ R^{\circ n} \subseteq P \circ P \subseteq P by transitivity.

Thus R∘∗⊆PR^{\circ *} \subseteq P.

Step 3: Since R∘∗R^{\circ *} is a preorder containing RR and is contained in all such preorders, it equals their intersection.

Transitive Closure

The transitive closure R∘+R^{\circ +} is defined similarly but without reflexivity:

R∘+=⋃n≥1R∘nR^{\circ +} = \bigcup_{n \geq 1} R^{\circ n}

This is the smallest transitive relation containing RR.

Relationship

R∘∗=id∪R∘+R^{\circ *} = \text{id} \cup R^{\circ +}

Computing Closure via Matrix

For an nn-vertex graph with adjacency matrix MM:

M∗=I⊕M⊕M⊗2⊕⋯⊕M⊗(n−1)M^* = I \oplus M \oplus M^{\otimes 2} \oplus \cdots \oplus M^{\otimes (n-1)}

This computes R∘∗R^{\circ *} efficiently.


Summary

  • A preorder is reflexive and transitive
  • A partial order is a preorder that is also antisymmetric
  • R∘∗=⋃n≥0R∘nR^{\circ *} = \bigcup_{n \geq 0} R^{\circ n} is the reflexive-transitive closure
  • R∘∗R^{\circ *} is the smallest preorder containing RR