import proveit
from proveit import defaults
theory = proveit.Theory() # the theorem's theory
%proving exists_unfolding
antecedent = exists_unfolding.instance_expr.instance_expr.antecedent
defaults.assumptions = [exists_unfolding.condition, antecedent]
definition = antecedent.definition()
definition.derive_right_via_equality().as_implication(antecedent)
%qed