jacopy.Neg¶
- class jacopy.Neg(arg)¶
Bases:
ExprUnary negation
-x.Kept as a first-class node rather than
-1 * xso that the sign is easy to pattern-match against later, many rewrite rules and proof-display routines care about whether a term is negated.- Parameters:
arg (Expr)
Methods
__init__(arg)clone()Return
self.find(predicate)Yield descendants (including self) satisfying
predicate.replace_at(path, new)Return a new tree with
newspliced atpath.substitute_atom(dummy, target)Return
selfwith every occurrence ofdummyreplaced bytarget.walk()Pre-order traversal yielding
selffollowed by descendants throughchildrenonly.Attributes
argTuple of immediate children.
is_atom