Replies: 1 comment 4 replies
-
You are correct that this is a difficult rule to write correctly. In general, the e-graph is building up a monotonically increasing equivalence relation. That is, if x = y right now, it can say so, but if x != y right now, then they may still become equal in the future! So it's impossible to say whether or not two things are provable unequal in general while equality saturation is running. You can, however, use domain knowledge to do this. A simple example is checking if something is zero. You cannot really say that |
Beta Was this translation helpful? Give feedback.
-
When trying to define rule:
tan(x-y) -> (tan(x)-tan(y))/(1+tan(x)*tan(y))
,withx
(andy
) not equal topi/2 + k*pi
(k = 1, 2, 3...). I found:pi/2 + k*pi
.tan(197*pi/394 - y)
,197*pi/394
must to be simplified before the mentioned rule is applied, . However, as I know, in egraph, the rules can be applied in any order.Is there some way to achieve this, or do I misunderstand something?
Beta Was this translation helpful? Give feedback.
All reactions