Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Anybody uses the Quote plugin?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Anybody uses the Quote plugin?


Chronological Thread 
  • From: Matthieu Sozeau <mattam AT mattam.org>
  • To: Tej Chajed <tchajed AT mit.edu>, John Wiegley <johnw AT newartisans.com>, coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Anybody uses the Quote plugin?
  • Date: Mon, 23 Jul 2018 19:46:22 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=mattam AT mattam.org; spf=Pass smtp.mailfrom=matthieu.sozeau AT gmail.com; spf=None smtp.helo=postmaster AT mail-wr1-f50.google.com
  • Ironport-phdr: 9a23:uel5sRCq3rgi+gyq5+49UyQJP3N1i/DPJgcQr6AfoPdwSPT9psbcNUDSrc9gkEXOFd2Cra4c1ayO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhTexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Qiqp4bt1RxD0iScHLz85/3/Risxsl6JQvRatqwViz4LIfI2ZMfxzdb7fc9wHX2pMRsleVyJDDY28YYUBDPcPM/hEoITmvVQCsQGzCBOwCO/zyDJFgGL9060g0+QmFAHLxAsuEMgSsHTIrNX1NbkdUf2ox6fVyjXCbu1Z1i3g6IPVdR0hpOuDXa5sccXLzEkiDAbFgU+MqYz5JTyV0/4Bs2+B7+pvTO+ijXMspQ92ojiq3Mgsi4/Ji5oaylDF6SV5wJs1KsaiREFnZt6kFZ1dvDyZOYtuWs4uXX1ktSIgxrAFuZO3ZjYGxIo6yxLFa/GLb46F6Q/5WumLOzd3nndldaq/hxms9UigzfXxVsyu31ZLqipJi9fNtmoQ2xDK5MiKSudx8l2u2TaI0ADT5eVELl4umaXHLJ4hx6Y8lpsVsUvdAi/7gFv6gLOSe0k++eWl6/7rbqv4qpOBLYN5ih3yPrwrmsOlAOQ4NgYOX3Kc+eS5zLDj+Ff2QKlWjv02k6nWro3aKd4Apq6+Ag5azJws6wukAjep1dQXh3gHLFZfdB2biIjpPknCIOrkAvenn1SsjDBryujaMb3mG5XBN2TMkLP8fblm8ENc0woyzdVH551OEL0BIfTzWlXwtNPCFBM5PRa0kK7bD4BB24FWcmKGAKKVePfOul+B5O8jC+yNeMkYtCurb7AH4P7oxUA4lFAZcLjhiZkQaHanNvJrPEyDfXv3i9EaV2wNu1x6BOftkRiJVSNZLyK5WLt57TUmAqqnC53CT8ajmurS8j28G8hzb3xaClGBDD/TcJeJUupEPCebPtNolxQBXKS9Qopn0guh4lypg4F7J/bZr3VL/ano08J4sqiKzUlrpG5ESv+F2mTIdFla22YBRjs4xqd6+BUvxVKK0Kw+iPtdR4UKu6F5FzwiPJuZ9NRUTsjoU1ubLNKAVEqvR5OhGz5jFotske9LWF50HpCZtj6G3yeuBOVIxbmCBZhx7biFmnasf4ByzHHJ0KRnhF4jEJNC

Hi,

A somewhat generic solution is provided by RTac (Malecha and Bengston) and is quite elaborate. I think Template-Coq should allow you to program your quotation mechanism as you wish (baring potential performance problems). At least using this you’d have direct access to the syntax of your term, no typechecking involved. According to J. Gross et al ITP paper performance is close to the “pattern” option, as far as I could tell.

My 2 cents,
— Matthieu
Le dim. 22 juil. 2018 à 11:36, Hugo Herbelin <Hugo.Herbelin AT inria.fr> a écrit :
Hi,

Somehow, a question is also whether it would be worth that someone
eventually provides a generic-enough quote function in Coq, for use at
both the vernac level or the plugin level.

My understanding of the Gross-Erbsen-Chlipala ITP 2018
reification-by-parametricity paper is that this quote function almost
already exists, it is "pattern". Then, what about going in the
direction of providing a variant of "pattern" which encapsulates the
boilerplate of the technique and which, maybe, also abstracts over the
foreign subterms?

Idem at the plugin level. Already e.g. ring, micromega, btauto have
their own reification mechanisms (sometimes even in Ltac) and this
seems suboptimal.

Best,

Hugo

On Fri, Jul 20, 2018 at 11:45:32AM -0700, John Wiegley wrote:
> I would also support dropping Quote; each time I've been able to use it, I
> ended up just copying Ltac macros from existing templates so I would have the
> configurability needed for future changes.

On Fri, Jul 20, 2018 at 08:41:28AM -0400, Tej Chajed wrote:
> I definitely support getting rid of Quote. I used it once and then ran into an
> issue: my unquote function took a type parameter, which is unsupported, even if
> you try specializing it. I talked to Jason Gross, copied some code from their 
> reification-by-parametricity paper, and got it working fairly easily in pure
> Ltac.
>
> It would be great to have some examples from that paper coped into the Coq test
> suite and try to give it visibility, instead of maintaining Quote. It's a more
> powerful technique and I believe with just a little boilerplate can replace
> uses of Quote (if anybody actually weighs in and is using it).
>
> On Fri, Jul 20, 2018 at 3:20 AM Maxime Dénès <mail AT maximedenes.fr> wrote:
>
>     Dear Coq-clubbers,
>
>     I'm trying to clean up the set of plugins shipped with Coq, so that we
>     can make the maintenance done by the development team more focused and
>     effective.
>
>     I was wondering if anybody was using the Quote plugin in real-world
>     developments. See https://github.com/coq/coq/pull/7894 for more context.
>
>     Thank you in advance for your feedback!
>
>     Maxime.
>



Archive powered by MHonArc 2.6.18.

Top of Page