coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Michael Shulman <mshulman AT ucsd.edu>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] transparent assert?
- Date: Mon, 2 May 2011 15:17:26 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=cwRCAvA3OSSjByBta5lHoHn4Mai8wRKQznpuCjZQG8DkQiXh4BByneBYWSS6qkrexn 7reFrrKKEaHVHI0NX5XBoKrJzDGjTv9D0/WGW4MXDU2KusbEuFJZiFnwJQckfJNYb6zI URohaF0jMzfzevGDZustv+x/siVGky/lGJKgw=
Hi everyone,
Suppose I have a goal whose conclusion is of the form { x:X & P x }.
Is there a way to write a proof script that first constructs an
element x0:X via tactics, instantiates x with x0, and then constructs
an element of P x0? Saying
assert (x0:X).
...
exists x0.
doesn't work because x0 is then opaque, whereas I generally need to
know what it is in order to construct the desired element of P x0.
The only thing I have found to do when I run into this problem is to
copy all the hypotheses of the current goal into a separate lemma
whose conclusion is X, prove the lemma and finish it with "Defined"
to make the term transparent, then go back to the original proof and
say "exists (lemma ...)". This works, but it is somewhat tedious; is
there a better way?
Thanks!
Mike
- [Coq-Club] transparent assert?, Michael Shulman
- Re: [Coq-Club] transparent assert?,
AUGER Cedric
- Re: [Coq-Club] transparent assert?, Michael Shulman
- Re: [Coq-Club] transparent assert?, Arnaud Spiwack
- Re: [Coq-Club] transparent assert?,
AUGER Cedric
Archive powered by MhonArc 2.6.16.