import proveit
from proveit import defaults
from proveit import A
from proveit.logic import Not
from proveit.logic.booleans.negation import not_t
theory = proveit.Theory() # the theorem's theory
%proving negation_contradiction
defaults.assumptions = negation_contradiction.conditions
AeqT = A.evaluation(assumptions=[A])
not_true = AeqT.sub_right_side_into(Not(A))
not_t
not_t.derive_right_via_equality()
%qed