Congruence over a single function instead of all functions

Now congruence relations are paired with a single function respecting the congruence instead of all functions.