Zulip Chat Archive
Stream: mathlib4
Topic: Which is faster, grind or ring
Cookie Guy (Jan 27 2026 at 02:47):
A lot of the time, things that can be solved by ring can also be solved by grind, so I am wondering which is better/faster for the user to compile
Nick Adfor (Jan 27 2026 at 06:02):
I've never seen how to test them...... Just some docs.
https://lean-lang.org/doc/reference/latest/The--grind--tactic/,
https://www.ma.imperial.ac.uk/~buzzard/xena/formalising-mathematics-2022/Part_C/tactics/ring.html
Kim Morrison (Jan 27 2026 at 06:10):
#time
Violeta Hernández (Jan 27 2026 at 08:11):
Regardless of speed, I'd recommend using ring for goals about rings, because that conveys the proof intent better. If hypothetically ring were substantially slower than grind, we could later reimplement it as a sort of special case.
Last updated: Feb 28 2026 at 14:05 UTC