logo
In [1]:
import proveit
from proveit import defaults
from proveit import x, P, Px
from proveit.logic import PofFalse
theory = proveit.Theory() # the theorem's theory
In [2]:
%proving substitute_falsehood
With these allowed/disallowed theorem/theory presumptions (e.g., to avoid circular dependencies), we begin our proof of
substitute_falsehood:
(see dependencies)
In [3]:
defaults.assumptions = substitute_falsehood.all_conditions()
defaults.assumptions:
In [4]:
x_eq_F = x.evaluation()
x_eq_F:  ⊢  
In [5]:
x_eq_F.sub_left_side_into(PofFalse)
substitute_falsehood may now be readily provable (assuming required theorems are usable).  Simply execute "%qed".
In [6]:
%qed
proveit.logic.equality.substitute_falsehood has been proven.
Out[6]:
 step typerequirementsstatement
0generalization1  ⊢  
1instantiation2, 3, 4,  ⊢  
  : , : , :
2conjecture  ⊢  
 proveit.logic.equality.sub_left_side_into
3assumption  ⊢  
4instantiation5, 6  ⊢  
  :
5axiom  ⊢  
 proveit.logic.booleans.negation.negation_elim
6assumption  ⊢