coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Théo Zimmermann <theo.zimmi AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Making COq do more of the search work
- Date: Mon, 12 Mar 2018 17:58:30 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=theo.zimmi AT gmail.com; spf=Pass smtp.mailfrom=theo.zimmi AT gmail.com; spf=None smtp.helo=postmaster AT mail-wm0-f52.google.com
- Ironport-phdr: 9a23:pWTOeRO/Cb+IR0+UTeMl6mtUPXoX/o7sNwtQ0KIMzox0LfXzrarrMEGX3/hxlliBBdydt6ofzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlGiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkaKTA5/mHZhM9+gq1Vrx2upQBwzpXOb42JLvdzZL/RcN0YSGdHQ81fVzZBAoS5b4YXEeQBPfxfr47lqFQNrBu+AAysC/31yj9NnHD226s62PkmHAHa3AwvAdUOvG7VrdX0MacSVOG1wbLHzTXGdfxW2DP95JLUfRAmpPGBRLR9etffx0koEgPKlFSQqYr9MjOJ1uQCrW+b7uthVeKqjm4otRtxoj21yccqjInFnIQVxU7Y9SlhwYY1I8G4R1B/YdK+DZRfqSeXPJZ1TMM6W2xluik3xqcbtZKlfCUG0pcqywDFZ/GHbYSE+hzuWeSLLTtlhX9ofKiziwi2/ES61OHxWc+520tQoCVfiNnDrHUN2gTT6seZTvt9+V+s2TOV2ADS7uFIOE41la/HJ5I4zL49loQfvV7MHi/xn0X2g6uWeVs+9ue07OTnZ63qpp6aN4BqlgHzKqYjl8OlDeglLAQDX3KX9Oei2LH5/UD1Xq1GjvgsnanYtJDaK94bpqm8AwJNzoYj6wiwDzC83NUZnHkHKVdFeBOcgojmPlHBOvH4DfOlj1uwlzdrwujKPqf9DZXVMnjDjLDhcK5h5E5b0Qo/1MxQ55ZJCr4aO//zQU/wtNnADhAjKQC0wuDnCM981owEQ26PDLWZY+vutgqD4ftqKO2RbqcUviz8Ir4r/a3Al3g8zGMd/K6e75oSbX2iG/1gJQ3NfXrhhZETEGIPvyIxSeXrjBuJVjsFNCX6ZL41+jxuUNHuNozEXI342OXQjhf+JYVfYyV9Mn7JFH7pc4ueXPJVMXCdJ8ZglnoPUr3zEtZ9hyHrjxfzzv9cFsSR4jcR7Mux29185umVnhY3p2QtUpatllqVRmQxpVsmAj872Kcl/B54w1aHlLd927lWSIYV6PROXQM3c5Xbyr4iBg==
Dear Michael, You may be interested in this 2-page article where I explain how to use typeclasses eauto to do forward search in the way that Matthieu suggested: http://www.theozimmermann.net/TTT2017/abstract/coq-prolog.pdf Best regards, Théo On 12/03/2018 16:24, Soegtrop, Michael
wrote:
Dear
Matthieu,
what I tried with eauto and typeclass eauto is to modify the goal to True /\ old-goal, split the /\ and use eauto (or typeclass eauto) to solve True, remember the new hypothesis created by forwarding and “transport” these to the context of old-goal – a fairly tricky and fragile process. Is this essentially what you propose? The main problem was that it was fairly fragile – sometimes “transporting” the new hypothesis from one goal context to another fails cause of subtle dependencies, and it was terribly complicated to debug this.
I abandoned this and now use some “collection” tactics. I add to the tactic be defining a new one which has new functionality and also calls the old collection tactic. Then I define a tactic notation, which is constantly redefined to call the top level collection tactic. The tactic notation I call in an extern hint. There are a few things on top like for each collection I have sub tactics with various priority levels and so on. If I remember right, Jonathan Leivant proposed this approach to me here on the list, and somehow I sticked to it. Knuth definitely would have put it into appendix D.
It somehow works, but it is far away from being as flexible or as efficient as I would like to have it. This forward backward split works efficient in the sense that the number of backtracks is on average no more than 3 times the total proof depth of eauto (even if it is 100 or so). So it is linear with search depth, but the individual steps with all the guarding and hacking are fairly slow.
Best regards,
Michael Intel Deutschland GmbH |
- [Coq-Club] Making COq do more of the search work, Jim Fehrle, 03/12/2018
- RE: [Coq-Club] Making COq do more of the search work, Soegtrop, Michael, 03/12/2018
- Re: [Coq-Club] Making COq do more of the search work, Abhishek Anand, 03/12/2018
- Re: [Coq-Club] Making COq do more of the search work, Matthieu Sozeau, 03/12/2018
- RE: [Coq-Club] Making COq do more of the search work, Soegtrop, Michael, 03/12/2018
- Re: [Coq-Club] Making COq do more of the search work, Théo Zimmermann, 03/12/2018
- Re: [Coq-Club] Making COq do more of the search work, Armaël Guéneau, 03/13/2018
- Re: [Coq-Club] Making COq do more of the search work, Matthieu Sozeau, 03/13/2018
- Re: [Coq-Club] Making COq do more of the search work, Clément Pit-Claudel, 03/13/2018
- RE: [Coq-Club] Making COq do more of the search work, Soegtrop, Michael, 03/14/2018
- Re: [Coq-Club] Making COq do more of the search work, Armaël Guéneau, 03/13/2018
- Re: [Coq-Club] Making COq do more of the search work, Théo Zimmermann, 03/12/2018
- RE: [Coq-Club] Making COq do more of the search work, Soegtrop, Michael, 03/12/2018
- Re: [Coq-Club] Making COq do more of the search work, R. Pollack, 03/12/2018
- Re: [Coq-Club] Making COq do more of the search work, Matthieu Sozeau, 03/12/2018
- Re: [Coq-Club] Making COq do more of the search work, Abhishek Anand, 03/12/2018
- RE: [Coq-Club] Making COq do more of the search work, Soegtrop, Michael, 03/12/2018
Archive powered by MHonArc 2.6.18.