coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Damien Pous <Damien.Pous AT ens-lyon.fr>
- To: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] hint database pollution
- Date: Tue, 16 Feb 2010 16:21:55 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=N+JJhCZkxc7FrtuUwsRPGqYDQdS7eN4O6XHtEZ4cVPeXNCDW07ejOwUinoqDOPTpbL JAPNUFYkdzH6epfDCrcMh2LAjHXZ/4q2j3kPhvHtu+8EGb5iYZEbEppkSAiZg1Cjy0q+ e+6Cw0+fqa+xmP/KETIk4dQzhZq7n5I/awtho=
> Hi, thanks for the report. I'll try to solve this issue by making
> these hints local to the FSets modules, and export them only in
> seperate, optional modules. I'll let you know when this is done.
> I'll also check with Elie Soubiran and Matthieu Sozeau whether
> we adequately avoid now registering several instances for the
> same constant if it has several names for the module system.
I am not sure this will be sufficient :
inside the module M, we do want FMaps/FSets hints. Therefore, we will
have to instantiate these separate optional modules at some point
(internally). From this point, it seems to me that there is no way to
prevent the hints from flowing away.
I might be wrong, but I really think the problem is not (only) with
the FMaps/FSets library, but with the hints declaration mechanism.
Namely, if I "Import N" in a module P, I certainly want hints of N to
be available in P, but not necessarily in modules that import P (N
might be a private module).
on the contrary, if I "Export N" in P, hints of N should certainly be
available to modules that import P (as it is currently the case).
I don't know what should happen when N is just "Required"...
Damien
- [Coq-Club] hint database pollution, Damien Pous
- Re: [Coq-Club] hint database pollution,
Pierre Letouzey
- Re: [Coq-Club] hint database pollution, Damien Pous
- [Coq-Club] how to make Coq to recognize that two inductive definitions are equal., Vladimir Voevodsky
- Re: [Coq-Club] hint database pollution,
Pierre Letouzey
Archive powered by MhonArc 2.6.16.