jacopy.Wedge¶
- class jacopy.Wedge(*children)¶
Bases:
Exprn-ary wedge product
α_1 ∧ α_2 ∧ … ∧ α_p.Children are stored in the order given. No graded reordering is applied at construction, that requires degree information and lives in
jacopy.algorithms.sort_product(or a dedicated wedge-sort pass added when needed).The smart constructor
make()flattens nested wedges (associativity), absorbs any0factor, drops integer-1factors (the wedge unit), and collapses to a single factor when only one remains. Degree-aware identities such asα ∧ α = 0for a degree-1αare not applied here; a graded-canonicalize pass is responsible for those.- Parameters:
children (Expr)
Methods
__init__(*children)clone()Return
self.find(predicate)Yield descendants (including self) satisfying
predicate.make(*args)Smart constructor.
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
Tuple of immediate children.
is_atom