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