Description: Substitution of equal classes into element relation. (Contributed by Peter Mazsa, 22-Jul-2017)