import proveit
from proveit import defaults
from proveit import A
from proveit.logic import InSet
from proveit.logic.booleans import bools_def
theory = proveit.Theory() # the theorem's theory
%proving fold_is_bool
defaults.assumptions = fold_is_bool.conditions
bools_def
A_in_TorF = InSet(A, bools_def.rhs).prove()
bools_def.sub_left_side_into(A_in_TorF)
%qed