logo

Common expressions for the theory of proveit.linear_algebra.addition

In [1]:
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
In [2]:
%begin common
Defining common sub-expressions for theory 'proveit.linear_algebra.addition'
Subsequent end-of-cell assignments will define common sub-expressions
%end_common will finalize the definitions
In [3]:
vec_summation_b1toj_fQ = VecSum(b_1_to_j, f__b_1_to_j, 
                                condition=Q__b_1_to_j)
vec_summation_b1toj_fQ:
In [4]:
%end common
These common expressions may now be imported from the theory package: proveit.linear_algebra.addition