Exercise 1.1 · Q7: Books with the same number of pages
Show that the relation in the set of all the books in a library of a college, given by and have same number of pages is an equivalence relation.
For a book , let be its number of pages. Then .
Reflexive: Let . Then , so . Thus is reflexive.
Symmetric: Let . Then , so and . Thus is symmetric.
Transitive: Let and . Then and , so and . Thus is transitive.
Hence is an equivalence relation.
Want the reason behind every step, the basics and the checks?
Every book has exactly one number of pages. Call it for the book . Then " and have the same number of pages" is simply the equation , and the three properties of an equivalence relation are inherited directly from three properties of equality: every number equals itself, an equation can be read backwards, and two things equal to the same thing are equal to each other.
- Given
- The set of all books in a college library, and the rule: exactly when and have the same number of pages.
- To show
- is reflexive, symmetric and transitive, so that it is an equivalence relation.
- Plan
- (1) Name the page count and rewrite the rule as . (2) Prove each property for arbitrary books, using the matching property of equality. (3) Conclude, and describe the equivalence classes.
Basics you need
The elements of are books, not numbers, but nothing changes: is still a set of ordered pairs of elements of . Basics: what a relation is
Reflexive: for every . Symmetric: . Transitive: . An equivalence relation has all three. Basics: reflexive, symmetric, transitive
For any numbers : ; if then ; if and then . These are the reflexive, symmetric and transitive properties of "" itself.
A library may have thousands of books, so we cannot check them one by one. We argue about arbitrary books , using only facts true of every book. Basics: proving and disproving
The class of is the set of all elements related to . The classes of an equivalence relation do not overlap and together make up the whole set. Basics: equivalence classes
Solution
Give the page count a name
For each book , let
Each book has one definite number of pages, so is a single natural number for every . The rule becomes
A sentence like " and have the same number of pages" is hard to manipulate. The equation is easy: it is an equality between two numbers, and we know exactly how equality behaves (Basic 3). The fact that each book has exactly one page count matters: it means is a well-defined number we can compare.Reflexive: every book has the same number of pages as itself
Take any book . Then , so . Since was arbitrary, is reflexive.
This looks too obvious to write down, but it is exactly what the definition asks: each element related to itself. It uses the reflexive property of equality, .Reflexive: for every (Definition 3(i), Section 1.2).Symmetric: "same pages" reads the same both ways
Suppose . Then . Reading the equation from right to left, , so . Hence is symmetric.
We start from the "if" part, , and derive . The step uses the symmetric property of equality: if then . In words: if has as many pages as , then has as many pages as .Symmetric: (Definition 3(ii)).Transitive: two equalities chain into one
Suppose and . Then
Both and equal the same number , so . Hence , and is transitive.
This uses the transitive property of equality. The middle book acts as a link: if and both have, say, 200 pages, and and both have 200 pages, then and both have 200 pages. Note that , , need not be different books; the argument works whether or not they are.Transitive: and (Definition 3(iii)).Conclude, and see the equivalence classes
is reflexive, symmetric and transitive, so by Definition 4 is an equivalence relation.
Its equivalence classes are the groups "all books with exactly pages", one group for each page count that occurs in the library. For a small shelf of eight books A to H with page counts 200, 350, 200, 120, 350, 200, 120, 480:
Eight books sorted by . Books in the same box are related to each other; books in different boxes are not. The four boxes are the equivalence classes , , , . A class can contain a single book. An equivalence relation always sorts its set into non-overlapping groups. Here the grouping is by page count, and since each book has exactly one page count, each book lands in exactly one group. This is the same pattern as Example 21: whenever a relation is defined by "" for some function , it is an equivalence relation.The equivalence classes of an equivalence relation are disjoint and their union is the whole set. Basics: equivalence classes
Writing for the number of pages of book , . is reflexive (), symmetric () and transitive ( and ). Hence is an equivalence relation, whose classes are the sets of books with a given number of pages.
On the eight-book shelf above, contains ordered pairs (every ordered pair inside one box). A computer check of all triples of books confirms all three properties, and the same check passes on 200 randomly generated libraries. Transitivity in one case: and give , so . ✓
- Changing the rule to "nearly the same". "Differ by at most 10 pages" is not transitive: books with 100, 108 and 116 pages give and , both at most 10, but . Exact equality is what makes the proof work.
- Proving with a few named books. The library is a general set; the argument must use arbitrary books .
- Thinking a class needs two or more books. A book whose page count is unique forms a class on its own, like .
- " and have the same something" is an equivalence relation whenever each element has exactly one value of that something. The three properties come straight from the three properties of .
- Give the shared quantity a name, such as , so the rule becomes an equation.
- The same reasoning covers Q11 (same distance from the origin) and Q13 (same number of sides).
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Reflexive, symmetric, transitive | Steps 2–4 | Definition 3, Section 1.2 (Lesson: types of relations) |
| Equivalence relation | Step 5 | Definition 4, Section 1.2 |
| ; ; | Steps 2–4 | Properties of equality |
| Each book has exactly one page count | Step 1 | Meaning of "number of pages" |
| "" relations are equivalence relations | Step 5 | Example 21 |
| Classes are disjoint and cover the set | Step 5 | Section 1.2, after Example 5 (Lesson: equivalence relations) |
| Shelf counts and the 100, 108, 116 example | Step 5; Check; Mistakes | Brute-force check in the site's verification script |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →