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 f, Q
from proveit.core_expr_types import b_1_to_j, f__b_1_to_j, Q__b_1_to_j
from proveit.linear_algebra import VecSum
%begin common
vec_summation_b1toj_fQ = VecSum(b_1_to_j, f__b_1_to_j,
condition=Q__b_1_to_j)
%end common