logo

Common expressions for the theory of proveit.logic.booleans

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.logic import BooleanSet, TrueLiteral, FalseLiteral
%begin common
Defining common sub-expressions for theory 'proveit.logic.booleans'
Subsequent end-of-cell assignments will define common sub-expressions
%end_common will finalize the definitions
In [2]:
Boolean = BooleanSet()
Boolean:
In [3]:
TRUE, FALSE = TrueLiteral(), FalseLiteral()
TRUE:
FALSE:
In [4]:
%end common
These common expressions may now be imported from the theory package: proveit.logic.booleans