logo

Common expressions for the theory of proveit.abstract_algebra

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 Variable
In [2]:
%begin common
Defining common sub-expressions for theory 'proveit.abstract_algebra'
Subsequent end-of-cell assignments will define common sub-expressions
%end_common will finalize the definitions

Use these to denote addition and multiplication generically as variables

In [3]:
plus = Variable('boxplus', r'\boxplus')
Out[3]:
plus:
In [4]:
times = Variable('boxtimes', r'\boxtimes')
Out[4]:
times:
In [5]:
%end common
These common expressions may now be imported from the theory package: proveit.abstract_algebra