coq
coq copied to clipboard
Ltac2: shortest qualid of name
I would like a version of Env.path that gives me the shortest qualified name that refers to the given reference.
Why?
I want to write an error message that suggests code to insert in the document. Most people don't write code with fully qualified identifiers.
Why do you want a qualid instead of printing to message?
I do ultimately want a message. Going through ident list just seems more flexible for possible future users. I'd be fine with something that just gave me a message though