Zulip Chat Archive

Stream: general

Topic: rename abel1 -> abel, abel -> abel_nf


Scott Morrison (Oct 27 2022 at 03:45):

By analogy with ring and ring_nf, since the term ordering in abel is slightly arbitrary, I wonder if we should promote abel1 (which closes equality goals) to abel as the main tactic, then have abel_nf as the tactic that rewrites into normal forms.

Mario Carneiro (Oct 27 2022 at 03:47):

Isn't there a ring1 as well?

Mario Carneiro (Oct 27 2022 at 03:48):

Ah, ring in mathlib is just a wrapper around ring1 with a fallback to use ring_nf and complain that you didn't call it directly

Scott Morrison (Oct 27 2022 at 03:48):

Ah, okay, so actually to make them parallel, we would leave abel1 alone, move abel to abel_nf, and add a new abel

Scott Morrison (Oct 27 2022 at 03:49):

Mostly I'm just curious how much we actually need abel (rather than abel1).

Mario Carneiro (Oct 27 2022 at 03:49):

ring_nf has basically exactly the same issues as abel_nf

Mario Carneiro (Oct 27 2022 at 03:50):

but it gets a surprising amount of use

Mario Carneiro (Oct 27 2022 at 03:50):

I originally added it only for debugging purposes

Scott Morrison (Oct 27 2022 at 03:50):

So far I'm failing to find places in mathlib where abel1 isn't enough. People are apparently good about using it correctly. :-)

Scott Morrison (Oct 27 2022 at 03:54):

Oooh, I found a non-terminal use, in algebra/star/chsh.lean, and it's my fault. :-)


Last updated: Dec 20 2023 at 11:08 UTC