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