Open anandijain opened 2 years ago
Hi anand. This is possible and fairly easy. I can add a function overloading Base.inv
, but you have to know that inverting a rule that has more variables on the lhs. than the rhs will result in an error. (e.g., @rule f(~x, ~y, ~z) => g(~x)
is not invertible)
I haven't really read through this repo, but I didn't see an easy way to take
@rule ~x => exp(~x)
to@rule exp(~x) => ~x
. This was the hack I came up withit seems to work fine but it might be a bad way of doing it