# Equivalence class

__: Mathematical concept__

**Short description**

In mathematics, when the elements of some set [math]\displaystyle{ S }[/math] have a notion of equivalence (formalized as an equivalence relation), then one may naturally split the set [math]\displaystyle{ S }[/math] into **equivalence classes**. These equivalence classes are constructed so that elements [math]\displaystyle{ a }[/math] and [math]\displaystyle{ b }[/math] belong to the same **equivalence class** if, and only if, they are equivalent.

Formally, given a set [math]\displaystyle{ S }[/math] and an equivalence relation [math]\displaystyle{ \,\sim\, }[/math] on [math]\displaystyle{ S, }[/math] the *equivalence class* of an element [math]\displaystyle{ a }[/math] in [math]\displaystyle{ S }[/math] is denoted [math]\displaystyle{ [a] }[/math] or, equivalently, [math]\displaystyle{ [a]_{\sim} }[/math] to emphasize its equivalence relation [math]\displaystyle{ \sim. }[/math] The definition of equivalence relations implies that the equivalence classes form a partition of [math]\displaystyle{ S,
}[/math] meaning, that every element of the set belongs to exactly one equivalence class.
The set of the equivalence classes is sometimes called the **quotient set** or the **quotient space** of [math]\displaystyle{ S }[/math] by [math]\displaystyle{ \,\sim\,, }[/math] and is denoted by [math]\displaystyle{ S /{\sim}'. }[/math]

When the set [math]\displaystyle{ S }[/math] has some structure (such as a group operation or a topology) and the equivalence relation [math]\displaystyle{ \,\sim\, }[/math] is compatible with this structure, the quotient set often inherits a similar structure from its parent set. Examples include quotient spaces in linear algebra, quotient spaces in topology, quotient groups, homogeneous spaces, quotient rings, quotient monoids, and quotient categories.

## Definition and notation

An equivalence relation on a set [math]\displaystyle{ X }[/math] is a binary relation [math]\displaystyle{ \,\sim\, }[/math] on [math]\displaystyle{ X }[/math] satisfying the three properties:^{[1]}

- [math]\displaystyle{ a \sim a }[/math] for all [math]\displaystyle{ a \in X }[/math] (reflexivity),
- [math]\displaystyle{ a \sim b }[/math] implies [math]\displaystyle{ b \sim a }[/math] for all [math]\displaystyle{ a, b \in X }[/math] (symmetry),
- if [math]\displaystyle{ a \sim b }[/math] and [math]\displaystyle{ b \sim c }[/math] then [math]\displaystyle{ a \sim c }[/math] for all [math]\displaystyle{ a, b, c \in X }[/math] (transitivity).

The equivalence class of an element [math]\displaystyle{ a }[/math] is defined as^{[2]}

- [math]\displaystyle{ [a] = \{ x \in X : a \sim x \}. }[/math]

The word "class" in the term "equivalence class" may generally be considered as a synonym of "set", although some equivalence classes are not sets but proper classes. For example, "being isomorphic" is an equivalence relation on groups, and the equivalence classes, called isomorphism classes, are not sets.

The set of all equivalence classes in [math]\displaystyle{ X }[/math] with respect to an equivalence relation [math]\displaystyle{ R }[/math] is denoted as [math]\displaystyle{ X / R, }[/math] and is called [math]\displaystyle{ X }[/math] modulo [math]\displaystyle{ R }[/math] (or the **quotient set** of [math]\displaystyle{ X }[/math] by [math]\displaystyle{ R }[/math]).^{[3]} The surjective map [math]\displaystyle{ x \mapsto [x] }[/math] from [math]\displaystyle{ X }[/math] onto [math]\displaystyle{ X / R, }[/math] which maps each element to its equivalence class, is called the **canonical surjection**, or the **canonical projection**.

Every element of an equivalence class characterizes the class, and may be used to *represent* it. When such an element is chosen, it is called a **representative** of the class. The choice of a representative in each class defines an injection from [math]\displaystyle{ X / R }[/math] to X. Since its composition with the canonical surjection is the identity of [math]\displaystyle{ X / R, }[/math] such an injection is called a section, when using the terminology of category theory.

Sometimes, there is a section that is more "natural" than the other ones. In this case, the representatives are called *canonical representatives*. For example, in modular arithmetic, for every integer m greater than 1, the congruence modulo m is an equivalence relation on the integers, for which two integers a and b are equivalent—in this case, one says *congruent*—if m divides [math]\displaystyle{ a-b; }[/math] this is denoted [math]\displaystyle{ a\equiv b \pmod m. }[/math] Each class contains a unique non-negative integer smaller than [math]\displaystyle{ m, }[/math] and these integers are the canonical representatives.

The use of representatives for representing classes allows avoiding to consider explicitly classes as sets. In this case, the canonical surjection that maps an element to its class is replaced by the function that maps an element to the representative of its class. In the preceding example, this function is denoted [math]\displaystyle{ a \bmod m, }[/math] and produces the remainder of the Euclidean division of a by m.

## Properties

Every element [math]\displaystyle{ x }[/math] of [math]\displaystyle{ X }[/math] is a member of the equivalence class [math]\displaystyle{ [x]. }[/math] Every two equivalence classes [math]\displaystyle{ [x] }[/math] and [math]\displaystyle{ [y] }[/math] are either equal or disjoint. Therefore, the set of all equivalence classes of [math]\displaystyle{ X }[/math] forms a partition of [math]\displaystyle{ X }[/math]: every element of [math]\displaystyle{ X }[/math] belongs to one and only one equivalence class.^{[4]} Conversely, every partition of [math]\displaystyle{ X }[/math] comes from an equivalence relation in this way, according to which [math]\displaystyle{ x \sim y }[/math] if and only if [math]\displaystyle{ x }[/math] and [math]\displaystyle{ y }[/math] belong to the same set of the partition.^{[5]}

It follows from the properties in the previous section that if [math]\displaystyle{ \,\sim\, }[/math] is an equivalence relation on a set [math]\displaystyle{ X, }[/math] and [math]\displaystyle{ x }[/math] and [math]\displaystyle{ y }[/math] are two elements of [math]\displaystyle{ X, }[/math] the following statements are equivalent:

- [math]\displaystyle{ x \sim y }[/math]
- [math]\displaystyle{ [x] = [y] }[/math]
- [math]\displaystyle{ [x] \cap [y] \ne \emptyset. }[/math]

## Examples

- Let [math]\displaystyle{ X }[/math] be the set of all rectangles in a plane, and [math]\displaystyle{ \,\sim\, }[/math] the equivalence relation "has the same area as", then for each positive real number [math]\displaystyle{ A, }[/math] there will be an equivalence class of all the rectangles that have area [math]\displaystyle{ A. }[/math]
^{[6]} - Consider the modulo 2 equivalence relation on the set of integers, [math]\displaystyle{ \Z, }[/math] such that [math]\displaystyle{ x \sim y }[/math] if and only if their difference [math]\displaystyle{ x - y }[/math] is an even number. This relation gives rise to exactly two equivalence classes: one class consists of all even numbers, and the other class consists of all odd numbers. Using square brackets around one member of the class to denote an equivalence class under this relation, [math]\displaystyle{ [7], [9], }[/math] and [math]\displaystyle{ [1] }[/math] all represent the same element of [math]\displaystyle{ \Z /{\sim}. }[/math]
^{[2]} - Let [math]\displaystyle{ X }[/math] be the set of ordered pairs of integers [math]\displaystyle{ (a, b) }[/math] with non-zero [math]\displaystyle{ b, }[/math] and define an equivalence relation [math]\displaystyle{ \,\sim\, }[/math] on [math]\displaystyle{ X }[/math] such that [math]\displaystyle{ (a, b) \sim (c, d) }[/math] if and only if [math]\displaystyle{ a d = b c, }[/math] then the equivalence class of the pair [math]\displaystyle{ (a, b) }[/math] can be identified with the rational number [math]\displaystyle{ a / b, }[/math] and this equivalence relation and its equivalence classes can be used to give a formal definition of the set of rational numbers.
^{[7]}The same construction can be generalized to the field of fractions of any integral domain. - If [math]\displaystyle{ X }[/math] consists of all the lines in, say, the Euclidean plane, and [math]\displaystyle{ L \sim M }[/math] means that [math]\displaystyle{ L }[/math] and [math]\displaystyle{ M }[/math] are parallel lines, then the set of lines that are parallel to each other form an equivalence class, as long as a line is considered parallel to itself. In this situation, each equivalence class determines a point at infinity.

## Graphical representation

An undirected graph may be associated to any symmetric relation on a set [math]\displaystyle{ X, }[/math] where the vertices are the elements of [math]\displaystyle{ X, }[/math] and two vertices [math]\displaystyle{ s }[/math] and [math]\displaystyle{ t }[/math] are joined if and only if [math]\displaystyle{ s \sim t. }[/math] Among these graphs are the graphs of equivalence relations. These graphs, called cluster graphs, are characterized as the graphs such that the connected components are cliques.^{[2]}

## Invariants

If [math]\displaystyle{ \,\sim\, }[/math] is an equivalence relation on [math]\displaystyle{ X, }[/math] and [math]\displaystyle{ P(x) }[/math] is a property of elements of [math]\displaystyle{ X }[/math] such that whenever [math]\displaystyle{ x \sim y, }[/math] [math]\displaystyle{ P(x) }[/math] is true if [math]\displaystyle{ P(y) }[/math] is true, then the property [math]\displaystyle{ P }[/math] is said to be an invariant of [math]\displaystyle{ \,\sim\,, }[/math] or well-defined under the relation [math]\displaystyle{ \,\sim. }[/math]

A frequent particular case occurs when [math]\displaystyle{ f }[/math] is a function from [math]\displaystyle{ X }[/math] to another set [math]\displaystyle{ Y }[/math]; if [math]\displaystyle{ f\left(x_1\right) = f\left(x_2\right) }[/math] whenever [math]\displaystyle{ x_1 \sim x_2, }[/math] then [math]\displaystyle{ f }[/math] is said to be *class invariant under* [math]\displaystyle{ \,\sim\,, }[/math] or simply *invariant under* [math]\displaystyle{ \,\sim. }[/math] This occurs, for example, in the character theory of finite groups. Some authors use "compatible with [math]\displaystyle{ \,\sim\, }[/math]" or just "respects [math]\displaystyle{ \,\sim\, }[/math]" instead of "invariant under [math]\displaystyle{ \,\sim\, }[/math]".

Any function [math]\displaystyle{ f : X \to Y }[/math] is *class invariant under* [math]\displaystyle{ \,\sim\,, }[/math] according to which [math]\displaystyle{ x_1 \sim x_2 }[/math] if and only if [math]\displaystyle{ f\left(x_1\right) = f\left(x_2\right). }[/math] The equivalence class of [math]\displaystyle{ x }[/math] is the set of all elements in [math]\displaystyle{ X }[/math] which get mapped to [math]\displaystyle{ f(x), }[/math] that is, the class [math]\displaystyle{ [x] }[/math] is the inverse image of [math]\displaystyle{ f(x). }[/math] This equivalence relation is known as the kernel of [math]\displaystyle{ f. }[/math]

More generally, a function may map equivalent arguments (under an equivalence relation [math]\displaystyle{ \sim_X }[/math] on [math]\displaystyle{ X }[/math]) to equivalent values (under an equivalence relation [math]\displaystyle{ \sim_Y }[/math] on [math]\displaystyle{ Y }[/math]). Such a function is a morphism of sets equipped with an equivalence relation.

## Quotient space in topology

In topology, a quotient space is a topological space formed on the set of equivalence classes of an equivalence relation on a topological space, using the original space's topology to create the topology on the set of equivalence classes.

In abstract algebra, congruence relations on the underlying set of an algebra allow the algebra to induce an algebra on the equivalence classes of the relation, called a quotient algebra. In linear algebra, a quotient space is a vector space formed by taking a quotient group, where the quotient homomorphism is a linear map. By extension, in abstract algebra, the term quotient space may be used for quotient modules, quotient rings, quotient groups, or any quotient algebra. However, the use of the term for the more general cases can as often be by analogy with the orbits of a group action.

The orbits of a group action on a set may be called the quotient space of the action on the set, particularly when the orbits of the group action are the right cosets of a subgroup of a group, which arise from the action of the subgroup on the group by left translations, or respectively the left cosets as orbits under right translation.

A normal subgroup of a topological group, acting on the group by translation action, is a quotient space in the senses of topology, abstract algebra, and group actions simultaneously.

Although the term can be used for any equivalence relation's set of equivalence classes, possibly with further structure, the intent of using the term is generally to compare that type of equivalence relation on a set [math]\displaystyle{ X, }[/math] either to an equivalence relation that induces some structure on the set of equivalence classes from a structure of the same kind on [math]\displaystyle{ X, }[/math] or to the orbits of a group action. Both the sense of a structure preserved by an equivalence relation, and the study of invariants under group actions, lead to the definition of invariants of equivalence relations given above.

## See also

- Equivalence partitioning, a method for devising test sets in software testing based on dividing the possible program inputs into equivalence classes according to the behavior of the program on those inputs
- Homogeneous space, the quotient space of Lie groups
- Partial equivalence relation – Mathematical concept for comparing objects
- Quotient by an equivalence relation – Generalization of equivalence classes to scheme theory
- Setoid – Mathematical construction of a set with an equivalence relation
- Transversal (combinatorics) – Set that intersects every one of a family of sets

## Notes

- ↑ Devlin 2004, p. 122.
- ↑
^{2.0}^{2.1}^{2.2}Devlin 2004, p. 123. - ↑ Wolf 1998, p. 178
- ↑ Maddox 2002, p. 74, Thm. 2.5.15
- ↑ Avelsgaard 1989, p. 132, Thm. 3.16
- ↑ Avelsgaard 1989, p. 127
- ↑ Maddox 2002, pp. 77–78

## References

- Avelsgaard, Carol (1989),
*Foundations for Advanced Mathematics*, Scott Foresman, ISBN 0-673-38152-8 - Devlin, Keith (2004),
*Sets, Functions, and Logic: An Introduction to Abstract Mathematics*(3rd ed.), Chapman & Hall/ CRC Press, ISBN 978-1-58488-449-1 - Maddox, Randall B. (2002),
*Mathematical Thinking and Writing*, Harcourt/ Academic Press, ISBN 0-12-464976-9 - Wolf, Robert S. (1998),
*Proof, Logic and Conjecture: A Mathematician's Toolbox*, Freeman, ISBN 978-0-7167-3050-7

## Further reading

- Sundstrom (2003),
*Mathematical Reasoning: Writing and Proof*, Prentice-Hall - Smith; Eggen; St.Andre (2006),
*A Transition to Advanced Mathematics*(6th ed.), Thomson (Brooks/Cole) - Schumacher, Carol (1996),
*Chapter Zero: Fundamental Notions of Abstract Mathematics*, Addison-Wesley, ISBN 0-201-82653-4 - O'Leary (2003),
*The Structure of Proof: With Logic and Set Theory*, Prentice-Hall - Lay (2001),
*Analysis with an introduction to proof*, Prentice Hall - Morash, Ronald P. (1987),
*Bridge to Abstract Mathematics*, Random House, ISBN 0-394-35429-X - Gilbert; Vanstone (2005),
*An Introduction to Mathematical Thinking*, Pearson Prentice-Hall - Fletcher; Patty,
*Foundations of Higher Mathematics*, PWS-Kent - Iglewicz; Stoyle,
*An Introduction to Mathematical Reasoning*, MacMillan - D'Angelo; West (2000),
*Mathematical Thinking: Problem Solving and Proofs*, Prentice Hall - Cupillari,
*The Nuts and Bolts of Proofs*, Wadsworth - Bond,
*Introduction to Abstract Mathematics*, Brooks/Cole - Barnier; Feldman (2000),
*Introduction to Advanced Mathematics*, Prentice Hall - Ash,
*A Primer of Abstract Mathematics*, MAA

## External links

Original source: https://en.wikipedia.org/wiki/Equivalence class.
Read more |