Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Apply without TC inference

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Apply without TC inference


Chronological Thread 
  • From: Clément Pit--Claudel <clement.pit AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Apply without TC inference
  • Date: Wed, 27 Jul 2016 16:00:10 -0400
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=clement.pit AT gmail.com; spf=SoftFail smtp.mailfrom=clement.pit AT gmail.com; spf=None smtp.helo=postmaster AT mout.kundenserver.de
  • Ironport-phdr: 9a23:Ftzm3B06clHn1F6OsmDT+DRfVm0co7zxezQtwd8ZsegSK/ad9pjvdHbS+e9qxAeQG96Ks7Qa1qGP6PuocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+kQsiM0o/ujLv60qaQSj0AvCC6b7J2IUf+hiTqne5Sv7FfLL0swADCuHpCdrce72ppIVWOg0S0vZ/or9YwuxhX7vkm7otLVbjwV6U+V71RSjo8YE4v48i+nh1CSAaJ+kwkU3lT1zFMChXJ4RWyCpz1vy73sPY7wCiGFcLzRLEwHz+l6vE4G1fTlC4bOmthoynsgctqgfcDrQ==

On 2016-07-27 15:06, Robbert Krebbers wrote:
> On 07/27/2016 09:04 PM, Jonathan Leivent wrote:
>> On 07/27/2016 02:59 PM, Matthieu Sozeau wrote:
>>> .. Maybe a
>>> modifier like unshelve would be more suited.
>>
>> +1
> And my +2!

Are we slowly rediscovering dynamically scoped variables? :) In Lisp, one
would write something like this:

(let ((unshelve t)
(tc-resolution nil))
(apply <some-theorem>))

And the implementation of 'apply' would obey 'unshelve' and 'tc-resolution'
(and probably many other settings, such as whether to print debugging
information). Maybe a unified mechanism like this would be nice to have in
ltac 2.0? It would allow tactic writers to make their own tactics
customizable, without resorting to opacity-based tricks.

Cheers,
Clément.

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.18.

Top of Page