feat(Tactic/Alias): let attributes know that the constant is an alias#1763
feat(Tactic/Alias): let attributes know that the constant is an alias#1763JovanGerb wants to merge 3 commits intoleanprover-community:mainfrom
Conversation
|
I wrote this three years ago, adapting Mario's code for the old alias command. Mario insisted that the Yes, the two decisions are incompatible with each other. Interestingly, nothing breaks after your change. However, this doesn't mean there aren't any downstream tools that rely on the current behavior. For prudence, let's have two versions of |
When tagging an
aliaswithto_additive, we would like to have the translated declaration also be analias, and have it get the docstring that normalaliases get. To do this, we needaliasto first tag the declaration as an alias before elaborating the attributes.I noticed that the
aliasExtextension was not actually storing aliases how they appear, but some funny kind of transitive extension of this. This is annoying, because this is not what is used for the generated docstring. Hence, I've changed this so that the environment extension stores the aliases how they are written down. If desired, it is always possible to compute a transitive closure of this.