logo

Common expressions for the theory of proveit.numbers.number_sets.integers

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 Literal
from proveit.numbers.number_sets.integers.integer import IntegerSet, IntegerNegSet, IntegerNonZeroSet, IntegerNonPosSet
%begin common
Defining common sub-expressions for theory 'proveit.numbers.number_sets.integers'
Subsequent end-of-cell assignments will define common sub-expressions
%end_common will finalize the definitions
In [2]:
Integer = IntegerSet()
Integer:
In [3]:
IntegerNeg = IntegerNegSet()
IntegerNeg:
In [4]:
IntegerNonZero = IntegerNonZeroSet()
IntegerNonZero:
In [5]:
IntegerNonPos = IntegerNonPosSet()
IntegerNonPos:
In [6]:
infinity = Literal('infinity',r'\infty')
infinity:
In [7]:
%end common
These common expressions may now be imported from the theory package: proveit.numbers.number_sets.integers