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: aA.aRa\forall a \in A. aRa
  2. Transitive: a,b,cA.(aRbbRcaRc)\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:

aRbbRaa=baRb \land bRa \Rightarrow a = b

Preorder vs Partial Order

A preorder may have distinct elements aba \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: 11-1 \mid 1 and 111 \mid -1, but 11-1 \neq 1.

Quotient to Partial Order

Every preorder RR induces an equivalence relation:

ab    aRbbRaa \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 RSR \cap S is a preorder.

Proof: Reflexive since aRaaRa and aSaaSa, so a(RS)aa(R \cap S)a. Transitive since if a(RS)ba(R \cap S)b and b(RS)cb(R \cap S)c, then aRbaSbaRb \land aSb and bRcbScbRc \land bSc, so aRcaScaRc \land aSc.

Composition

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

Example: Let R=idR = \text{id} and SS be any preorder. Then RS=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=n0RnR^{\circ *} = \bigcup_{n \geq 0} R^{\circ n}

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

Alternative Definition

R={P:RP,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 RR^{\circ *} coincide.

Proof:

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

  • RRR \subseteq R^{\circ *}: Clear since R1=RR^{\circ 1} = R.
  • Reflexive: R0=idRR^{\circ 0} = \text{id} \subseteq R^{\circ *}.
  • Transitive: If aRba R^{\circ *} b and bRcb R^{\circ *} c, there exist m,nm, n with aRmba R^{\circ m} b and bRncb R^{\circ n} c. Then aR(m+n)ca R^{\circ (m+n)} c.

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

Let PP be a preorder with RPR \subseteq P. By induction, RnPR^{\circ n} \subseteq P for all nn.

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

Thus RPR^{\circ *} \subseteq P.

Step 3: Since RR^{\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+=n1RnR^{\circ +} = \bigcup_{n \geq 1} R^{\circ n}

This is the smallest transitive relation containing RR.

Relationship

R=idR+R^{\circ *} = \text{id} \cup R^{\circ +}

Computing Closure via Matrix

For an nn-vertex graph with adjacency matrix MM:

M=IMM2M(n1)M^* = I \oplus M \oplus M^{\otimes 2} \oplus \cdots \oplus M^{\otimes (n-1)}

This computes RR^{\circ *} efficiently.


Summary

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