We have defined the set of congruence classes modulo as , where is the congruence class of modulo . In this note, we will define operations on congruence classes, and we will see how these operations are well-defined and consistent with the operations on integers.

The key idea is we have the quotient map:

And we already have the multiplication and addition operations on integers. We will see these operations can descent to the operations on congruence classes.

Operations on Congruence Classes

Addition/Subtraction of Congruence Classes

Given two congruence classes , we can define the addition of congruence classes as:

This definition needs to be justified. Recall in previous section, we shown and for any integers , we must show that the sum is independent of the choice of representatives and . This is indeed correct and we state it as a proposition:

Proposition

For any , if and , then .

Proof of Proposition

By this proposition, we know iff , and iff . The proposition is equivalent to show that , and this follows directly from compatibility of congruence relation with addition and subtraction.

Multiplication of Congruence Classes

Given two congruence classes , we can define the multiplication of congruence classes as:

This definition also needs to be justified. We can show this operation is well-defined and consistent with the multiplication of integers. We state this as a proposition:

Proposition

For any , if and , then .

Proof of Proposition

By this proposition, we know iff , and iff . The proposition is equivalent to show that , and this follows directly from compatibility of congruence relation with multiplication.

Commutative Diagram

Clearly we are defining the operations on by descending the operations on , and we shown these operations are well-defined and consistent with the operations on integers. We can also view this type of compatibility as a commutative diagram:

Where the vertical arrows are the quotient map, and the horizontal arrows are the arithmetic operations. The commutative diagram says that the addition operation on is consistent with the addition operation on by saying going down and then right is the same as going right and then down.