Mathematics · Ch 1 — Sets, Relations and Functions
Type of Relations
Type of Relations
The three basic properties. Let be a relation on a non-empty set .
- is reflexive if for every .
- is symmetric if .
- is transitive if and .
Equivalence relation. is an equivalence relation on if it is reflexive, symmetric and transitive all at once.
The set on which a rule is defined matters just as much as the rule itself. " is a brother of " is not symmetric on the set of all people (a brother's sibling could be a sister), but the same rule becomes symmetric once restricted to the set of all males. Likewise is reflexive on but not on (since is missing).
Worked checks (from the book's illustrations).
- on : reflexive (all four present); symmetric (every pair's reverse is also listed); not transitive, since but -- so it is not an equivalence relation.
- " is parallel to " on the set of all lines in a plane: reflexive, symmetric, transitive equivalence relation.
- " is a sister of " on a family (children and elders): not reflexive (no one is their own sister), not symmetric, not transitive -- but restricted to only the female members it becomes symmetric (though still not transitive).
- On , " if " gives the explicit finite set : not reflexive (), not symmetric ( but ), not transitive ( but ).
- The empty relation on any set is (vacuously) both symmetric and transitive, but never reflexive on a non-empty set. The universal relation is always an equivalence relation. A relation with a single pair is always transitive.
A worked equivalence check. on (the diagonal relation) is trivially reflexive, and vacuously symmetric/transitive (there is no pair to violate either property), so it is an equivalence relation -- in fact the smallest possible one on an -element set.
Building a relation of a required type. Given a relation that fails a property, we can repair it by inserting or deleting pairs. For : adding makes it reflexive; adding makes it symmetric; adding and (or instead removing ) makes it transitive; combining all the additions and then also adding (needed once appears, for symmetry) yields the equivalence relation .
Counting theorem. The number of relations from an -element set to an -element set is (each of the possible pairs is independently in or out), so the number of relations on an -element set is . Among these, the number of reflexive relations on elements is (the diagonal pairs are forced in, the rest free), and the number of symmetric relations is (the diagonal pairs are free, and each of the off-diagonal pairs is decided together with its mirror pair). …