← back to proofs

Relations

Jim Hefferon · GFDL + CC BY-SA 2.5 · Introduction to Proofs

A relation on a set is a subset of its Cartesian product. The important ones are equivalence relations (reflexive + symmetric + transitive), which partition a set into non-overlapping classes. Every partition defines an equivalence relation, and every equivalence relation defines a partition.

[a] [b] [c] Equivalence classes: no overlaps, no gaps

Properties of relations

Reflexive: a ~ a for all a. Symmetric: a ~ b implies b ~ a. Transitive: a ~ b and b ~ c implies a ~ c. An equivalence relation has all three.

Scheme

Equivalence classes

The equivalence class of a is the set of all elements related to a: [a] = all x in S such that x ~ a. Equivalence classes are either identical or disjoint. They partition the set into non-overlapping groups.

Scheme

Partitions

A partition of set S is a collection of non-empty, pairwise disjoint subsets whose union is S. The fundamental theorem: equivalence relations and partitions are two views of the same thing. Given a partition, define a ~ b iff they are in the same block. Given an equivalence relation, the classes form a partition.

Scheme

Partial orders (reflexive + antisymmetric + transitive)

A partial order is reflexive, antisymmetric (a ~ b and b ~ a implies a = b), and transitive. The divisibility relation on positive integers is a partial order. Unlike equivalence relations, partial orders have a direction: a divides b does not mean b divides a.

Scheme
Neighbors