The prototypical example of a congruence relation is congruence modulo on the set of integers. For a given positive integer, two integers and are called congruent modulo , written if is divisible by . For example, and are congruent modulo, since is a multiple of 10, or equivalently since both and have a remainder of when divided by. Congruence modulo is compatible with both addition and multiplication on the integers. That is, if then The corresponding addition and multiplication of equivalence classes is known as modular arithmetic. From the point of view of abstract algebra, congruence modulo is a congruence relation on the ring of integers, and arithmetic modulo 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. For example, a group is an algebraic object consisting of a set together with a single binary operation, satisfying certain axioms. If is a group with operation, a congruence relation on is an equivalence relation on the elements of satisfying for all,,,. 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 cosets of this subgroup. Together, these equivalence classes are the elements of a quotient group. 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 whenever. 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. The general notion of a congruence relation can be given a formal definition in the context of universal algebra, a field which studies ideas common to all algebraic structures. In this setting, a congruence relation is an equivalence relation on an algebraic structure that satisfies for every -ary operation and all elements such that for each
Relation with homomorphisms
If is a homomorphism between two algebraic structures, then the relation defined by is a congruence relation. By the first isomorphism theorem, the image ofA under is a substructure of Bisomorphic to the quotient of A by this congruence.
In the particular case of groups, congruence relations can be described in elementary terms as follows: If G is a group and ~ is a binary relation on G, then ~ is a congruence whenever:
Given any element a of G, a ~ a ;
Given any elements a and b of G, if a ~ b, then b ~ a ;
Given any elements a, b, and c of G, if a ~ b and b ~ c, then a ~ c ;
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.
Conditions 1, 2, and 3 say that ~ is an equivalence relation. A congruence ~ is determined entirely by the set 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.
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. 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 idea is generalized in universal algebra: A congruence relation on an algebraA is a subset of the direct productA × 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 ofA to its equivalence class is a homomorphism, and the kernel of this homomorphism is ~. The latticeCon of all congruence relations on an algebra A is algebraic. John M. Howie described how semigroup theory illustrates congruence relations in universal algebra: