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