Zulip Chat Archive

Stream: general

Topic: recursive ring


Patrick Massot (May 29 2018 at 20:37):

Is that a bug?

import tactic.ring

example (a b x y : ) :  -x*y*(a+b)^2 + y*(x+y)*a^2 + x*(x+y)*b^2 - (a*y-b*x)^2 = 0:=
begin
  ring,
  ring,
end

Kenny Lau (May 29 2018 at 20:51):

so ring is not idempotent ^^

Mario Carneiro (May 29 2018 at 20:52):

ring has a bug in it currently

Mario Carneiro (May 29 2018 at 20:52):

I think there's an issue for it

Patrick Massot (May 29 2018 at 20:55):

The example in the issue actually works here

Mario Carneiro (May 29 2018 at 20:56):

It's because when ring fails, it tries to rewrite the expression into a "nice" SOP form, and this rewriting causes it to circumvent the bug the second time around

Sebastian Ullrich (May 29 2018 at 20:59):

begin ring, ring, ring, ring, ring, ring, ring, banana_phone end

Patrick Massot (May 29 2018 at 21:09):

I really mean: I copy and paste the example in the github issue and it works here


Last updated: Dec 20 2023 at 11:08 UTC