Open hwpang opened 2 years ago
substitute
doesn't do commutative-associative matching. Have you tried to use @rule
?
I think @rule
is also inadequate or annoying here... I've been thinking about this a bit and i think we need better predicates for AC operations.
I think
@rule
is also inadequate or annoying here... I've been thinking about this a bit and i think we need better predicates for AC operations.
Could e-matching with Metatheory.jl help out?
I've been thinking a lot about supporting AC operations in e-graphs.
I expect
substitute
to substitute the xz in xz*k, but it doesn't? Is there a workaround? I'm using version 0.19.7. Here's a minimal working example: