import proveit
from proveit import A
from proveit.logic.booleans import true_is_bool
theory = proveit.Theory() # the theorem's theory
%proving in_bool_if_true
true_is_bool
AeqT = A.evaluation(assumptions=[A])
AeqT.sub_left_side_into(true_is_bool)
%qed