Transitive relation

From HandWiki
Short description: Type of binary relation
Transitive relation
TypeBinary relation
FieldElementary algebra
StatementA relation [math]\displaystyle{ R }[/math] on a set [math]\displaystyle{ X }[/math] is transitive if, for all elements [math]\displaystyle{ a }[/math], [math]\displaystyle{ b }[/math], [math]\displaystyle{ c }[/math] in [math]\displaystyle{ X }[/math], whenever [math]\displaystyle{ R }[/math] relates [math]\displaystyle{ a }[/math] to [math]\displaystyle{ b }[/math] and [math]\displaystyle{ b }[/math] to [math]\displaystyle{ c }[/math], then [math]\displaystyle{ R }[/math] also relates [math]\displaystyle{ a }[/math] to [math]\displaystyle{ c }[/math].

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, inequality 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.


A homogeneous relation R on the set X is a transitive relation if,[1]

for all a, b, cX, if a R b and b R c, then a R c.

Or in terms of first-order logic:

[math]\displaystyle{ \forall a,b,c \in X: (aRb \wedge bRc) \Rightarrow aRc }[/math],

where a R b is the infix notation for (a, b) ∈ R.


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, too, is an ancestor of Carrie.

On the other hand, "is the birth parent of" is not a transitive relation, because if Alice is the birth parent of Brenda, and Brenda is the birth parent of Claire, then this does not imply that Alice is the birth parent of Claire. What is more, it is antitransitive: Alice can never be the birth parent of Claire.

Non-transitive, non-antitransitive relations include sports fixtures (playoff schedules), 'knows' and 'talks to'.

"Is greater than", "is at least as great as", and "is equal to" (equality) are transitive relations on various sets, for instance, the set of real numbers or the set of natural numbers:

whenever x > y and y > z, then also x > z
whenever xy and yz, then also xz
whenever x = y and y = z, then also x = z.

More examples of transitive relations:

Examples of non-transitive relations:

The empty relation on any set [math]\displaystyle{ X }[/math] is transitive[3][4] because there are no elements [math]\displaystyle{ a,b,c \in X }[/math] such that [math]\displaystyle{ aRb }[/math] and [math]\displaystyle{ bRc }[/math], 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 [math]\displaystyle{ (x, x) }[/math] for some [math]\displaystyle{ x \in X }[/math] the only such elements [math]\displaystyle{ a,b,c \in X }[/math] are [math]\displaystyle{ a=b=c=x }[/math], and indeed in this case [math]\displaystyle{ aRc }[/math], while if the ordered pair is not of the form [math]\displaystyle{ (x, x) }[/math] then there are no such elements [math]\displaystyle{ a,b,c \in X }[/math] and hence [math]\displaystyle{ R }[/math] is vacuously transitive.


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.[5] 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.[6] 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.[7]

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.

Transitive extensions and transitive closure

Main page: 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.[8] 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, ... .[9]

The transitive closure of a relation is a transitive relation.[9]

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.

Relation types that require transitivity

Counting transitive relations

No general formula that counts the number of transitive relations on a finite set (sequence A006905 in the OEIS) is known.[10] 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[11] 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).[12] Mala showed that no polynomial with integer coefficients can represent a formula for the number of transitive relations on a set,[13] and found certain recursive relations that provide lower bounds for that number. He also showed that that number is a polynomial of degree two if the set[clarify] contains exactly two ordered pairs.[14]

Number of n-element binary relations of different types
Elem­ents Any Transitive Reflexive Preorder Partial order Total preorder Total order Equivalence relation
0 1 1 1 1 1 1 1 1
1 2 2 1 1 1 1 1 1
2 16 13 4 4 3 3 2 2
3 512 171 64 29 19 13 6 5
4 65,536 3,994 4,096 355 219 75 24 15
n 2n2 2n2n n
k! S(n, k)
n! n
S(n, k)
OEIS A002416 A006905 A053763 A000798 A001035 A000670 A000142 A000110

Related properties

Cycle diagram
The Rock–paper–scissors game is based on an intransitive and antitransitive relation "x beats y".

A relation R is called intransitive if it is not transitive, that is, if xRy and yRz, but not xRz, for some x, y, z. In contrast, a relation R is called antitransitive if xRy and yRz always implies that xRz does not hold. For example, the relation defined by xRy if xy is an even number is intransitive,[15] but not antitransitive.[16] The relation defined by xRy if x is even and y is odd is both transitive and antitransitive.[17] The relation defined by xRy if x is the successor number of y is both intransitive[18] and antitransitive.[19] Unexpected examples of intransitivity arise in situations such as political questions or group preferences.[20]

Generalized to stochastic versions (stochastic transitivity), the study of transitivity finds applications of in decision theory, psychometrics and utility models.[21]

A quasitransitive relation is another generalization;[6] it is required to be transitive only on its non-symmetric part. Such relations are used in social choice theory or microeconomics.[22]

Proposition: If R is a univalent, then R;RT is transitive.

proof: Suppose [math]\displaystyle{ x R;R^T y R;R^T z. }[/math] Then there are a and b such that [math]\displaystyle{ x R a R^T y R b R^T z . }[/math] Since R is univalent, yRb and aRTy imply a=b. Therefore xRaRTz, hence xR;RTz and R;RT is transitive.

Corollary: If R is univalent, then R;RT is an equivalence relation on the domain of R.

proof: R;RT is symmetric and reflexive on its domain. With univalence of R, the transitive requirement for equivalence is fulfilled.

See also


  1. Smith, Eggen & St. Andre 2006, p. 145
  2. However, the class of von Neumann ordinals is constructed in a way such that ∈ is transitive when restricted to that class.
  3. Smith, Eggen & St. Andre 2006, p. 146
  4.[bare URL PDF]
  5. Bianchi, Mariagrazia; Mauri, Anna Gillio Berta; Herzog, Marcel; Verardi, Libero (2000-01-12). "On finite solvable groups in which normality is a transitive relation". Journal of Group Theory 3 (2). doi:10.1515/jgth.2000.012. ISSN 1433-5883. Retrieved 2022-12-29. 
  6. 6.0 6.1 Robinson, Derek J. S. (January 1964). "Groups in which normality is a transitive relation" (in en). Mathematical Proceedings of the Cambridge Philosophical Society 60 (1): 21–38. doi:10.1017/S0305004100037403. ISSN 0305-0041. Bibcode1964PCPS...60...21R. Retrieved 2022-12-29. 
  7. Flaška, V.; Ježek, J.; Kepka, T.; Kortelainen, J. (2007). Transitive Closures of Binary Relations I. Prague: School of Mathematics - Physics Charles University. p. 1.  Lemma 1.1 (iv). Note that this source refers to asymmetric relations as "strictly antisymmetric".
  8. Liu 1985, p. 111
  9. 9.0 9.1 Liu 1985, p. 112
  10. Steven R. Finch, "Transitive relations, topologies and partial orders" , 2003.
  11. Götz Pfeiffer, "Counting Transitive Relations ", Journal of Integer Sequences, Vol. 7 (2004), Article 04.3.2.
  12. Gunnar Brinkmann and Brendan D. McKay,"Counting unlabelled topologies and transitive relations "
  13. Mala, Firdous Ahmad (2021-06-14). "On the number of transitive relations on a set" (in en). Indian Journal of Pure and Applied Mathematics 53: 228–232. doi:10.1007/s13226-021-00100-0. ISSN 0975-7465. Retrieved 2021-12-06. 
  14. Mala, Firdous Ahmad (2021-10-13). "Counting Transitive Relations with Two Ordered Pairs". Journal of Applied Mathematics and Computation 5 (4): 247–251. doi:10.26855/jamc.2021.12.002. ISSN 2576-0645. 
  15. since e.g. 3R4 and 4R5, but not 3R5
  16. since e.g. 2R3 and 3R4 and 2R4
  17. since xRy and yRz can never happen
  18. since e.g. 3R2 and 2R1, but not 3R1
  19. since, more generally, xRy and yRz implies x=y+1=z+2≠z+1, i.e. not xRz, for all x, y, z
  20. Drum, Kevin (November 2018). "Preferences are not transitive". Mother Jones. 
  21. Oliveira, I.F.D.; Zehavi, S.; Davidov, O. (August 2018). "Stochastic transitivity: Axioms and models". Journal of Mathematical Psychology 85: 25–35. doi:10.1016/ ISSN 0022-2496. 
  22. Sen, A. (1969). "Quasi-transitivity, rational choice and collective decisions". Rev. Econ. Stud. 36 (3): 381–393. doi:10.2307/2296434. 


External links