logo
In [1]:
import proveit
theory = proveit.Theory() # the theorem's theory
from proveit import defaults
from proveit import A
from proveit.logic import in_bool, Not
from proveit.logic.booleans.negation  import not_t, not_f
from proveit.logic.booleans.negation import double_negation_elim_lemma
In [2]:
%proving double_negation_elim
With these allowed/disallowed theorem/theory presumptions (e.g., to avoid circular dependencies), we begin our proof of
double_negation_elim:
(see dependencies)
In [3]:
defaults.assumptions = double_negation_elim.conditions
defaults.assumptions:
In [4]:
double_negation_elim_lemma
In [5]:
double_negation_elim_lemma.instantiate({A:A})
double_negation_elim may now be readily provable (assuming required theorems are usable).  Simply execute "%qed".
In [6]:
%qed
proveit.logic.booleans.negation.double_negation_elim has been proven.
Out[6]:
 step typerequirementsstatement
0generalization1  ⊢  
1instantiation2, 3, 8  ⊢  
  :
2conjecture  ⊢  
 proveit.logic.booleans.negation.double_negation_elim_lemma
3instantiation5, 4  ⊢  
  :
4instantiation5, 6  ⊢  
  :
5axiom  ⊢  
 proveit.logic.booleans.negation.operand_is_bool
6instantiation7, 8  ⊢  
  :
7conjecture  ⊢  
 proveit.logic.booleans.in_bool_if_true
8assumption  ⊢