Remark

Equivalence modulo I generalizes both

Congruence mod n in Z

Congruence mod d in Q[X]