Zulip Chat Archive
Stream: mathlib4
Topic: Supporting characteristic in the `ring` tactic
Anne Baanen (Feb 15 2024 at 16:46):
I played around a bit this afternoon with adding support for the ring characteristic in the ring
tactic. The idea is write something like ring (mod 37)
, the tactic will search for a CharP R 37
instance and use norm_num
to reduce every constant mod 37. It seems totally achievable to do this in a copy of the ring tactic. But the file defining CharP
and quite a few of its imports depend on ring
. Since file#Mathlib/Algebra/CharP/Basic is quite a mess of results, I'm inclined to restructure it. But I thought I'd ask before getting in someone's way.
Anne Baanen (Feb 15 2024 at 16:47):
/poll How to add CharP
support to ring
without import loops?
Restructure Algebra.CharP.Basic
, splitting it into many files
Only split off the definition of CharP
and essential results
Make a new ring_mod_char
tactic
Ruben Van de Velde (Feb 15 2024 at 16:51):
How about: split off the definition, and then work on the tactic and more reorganizing in parallel?
Kevin Buzzard (Feb 15 2024 at 20:02):
If Algebra.CharP.Basic were 2000 lines I'd go for the first result, but given that it's only 600 or so lines I'm voting for the third option to maximise the chances of getting new goodies ASAP :-)
Anne Baanen (Feb 20 2024 at 15:06):
Here's the PR! #10765
Kevin Buzzard (Feb 20 2024 at 15:45):
Oh lol I voted on a train and I see my vote didn't ever appear :-) But I'm happy with the result!
Last updated: May 02 2025 at 03:31 UTC