import proveit
from proveit import a, b, d, i
from proveit.core_expr_types.tuples import tuple_len_incr
from proveit.numbers.numerals.decimals import tuple_len_3, add_3_1
theory = proveit.Theory() # the theorem's theory
%proving tuple_len_4
three_spec = tuple_len_3.instantiate({a:a}, auto_simplify=False)
tuple_spec = tuple_len_incr.instantiate(
{i: three_spec.rhs, a: three_spec.lhs.operands, b: d})
%qed