Cannot create empty rewrite hint databases #14028
Labels
kind: enhancement
Enhancement to an existing user-facing feature, tactic, etc.
part: rewriting tactics
The rewrite, autorewrite, rewrite_strat, and setoid_rewrite tactics.
Version
Coq 8.12.2
Operating system
Red Hat Enterprise Linux Workstation 7.4
Description of the problem
It is not possible to create an empty rewrite hint database.
There is no command to create one explicitly.
There is a way to create one implicitly,
but the result will contain at least one hint and
there is no command to remove it.
Besides, creating hint databases and scopes implicitly is deprecated or
at least considered to be bad form.
We can explicitly create and print hint databases and remove hints from them.
We cannot explicitly create rewrite hint databases or
remove hints from implicitly created ones.
Notes
There is also an inconsistency in how
Hint Resolve eq_refl : h.
works as expected,Hint Resolve @eq_refl : h.
produces a warning about arbitrary terms as hints,Hint Rewrite @eq_refl : r.
works as expected andHint Rewrite eq_refl : r.
causes an error during type inference.Not being able to remove hints was already brought up in #13887.
The text was updated successfully, but these errors were encountered: