Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] overloading natural number notations for user types

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] overloading natural number notations for user types


Chronological Thread 
  • From: Clément Pit--Claudel <clement.pit AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] overloading natural number notations for user types
  • Date: Sat, 20 Feb 2016 22:27:29 -0500
  • Authentication-results: mail2-smtp-roc.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:m5T4VhDi2Ul4SMhTROnRUyQJP3N1i/DPJgcQr6AfoPdwSP7/oMbcNUDSrc9gkEXOFd2CrakU1KyL6eu6ADNIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/niKbvodaJOloArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIYTGZn9Kq8/VPlTCCksG2Ez/szi8xfZHiWV4X5JeWGXlxdOHz/97Q2/G7z1uzb2u+41jCKeMMj7S6xyQTW+x6huQR7sziwAMmhqoynslsVsgfcD81qarBtlztuMbQ==

On 02/19/2016 07:08 PM, Pierre-Marie Pédrot wrote:
> On 20/02/2016 01:00, Jonathan Leivent wrote:
>> Thanks, Robbert. Unfortunately, I guess this means "not without a
>> plugin". Instead, I'll just define hopefully enough numbers via
>> Notations...
>
> Out of curiosity, what prevents you from writing / using a plugin?

Here's my take on that question:
* It requires knowledge of a second programming language beyond Ltac and
Gallina, and of some Coq internals
* It's harder to audit for people reviewing my code, due to the point above;
it's also harder to maintain or extend for others
* It won't work with all Coq interfaces; for example, it won't work with
jsCoq IIUC
* It will make it harder to ensure backwards compatibility (now I need to
care about Coq's internal interfaces). Maybe it'll break or become outdated,
and there won't be as much documentation about ways to update it (there's not
much about internals in CHANGES)
* I don't know how to do it, and I'm not sure where to learn (quick searches
didn't turn up documentation, just tutorials), or whether it would be a good
investment to learn
* Coq's notations are pretty good already

Cheers,
Clément.

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.18.

Top of Page