coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Soegtrop, Michael" <michael.soegtrop AT intel.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: RE: [Coq-Club] Nesting MSet in an inductive type
- Date: Mon, 24 Aug 2015 13:41:30 +0000
- Accept-language: de-DE, en-US
Dear Cedric,
Stephen Lescuyer’s contribution is definitely an interesting read. He seems to first have followed similar ideas as I outlined below, e.g. there is a file “Bridge.v” to interface module based and type class based orders, but later he seems to have discarded this, since everything in this file is commented out. Still there are quite a few modules with function definitions and theorems in this work and it is not easy to understand why certain things are in modules rather than in records or type classes. My idea would be to keep functions and theorems in records or type classes to maintain the “first class citizen” property on a broad scope and use modules only for convenience features (tactics, hints, syntactic sugar). I guess one really has to use this in order to find out the pros and cons.
Best regards,
Michael
From: coq-club-request AT inria.fr [mailto:coq-club-request AT inria.fr]
On Behalf Of Cedric Auger
Stephane Lescuyer wrote a containers library using type classes instead of modules. So that may interest you. Personnaly, I do not see the fact that they can be used in inductives as the main advantage over modules, but rather that they are first class citizens. Indeed you can build an inhabitant "à la volée". It is far more convenient than defining awkward intermediate modules and functors to have something dependant on some parameter. Intel Deutschland GmbH |
- [Coq-Club] Nesting MSet in an inductive type, Jan Bessai, 08/16/2015
- Re: [Coq-Club] Nesting MSet in an inductive type, Pierre-Marie Pédrot, 08/16/2015
- Re: [Coq-Club] Nesting MSet in an inductive type, Jan Bessai, 08/16/2015
- RE: [Coq-Club] Nesting MSet in an inductive type, Soegtrop, Michael, 08/24/2015
- Re: [Coq-Club] Nesting MSet in an inductive type, Cedric Auger, 08/24/2015
- RE: [Coq-Club] Nesting MSet in an inductive type, Soegtrop, Michael, 08/24/2015
- Re: [Coq-Club] Nesting MSet in an inductive type, Cedric Auger, 08/24/2015
- RE: [Coq-Club] Nesting MSet in an inductive type, Soegtrop, Michael, 08/24/2015
- Re: [Coq-Club] Nesting MSet in an inductive type, Jan Bessai, 08/16/2015
- Re: [Coq-Club] Nesting MSet in an inductive type, Pierre-Marie Pédrot, 08/16/2015
Archive powered by MHonArc 2.6.18.