coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?
Chronological Thread
- From: Jason Gross <jasongross9 AT gmail.com>
- To: Catalin Hritcu <catalin.hritcu AT gmail.com>
- Cc: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?
- Date: Thu, 11 Oct 2012 09:31:23 -0400
I'm not sure what's going on, exactly, but note that the following works, too:
Hint Transparent one.
Hint Constructors prev.
Lemma prev_one_zero'''' : prev one zero.
Proof.
debug eauto.
Qed.
On Thu, Oct 11, 2012 at 9:07 AM, Catalin Hritcu <catalin.hritcu AT gmail.com> wrote:
OK, I've simplified the test illustrating the problem even further:
Inductive prev : nat -> nat -> Prop :=
| previous : forall n, prev (S n) n.
Definition zero := O.
Definition one := S O.
(* This works *)
Lemma prev_one_zero : prev one zero.
Proof.
eauto using prev.
Qed.Lemma prev_one_zero' : prev one zero.
(* This also works *)
Proof.
eauto using previous.
Qed.Hint Constructors prev : mydb.
(* This also works *)
Create HintDb mydb.
Lemma prev_one_zero'' : prev one zero.
Proof.Hint Constructors prev.
eauto with mydb.
Qed.
(* But this doesn't work! *)
Lemma prev_one_zero''' : prev one zero.
Proof.
eauto.
Abort.
(* Adding [core] explicitly doesn't help either *)
Lemma prev_one_zero''' : prev one zero.
Proof.
eauto with core.
Abort.
(* Neither does this *)
Hint Resolve previous.
Lemma prev_one_zero''' : prev one zero.
Proof.
eauto.
Abort.
(* Unfolding [one] makes it work though *)
Lemma prev_one_zero''' : prev one zero.
Proof.
unfold one. eauto.
Qed.
- [Coq-Club] Why does eauto treat "core" differently than the other hint databases?, Catalin Hritcu, 10/11/2012
- [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Catalin Hritcu, 10/11/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Jason Gross, 10/11/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Catalin Hritcu, 10/11/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Catalin Hritcu, 10/11/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Jason Gross, 10/11/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Tom Prince, 10/14/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Catalin Hritcu, 10/14/2012
- Re: [Coq-Club] Why does eauto treat "core" differently than the other hint databases?, Matthieu Sozeau, 10/14/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Catalin Hritcu, 10/14/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Catalin Hritcu, 10/11/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Catalin Hritcu, 10/11/2012
- Re: [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Jason Gross, 10/11/2012
- [Coq-Club] Re: Why does eauto treat "core" differently than the other hint databases?, Catalin Hritcu, 10/11/2012
Archive powered by MHonArc 2.6.18.