coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Gaëtan Gilbert <gaetan.gilbert AT skyskimmer.net>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Moving away from putting hints in the core hintdb
- Date: Wed, 14 Nov 2018 20:57:16 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=gaetan.gilbert AT skyskimmer.net; spf=Pass smtp.mailfrom=gaetan.gilbert AT skyskimmer.net; spf=None smtp.helo=postmaster AT relay12.mail.gandi.net
- Ironport-phdr: 9a23:xmF0Nh3g+d9E+K+TsmDT+DRfVm0co7zxezQtwd8Zse0eKvad9pjvdHbS+e9qxAeQG9mDtLQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYQhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmlTkJNzA5/m/UhMJ/gq1UrxC9qBJw2IPUfIKYOeBicq/Bc94XR2xMVdtRWSxbBYO8apMCAesbMuFEs4nyvV0OogO/CwmtAOPg0SFHhmXq3aYn1OkhHhvJ0xI8H90UtnTYttr1NKYWUe+u0qbI1ynDYuhN2Tf+6InIaRMhofCJXbJ1b8XR01MjFwXbgVWMsIHoOS6e2OcVs2WD8eZsSOCih3Qlpg1tuDSj28Uhh4rTio4LxF3I6z11zYcrKdGiVUJ3fcCoHIFNuyyVNIZ6WN4uTmB0tCs817YIo4S0fDIQx5Qi3xPfa+KIc4yP4h/7TuaePzN4i2hleb6imRq+602gxff9VsmwylpKoTBKkt/RuXAMzRDT7NaISudl8keg3zaAyRzT5/laLUwpl6fXMZwszqIqmpYOs0nOHTX6lFv4gaOIbkkk//Kn6+XjYrXovJ+cMIp0hxnxMqs0hMO/Hf43Mg4UU2iU+OS80Kbs8lPjQLVWlfA2iarZsZDBJcQYp665BgpV3Zg56xqlCTepzsgYkWEdLF1ZYBKHk5TpO1bWLf/kCve/mk2gnytvx/DbJbLsGY7NL3jGkLf5Z7lx8U9cyAwpzdBe/Z1YEL8BIOigEnP24dffF1oyNxG+6+fhEtR0kI0ECkyVBarMH6pRrVaO0c0uJ+OBfpNd7Dn0JuQs4bjhjHszlEUBVbKqzIAUaXW9E+4gJUiFNym/yuwdGHsH61JtBNfhj0ePBGYKNiSCGpkk7zR+M7qISILKR4SjmruEhXnpBZ5HfWNHD1WBCzHuepnWAq5QOhLXGddol3k/bZbkU5UojE/8rwzr0LlmK+/Z4GseuI6xjIEotd2Wrgk78HlPN+rY02yJSDsozHkFQzYnhfo5pEV8zhGM2K50grpeGMABv/4=
I think currently there is no better way than manual "with mybase".
Maybe we could add an option "Set Default HintBase mybase", then you could use regular option scoping.
ie either put "Set" at the top of every file or module you want it in, or "Export Set" in FooOptions.v (where Foo is your project) and import that everywhere you want it in.
Gaëtan Gilbert
On 14/11/2018 20:27, Armaël Guéneau wrote:
Dear coq-club,
I just finished a Coq development, which I now want to publish, and I'm
facing the following issue:
While doing my development, I added a good number of hints (mainly Hint
Resolve and Hint Constructor) to the default database (ie "core" if I'm
not mistaking).
This was because it's much more convenient to write "eauto" everywhere
than "eauto with mybase" which is a lot more annoying to type(!).
But now, anyone loading my development will get its core database
polluted with my hints, which is very bad.
How can I refactor my project to avoid this?
My project spans across several files, and I'd like to share the hints
across the files, so delimiting them within a Section doesn't quite work
I think.
I could do "Tactic Notation go := eauto with mybase" but that doesn't
scale to [eauto using ... with ...].
Using "eauto with mybase" manually is annoying because I use the tactic
in a lot of places.
Even if it doesn't exist currently, I wonder what would be a nice
solution to this problem. Having a way of defining variants of (e)auto
that use different hint bases (while supporting all the [using ..],
[with ..] variants) sounds useful, I think?
— Armaël
- [Coq-Club] Moving away from putting hints in the core hintdb, Armaël Guéneau, 11/14/2018
- Re: [Coq-Club] Moving away from putting hints in the core hintdb, Gaëtan Gilbert, 11/14/2018
- Re: [Coq-Club] Moving away from putting hints in the core hintdb, Armaël Guéneau, 11/14/2018
- RE: [Coq-Club] Moving away from putting hints in the core hintdb, Jason -Zhong Sheng- Hu, 11/14/2018
- Re: [Coq-Club] Moving away from putting hints in the core hintdb, Vadim Zaliva, 11/14/2018
- Re: [Coq-Club] Moving away from putting hints in the core hintdb, Jacques-Henri Jourdan, 11/15/2018
- Re: [Coq-Club] Moving away from putting hints in the core hintdb, Vadim Zaliva, 11/14/2018
- RE: [Coq-Club] Moving away from putting hints in the core hintdb, Jason -Zhong Sheng- Hu, 11/14/2018
- Re: [Coq-Club] Moving away from putting hints in the core hintdb, Armaël Guéneau, 11/14/2018
- RE: [Coq-Club] Moving away from putting hints in the core hintdb, Soegtrop, Michael, 11/15/2018
- Re: [Coq-Club] Moving away from putting hints in the core hintdb, Jim Fehrle, 11/15/2018
- RE: [Coq-Club] Moving away from putting hints in the core hintdb, Soegtrop, Michael, 11/16/2018
- Re: [Coq-Club] Moving away from putting hints in the core hintdb, Jim Fehrle, 11/15/2018
- Re: [Coq-Club] Moving away from putting hints in the core hintdb, Gaëtan Gilbert, 11/14/2018
Archive powered by MHonArc 2.6.18.