coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Soegtrop, Michael" <michael.soegtrop AT intel.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: RE: [Coq-Club] Moving away from putting hints in the core hintdb
- Date: Thu, 15 Nov 2018 10:22:03 +0000
- Accept-language: de-DE, en-US
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=michael.soegtrop AT intel.com; spf=Pass smtp.mailfrom=michael.soegtrop AT intel.com; spf=None smtp.helo=postmaster AT mga05.intel.com
- Dlp-product: dlpe-windows
- Dlp-reaction: no-action
- Dlp-version: 11.0.400.15
- Ironport-phdr: 9a23:Co8YLxaGJ6QHDV/YIzuUnOX/LSx+4OfEezUN459isYplN5qZr8i4bnLW6fgltlLVR4KTs6sC17KJ9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa/bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjA57m/Zl9BwgqxYrhKvpRN/wpLbb46aOvdlYqPSZtcXSXZdUspNVSFMBJ63YYsVD+oGOOZVt4fxqUYJrRSgCgmsGPnvyjhQhnPuwKY01OUhHh3G3AM6Ad0OtHrYp8jyOacXUOC60KnIwi/dYPNSwzv984/IfQ4uofGQR7JwdtLRxFIuFwPDklWft4jlMymJ2eQKtmiW9uxtXv+hhW4grgF+uDmvxsE0h4nIgIIV1k7L9SFjzIkoO9K1TlNwb928EJZIqi2XM5V6TtkiTmxooio3yqMKtYS0cSUE0Jgr2h/SZvKdf4WG7B/vTvidLDl8iX5/Zb6yhAu+/VC9xuD9UsS4ykhGoypKn9XWqHwBzQHf58aBR/Bg5EmuwyyP2BrW6uxcIUA7i67bK5k5z741mZocq1jPEy/slEX3iq+Walsr+uyy5+v7ZbXmo4eQN45yig7gLqQjgtGzDOAmPgQUX2WW+f6w2b398UHjT7hHgOU6kqzDv5DbIcQbqLS5AwhQ0os77ha/Diup0NQCknYZKFJJYgmHj4/3NFHBPPD4F/C/g0y3nTdqwfDGIqPuApHXInffl7fheK5x61RAxwor0dBf+5VUB6kdL/L0Q0/9rcDXDhskMwOv2OvnE9V81oYGWW2VGKOZMaXSsUWJ5u01OeWMapUV637BLK1v7Pn3yHQ9hFU1fK+z3JJRZmryVqBtJFzcan7xiP8AF30Lt0wwVrq5pkeFVGsZXHG/UL4m4Sl/QKenBofKS4TnyOiE3Sy7F5BSIHtBB1+QC3DwX4SCR/oILimVJ5kywXQ/SbG9Rtp5hlmVvwjgxu8/d7uGymgjrZvmkeNNyajWnBA2+yZzCp3EgWCLU2xw2GgPQm1vhfwtkQlG0l6GlJNArblAD9UKvqFIVBs3MdjXyOkoU4mvCDKERc+ATROdevvjATw1SYtukdoBah4gXdSkkh3HmSGtBu1Nmg==
Dear Armaël,
in my experience including the core hint database frequently leads to bad
proof search performance. E.g. the core hint database includes hints which
can loop to the search depth limit on some goals. I would generally
recommend to apply proper engineering practices in designing hint databases
and to not provide a substantially larger set of hints than required.
I typically use a set of tactics and/or tactic notations to wrap eauto with
certain sets of hint databases suitable for specific problems. This wrapping
also makes it easier to switch between eauto and typeclasses eauto, which is
a good idea to try. Also if eauto is used, one can easily add the debug flag
(for typeclasses eauto it is a global option). It is a good idea to have a
look at the logs and the branching factors of the proof search.
Best regards,
Michael
-----Original Message-----
From:
coq-club-request AT inria.fr
[mailto:coq-club-request AT inria.fr]
On Behalf Of Armaël Guéneau
Sent: Wednesday, November 14, 2018 8:28 PM
To:
coq-club AT inria.fr
Subject: [Coq-Club] Moving away from putting hints in the core hintdb
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
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
- [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.