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 fx, gx, P, Q
from proveit.logic import TRUE, FALSE, Implies, Equals
%begin common
fx_eq_gx = Equals(fx, gx)
PofTrue = Function(P, TRUE)
PofFalse = Function(P, FALSE)
QimplPofTrue = Implies(Function(Q, TRUE), PofTrue)
QimplPofFalse = Implies(Function(Q, FALSE), PofFalse)
%end common