Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] behavior of eauto

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] behavior of eauto


chronological Thread 
  • From: Brian Aydemir <baydemir AT cis.upenn.edu>
  • To: "Aaron Bohannon" <bohannon AT cis.upenn.edu>
  • Cc: "Coq List" <coq-club AT pauillac.inria.fr>
  • Subject: Re: [Coq-Club] behavior of eauto
  • Date: Thu, 21 Jun 2007 18:16:17 -0400
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Jun 21, 2007, at 6:02 PM, Aaron Bohannon wrote:

I've been trying to figure out exactly how auto and eauto work and was
surprised to find that eauto solves "foo1" but not "foo2".

Lemma foo1 : forall (A : Set) (P : A -> Prop) (x : A),
 P x -> exists y, P y.

Lemma foo2 : forall (A : Set) (P : A -> Prop) (x : A),
 P x -> {y | P y}.

I don't know about the specification for eauto, but it is worth noting that in Coq.Init.Logic, we have

        Hint Resolve ex_intro ex_intro2: core v62.

I don't see a corresponding declaration for exist, but if I add

        Hint Resolve exist.

eauto is then able to solve foo2 as well.

--Brian





Archive powered by MhonArc 2.6.16.

Top of Page