What does mod mean in mathematics?

In a commutative ring $\,R,\ $ $\, a\equiv b\pmod c\,$ means $\,c\mid a-b,\ $ i.e. $\,a-b = cr\,$ for some $\,r \in R,\,$ i.e. $\,a-b\in cR.\,$ Generally, $\,a\equiv b\pmod{ c_1,\ldots, c_n}\,$ means that $\,a-b\in (c_1,\ldots c_n)R := c_1 R+\cdots+ c_n R,\,$ the sum of the principal ideals $\,c_i R,\,$ i.e $\,a-b = c_1 r_1 + \cdots + c_n r_n\,$ for some $\,r_i\in R.\,$ Congruence arithmetic provides an "element-ary" way of working in quotient (residue) rings. See here for the general correspondence between congruences, ideals, and $R$-subalgebras of the square $R^2$.

As for magmas, or any other algebraic structure defined by purely equational axioms, the notion of ring-congruence generalizes in a straightforward way to that of an equivalence relation that is compatible with all of the operations of the structure, e.g. $\, A\equiv a,\ B\equiv b\,\Rightarrow\, A\oplus B = a\oplus b\,$ for all binary operations $\,\oplus\,$ of the algebra, and similarly for all other $\,n$-ary operations of the structure. Just as for rings, there is a quotient algebra that reifies the (modular) congruence arithmetic within an algebraic structure of the same type, just like even/odd parity arthmetic of integers mod $\,2\,$ is ring-theoretically reified as arithmetic in the quotient/residue ring $\,\Bbb Z/2.$

Tags:

Notation