MTH 114 · Introduction to Sets, Logic and Algebra
Our notes
2 min readRelations
A relation R from A to B is any subset of A × B; we write a R b when (a, b) ∈ R. A relation on A is a subset of A × A.
Properties of a relation on A
- Reflexive: a R a for every a ∈ A.
- Symmetric: a R b implies b R a.
- Antisymmetric: a R b and b R a imply a = b.
- Transitive: a R b and b R c imply a R c.
Worked example. On A = {1, 2, 3}, R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1)}.
- Reflexive: all three pairs (a, a) are there. ✓
- Symmetric: (1, 2) and (2, 1) both present. ✓
- Transitive: (1, 2) and (2, 1) give (1, 1), present; (2, 1) and (1, 2) give (2, 2), present. ✓
So R is an equivalence relation.
Equivalence relations and classes
An equivalence relation is reflexive, symmetric and transitive. The equivalence class of a is [a] = {x ∈ A : x R a}. The classes form a partition of A: they do not overlap and together cover A. In the example the classes are {1, 2} and {3}.
Classic example. On Z, a ~ b if a − b is divisible by 3 (congruence mod 3). Classes: [0] = {..., −3, 0, 3, 6, ...}, [1] = {..., −2, 1, 4, ...}, [2] = {..., −1, 2, 5, ...}.
Partial orders
A partial order is reflexive, antisymmetric and transitive; (A, ≤) is a partially ordered set (poset). Examples: ≤ on R; ⊆ on a power set; "divides" on positive integers.
A Hasse (poset) diagram draws each element as a dot, puts larger elements higher, joins a to b only when b covers a (nothing in between), and leaves out loops and arrows implied by transitivity.
Example. Divisors of 12 under "divides": 1 at the bottom; 2 and 3 above it; 4 above 2; 6 above both 2 and 3; 12 at the top, above 4 and 6. 4 and 6 are incomparable (neither divides the other), which is why the order is only partial.
Exams usually ask: test a relation for the four properties; show congruence mod n is an equivalence relation and list its classes; draw a Hasse diagram for divisors of a number.
Common mistake: thinking "symmetric" and "antisymmetric" are opposites. The relation {(1, 1), (2, 2)} is both; {(1, 2), (2, 1), (1, 3)} is neither.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Equivalence relation
(opens en.wikipedia.org in a new tab)
Wikipedia, Equivalence relation, CC BY-SA 4.0 · licence
-
Partially ordered set
(opens en.wikipedia.org in a new tab)
Wikipedia, Partially ordered set, CC BY-SA 4.0 · licence
-
NOUN MTH 211: Set Theory and Abstract Algebra
NOUN course book (PDF, about 1.2 MB). Module 1 covers sets, relations, equivalence relations and mappings with solved problems; module 2 starts group theory.
(opens nou.edu.ng in a new tab)
-
Hammack, Book of Proof, 3rd edition (whole free textbook)
A free proof textbook used in many universities (PDF, about 1.8 MB): sets, logic, direct and contrapositive proof, contradiction, induction, relations, functions, cardinality.
(opens richardhammack.github.io in a new tab)
Hammack, Book of Proof, CC BY-NC-ND 4.0 · licence
Watch
-
Best pick Reflexive, Symmetric, and Transitive Relations on a Set
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
Equivalence Classes and Partitions
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
Partially Ordered Sets and Hasse Diagrams | Discrete Math
16 min · ≈ 72 MB · about ₦40
(opens youtube.com in a new tab)
-
Antisymmetric Relations | Discrete Mathematics
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.