logo
In [1]:
import proveit
from proveit import defaults
from proveit import a, b, n
from proveit.numbers import zero, one, greater, greater_eq
theory = proveit.Theory() # the theorem's theory
In [2]:
%proving nonzero_if_is_nat_pos
With these allowed/disallowed theorem/theory presumptions (e.g., to avoid circular dependencies), we begin our proof of
nonzero_if_is_nat_pos:
(see dependencies)
In [3]:
defaults.assumptions = nonzero_if_is_nat_pos.conditions
defaults.assumptions:
In [4]:
greater(n, zero).conclude_via_transitivity()
nonzero_if_is_nat_pos may now be readily provable (assuming required theorems are usable).  Simply execute "%qed".
In [5]:
%qed