Transitive relation
Type of binary relation
In mathematics, a binary relation R on a set X is transitive if, for all elements a, b, c in X, whenever R relates a to b and b to c, then R also relates a to c.
Every partial order and every equivalence relation is transitive. For example, less than and equality among real numbers are both transitive: If a < b and b < c then a < c; and if x = y and y = z then x = z.
01Definition
A homogeneous relation R on the set X is a transitive relation if,
- for all a, b, c ∈ X, if a R b and b R c, then a R c.
Or in terms of first-order logic:
,
where a R b is the infix notation for (a, b) ∈ R.

02Examples
As a non-mathematical example, the relation "is an ancestor of" is transitive. For example, if Amy is an ancestor of Becky, and Becky is an ancestor of Carrie, then Amy is also an ancestor of Carrie.
On the other hand, "is the birth mother of" is not a transitive relation, because if Alice is the birth mother of Brenda, and Brenda is the birth mother of Claire, then it does not follow that Alice is the birth mother of Claire. In fact, this relation is antitransitive: Alice can never be the birth mother of Claire.
Non-transitive, non-antitransitive relations include sports fixtures (playoff schedules), 'knows' and 'talks to'.
The examples "is greater than", "is at least as great as", and "is equal to" (equality) are transitive relations on various sets. As are the set of real numbers or the set of natural numbers:
- whenever x > y and y > z, then also x > z
- whenever x ≥ y and y ≥ z, then also x ≥ z
- whenever x = y and y = z, then also x = z.
More examples of transitive relations:
- "is a subset of" (set inclusion, a relation on sets)
- "divides" (divisibility, a relation on natural numbers)
- "implies" (implication, symbolized by "⇒", a relation on propositions)
Examples of non-transitive relations:
- "is the successor of" (a relation on natural numbers)
- "is a member of the set" (symbolized as "∈")
- "is perpendicular to" (a relation on lines in Euclidean geometry)
The empty relation on any set is transitive because there are no elements
such that
and
, and hence the transitivity condition is vacuously true. A relation R containing only one ordered pair is also transitive: if the ordered pair is of the form
for some
the only such elements
are
, and indeed in this case
, while if the ordered pair is not of the form
then there are no such elements
and hence
is vacuously transitive.
Vacuous transitivity is transitivity when in a relation there are no ordered pairs of the form (a,b) and (b,c).
03Properties
Closure properties
- The converse (inverse) of a transitive relation is always transitive. For instance, knowing that "is a subset of" is transitive and "is a superset of" is its converse, one can conclude that the latter is transitive as well.
- The intersection of two transitive relations is always transitive. For instance, knowing that "was born before" and "has the same first name as" are transitive, one can conclude that "was born before and also has the same first name as" is also transitive.
- The union of two transitive relations need not be transitive. For instance, "was born before or has the same first name as" is not a transitive relation, since e.g. Herbert Hoover is related to Franklin D. Roosevelt, who is in turn related to Franklin Pierce, while Hoover is not related to Franklin Pierce.
- The complement of a transitive relation need not be transitive. For instance, while "equal to" is transitive, "not equal to" is only transitive on sets with at most one element.
Other properties
A transitive relation is asymmetric if and only if it is irreflexive.
A transitive relation need not be reflexive. When it is, it is called a preorder. For example, on set X = {1,2,3}:
- R = { (1,1), (2,2), (3,3), (1,3), (3,2) } is reflexive, but not transitive, as the pair (1,2) is absent,
- R = { (1,1), (2,2), (3,3), (1,3) } is reflexive as well as transitive, so it is a preorder,
- R = { (1,1), (2,2), (3,3) } is reflexive as well as transitive, another preorder,
- R = { (1,2), (2,3), (1,3) } is transitive, but not reflexive.
As a counter example, the relation on the real numbers is transitive, but not reflexive.
04Transitive extensions and transitive closure
Let R be a binary relation on set X. The transitive extension of R, denoted R1, is the smallest binary relation on X such that R1 contains R, and if (a, b) ∈ R and (b, c) ∈ R then (a, c) ∈ R1. For example, suppose X is a set of towns, some of which are connected by roads. Let R be the relation on towns where (A, B) ∈ R if there is a road directly linking town A and town B. This relation need not be transitive. The transitive extension of this relation can be defined by (A, C) ∈ R1 if you can travel between towns A and C by using at most two roads.
If a relation is transitive then its transitive extension is itself, that is, if R is a transitive relation then R1 = R.
The transitive extension of R1 would be denoted by R2, and continuing in this way, in general, the transitive extension of Ri would be Ri + 1. The transitive closure of R, denoted by R* or R∞ is the set union of R, R1, R2, ... .
The transitive closure of a relation is a transitive relation.
The relation "is the birth parent of" on a set of people is not a transitive relation. However, in biology the need often arises to consider birth parenthood over an arbitrary number of generations: the relation "is a birth ancestor of" is a transitive relation and it is the transitive closure of the relation "is the birth parent of".
For the example of towns and roads above, (A, C) ∈ R* provided you can travel between towns A and C using any number of roads.
05Relation types that require transitivity
- Preorder, a reflexive and transitive relation
- Partial order, an antisymmetric preorder
- Total preorder, a connected (formerly called total) preorder
- Equivalence relation, a symmetric preorder
- Strict weak ordering, a strict partial order in which incomparability is an equivalence relation
- Total ordering, a connected (total), antisymmetric, and transitive relation
06Counting transitive relations
No general formula that counts the number of transitive relations on a finite set (sequence A006905 in the OEIS) is known. However, there is a formula for finding the number of relations that are simultaneously reflexive, symmetric, and transitive, in other words, equivalence relations, (sequence A000110 in the OEIS), those that are symmetric and transitive, those that are symmetric, transitive, and antisymmetric, and those that are total, transitive, and antisymmetric. Pfeiffer has made some progress in this direction, expressing relations with combinations of these properties in terms of each other, but still calculating any one is difficult. See also Brinkmann and McKay (2005) and Mala (2022).
Since the reflexivization of any transitive relation is a preorder, the number of transitive relations on an n-element set is at most the 2n-fold of the number of preorders, thus it is asymptotically by results of Kleitman and Rothschild.
| Elements | Any | Transitive | Reflexive | Symmetric | Preorder | Partial order | Total preorder | Total order | Equivalence relation |
|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 2 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 |
| 2 | 16 | 13 | 4 | 8 | 4 | 3 | 3 | 2 | 2 |
| 3 | 512 | 171 | 64 | 64 | 29 | 19 | 13 | 6 | 5 |
| 4 | 65,536 | 3,994 | 4,096 | 1,024 | 355 | 219 | 75 | 24 | 15 |
| n | 2n2 | 2n(n−1) | 2n(n+1)/2 | ∑n k=0 k!S(n, k) |
n! | ∑n k=0 S(n, k) | |||
| OEIS | A002416 | A006905 | A053763 | A006125 | A000798 | A001035 | A000670 | A000142 | A000110 |
Note that S(n, k) refers to Stirling numbers of the second kind.
Sources and credits
This article is adapted from the Wikipedia article “Transitive relation”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Images, from Wikimedia Commons:
- Rock-paper-scissors.svg by Original: Enzoklop Edit: OmegaFallon Translations: Asturian: YoaR Central Kurdish: Aram Czech: Podzemnik German: Enzoklop and Antonsusi Spanish: Orgullomoore French: JB Hungarian: Bencoke Italian: Number55 Japanese: Nesnad Latvian: Turaids Norwegian: Enzoklop and Antonsusi Polish: MesserWoland and Mareklug Portuguese: Nottimeeew00 Romanian: MonicaAbrudan Russian: Orange-kun Swedish: Enzoklop and Antonsusi Ukrainian: Володимир Ф Simplified Chinese: Taiwania Justo Traditional Chinese: Taiwania Justo, CC BY-SA 3.0
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.