Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Occurrence of keyword in conclusion

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Occurrence of keyword in conclusion


chronological Thread 
  • From: "Woon Ming" <woon_ming AT comp.nus.edu.sg>
  • To: <coq-club AT pauillac.inria.fr>
  • Subject: [Coq-Club] Occurrence of keyword in conclusion
  • Date: Thu, 29 Jan 2009 14:43:50 -0800
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi all,

 

In my Ltac,  I would like to detect the occurrence of a particular keyword in the conclusion and apply the appropriate hypothesis.

( e.g.

My conclusion consists of “a * b = keyword * b”.

And my ltac is something like this:

 

Ltac simplify :=

match goal with

| [id:(_=?key) |- (_ = key * b)] => rewrite id.

end.

)

In the example given, it is workable only because I specified the operator (*). However, in the case where I don’t specify any operator (e.g. (_ =key_)), this is completely not workable. Is there any way I can perform regex matching in a generalized manner (e.g. without specifying the operator)?  

 

Best Regards,

Woon Ming

HP: 92981768

 




Archive powered by MhonArc 2.6.16.

Top of Page