-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
btauto should not modify core HintDb #27
Comments
There's no written down policy, but judging from some recent PRs, there is a will to extract as much as possible out of the |
OTOH, if your script broke because |
That's indeed what happened. I wasn't optimizing for robustness, but for prototyping speed and proof-script debuggability. Are you implying that this is a "wontfix because user is not using Coq in the intended way?" |
I won't be the one to decide anyway. I don't know what @coq/stdlib-maintainers think of this. I am concerned with that moving this hint in a new database would mean that users would completely stop benefiting from it. However, a compromise might be to move it to some existing database like |
Today I added a seemingly innocent
Require Import Coq.btauto.Btauto.
at the top of a file, and this change broke a proof script further down in that file.It turns out this happened because btauto adds the following
Hint
tocore
:https://github.com/coq/coq/blob/9193769161e1f06b371eed99dfe9e90fec9a14a6/theories/btauto/Algebra.v#L3-L13
This hint is certainly useful, but it's unfortunate that it's in a not-always-imported file, because it makes developments very brittle, as described in the scenario above.
Is there a "policy" regarding which files are "allowed" to add hints to
core
?Coq version: 8.11.0, master
The text was updated successfully, but these errors were encountered: