In a finitely complete category , a congruence on an object is an internal equivalence relation on .
To be precise, this consists of a subobject equipped with the following maps:
internal reflexivity: which is a section both of and of ;
internal symmetry: which interchanges and , namely and ;
internal transitivity: ; where with the notation for the projections in the cartesian square
the following holds: and .
Note that since is a monomorphism, the maps , , and are necessarily unique if they exist.
Any kernel pair is a congruence; a congruence which is the kernel pair of some morphism is called effective. The coequalizer of a congruence is called a quotient object. An effective congruence is always the kernel pair of its quotient if that quotient exists; the quotient of an effective congruence is an effective quotient. A regular category is called an exact category if every congruence is effective.
An equivalence relation is precisely a congruence in Set.
The eponymous example is congruence modulo (for a fixed natural number ), which can be considered a congruence on in the category of rigs, or on in the category of rings.
The notions of regular category and exact category can naturally be formulated in terms of congruences. A “higher arity” version, corresponding to coherent categories and pretoposes is discussed at familial regularity and exactness.
A Mal'cev category is a finitely complete category in which every internal relation satisfying reflexivity is thereby actually a congruence.
Higher-categorical generalizations are that of a 2-congruence? and of a groupoid object in an (∞,1)-category.