Description: Substitution of equal classes in binary relation. (Contributed by Peter Mazsa, 14-Jun-2024)