Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] deactivating implicit args via tactic

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] deactivating implicit args via tactic


Chronological Thread 
  • From: CJ Bell <siegebell+coq AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] deactivating implicit args via tactic
  • Date: Thu, 12 Nov 2015 14:50:02 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=siegebell AT gmail.com; spf=Pass smtp.mailfrom=siegebell AT gmail.com; spf=None smtp.helo=postmaster AT mail-ob0-f178.google.com
  • Ironport-phdr: 9a23:lhMd4xdcc+XOSzpINtuxgKvFlGMj4u6mDksu8pMizoh2WeGdxc68bR7h7PlgxGXEQZ/co6odzbGG7ua8CCdZu8jJmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbviptuPMk4R3mT1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu3SNp41Rr1ADTkgL3t9pIiy7UGCHkOz4S43VXxeuR5VCUCR5xbjG5z1ryHSt+xn2SDcM9egHp4uXjH3xIUjYhLsjG9TLD80/2zdh8h0z6lcuTquohV+x8jfZ4TDZ6k2Rb/UYd5PHTkJZc1WTSEUR9rkN4Y=

This seems to work in 8.4pl4 at least:

Tactic Notation "Explicitly" constr(L) := pose proof L.  (* fallback tactic if L is not a global reference *)
Tactic Notation "Explicitly" reference(L) := pose proof L. (* poses global identifiers *)

I'm not very familiar with the "reference" argument type, so I don't know whether it will always work for you :/


-cj

On Thu, Nov 12, 2015 at 11:35 AM, Jonathan Leivent <jonikelee AT gmail.com> wrote:
Given the name of a function with implicit args, say "foo", the name "@foo" names the same function with all args made explict.  However, the "@" does not seem to be an operator that one can apply to a name tactically.  For example - the following doesn't work:

Tactic Notation "Explicitly" uconstr(L) := pose proof @L.

as it appears to ignore the "@", with the result that pose proof fails due to uninferrable implicits.

Is there any way to take a name of a function and tactically change it to its explicit version?

-- Jonathan





Archive powered by MHonArc 2.6.18.

Top of Page