This an abstract class for any Expression that binds a variable in an
Expression. This includes LambdaExpressions and Quantified
Expressions
|
|
|
|
|
replace(self,
variable,
expression,
replace_bound=False,
alpha_convert=True)
Replace every instance of 'variable' with 'expression' |
source code
|
|
|
|
alpha_convert(self,
newvar)
Rename all occurrences of the variable introduced by this variable
binder in the expression to @newvar. |
source code
|
|
|
|
|
|
|
free(self,
indvar_only=True)
Return a set of all the free (non-bound) variables in self. |
source code
|
|
|
|
|
|
|
visit(self,
function,
combinator,
default)
Recursively visit sub expressions |
source code
|
|
|
|
|
|
Inherited from Expression:
__and__,
__call__,
__gt__,
__hash__,
__lt__,
__neg__,
__neq__,
__or__,
__repr__,
__str__,
applyto,
equiv,
make_VariableExpression,
negate,
normalize,
simplify,
substitute_bindings,
tp_equals,
typecheck
|