Added congruence rules to complete equivalence relation.