import proveit
# Prepare this notebook for defining the common expressions of a theory:
%common_expressions_notebook # Keep this at the top following 'import proveit'.
from proveit import Function
from proveit import a, b, f, l, k, Q
from proveit.core_expr_types import b_1_to_j
from proveit.numbers import Sum
%begin common
ak = Function(a, k)
al = Function(a, l)
bk = Function(b, k)
bl = Function(b, l)
summation_b1toj_fQ = Sum(b_1_to_j,
Function(f, b_1_to_j),
condition=Function(Q, b_1_to_j))
%end common