Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] match/ proof of branch

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] match/ proof of branch


chronological Thread 
  • From: Adam Chlipala <adam AT chlipala.net>
  • To: marco.servetto AT gmail.com
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] match/ proof of branch
  • Date: Wed, 13 Jul 2011 08:15:32 -0400

marco.servetto AT gmail.com
 wrote:
Hi, I have an (I hope) very simple problem.
I need a proof that I'm inside some branch of a match case:
That is, in the following case
Definition f optA:=
   match optA with
     |Some a=>Some ( g a (p:(Some a=optA))
    |None=>None
     end.

I need to find the """p""" that have type """Some a=optA"""
any suggestion?

I assume you're asking about how to define tactics? If so, the fact that you write "Definition" where I would have expected "Ltac" leads me to believe that the best way forward may be to read a basic primer on Coq tactics. May I suggest especially Part III of CPDT (though earlier parts introduce Ltac basics piecemeal)?
    http://adam.chlipala.net/cpdt/




Archive powered by MhonArc 2.6.16.

Top of Page