Skip to Content.
Sympa Menu

coq-club - [Coq-Club] naming

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] naming


Chronological Thread 
  • From: Christopher Ernest Sally <christopherernestsally AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] naming
  • Date: Tue, 24 Dec 2013 03:58:41 +0800

Hi all

I am writing a tactic that looks for hypotheses of a certain shape

 | H : P x |- _
 | H : ~ P x |- _

and then I want it to introduce (depending on what it found) ~ P x and P x respectively. (P is just a place holder, I know it is generally not true that P x -> ~ P x)
I now have 2 questions

1) I want the hypotheses introduced by this tactic to be named not : _, not2 : _ , not2 : _ ...
Is this possible to do in ltac?

2) since the tactic introduces hypotheses of the same shape, is there a way to make sure that the tactic never matches on the generated hypotheses? 

Thanks in advance

Warm regards
Chris



Archive powered by MHonArc 2.6.18.

Top of Page