Zulip Chat Archive

Stream: mathlib4

Topic: deprecated lemma from rw?


Bhavik Mehta (Sep 07 2023 at 10:24):

Should we disallow deprecated lemmas from appearing in the output of rw? (or deprioritise them?) As a beginner-friendly tactic and searching tactic, it's slightly unfortunate for the suggestion to immediately throw a warning (this came up in lftcm)

Bhavik Mehta (Sep 07 2023 at 10:26):

(cc @Linus Sommer) This came up since rw? suggested docs4#List.count_cons'

Mario Carneiro (Sep 08 2023 at 18:34):

Hm, I notice some other issues as well:

  • count_cons' is not displayed as @[deprecated] in doc-gen
  • There is no target for the deprecation warning, nor a comment explaining what to do. Presumably the intended replacement is List.count_cons?

Henrik Böving (Sep 08 2023 at 18:36):

Is deprecated a lean built-in attribute? If so I can add it to the list of attributes that doc-gen knows about.

Mario Carneiro (Sep 08 2023 at 19:52):

yes

Mario Carneiro (Sep 08 2023 at 19:52):

it would be nice if we found some solution to user attributes though... I need to brush off AttrDelab again

Henrik Böving (Sep 08 2023 at 21:07):

implemented.


Last updated: Dec 20 2023 at 11:08 UTC