I have seen that it is possible in universal algebra to generalize the concept of congruence and of quotient algebra.
If $A$ is an algebra (a set endowed with some operations), a congruence is an equivalence relation on $A$ which preserves those operations (a subset of $A \times A$ which is an equivalence relation and a subalgebra). Therefore, in the quotient set, operations via representatives are well-defined.
Given an equivalence relation we obtain a partition of the set $A$. In groups, this partition is a congruence if and only if it has been "generated by a normal subgroup via product". i.e:
Let $G$ be a group and $N \lhd G$ a normal subgroup. Then $x Ry$, if $xy^{-1} \in N$ is a congruence. The equivalence classes are $[x]=xN=\{xn : n \in N\}$ and $G/R=G/N=\{xN : x\in G\}$.
Similarly, in commutative rings a partition is a congruence if an only if it has been "generated by" an ideal.
Is there any way to formalise this concept of a subset of an algebra that provides a partition making use of some operation, being this equivalence relation a congruence?
Could this concept be generalized to any algebra, or at least to some collection of algebras?
Is there any way to formalise this concept of a subset of an algebra that provides a partition making use of some operation, being this equivalence relation a congruence?
Here is the way it has been done. If A is an algebra and $\theta$ is a congruence, then $\theta$ is called regular if it is generated as a congruence by any one of its classes. That is, if $C$ is any $\theta$-class, then $\theta$ is the least congruence containing $C\times C$. A is congruence regular if all of its congruences are regular. A variety of algebras is congruence regular if all of its members are.
Notes.
(1) The term regular was introduced by Mal'cev in
A.I. Mal'cev, On the general theory of algebraic systems, Mat. Sb., 35 (77) (1954), pp. 3-20.
(2) Congruence regular varieties were characterized by Csakany in
B. Csakany, Characterization of regular varieties, Acta Sci. Math. (Szeged), 31 (1970), pp. 187-189.
(3) In unpublished notes from the 1970's, J. Hagemann proved that a congruence regular variety must be congruence modular and congruence $n$-permutable for some $n$. It is a consequence of this that any variety containing an algebra that has a non-discrete compatible partial order must fail to be congruence regular. So, for example, any unary variety, the variety of all semigroups, any variety of lattices, ETC, will fail to be congruence regular.