In mathematics and formal reasoning, a binary relation R on a set is called transitive when, for any three elements a, b and c, aRb and bRc together imply aRc. In symbolic form: for all a,b,c, (aRb && bRc) → aRc. This simple condition is fundamental: it governs the way information or ordering can be propagated through chains of related items.
Formal role and logical context
Transitivity appears in both logic and mathematics as one of the standard relation properties studied in set theory, algebra, and order theory. It is a necessary ingredient of an equivalence relation when combined with reflexivity and symmetry, and it is likewise required (with reflexivity and antisymmetry) for a relation to be a partial order. The defining pattern, a chain-of-two implies the chain-of-three, recurs in many abstract settings.
Examples and non-examples
Common examples of transitive relations include:
- Equality (=): if x = y and y = z then x = z.
- Order relations: <, ≤, and > on numbers are transitive; if a < b and b < c then a < c.
- Divisibility among integers: if a divides b and b divides c then a divides c.
- Subset inclusion (⊆): if A ⊆ B and B ⊆ C then A ⊆ C.
By contrast, many everyday relations are not transitive. "Is a friend of" is typically non-transitive: A being friends with B and B with C does not ensure A is friends with C. Such counterexamples illustrate why transitivity is a substantive structural requirement, not a default.
Transitive closure and reduction
Given any relation R, its transitive closure is the smallest transitive relation that contains R; it adds all inferred links arising from chains of arbitrary length. Algorithms such as Warshall's (or more generally Floyd–Warshall for weighted graphs) compute closures on finite sets. The related notion of transitive reduction seeks the minimal relation whose transitive closure recovers the original; this is useful for simplifying ordered structures like dependency graphs.
Importance and distinctions
Transitivity affects how one reasons about connectedness, inheritance, and order. In algebra it helps classify congruences and quotient structures; in computer science it underlies reachability in graphs and database query semantics. When combined with other properties (reflexivity, symmetry, antisymmetry) it produces the familiar classes of relations—equivalence relations and partial orders—each serving different modeling needs.
For further reading on foundational aspects and examples, see introductions to relations in elementary set theory and texts on order theory; online references treat the topic in both binary relation and applied contexts such as networks and databases. Additional background on equivalence relations appears via equivalence relation-focused expositions and summaries of relation properties.
Transitivity is therefore a modest-looking axiom with wide practical and theoretical consequences: it determines how local connections extend globally and shapes the algebraic and combinatorial structure of many mathematical systems.


