Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club]Observation about auto and family

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club]Observation about auto and family


chronological Thread 
  • From: mulhern <mulhern AT gmail.com>
  • To: Pierre Courtieu <pierre.courtieu AT gmail.com>
  • Cc: Jasper Stein <jasper AT codeyard.net>, coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club]Observation about auto and family
  • Date: Mon, 30 Jan 2006 10:59:47 -0600
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oqsVo0jcWk1QZxJmjjuyi7QGlN5G1zURVGqIKRhfXKgy4AxZWV7d3r53UWem5LR8MQFjbA6ofw/rWXyUornxRC+xeXNDOcl28y1R5cco4Fnc132afm0a7pThxkt9CmaHkezjjAGEXl2E6j1b54X3GWSAKztEtVXTtKA+j7feqyo=
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi!

Thanks for the answers.

I'm afraid I wasn't sufficiently explicit about my constraints. I
don't want to mention my subproofs directly in the main proof at all;
the inductive type on which I do my induction changes a lot, so I'ld
have to update the main proof constantly in response to these changes.
For this reason, explicitly adding the subproofs to the context of the
main proof and then using assumption is no better for me than
explicitly mentioning the subproofs in a tactic step.

"trivial" doesn't help because it tries only hints where the cost is
0. Even if I set the cost of my hints to 0 trivial can't succeed
(presumably because it also introduces hypotheses and once the
hypotheses are in the context instead of the goal the cost of the
proof goes up). I tried giving my hints a -1 cost, but that didn't
parse very well ;)

Using the Extern keyword so that I can explicitly set the cost of
subproofs to 0 and capping the search depth of eauto seems to make the
proof pretty fast. But it's also delicate. By setting num too low I
get Coq to run a very long time and then to fail.

What I really want is the

"assumption with <database>"

tactic. But I might have to wait for that.

-mulhern

On 1/30/06, Pierre Courtieu 
<pierre.courtieu AT gmail.com>
 wrote:
> On Mon, 30 Jan 2006 10:10:05 +0100 Jasper Stein 
> <jasper AT codeyard.net>
> wrote:
>
> > There is also the tactic "assumption" which will look in your local
> > context. So instead of "auto" you might want to do "assumption; auto"
> > to check for hypotheses first, and then applying auto in case it
> > doesn't solve it immediately.
> >
> >
> > Jasper Stein (Team CodeYard)
>
> Try also the "trivial" tactic, which is also very basic.
>
> You can also put a numerical argument to auto to fix the search depth
> of auto (default = 5).
>
> For example,
>
> auto 1.
> auto 2.
>
>
> This also works for eauto.
>
> Actually it is not exactly the search depth: the numerical argument
> refers to the cost attached to tactics composed. See documentation of
> auto and hints.
>
> Cheers,
>
> Pierre Courtieu
>





Archive powered by MhonArc 2.6.16.

Top of Page