logo
In [1]:
import proveit
from proveit import defaults
from proveit import x, P, Px
from proveit.logic import PofTrue
theory = proveit.Theory() # the theorem's theory
In [2]:
%proving substitute_truth
With these allowed/disallowed theorem/theory presumptions (e.g., to avoid circular dependencies), we begin our proof of
substitute_truth:
(see dependencies)
In [3]:
defaults.assumptions = substitute_truth.all_conditions()
defaults.assumptions:
In [4]:
x_eq_T = x.evaluation()
x_eq_T:  ⊢  
In [5]:
x_eq_T.sub_left_side_into(PofTrue)
substitute_truth may now be readily provable (assuming required theorems are usable).  Simply execute "%qed".
In [6]:
%qed
proveit.logic.equality.substitute_truth 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.eq_true_intro
6assumption  ⊢