
A relation may fail to have a desired property because some pairs are missing. A closure repairs this by adding every required pair and no unnecessary ones. Reflexive closure adds missing loops, symmetric closure adds missing reverse edges, and transitive closure adds the shortcuts forced by directed walks.
The operations and powers in Note 1.2 and the matrix and digraph representations in Note 1.4 provide three ways to describe these constructions. Throughout this note, is a relation on a specified set , and is its identity relation.
1. Closures and Minimality
For a property , a -closure of , when it exists, is a relation satisfying all three conditions:
- Containment: .
- The required property: has property .
- Leastness under inclusion: whenever and has property , we have .
The third condition means that every pair added to is forced: it must occur in every possible relation with the first two conditions. Finding just one larger relation with property does not establish that it is the closure.
If two relations and both satisfy these conditions, leastness gives and , so . A closure is therefore unique whenever it exists.
The underlying set matters. The reflexive closure of the empty relation on is , while on it is , even though the original set of pairs is the same.
Not every property permits a closure for every input. For example, if , no irreflexive relation can contain : adding pairs cannot remove that loop. The three closure constructions below, however, exist for every relation on .
2. Reflexive and Symmetric Closures
Constructions and Their Proofs
The reflexive closure is
It contains and every pair , so it is reflexive. Any reflexive relation containing must also contain , hence must contain . This proves leastness. Existing loops remain unchanged; only missing loops are added.
The symmetric closure is
It contains . If belongs to either or , its reverse belongs to the other, so the union is symmetric. If a symmetric relation contains , it must contain the reverse of every pair of , and therefore . Thus , proving leastness.
With a fixed ordering of the finite set , these constructions have equivalent matrix and graph forms:
| Closure | Zero-one matrix | Digraph construction |
|---|---|---|
| Reflexive | Add a loop at every vertex lacking one | |
| Symmetric | Add a reverse edge wherever it is missing |
Here , is the identity matrix, and is entrywise OR. Symmetric closure does not automatically add loops: reversing an edge between distinct vertices does not create one.
Example: Two different repairs of the same relation. Let and . Find its reflexive and symmetric closures, and determine how the isolated vertex changes in each construction.
Show solution and steps
The loop at is already present; the loops at are missing. Therefore
The missing reverses are and , giving
Vertex receives a loop in the reflexive closure. It remains isolated in the symmetric closure because no original edge has as an endpoint. In both cases it remains part of the underlying set.

3. Transitive Closure and Reachability
From Walks to Forced Pairs
A directed walk of length from to is a sequence
such that for every . Vertices and edges may repeat. Its length counts edges, not vertices. A length-zero walk stays at its starting vertex and uses no edge.
For each positive integer ,
For , this is the definition of an edge. Inductively, membership in means that an initial edge can be followed by an -edge walk. Conversely, splitting a walk after its first edge gives the intermediate element required for this composition.
The relation of positive-length reachability is
It is the transitive closure, also denoted . The three closure conditions explain why:
- It contains because the union includes .
- If reaches and reaches by positive-length walks, concatenating those walks gives a positive-length walk from to . Hence is transitive.
- Any transitive relation containing must contain the endpoints of every finite positive-length walk in . It therefore contains every and their union. This proves leastness.
Adding only the shortcuts from the original two-edge walks may leave longer connections unresolved. The closure must account for walks of every positive length, including those that create new two-edge connections after earlier additions.
Positive Length and Zero Length
This series uses the following distinct notations:
is the reflexive transitive closure. It includes the length-zero walk at every vertex. In contrast, only if there is a positive-length closed walk from back to itself. A transitive closure can therefore add some loops without being reflexive on the whole set.
For example, the transitive closure of on is itself. There is no positive-length return walk at either vertex, so neither loop belongs to . Both loops belong to .
A Relation with a Return Walk and an Outgoing Chain
Example: Powers and transitive closure. On , let
Find , , and . Give the matrix of in the order , and explain which loops the closure contains.
Show solution and steps
List the endpoints of walks of the indicated length:
From either 1 or 2, all four vertices can be reached. From 3, only 4 can be reached by a positive-length walk. Vertex 4 has no outgoing edge. Consequently,
and
The walks and force the loops at 1 and 2. There is no positive-length return walk at 3 or 4. Thus is transitive but is not reflexive on .

The powers do not eventually become constant: and , and this alternation continues. A power records an exact walk length, whereas the closure collects all positive lengths. In this example, already gives the full closure.
4. Finite Computation and Closure Properties
Why the First n Powers Are Enough
Let be finite and nonempty with . If a positive-length walk from to exists, choose one with the smallest positive length.
If , this shortest walk cannot repeat a vertex. A repeated vertex would enclose a closed portion that could be deleted, leaving a shorter walk with the same distinct endpoints. It therefore uses at most vertices and edges.
If , a shortest positive return walk has no repeated vertex other than its first and last vertex. An internal repetition could again be deleted, and an earlier return to would itself be a shorter positive return walk. Such a walk has at most edges.
Combining the two cases gives
For its matrix, with Boolean powers as in Note 1.4,
The bound must include , even though distinct endpoints require at most edges. In the directed cycle , the first positive return to 1 has length 3. Truncating at would miss and the other two loops.
This result bounds the powers needed in the union; it does not say that equals the closure or that later powers stop changing. If , its only relation and all three closures are empty.
Properties Shared by the Three Constructions
For or , the following laws hold on the same underlying set:
| Law | Statement | Reason |
|---|---|---|
| Extensiveness | A closure contains its input | |
| Fixed-point criterion | iff already has the required property | itself is then the least suitable superrelation |
| Monotonicity | has the property and contains , so leastness applies | |
| Idempotence | The first closure already has the required property |
The fixed-point criterion gives quick tests: precisely when is reflexive, precisely when it is symmetric, and precisely when it is transitive. Idempotence concerns applying the same closure twice; it does not say that different closure operations are interchangeable.
5. Worked Practice and Self-Check
Computing All Three Closures
Exercise. On , let
Find , , and . For each, list the pairs added to , then give the complete resulting relation.
Show solution and steps
Reflexive closure. Only the loop at 2 is missing:
Symmetric closure. Reverse each pair of . Existing loops are their own reverses; the missing reverses are . Thus
Transitive closure. The walk forces , forces , and forces . The reachable targets are
| Start | Targets reachable by positive-length walks |
|---|---|
| 1 | 1, 4 |
| 2 | 1, 3, 4 |
| 3 | 1, 3, 4 |
| 4 | 4 |
No further targets are reachable. Therefore
The added pairs are exactly . In particular, no loop at 2 is forced: there is no walk returning to 2.
Review Questions
- On , let . Find and . Which pairs distinguish them?
- On , let . Is its symmetric closure transitive? Find its transitive closure and explain why it adds loops.
- Suppose and is transitive. Prove . Must equality hold? Give a counterexample if not.
Show self-check answers
- Only is newly reachable, so . Then . None of these four loops belongs to because the original graph has no positive-length closed walk.
- is already symmetric, so . It is not transitive: and force , which is absent. Its transitive closure is . Both loops are endpoints of two-edge return walks.
- This is the leastness condition for the transitive closure: every pair in is forced in every transitive superrelation of . Equality is not required. On , take and . Then but .
For a systematic matrix computation of the same reachability relation, continue to Note 1.6: Computing Transitive Closures with the Warshall Algorithm.
Glossary and Sources
| Term | Main idea |
|---|---|
| Closure | The least relation containing the input and satisfying a specified property |
| Reflexive closure | Add every missing pair |
| Symmetric closure | Add the reverse of every pair |
| Transitive closure | Record all positive-length reachability |
| Reflexive transitive closure | Include zero-length reachability as well |
| Idempotence | Applying the same closure again leaves the result unchanged |
- Course slides.
- Figures 1 and 2 are cropped from course slides, with their original diagram labels retained. The review questions and their explanations are constructed from the definitions.
- The notation denotes positive-length reachability throughout this series; includes the identity relation. The distinction is defined in Section 3 above.
Updated: