Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Declare Implicit Tactic bit-rot

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Declare Implicit Tactic bit-rot


Chronological Thread 
  • From: Jonathan Leivent <jonikelee AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Declare Implicit Tactic bit-rot
  • Date: Fri, 1 Jul 2016 00:04:50 -0400
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qk0-f181.google.com
  • Ironport-phdr: 9a23:w6IgoBagvDtgHp7QS9YiAM7/LSx+4OfEezUN459isYplN5qZpc+5bnLW6fgltlLVR4KTs6sC0LuO9fmwEjxaqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ3pzxjrD5q8ebSj4LrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYeVcyDAgD1uSmxHh+pX4p8Y7oGwD884mosVHSODxe7kyZb1eFjUvdW4vt+PxshyWbwyJ72ccW2NethdJHQXD8FmuXJD3syj3sudw8CafNMzyC7szXGLxvO9QVBb0hXJfZHYC+2bNh5kogQ==



On 06/30/2016 11:38 PM, Jason Gross wrote:
It wasn't previously in my toolbox, but now it's on my radar.

I wonder what happens if you use [abstract] in the implicit tactic... I
wonder if you can make it loop by getting it to be called recursively from
inside the implicit tactic... I wonder what happens if you're in universe
polymorphic mode and you generate new universes that show up only in
constraints and not in the proof term...

I just wonder if someone will ever fix it ;-) It looks like it has been broken for a long time - some googling suggests maybe since 8.2? It was put in in 8.1, according to CHANGES.

It would also be nice if/when it works if it didn't require complete solution or shelving - that way it could just transform implicit goals, or decide to do nothing, and leave the goal go wherever it would otherwise normally go - on the shelf, as a focused subgoal, etc. Also, that way "Declare Implicit Tactic idtac" would return behavior to the default.

-- Jonathan


On Thu, Jun 30, 2016, 7:29 PM Jonathan Leivent
<jonikelee AT gmail.com>
wrote:


On 06/30/2016 04:00 PM, Jonathan Leivent wrote:
...

Hint Extern 0 (eq _ _) => typeclasses eauto : tcinit_db.

Declare Implicit Tactic (eauto with nocore tcinit_db; shelve).

Yes, that could be a winner.

Although now it looks like Declare Implicit Tactic has some bugs. The
declared tactic doesn't get called in all the cases it claims: "It is
used every time the term argument of a tactic has one of its holes not
fully resolved.". For instance, "refine _" doesn't call it.

And in one case, it is giving me: "Anomaly: Evar ?X96 was not
declared. Please report."

On second thought - it seems easier to get Declare Implicit Tactic to
fail than to succeed. I guess nobody uses it.


-- Jonathan






Archive powered by MHonArc 2.6.18.

Top of Page