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