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