Add subst proof rule. Define symm and trans using subst.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>