import proveit
from proveit import Lambda
from proveit import x, a
from proveit.numbers import Exp
theory = proveit.Theory() # the theorem's theory
%proving exp_eq
x_eq_y = exp_eq.conditions[-1]
x_eq_y.substitution(Lambda(x, Exp(x, a)), assumptions=[x_eq_y])
%qed