The Timpson Lyceum · Discrete Math (2025)
Relations - Lecture 7 (Discrete Math)
Relations – Lecture 7
Overview
This lecture introduces relations as the basic set-theoretic objects that underlie familiar ideas like "less than or equal to," "divides," and "congruent to." A relation is nothing more than a set of ordered pairs, and once we adopt that view we can write notation for membership, define what it means for a relation to live "on" or "between" sets, form the inverse of a relation, and classify relations by five standard properties. These tools let us treat everyday comparisons with full rigor and set the stage for studying orderings and equivalences. By the end you should be able to test whether a set is a relation, take inverses, and decide which of the five properties any given relation has.
Key Concepts
Relation. A relation is simply a set of ordered pairs. To check whether a set is a relation, inspect its elements: if every element is an ordered pair, the set is a relation.
- is a relation (both elements are ordered pairs).
- The empty set is a relation vacuously — there is no element to violate the condition.
Membership notation. If a relation is named , we write to mean , read " is related to ." To deny it, strike the symbol: means . Order matters, so does not imply .
Defining a relation by a rule. A relation can be specified by a condition rather than listed. For example, Here is the integers and the naturals. Since exactly when , the relation is the usual on the integers — a familiar comparison rewritten as an explicit set of ordered pairs.
Relation on a set / from one set to another. Let and be sets.
- is a relation on if (every left and right entry comes from ).
- is a relation from to if (left entries from , right entries from ).
A single relation may satisfy several, one, or none of these descriptions, depending on its pairs and the sets involved. The empty relation qualifies on/from any sets, vacuously.
Inverse of a relation. The inverse is obtained by swapping every ordered pair: The "" is notation, not an exponent or reciprocal. Some relations equal their own inverse (e.g. ). The inverse of is . Taking the inverse twice returns the original: .
Five properties of a relation on a set .
- Reflexive — for all , (every element related to itself).
- Irreflexive — for all , (no element related to itself). Reflexive and irreflexive are not opposites: a relation that relates some but not all elements to themselves is neither.
- Symmetric — for all , if then .
- Antisymmetric — for all , if and then .
- Transitive — for all , if and then .
Sample classifications (intuition builders):
- : reflexive, symmetric, antisymmetric, transitive.
- : reflexive, antisymmetric, transitive (not symmetric).
- : irreflexive, antisymmetric, transitive (antisymmetric vacuously — you can never have both and ).
- divides () on : reflexive, transitive.
- "same last name" : reflexive, symmetric, transitive.
- "sibling of" : symmetric but not transitive (chaining can return to the same person).
- "ancestor of," "parent of" : irreflexive; antisymmetric (vacuously for ancestor); "parent of" is not transitive.
- : irreflexive, symmetric, antisymmetric, transitive — all the conditional properties hold vacuously.
Worked Example
Claim. For any relation , .
We prove the two sets contain exactly the same ordered pairs, using the inverse rule at each step.
The first line shows ; the second shows . Since each set contains the other, .
Summary
- A relation is a set of ordered pairs; check membership of pairs to test the definition. The empty set is a relation vacuously.
- means ; because pairs are ordered, and are different claims.
- is a relation on when , and from to when ; familiar comparisons like are just relations defined by a rule.
- The inverse swaps every pair; the "" is notation only, the inverse of is , and .
- Every relation on a set can be tested for five properties: reflexive, irreflexive, symmetric, antisymmetric, transitive — and reflexive/irreflexive are not negations of each other.
- Conditional properties (symmetric, antisymmetric, transitive) hold vacuously when no pairs trigger their hypothesis, which is why and strict orders satisfy several of them automatically.