Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] List of hypotheses in Tactic Notation

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] List of hypotheses in Tactic Notation


chronological Thread 
  • From: Hugo Herbelin <herbelin AT pauillac.inria.fr>
  • To: St�phane Lescuyer <lescuyer AT lri.fr>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] List of hypotheses in Tactic Notation
  • Date: Sun, 5 Apr 2009 23:03:56 +0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi,

> I was trying to use  the new hyp_list and ne_hyp_list argument types
> of Tactic Notations:
> 
> Tactic Notation "mytactic" hyp_list(Hyps) :=
>   ....
> 
> I can't find a way to deconstruct or traverse these lists in the body
> of the tactic; therefore it seems the only thing that one can do is to
> pass this list of hypotheses
> to an existing tactic awaiting a list of arguments (clean, revert, ...
> ; idtac will not print the list though). Can anyone confirm this ?

Nothing is indeed provided to deconstruct or traverse these lists. As
Coq is, one can only use them in tactics awaiting for list of
arguments. Regarding idtac, it could indeed print the actual
list and this will be considered.

Hugo Herbelin





Archive powered by MhonArc 2.6.16.

Top of Page