import proveit
from proveit import A, B
from proveit import defaults
from proveit.logic.booleans.conjunction import true_and_false_negated
theory = proveit.Theory() # the theorem's theory
%proving nand_if_left_but_not_right
defaults.assumptions = nand_if_left_but_not_right.all_conditions()
AeqT = A.evaluation(assumptions=[A])
BeqF = B.evaluation()
true_and_false_negated
AnandF = AeqT.sub_left_side_into(true_and_false_negated, auto_simplify=False)
BeqF.sub_left_side_into(AnandF, auto_simplify=False)
%qed