import proveit
from proveit import A, B
from proveit import defaults
from proveit.logic.booleans.conjunction import false_and_false_negated
theory = proveit.Theory() # the theorem's theory
%proving nand_if_neither
defaults.assumptions = nand_if_neither.all_conditions()
AeqF = A.evaluation()
BeqF = B.evaluation()
false_and_false_negated
n_aand_t = AeqF.sub_left_side_into(
false_and_false_negated.inner_expr().operand.operands[0],
auto_simplify=False)
BeqF.sub_left_side_into(n_aand_t, auto_simplify=False)
%qed