# Congruence relation

__: Equivalence relation in algebra__

**Short description**

In abstract algebra, a **congruence relation** (or simply **congruence**) is an equivalence relation on an algebraic structure (such as a group, ring, or vector space) that is compatible with the structure in the sense that algebraic operations done with equivalent elements will yield equivalent elements.^{[1]} Every congruence relation has a corresponding quotient structure, whose elements are the equivalence classes (or **congruence classes**) for the relation.^{[2]}

## Basic example

The prototypical example of a congruence relation is congruence modulo [math]\displaystyle{ n }[/math] on the set of integers. For a given positive integer [math]\displaystyle{ n }[/math], two integers [math]\displaystyle{ a }[/math] and [math]\displaystyle{ b }[/math] are called **congruent modulo [math]\displaystyle{ n }[/math]**, written

- [math]\displaystyle{ a \equiv b \pmod{n} }[/math]

if [math]\displaystyle{ a - b }[/math] is divisible by [math]\displaystyle{ n }[/math] (or equivalently if [math]\displaystyle{ a }[/math] and [math]\displaystyle{ b }[/math] have the same remainder when divided by [math]\displaystyle{ n }[/math]).

For example, [math]\displaystyle{ 37 }[/math] and [math]\displaystyle{ 57 }[/math] are congruent modulo [math]\displaystyle{ 10 }[/math],

- [math]\displaystyle{ 37 \equiv 57 \pmod{10} }[/math]

since [math]\displaystyle{ 37 - 57 = -20 }[/math] is a multiple of 10, or equivalently since both [math]\displaystyle{ 37 }[/math] and [math]\displaystyle{ 57 }[/math] have a remainder of [math]\displaystyle{ 7 }[/math] when divided by [math]\displaystyle{ 10 }[/math].

Congruence modulo [math]\displaystyle{ n }[/math] (for a fixed [math]\displaystyle{ n }[/math]) is compatible with both addition and multiplication on the integers. That is,

if

- [math]\displaystyle{ a_1 \equiv a_2 \pmod{n} }[/math] and [math]\displaystyle{ b_1 \equiv b_2 \pmod{n} }[/math]

then

- [math]\displaystyle{ a_1 + b_1 \equiv a_2 + b_2 \pmod{n} }[/math] and [math]\displaystyle{ a_1 b_1 \equiv a_2b_2 \pmod{n} }[/math]

The corresponding addition and multiplication of equivalence classes is known as modular arithmetic. From the point of view of abstract algebra, congruence modulo [math]\displaystyle{ n }[/math] is a congruence relation on the ring of integers, and arithmetic modulo [math]\displaystyle{ n }[/math] occurs on the corresponding quotient ring.

## Definition

The definition of a congruence depends on the type of algebraic structure under consideration. Particular definitions of congruence can be made for groups, rings, vector spaces, modules, semigroups, lattices, and so forth. The common theme is that a congruence is an equivalence relation on an algebraic object that is compatible with the algebraic structure, in the sense that the operations are well-defined on the equivalence classes.

### Example: Groups

For example, a group is an algebraic object consisting of a set together with a single binary operation, satisfying certain axioms. If [math]\displaystyle{ G }[/math] is a group with operation [math]\displaystyle{ \ast }[/math], a **congruence relation** on [math]\displaystyle{ G }[/math] is an equivalence relation [math]\displaystyle{ \equiv }[/math] on the elements of [math]\displaystyle{ G }[/math] satisfying

- [math]\displaystyle{ g_1 \equiv g_2 \ \ \, }[/math] and [math]\displaystyle{ \ \ \, h_1 \equiv h_2 \implies g_1 \ast h_1 \equiv g_2 \ast h_2 }[/math]

for all [math]\displaystyle{ g_1, g_2, h_1, h_2 \in G }[/math]. For a congruence on a group, the equivalence class containing the identity element is always a normal subgroup, and the other equivalence classes are the other cosets of this subgroup. Together, these equivalence classes are the elements of a quotient group.

### Example: Rings

When an algebraic structure includes more than one operation, congruence relations are required to be compatible with each operation. For example, a ring possesses both addition and multiplication, and a congruence relation on a ring must satisfy

- [math]\displaystyle{ r_1 + s_1 \equiv r_2 + s_2 }[/math] and [math]\displaystyle{ r_1 s_1 \equiv r_2 s_2 }[/math]

whenever [math]\displaystyle{ r_1 \equiv r_2 }[/math] and [math]\displaystyle{ s_1 \equiv s_2 }[/math]. For a congruence on a ring, the equivalence class containing 0 is always a two-sided ideal, and the two operations on the set of equivalence classes define the corresponding quotient ring.

### General

The general notion of a congruence relation can be formally defined in the context of universal algebra, a field which studies ideas common to all algebraic structures. In this setting, a relation [math]\displaystyle{ R }[/math] on a given algebraic structure is called **compatible** if

- for each [math]\displaystyle{ n }[/math] and each [math]\displaystyle{ n }[/math]-ary operation [math]\displaystyle{ \mu }[/math] defined on the structure: whenever [math]\displaystyle{ a_1 \mathrel{R} a'_1 }[/math] and ... and [math]\displaystyle{ a_n \mathrel{R} a'_n }[/math], then [math]\displaystyle{ \mu(a_1,\ldots,a_n) \mathrel{R} \mu(a'_1,\ldots,a'_n) }[/math].

A congruence relation on the structure is then defined as an equivalence relation that is also compatible.^{[3]}^{[4]}

## Relation with homomorphisms

If [math]\displaystyle{ f:A\, \rightarrow B }[/math] is a homomorphism between two algebraic structures (such as homomorphism of groups, or a linear map between vector spaces), then the relation [math]\displaystyle{ R }[/math] defined by

- [math]\displaystyle{ a_1\, R\, a_2 }[/math] if and only if [math]\displaystyle{ f(a_1) = f(a_2) }[/math]

is a congruence relation on [math]\displaystyle{ A }[/math]. By the first isomorphism theorem, the image of *A* under [math]\displaystyle{ f }[/math] is a substructure of *B* isomorphic to the quotient of *A* by this congruence.

On the other hand, the congruence relation [math]\displaystyle{ R }[/math] induces a unique homomorphism [math]\displaystyle{ f: A \rightarrow A/R }[/math] given by

- [math]\displaystyle{ f(x) = \{y \mid x \, R \, y\} }[/math].

Thus, there is a natural correspondence between the congruences and the homomorphisms of any given algebraic structure.

## Congruences of groups, and normal subgroups and ideals

In the particular case of groups, congruence relations can be described in elementary terms as follows:
If *G* is a group (with identity element *e* and operation *) and ~ is a binary relation on *G*, then ~ is a congruence whenever:

- Given any element
*a*of*G*,*a*~*a*(**reflexivity**); - Given any elements
*a*and*b*of*G*, if*a*~*b*, then*b*~*a*(**symmetry**); - Given any elements
*a*,*b*, and*c*of*G*, if*a*~*b*and*b*~*c*, then*a*~*c*(**transitivity**); - Given any elements
*a*,*a'*,*b*, and*b'*of*G*, if*a*~*a'*and*b*~*b'*, then*a***b*~*a'***b'*; - Given any elements
*a*and*a'*of*G*, if*a*~*a'*, then*a*^{−1}~*a'*^{−1}(this can actually be proven from the other four,^{[note 1]}so is strictly redundant).

Conditions 1, 2, and 3 say that ~ is an equivalence relation.

A congruence ~ is determined entirely by the set {*a* ∈ *G* : *a* ~ *e*} of those elements of *G* that are congruent to the identity element, and this set is a normal subgroup.
Specifically, *a* ~ *b* if and only if *b*^{−1} * *a* ~ *e*.
So instead of talking about congruences on groups, people usually speak in terms of normal subgroups of them; in fact, every congruence corresponds uniquely to some normal subgroup of *G*.

### Ideals of rings and the general case

A similar trick allows one to speak of kernels in ring theory as ideals instead of congruence relations, and in module theory as submodules instead of congruence relations.

A more general situation where this trick is possible is with Omega-groups (in the general sense allowing operators with multiple arity). But this cannot be done with, for example, monoids, so the study of congruence relations plays a more central role in monoid theory.

## Universal algebra

The general notion of a congruence is particularly useful in universal algebra. An equivalent formulation in this context is the following:^{[4]}

A congruence relation on an algebra *A* is a subset of the direct product *A* × *A* that is both an equivalence relation on *A* and a subalgebra of *A* × *A*.

The kernel of a homomorphism is always a congruence. Indeed, every congruence arises as a kernel.
For a given congruence ~ on *A*, the set *A*/~ of equivalence classes can be given the structure of an algebra in a natural fashion, the quotient algebra.
The function that maps every element of *A* to its equivalence class is a homomorphism, and the kernel of this homomorphism is ~.

The lattice **Con**(*A*) of all congruence relations on an algebra *A* is algebraic.

John M. Howie described how semigroup theory illustrates congruence relations in universal algebra:

- In a group a congruence is determined if we know a single congruence class, in particular if we know the normal subgroup which is the class containing the identity. Similarly, in a ring a congruence is determined if we know the ideal which is the congruence class containing the zero. In semigroups there is no such fortunate occurrence, and we are therefore faced with the necessity of studying congruences as such. More than anything else, it is this necessity that gives semigroup theory its characteristic flavour. Semigroups are in fact the first and simplest type of algebra to which the methods of universal algebra must be applied…
^{[5]}

## See also

## Explanatory notes

- ↑ Since
*a'*^{−1}=*a'*^{−1}**a***a*^{−1}~*a'*^{−1}**a'***a*^{−1}=*a*^{−1}

## Notes

- ↑ Hungerford, Thomas W..
*Algebra*. Springer-Verlag, 1974, p. 27 - ↑ Hungerford, 1974, p. 26
- ↑ Henk Barendregt (1990). "Functional Programming and Lambda Calculus". in Jan van Leeuwen.
*Formal Models and Semantics*. Handbook of Theoretical Computer Science.**B**. Elsevier. pp. 321–364. ISBN 0-444-88074-7. Here: Def.3.1.1, p.338. - ↑
^{4.0}^{4.1}Clifford Bergman, Universal Algebra: Fundamentals and Selected Topics, Taylor & Francis (2011), Sect. 1.5 and Exercise 1(a) in Exercise Set 1.26 (Bergman uses the expression*having the substitution property*for*being compatible*) - ↑ J. M. Howie (1975)
*An Introduction to Semigroup Theory*, page v, Academic Press

## References

- Horn and Johnson,
*Matrix Analysis,*Cambridge University Press, 1985. ISBN:0-521-38632-2. (Section 4.5 discusses congruency of matrices.) - Rosen, Kenneth H (2012).
*Discrete Mathematics and Its Applications*. McGraw-Hill Education. ISBN 978-0077418939.

Original source: https://en.wikipedia.org/wiki/Congruence relation.
Read more |