Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] How to get a constr_expr?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] How to get a constr_expr?


Chronological Thread 
  • From: Beta Ziliani <bziliani AT famaf.unc.edu.ar>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] How to get a constr_expr?
  • Date: Wed, 13 Apr 2016 10:33:24 -0300
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=bziliani AT famaf.unc.edu.ar; spf=None smtp.mailfrom=bziliani AT famaf.unc.edu.ar; spf=None smtp.helo=postmaster AT famaf.unc.edu.ar
  • Ironport-phdr: 9a23:1VKVQxR/Y0PeyNkEm7pTrVi+ytpsv+yvbD5Q0YIujvd0So/mwa64YxCN2/xhgRfzUJnB7Loc0qyN4/CmBDdLvMjJmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbviq9uOOE4V2nKUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGY2zRakzTKRZATI6KCh1oZSz7ViQBTeIs1AbSy09lgdCS1zO6wi/VZPsuAP7sPB80W+UJ5ulY6ozXGGI4rtiAC3pjCYOMT9xpGvFi8hxhaRaiByoohVxhZPSa8eYOOc4d7mLLoBSfnZIQssED38JOYi7dYZaSrNZZes=


On Mon, Mar 7, 2016 at 7:28 PM, Pierre-Marie Pédrot <pierre-marie.pedrot AT inria.fr> wrote:
On 07/03/2016 20:20, Beta Ziliani wrote:
> Hi all,
>
> Say I have a plugin with a procedure "f" that processes a constr_expr,
> and I want to write a tactic for it. I can't write the following:
>
> TACTIC EXTEND myf
>   | [ "myf" constr_expr(c) ] -> [ f c ]
>
> Is there an argument for a constr_expr? Or should I change "f" to get an
> object of a distinct type? f uses Proofview, and the idea is to
> interpret c in the evarmap provided by the proofview.

If I read between the lines, what you want is not a constr_expr but
rather a glob_constr. If that is true, you can probably rely on the
"uconstr" argument to do what you want.


Actually, I think what I need is an open_constr. Now the question is, what do I do with the sigmas? I get one from the goal, and one for each open_constr, which one should I use, or how should I combined them?

Many thanks!
Beta

 
PMP





Archive powered by MHonArc 2.6.18.

Top of Page