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