Zulip Chat Archive
Stream: mathlib4
Topic: exact?/apply?/have?/rw? and deprecated lemmas
Michael Stoll (Nov 05 2024 at 17:47):
Sometimes, exact?
and friends suggest the use of deprecated lemmas, which is a bit annoying, as one has to first click on the "try this" and then replace the lemma name. Can this be avoided? I.e., is it easily possible to remove deprecated lemmas from the search?
(Not sure this is a new complaint. I only found this message when searching Zulip).
Damiano Testa (Nov 05 2024 at 18:29):
I think that more generally getting multiple lemmas that all work would be an improvement.
Michael Stoll (Nov 05 2024 at 18:29):
minus the deprecated ones...
Damiano Testa (Nov 05 2024 at 18:30):
Or at least flagged out.
Damiano Testa (Nov 05 2024 at 18:33):
(I'm thinking of a situation where the undeprecated result does not close the goal at hand: in those cases, the deprecated one is better than nothing! :smile: )
Michael Stoll (Nov 05 2024 at 18:33):
In most cases, the deprecated one has been replaced by something else, which should be found instead.
Ruben Van de Velde (Nov 05 2024 at 18:38):
Yeah, but there are also cases where the deprecated version has a slightly different statement
Thomas Murrills (Nov 05 2024 at 18:43):
Note that Try This allows styling of suggestions; while strikethrough of a lemma might be too illegible in the suggestion list, a “warning” styling for these suggestions might be appropriate (after pushing them to the bottom of the list!)
Kim Morrison (Nov 05 2024 at 20:29):
PR definitely welcome!
Kim Morrison (Nov 05 2024 at 20:30):
Also don't forget in this family have?
.
Michael Stoll (Nov 05 2024 at 20:30):
Changed the topic to include have?
.
Last updated: May 02 2025 at 03:31 UTC