Congruence is an equivalence relation compatible with $+$ and $\times$
Statement
For a fixed modulus : (i) for every ; (ii) ; (iii) ; and if and then and .
Why is it true?
This is what makes congruences usable as arithmetic: it means we can add, subtract, and multiply remainders directly instead of the huge original numbers, and always get the correct remainder back — the reason computers can check a -digit card number or compute without ever storing a -digit number.
Proof sketch
Reflexivity: and for every , so .
Symmetry: if then for some integer , so ; since is also an integer, , i.e. .
Transitivity: if and , write and . Adding these, , so and .
Compatibility with addition: from and , add the two equations: , which is a multiple of , so .
Compatibility with multiplication: write . This is again a multiple of , so . Together, (i)-(iii) make congruence an equivalence relation, and the last two steps show every ring operation on descends to a well-defined operation on residue classes .
Topics that use this theorem
Step-by-step proofs
No step-by-step proof yet for this theorem.
References
- Carl Friedrich Gauss (1801). Disquisitiones Arithmeticae
- Jung Hee Cheon, Andrey Kim, Miran Kim, Yongsoo Song (2017). Homomorphic Encryption for Arithmetic of Approximate Numbers · DOI:10.1007/978-3-319-70694-8_15