logo
In [1]:
import proveit
from proveit import a, b, e, i
from proveit.core_expr_types.tuples  import tuple_len_incr
from proveit.numbers.numerals.decimals import tuple_len_4, add_4_1
theory = proveit.Theory() # the theorem's theory
In [2]:
%proving tuple_len_5
With these allowed/disallowed theorem/theory presumptions (e.g., to avoid circular dependencies), we begin our proof of
tuple_len_5:
(see dependencies)
In [3]:
four_spec = tuple_len_4.instantiate({a:a}, auto_simplify=False)
four_spec:  ⊢  
In [4]:
tuple_spec = tuple_len_incr.instantiate(
    {i: four_spec.rhs, a: four_spec.lhs.operands, b: e})
tuple_spec:  ⊢  
tuple_len_5 may now be readily provable (assuming required theorems are usable).  Simply execute "%qed".
In [5]:
%qed
proveit.numbers.numerals.decimals.tuple_len_5 has been proven.
Out[5]:
 step typerequirementsstatement
0generalization1  ⊢  
1instantiation2, 3, 4, 5*  ⊢  
  : , : , :
2axiom  ⊢  
 proveit.core_expr_types.tuples.tuple_len_incr
3conjecture  ⊢  
 proveit.numbers.numerals.decimals.nat4
4instantiation6  ⊢  
  : , : , : , :
5conjecture  ⊢  
 proveit.numbers.numerals.decimals.add_4_1
6conjecture  ⊢  
 proveit.numbers.numerals.decimals.tuple_len_4_typical_eq
*equality replacement requirements