logo
In [1]:
import proveit
theory = proveit.Theory() # the theorem's theory
from proveit import A
In [2]:
%proving self_implication
With these allowed/disallowed theorem/theory presumptions (e.g., to avoid circular dependencies), we begin our proof of
self_implication:
(see dependencies)
self_implication may now be readily provable (assuming required theorems are usable).  Simply execute "%qed".
In [3]:
A_assumingA = A.prove(assumptions=[A])
A_assumingA:  ⊢  
In [4]:
A_assumingA.as_implication(A)
In [5]:
%qed
proveit.logic.booleans.implication.self_implication has been proven.
Out[5]:
 step typerequirementsstatement
0generalization1  ⊢  
1deduction2  ⊢  
2assumption  ⊢