coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] Reasoning About and Working With Unordered Sets of Abstract Variables in Coq
Chronological Thread
- From: Pierre Courtieu <pierre.courtieu AT gmail.com>
- To: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Reasoning About and Working With Unordered Sets of Abstract Variables in Coq
- Date: Thu, 27 Sep 2018 15:48:57 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=pierre.courtieu AT gmail.com; spf=Pass smtp.mailfrom=pierre.courtieu AT gmail.com; spf=None smtp.helo=postmaster AT mail-ot1-f53.google.com
- Ironport-phdr: 9a23:jckhQxEeUl+eU3BBrfoPpp1GYnF86YWxBRYc798ds5kLTJ7zpMuwAkXT6L1XgUPTWs2DsrQY07WQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDiwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95eWCxPAIyyb4UBAekcM+hGs4bzqEADrQenBQS2GO/j1iNEi33w0KYn0+ohCwbG3Ak4EtwUsXTbss/1NL0MXuuo0qTIyijDb+lK2Tf89ofIbw0qrPaUXbJxb8XR01MvGB3fglqMrozlIimV1vgMs2eF8uptTu2vi2s9pAFwpjij3Nsjio7Mho8MzF3P6Ct3wIEwJdKiSU57Z8apEJpWtyGANot5WNkuQ29yuCoixb0GuIK7fCgXyJs83RLQd/uHc42O7xn+V+iROS91iGx5dL+7nRq/8kitxvfiWsWpzFpGtCpIn9fKu3sQzRLc8NKHReF4/kq52TaAyQTT6uZcLEAxj6XbKpohzqc3lpoPrEjPByH2lUX4gaOMeUUk/e+o6+vjYrr4vJOTK4h0igTmPqQvnMywH/g4PxAQU2SH/emwzr7u8E3jTLlUk/E6jrPVvZDUKMgDo662GQ5V0oIt6xalCDem1cwVnWEGLF1bYhKHlZbmN0vSL/D/EPe/mUiskDZ1yPDbJbDhDZDNIWLCkLflZ7py90lcyA8rwdBF+51UEq0BIO70WkLpqNPYCQY5PxWozObjFdVyzZgTWXmPA6+cKKPdq0WE5uMpI+mWZY8aoizxK/Y/562msXhsslgENYKtwJFfPHu/B7FtJ1iTSXvqmNYIV2kQ6FkQVuvv3WWDXCRJaj6ZWL8m+jA2FcryFYbOXJqgxreGwT2nH5BLTm9DA1GIV3zvctPXCL83dCuOL5o5wXQ/Xr+7RtpkjEn27V6o+/9cNuPRvxYgm9fm3dlx6ffUkEhrpzNxBsWZlWqKSjMtxz9ad3oNxKl65HdF5BKby6Eh2q5XENVS47VCVQJobceBndw/MMj7X0f6RvnMSFuiRY/7UzQ4T9Z0xMNXJkggQJOtiRfM2yfsCLgQxeSG
Hi,
It depends what kind of sets you want.
1) you need to reason about infinite sets? If yes then Ensembles
(+Classical_Sets?) is about everything you have got afaik, in
particular you lose induction principles.
otherwise:
2) Do you want to suppose a decidable equality over elements? If you
want to really compute on them at some point you probably do.
If yes: you can use MSetXXX functors of the standard library. Lots of facts.
otherwise:
- Library Finite_sets + Finite_sets_facts which are built upon Ensembles,
- https://coq.inria.fr/library/Coq.Vectors.Fin.html#t represents
finite sets as segment of integers of the form :[1..n].
- https://github.com/aspiwack/finset another representation using numbers
There are probably much more.
Hope this helps
Pierre
which represents sets of consecutive integers [1..n]
Le jeu. 27 sept. 2018 à 15:02, Alyssa N Byrnes
<abyrnes1 AT cs.unc.edu>
a écrit :
>
> I'm looking to work with and reason about unordered sets of an abstract
> variable.
>
> For example, I define variable a as:
>
> Variable a : Type.
>
> I know I can use Ensembles, but the Ensembles library doesn't have a lot of
> supporting theorems. Are there any other libraries I can use?
>
> (If you have a suggestion, could you please show an example of how you
> would instantiate one of these sets?)
>
> Many thanks!
> Alyssa Byrnes
- [Coq-Club] Reasoning About and Working With Unordered Sets of Abstract Variables in Coq, Alyssa N Byrnes, 09/27/2018
- Re: [Coq-Club] Reasoning About and Working With Unordered Sets of Abstract Variables in Coq, Pierre Courtieu, 09/27/2018
- Re: [Coq-Club] Reasoning About and Working With Unordered Sets of Abstract Variables in Coq, Alyssa N Byrnes, 09/27/2018
- Re: [Coq-Club] Reasoning About and Working With Unordered Sets of Abstract Variables in Coq, Pierre Courtieu, 09/27/2018
Archive powered by MHonArc 2.6.18.