coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] backtracking issues in extern hints
- Date: Tue, 14 Oct 2014 13:16:40 -0400
On 10/14/2014 12:53 PM, Pierre-Marie Pédrot wrote:
On 14/10/2014 18:32, Pierre-Marie Pédrot wrote:
As far as I know, eauto and auto does not take advantage of theNevermind, it is not the case anymore. The bug seems to come from the
backtracking mechanism of the new tactic monad. It only takes the first
result of the tactic.
matching of the conclusion as [foo _] which prevents the hint to apply.
If you change your first hint to
Hint Extern 5 => econstructor.
Then it magically works.
That doesn't magically work for me. To be clear, I'm trying:
Inductive foo : nat -> Prop :=
| Foo1 : foo 1
| Foo2 : foo 2.
Hint Extern 5 => econstructor.
Inductive bar : Type :=
| Bar{n}(f : foo n)(neq2 : n = 2) : bar.
Hint Constructors bar.
Goal bar.
Fail solve [eauto].
Fail typeclasses eauto with core.
Abort.
-- Jonathan
- [Coq-Club] backtracking issues in extern hints, Jonathan, 10/14/2014
- Re: [Coq-Club] backtracking issues in extern hints, Pierre-Marie Pédrot, 10/14/2014
- Re: [Coq-Club] backtracking issues in extern hints, Pierre-Marie Pédrot, 10/14/2014
- Re: [Coq-Club] backtracking issues in extern hints, Jonathan, 10/14/2014
- Re: [Coq-Club] backtracking issues in extern hints, Arnaud Spiwack, 10/15/2014
- Re: [Coq-Club] backtracking issues in extern hints, Pierre-Marie Pédrot, 10/14/2014
- Re: [Coq-Club] backtracking issues in extern hints, Pierre-Marie Pédrot, 10/14/2014
Archive powered by MHonArc 2.6.18.